bootstrap: let warn be like tests/init.sh's warn_
[gnulib.git] / ChangeLog
1 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2
3         bootstrap: let warn be like tests/init.sh's warn_
4         Reported by Jim Meyering.
5         * build-aux/bootstrap (warn): Remove, replaced by...
6         (warnf_, warn_): these.
7         Adjust callers.
8         Shorten messages that no longer fit in 80 columns.
9
10 2012-07-09  Bruno Haible  <bruno@clisp.org>
11
12         getopt: Simplify after Emacs changed.
13         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
14         (gl_GETOPT_IFELSE): Remove macro.
15
16 2012-07-09  Jim Meyering  <meyering@redhat.com>
17
18         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
19         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
20
21         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
22         Bugs in both of those conspired to make the
23         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
24         _sc_search_regexp's handling of non-empty $in_files would filter
25         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
26         choice of in_files value meant there would be no match in most
27         projects, due to the presence of two or more Makefile.in files.
28         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
29         Fix a bug in how a non-empty $$in_files was processed:
30         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
31         in spite of the name, it's a regexp, not a list of file names.
32
33 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34
35         getloadavg, getopt: fix commentary re configure.in
36         Autoconf is deprecating the name 'configure.in', so change it to
37         to the new name 'configure.ac' in a couple of places.
38         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
39         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
40         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
41         Emacs has renamed it to configure.ac, and it no longer refers
42         to these macros anyway.
43
44         timespec: mark functions with const attributes
45         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
46         Mark with _GL_ATTRIBUTE_CONST.
47
48 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
49
50         canonicalize[-lgpl]: handle "guessing" values when cross-building
51         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
52         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
53         matches "*yes" instead of just "yes".  Regression introduced in commit
54         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
55
56 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
57             Bruno Haible  <bruno@clisp.org>
58
59         canonicalize: make the right guess when cross-compiling to GNU
60         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
61         determine whether cross-compiling to glibc systems, so as to
62         include GNU/Hurd.
63
64 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65
66         timespec-sub: avoid duplicate include
67         * lib/timespec-sub.c: Do not include <config.h> twice.
68         Reported by Juanma Barranquero.
69
70 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
71
72         bootstrap: use a more consistent error reporting scheme
73         * build-aux/bootstrap (warn, die): New.
74         Use them.
75
76 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77
78         sys_time: allow too-wide tv_sec
79         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
80         timeval even if tv_sec is wider than time_t.  This allows
81         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
82         as without this patch gnulib replaces struct timeval
83         and OpenBSD futimes therefore has a type mismatch.
84         * doc/posix-headers/sys_time.texi: Mention this.
85
86         pthread: check for both pthread_create and pthread_join
87         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
88         alter the check so that it tests for both pthread_create and
89         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
90         Suggested by Bruno Haible and Richard Yao in
91         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
92
93         parse-datetime: doc tuneup
94         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
95         spacing issues.
96
97 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
98
99         do-release-commit-and-tag: fix the previous commit
100         * build-aux/do-release-commit-and-tag: Actually the test was right,
101         but the comment and the error message were misleading.
102         Fix comment, and improve error message.
103         Perform check first, so that NEWS is not modified uselessly.
104
105         do-release-commit-and-tag: fix typo
106         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
107         _not_ start with a stub.
108
109 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
110
111         pthread: check for pthread_create, not pthread_join
112         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
113         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
114         pthread_join in libc.  I hope this removes the need for all the
115         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
116         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
117
118 2012-07-04  Jim Meyering  <meyering@redhat.com>
119
120         parse-datetime: fix failure to diagnose invalid input
121         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
122         rather than diagnosing the invalid input.  Now it reports this:
123         date: invalid date '\260'
124         * lib/parse-datetime.y (to_uchar): Define.
125         (yylex): Don't sign-extend "other" bytes.
126         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
127         Thanks to Bruno Haible for the patch to this file.
128         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
129         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
130
131 2012-07-03  Jim Meyering  <meyering@redhat.com>
132
133         bootstrap: do not require now-removed build-aux/missing
134         Now that build-aux/missing is, er, missing, bootstrap would
135         silently fail.
136         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
137         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
138         no longer part of gnulib.
139         Diagnose the failure.
140
141 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
142
143         alloca: add support for HP NonStop TNS/E native
144         * lib/alloca.in.h (alloca): Support the new host.
145         From a suggestion by Joachim Schmitz in
146         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
147
148 2012-07-02  Pádraig Brady  <P@draigBrady.com>
149
150         fsusage: remove code not needed on non GNU/Linux systems.
151
152         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
153         Don't include headers no longer needed in this case.
154         * lib/fsusage.c [STAT_STATVFS &&
155         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
156         STAT_STATFS2_FRSIZE to exclude code not used in this case.
157
158 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
159
160         fsusage: include files needed for glibc 2.6 fallback
161         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
162         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
163         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
164         Problem reported by Ludovic Courtès in
165         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
166
167         fsusage: avoid needless check on GNU/Linux
168         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
169         on GNU/Linux systems, since it can't possibly work.
170
171 2012-07-01  Bruno Haible  <bruno@clisp.org>
172
173         log: Fix an autoconf >= 2.64 warning.
174         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
175         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
176
177 2012-06-28  Bruno Haible  <bruno@clisp.org>
178
179         log10f: Fix possible configuration problem.
180         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
181         $LOGF_LIBM.
182         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
183
184 2012-06-28  Bruno Haible  <bruno@clisp.org>
185
186         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
187         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
188         not gl_cv_func_unlink_works.
189         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
190
191 2012-06-27  Eric Blake  <eblake@redhat.com>
192
193         config: drop scripts that automake says are not independent
194         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
195         * build-aux/elisp-comp: Delete.
196         * build-aux/missing: Likewise.
197         * build-aux/ylwrap: Likewise.
198         * modules/elisp-comp: Likewise.
199         * MODULES.html.sh: Drop mention of elisp-comp.
200         * NEWS: Mention this.
201
202 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
203
204         root-uid: new module
205         This is for portability to Tandem's NonStop Kernel.
206         * lib/root-uid.h, modules/root-uid: New files.
207         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
208         * lib/write-any-file.c, tests/test-sethostname2.c:
209         Include "root-uid.h".
210         * lib/euidaccess.c (euidaccess):
211         * lib/pt_chown.c (main):
212         * lib/unlinkdir.c (cannot_unlink_dir):
213         * lib/write-any-file.c (can_write_any_file):
214         * m4/mknod.m4 (gl_FUNC_MKNOD):
215         * tests/test-sethostname2.c (geteuid, main):
216         Don't assume ROOT_UID == 0.
217         * modules/euidaccess (Depends-on):
218         * modules/pt_chown (Depends-on):
219         * modules/sethostname-tests (Depends-on):
220         * modules/unlinkdir (Depends-on):
221         * modules/write-any-file (Depends-on):
222         Add root-uid.
223
224         regex: use locale-independent comparison for codeset name
225         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
226         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
227         for codeset name.
228         * lib/regex_internal.h: Do not include <strings.h>, since we
229         no longer use strcasecmp.
230         * modules/regex (Depends-on): Remove strcase.
231
232 2012-06-23  Bruno Haible  <bruno@clisp.org>
233
234         getopt-posix: No longer guarantee that option processing is resettable.
235         * doc/posix-functions/getopt.texi: Drop description of problem with
236         internal state. Fix info about mingw and msvc9.
237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
238         option processing by getopt(). Run three test programs instead of one.
239         Simplify cross-compilation guess.
240         * NEWS: Mention the change.
241         Reported by Rich Felker <dalias@aerifal.cx>.
242
243 2012-06-26  Bruno Haible  <bruno@clisp.org>
244
245         argp, regex: Ensure strcasecmp gets declared.
246         * lib/argp-help.c: Include <strings.h>.
247         * lib/regex_internal.h: Likewise.
248         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
249
250 2012-06-24  Bruno Haible  <bruno@clisp.org>
251
252         ptsname_r: Make it consistent with ptsname on AIX.
253         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
254         implementation as for OSF/1.
255         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
256         a pty master.
257
258         ptsname_r: Make it consistent with ptsname on OSF/1.
259         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
260         OSF/1.
261
262 2012-06-24  Bruno Haible  <bruno@clisp.org>
263
264         ttyname_r: Fix result on OSF/1, Solaris.
265         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
266
267 2012-06-24  Bruno Haible  <bruno@clisp.org>
268
269         ptsname_r: Add support for Solaris.
270         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
271         Solaris.
272
273         ptsname_r: Fix test failure on native Windows.
274         * modules/ptsname_r (Depends-on): Add isatty.
275
276         ptsname_r: Fix test failures on IRIX, Solaris.
277         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
278         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
279         accordingly.
280         * lib/ptsname_r.c: Include <fcntl.h>.
281         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
282         set errno if fd is invalid.
283         * tests/test-isatty.c (main): Update comments.
284
285 2012-06-24  Bruno Haible  <bruno@clisp.org>
286
287         ptsname test: Extend test.
288         * tests/test-ptsname.c: Include <errno.h>.
289         (main): Test behaviour with invalid file descriptor.
290
291 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
292
293         time: fix obsolete comment
294         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
295         reference to HAVE_STRUCT_TIMESPEC in comment.
296
297 2012-06-23  Bruno Haible  <bruno@clisp.org>
298
299         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
300         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
301         does not handle abbreviated long options with equivalent
302         disambiguations, set gl_replace_getopt to yes.
303         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
304
305 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
306
307         time_r: fix typo that always overrode localtime_r decl
308         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
309         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
310         not in a standard include.
311
312 2012-06-22  Bruno Haible  <bruno@clisp.org>
313
314         Write "Mac OS X" instead of "MacOS X".
315         * README: Write "Mac OS X" instead of "MacOS X".
316         * build-aux/bootstrap: Likewise.
317         * build-aux/install-reloc: Likewise.
318         * lib/acl-internal.h: Likewise.
319         * lib/acl_entries.c: Likewise.
320         * lib/argp-ba.c: Likewise.
321         * lib/argp-pv.c: Likewise.
322         * lib/config.charset: Likewise.
323         * lib/copy-acl.c: Likewise.
324         * lib/csharpexec.c: Likewise.
325         * lib/euidaccess.c: Likewise.
326         * lib/fbufmode.c: Likewise.
327         * lib/fflush.c: Likewise.
328         * lib/file-has-acl.c: Likewise.
329         * lib/filemode.h: Likewise.
330         * lib/fpurge.c: Likewise.
331         * lib/freadable.c: Likewise.
332         * lib/freadahead.c: Likewise.
333         * lib/freading.c: Likewise.
334         * lib/freadptr.c: Likewise.
335         * lib/freadseek.c: Likewise.
336         * lib/fseeko.c: Likewise.
337         * lib/fseterr.c: Likewise.
338         * lib/fsusage.c: Likewise.
339         * lib/fwritable.c: Likewise.
340         * lib/fwriting.c: Likewise.
341         * lib/get-rusage-as.c: Likewise.
342         * lib/get-rusage-data.c: Likewise.
343         * lib/getdomainname.c: Likewise.
344         * lib/idpriv-drop.c: Likewise.
345         * lib/idpriv-droptemp.c: Likewise.
346         * lib/localcharset.c: Likewise.
347         * lib/locale.in.h: Likewise.
348         * lib/localename.c: Likewise.
349         * lib/mbsrtowcs-state.c: Likewise.
350         * lib/nproc.c: Likewise.
351         * lib/passfd.c: Likewise.
352         * lib/posix_openpt.c: Likewise.
353         * lib/printf-parse.c: Likewise.
354         * lib/progreloc.c: Likewise.
355         * lib/safe-read.h: Likewise.
356         * lib/safe-write.h: Likewise.
357         * lib/sched.in.h: Likewise.
358         * lib/set-mode-acl.c: Likewise.
359         * lib/signal.in.h: Likewise.
360         * lib/stdint.in.h: Likewise.
361         * lib/stdio-impl.h: Likewise.
362         * lib/stdlib.in.h: Likewise.
363         * lib/strtod.c: Likewise.
364         * lib/sys_select.in.h: Likewise.
365         * lib/tcgetsid.c: Likewise.
366         * lib/unistd.in.h: Likewise.
367         * lib/unlockpt.c: Likewise.
368         * lib/vasnprintf.c: Likewise.
369         * lib/vma-iter.c: Likewise.
370         * lib/wcsrtombs-state.c: Likewise.
371         * m4/acl.m4: Likewise.
372         * m4/acosl.m4: Likewise.
373         * m4/asinl.m4: Likewise.
374         * m4/atanl.m4: Likewise.
375         * m4/c-stack.m4: Likewise.
376         * m4/cosl.m4: Likewise.
377         * m4/expl.m4: Likewise.
378         * m4/extensions.m4: Likewise.
379         * m4/fdatasync.m4: Likewise.
380         * m4/fmal.m4: Likewise.
381         * m4/frexp.m4: Likewise.
382         * m4/frexpf.m4: Likewise.
383         * m4/frexpl.m4: Likewise.
384         * m4/fsusage.m4: Likewise.
385         * m4/getdomainname.m4: Likewise.
386         * m4/getloadavg.m4: Likewise.
387         * m4/getopt.m4: Likewise.
388         * m4/gettext.m4: Likewise.
389         * m4/gnulib-common.m4: Likewise.
390         * m4/intdiv0.m4: Likewise.
391         * m4/intlmacosx.m4: Likewise.
392         * m4/largefile.m4: Likewise.
393         * m4/ldexpl.m4: Likewise.
394         * m4/link-follow.m4: Likewise.
395         * m4/locale-ar.m4: Likewise.
396         * m4/locale-fr.m4: Likewise.
397         * m4/locale-ja.m4: Likewise.
398         * m4/locale-tr.m4: Likewise.
399         * m4/locale-zh.m4: Likewise.
400         * m4/locale_h.m4: Likewise.
401         * m4/lock.m4: Likewise.
402         * m4/logl.m4: Likewise.
403         * m4/mathfunc.m4: Likewise.
404         * m4/minus-zero.m4: Likewise.
405         * m4/mktime.m4: Likewise.
406         * m4/mmap-anon.m4: Likewise.
407         * m4/multiarch.m4: Likewise.
408         * m4/nanosleep.m4: Likewise.
409         * m4/nocrash.m4: Likewise.
410         * m4/poll.m4: Likewise.
411         * m4/printf-frexpl.m4: Likewise.
412         * m4/printf.m4: Likewise.
413         * m4/signbit.m4: Likewise.
414         * m4/sinl.m4: Likewise.
415         * m4/sqrtl.m4: Likewise.
416         * m4/strerror_r.m4: Likewise.
417         * m4/tanl.m4: Likewise.
418         * m4/threadlib.m4: Likewise.
419         * m4/ttyname_r.m4: Likewise.
420         * m4/unlink.m4: Likewise.
421         * m4/visibility.m4: Likewise.
422         * m4/wcwidth.m4: Likewise.
423         * tests/minus-zero.h: Likewise.
424         * tests/test-alloca-opt.c: Likewise.
425         * tests/test-copy-acl.sh: Likewise.
426         * tests/test-copy-file.sh: Likewise.
427         * tests/test-fdatasync.c: Likewise.
428         * tests/test-file-has-acl.sh: Likewise.
429         * tests/test-flock.c: Likewise.
430         * tests/test-fsync.c: Likewise.
431         * tests/test-localename.c: Likewise.
432         * tests/test-malloca.c: Likewise.
433         * tests/test-nonblocking-pipe.h: Likewise.
434         * tests/test-nonblocking-socket.h: Likewise.
435         * tests/test-openpty.c: Likewise.
436         * tests/test-posix_openpt.c: Likewise.
437         * tests/test-ptsname.c: Likewise.
438         * tests/test-ptsname_r.c: Likewise.
439         * tests/test-sameacls.c: Likewise.
440         * tests/test-select.h: Likewise.
441         * tests/test-set-mode-acl.sh: Likewise.
442         * tests/test-snprintf-posix.h: Likewise.
443         * tests/test-sprintf-posix.h: Likewise.
444         * tests/test-strtod.c: Likewise.
445         * tests/test-time.c: Likewise.
446         * tests/test-vasnprintf-posix.c: Likewise.
447         * tests/test-vasprintf-posix.c: Likewise.
448         * doc/acl-resources.txt: Likewise.
449         * doc/**/*.texi: Likewise.
450         Reported by Max Horn <max@quendi.de>.
451
452 2012-06-22  Bruno Haible  <bruno@clisp.org>
453
454         grantpt: Relax requirement regarding invalid file descriptors.
455         * lib/grantpt.c: Don't include <fcntl.h>.
456         (grantpt): Don't verify the validity of the file descriptor.
457         * modules/grantpt (Depends-on): Remove fcntl-h.
458         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
459         file descriptors.
460         * doc/posix-functions/grantpt.texi: Document more platforms on which
461         grantpt succeeds for invalid file descriptors.
462         Reported by Rich Felker <dalias@aerifal.cx>.
463
464 2012-06-22  Bruno Haible  <bruno@clisp.org>
465
466         fbufmode test: Don't test unportable behaviour.
467         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
468         (main): Invoke it three times.
469         Reported by Szabolcs Nagy <nsz@port70.net>
470         and Rich Felker <dalias@aerifal.cx>.
471
472 2012-06-21  Bruno Haible  <bruno@clisp.org>
473
474         gnulib-tool: Refactor inctests variable.
475         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
476         (func_modules_transitive_closure,
477         func_modules_transitive_closure_separately,
478         func_import, func_create_testdir): Update.
479
480         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
481         * gnulib-tool: Accept option --without-tests.
482         (func_usage): Document --without-tests option. Rearrange.
483         (inctests): Normalize according to the mode.
484         * NEWS: Mention the change.
485         Suggested by Simon Josefsson.
486
487 2012-06-21  Bruce Korb  <bkorb@gnu.org>
488
489         parse-duration test: Avoid spurious output.
490         * tests/test-parse-duration.sh: Reindent with leading tabs.
491
492 2012-06-21  Jim Meyering  <meyering@redhat.com>
493
494         maint: disable the strncpy prohibition
495         * cfg.mk: Do not prohibit strncpy here.
496
497 2012-06-21  Bruno Haible  <bruno@clisp.org>
498
499         nonblocking: Avoid compilation error on mingw64.
500         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
501         fscanf.
502         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
503         * modules/vfscanf (configure.ac): Likewise.
504         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
505         definition only if stdio.h has prepared it.
506         Reported by Daniel P. Berrange <berrange@redhat.com>.
507
508 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
509
510         gnulib-tool: Use readlink if it is available.
511         * gnulib-tool (func_readlink): Choose function more appropriately.
512
513 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
514
515         posixtm-tests: port to buggy compiler
516         Problem reported by Simon Josefsson in
517         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
518         * modules/posixtm-tests (Depends-on): Add stdint.
519         * tests/test-posixtm.c (struct posixtm_test.t_expected):
520         Now of type int_least64_t, not int64_t, both because that's
521         what INT64_C returns and because int_least64_t works even
522         on 72-bit hosts.
523         (T): Use INT64_C on constants outside the traditional int range,
524         to work around compiler bug noted by Simon.
525
526         mktime: fix integer overflow in 'configure'-time test
527         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
528         after integer overflow.  Problem reported by Rich Felker in
529         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
530         Also, don't look for further instances of a bug if we've already
531         found one instance; this helps 'configure' run faster.
532
533 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
534
535         tmpfile, clean-temp: Fix invocation of GetVersionEx.
536         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
537         GetVersionEx correctly.
538         * lib/clean-temp.c (supports_delete_on_close): Likewise.
539
540 2012-06-20  Bruno Haible  <bruno@clisp.org>
541
542         fdopen: Allow implementations that don't reject invalid fd arguments.
543         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
544         succeeds.
545         Reported by Rich Felker <dalias@aerifal.cx>.
546
547 2012-06-20  Simon Josefsson  <simon@josefsson.org>
548
549         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
550         bring in LIBINTL.
551
552 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
553
554         init.sh: do not rely on autoupated PWD
555         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
556         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
557         Although Nelson's bug was not necessarily fixed by this patch,
558         it seems wise to make the change for safety.
559         * tests/init.sh (path_prepend_): Do not rely on PWD updating
560         automagically after 'cd'; this is not reliable on older shells.
561         (setup_): Fail if we cannot cd to temporary directory.
562
563 2012-06-19  Bruno Haible  <bruno@clisp.org>
564
565         stat, fstat: Avoid warnings on mingw64.
566         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
567         redefining.
568         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
569         Reported by Daniel P. Berrange <berrange@redhat.com>.
570
571 2012-06-19  Bruno Haible  <bruno@clisp.org>
572
573         stdioext: Add support for musl libc.
574
575         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
576         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
577
578         * m4/fseterr.m4: New file.
579         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
580         function exists.
581         * modules/fseterr (Files): Add m4/fseterr.m4.
582         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
583         __fseterr does not exist.
584         (Makefile.am): Remove fseterr.c from lib_SOURCES.
585
586         * lib/freadable.h: Update comment.
587
588         * lib/fwritable.h: Update comment.
589
590         * lib/freading.h: Update comment.
591
592         * lib/fwriting.h: Update comment.
593
594         * m4/freadahead.m4: New file.
595         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
596         that function exists.
597         * modules/freadahead (Files): Add m4/freadahead.m4.
598         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
599         __freadahead does not exist.
600         (Makefile.am): Remove freadahead.c from lib_SOURCES.
601
602         * m4/freadptr.m4: New file.
603         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
604         function exists.
605         * modules/freadptr (Files): Add m4/freadptr.m4.
606         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
607         __freadptr does not exist.
608         (Makefile.am): Remove freadptr.c from lib_SOURCES.
609
610         * m4/freadseek.m4: New file.
611         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
612         exists.
613         * modules/freadseek (Files): Add m4/freadseek.m4.
614         (configure.ac): Invoke gl_FUNC_FREADSEEK.
615
616         * lib/fpurge.c (fpurge): Update comment.
617
618         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
619
620 2012-06-19  Bruno Haible  <bruno@clisp.org>
621
622         *printf-posix: Put more info into config.log.
623         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
624         exit code into config.log.
625
626 2012-06-19  Bruno Haible  <bruno@clisp.org>
627
628         getopt-gnu: Fix exit code overflow in autoconf test.
629         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
630         to keep them below < 128.
631
632 2012-06-17  Jim Meyering  <meyering@redhat.com>
633
634         maint.mk: fix typo in code to derive GPG key at release time
635         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
636
637 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
638
639         regex: avoid warning when pointers are not long
640         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
641         and uintptr_t, not long, for portability to hosts where pointers and
642         long have different sizes.  Issue noted by Daniel P. Berrange in
643         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
644         and fix suggested by Bruno Haible in
645         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
646
647 2012-06-17  Bruno Haible  <bruno@clisp.org>
648
649         dummy: Relicense into the public domain.
650         * modules/dummy (License): Set to "public domain".
651         Suggested by Reuben Thomas.
652
653 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
654
655         announce-gen: VPATH issues
656         * build-aux/announce-gen (--srcdir): New option, used to trim the
657         $srcdir part of the path from $builddir to NEWS.
658         * top/maint.mk (announcement): Adjust.
659
660 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
661
662         gnu-web-doc-update: VPATH builds
663         * build-aux/gnu-web-doc-update (--builddir): New option.
664         Revamp the handling of options.
665         Prefer $(...) to `...`.
666         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
667         the template, and it is GNU mktemp specific.
668         Prefer set -e to long series of &&.
669         Restore the initial git branch, not "master".
670         Properly initialize submodules (don't rely only on bootstrap).
671         Do not reconfigure blindly, use config.status.
672         * top/README-release: Update instructions for gnu-web-doc-update.
673
674 2012-06-11  Jim Meyering  <meyering@redhat.com>
675
676         maint.mk: revert most of the previous change re "all these"
677         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
678         For rationale, see the discussion at
679         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
680
681 2012-06-10  Karl Berry  <karl@gnu.org>
682
683         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
684
685         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
686
687 2012-06-10  Bruce Korb  <bkorb@gnu.org>
688
689         parse-duration: Relicense under LGPLv2+.
690         * modules/parse-duration (License): Change to LGPLv2+.
691
692 2012-06-10  Jim Meyering  <meyering@redhat.com>
693
694         maint.mk: prohibit common grammar error: "all these"
695         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
696         the list of prohibited word sequences.  It should be "all of these".
697         * lib/tempname.c (__gen_tempname): Fix one of them.
698
699 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
700
701         do-release-commit-and-tag: support VPATH builds
702         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
703         (noteworthy): Defined earlier to factor its value.
704         (noteworthy_stub): New.
705         Use it to factor.
706         (help_version): Split into...
707         (help, version): these.
708         Adjust the option processing part.
709         Support "--option=value" in addition to "--option value".
710         (builddir): New.
711         (--builddir): New option.
712         * top/README-release: Document this.
713         Reword slightly so that the reader cannot understand that he
714         has to do these steps before calling do-release-commit-and-tag.
715
716 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
717
718         readme-release: also require announce-gen and maintainer-makefile
719         * modules/readme-release (Depends-on): here.
720         * modules/announce-gen, modules/do-release-commit-and-tag,
721         modules/gnu-web-doc-update, modules/maintainer-makefile
722         (Description): Point to readme-release.
723
724 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
725
726         maint.mk: fix VPATH issues.
727         * top/maint.mk (news-check): GNU Make understand $< very well.
728         (release-prep): NEWS is in $(srcdir).
729
730 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
731
732         readme-release: require the promoted modules.
733         * modules/readme-release (Depends-on): Add
734         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
735         in this text.
736
737 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
738             Bruno Haible  <bruno@clisp.org>
739
740         error, strerror-override: Support mingw64 from Fedora 17.
741         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
742         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
743         EINPROGRESS.
744         * lib/strerror-override.h (strerror_override): Test it.
745         * lib/strerror-override.c (strerror_override): Likewise.
746         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
747
748 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
749             Bruno Haible  <bruno@clisp.org>
750
751         error, strerror-override: Support mingw64 from Fedora 17.
752         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
753         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
754         * lib/strerror-override.h (strerror_override): Test it.
755         * lib/strerror-override.c (strerror_override): Likewise.
756
757 2012-06-03  Bruno Haible  <bruno@clisp.org>
758
759         error, strerror-override: Support new errno values from POSIX:2008.
760         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
761         ENOTRECOVERABLE.
762         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
763         platforms.
764         * lib/strerror-override.c (strerror_override): Conditionalize the
765         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
766         * lib/strerror-override.h (strerror_override): Declare also if
767         GNULIB_defined_EOWNERDEAD is defined.
768         * tests/test-errno.c (e130, e131): New variables.
769         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
770         ENOTRECOVERABLE.
771         Reported by Paolo Bonzini.
772
773 2012-05-31  Jim Meyering  <meyering@redhat.com>
774
775         savewd: add missing dependency on sys_wait module
776         * modules/savewd (Depends-on): Add sys_wait, needed at least
777         for MSVC.  Report and suggested change by Michael Goffioul.
778
779 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
780
781         system-quote-tests: port to CentOS 5
782         Problem reported by Tom G. Christensen in
783         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
784         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
785
786 2012-05-29  Jim Meyering  <meyering@redhat.com>
787
788         maint: fix typos in comments and ChangeLog
789         Culprits identified and fixed mostly automatically using these commands:
790         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
791         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
792         using http://github.com/lyda/misspell-check
793         * ChangeLog: Fix typos.
794         * doc/solaris-versions: Likewise.
795         * lib/regexec.c (re_search_stub): Likewise.
796         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
797
798 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
799
800         manywarnings: remove duplicate -Wmultichar entry
801         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
802         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
803         so keep the entry marked as documented.
804
805 2012-05-27  Karl Berry  <karl@gnu.org>
806
807         * config/srclist.txt (mktime.c): remove last libc sync,
808         perhaps just temporarily.
809
810 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
811
812         regex: don't assume uint64_t or uint32_t
813         * lib/regcomp.c (init_word_char): Don't assume that the types
814         uint64_t and uint32_t exist.  The C standard doesn't guarantee
815         them, and on some 32-bit compilers there is no uint64_t.
816         Problem reported by Gianluigi Tiesi in
817         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
818
819 2012-05-25  Jim Meyering  <meyering@redhat.com>
820
821         maint.mk: add strncpy-prohibiting syntax-check rule
822         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
823
824 2012-05-24  Jim Meyering  <meyering@redhat.com>
825
826         maint.mk: compute $(gpg_key_ID) more portably
827         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
828         That use of sed is not portable to some fringe systems.
829         Reported by Paul Eggert in
830         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
831
832 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
833
834         mktime: sync from glibc
835         * config/srclist.txt: Uncomment mktime.c.
836         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
837         First, indent with tabs, since glibc uses tabs and doesn't want to
838         change and we'd rather be identical to glibc.  Also, two small
839         coding changes:
840         (isdst_differ): Use &&, not &, as && is the usual style.
841         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
842         for clarity.
843
844 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
845
846         announce-gen: du -h is more portable than du --human
847         * build-aux/announce-gen (sizes): Invoke du with -h instead
848         of --human.  Accept leading white space in its output.
849
850 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
851
852         announce-gen: Improve diagnostics.
853         * build-aux/announce-gen: When parsing command line options,
854         prefer "announce-gen: option --release-type requires an argument"
855         to "Option release-type requires an argument".
856
857 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
858
859         maint.mk: gpg_key_ID: use sed more portably
860         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
861         the closing brace.
862         (refresh-po): Fuse two sed invocations into one.
863
864 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
865
866         gitlog-to-changelog: support the log message format used in Bison.
867         * build-aux/gitlog-to-changelog: Support --strip-tab and
868         --strip-cherry-picked.
869
870 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
871
872         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
873         the rest of the current time slice to another thread in the current
874         process. So if the thread that feeds the file decscriptor we're
875         polling is not in the current process, we get busy-waiting.
876         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
877         Patch from Theodore Leblond.
878         * lib/select.c: Split polling out of the loop that sets the output
879         fd_sets.  Check for zero result and loop if the wait timeout is
880         infinite.
881
882 2012-05-21  Simon Josefsson  <simon@josefsson.org>
883
884         select: Fix build error on IRIX 6.5.
885         * lib/select.c: Include stddef.h for NULL.
886
887 2012-05-21  Simon Josefsson  <simon@josefsson.org>
888
889         gc: fix libgcrypt detection on older machines.
890         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
891         copyright years because the file has been distributed every year
892         since it was created.
893
894 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
895
896         crypto: fix bug in large buffer handling
897         Problem reported by Serge Belyshev for glibc in
898         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
899         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
900         * lib/md4.c (md4_process_block):
901         * lib/md5.c (md5_process_block):
902         * lib/sha1.c (sha1_process_block):
903         * lib/sha256.c (sha256_process_block):
904         Don't assume the buffer length is less than 2**32.
905         * lib/sha512.c (sha512_process_block): Likewise.
906         Here, the bug is present only in the rare case where the host does
907         not support uint64_t or where size_t is wider than 64 bits.
908         Use u64size to work around the problems.
909         * lib/u64.h (u64size): New macro.
910
911 2012-05-15  Pádraig Brady  <P@draigBrady.com>
912
913         fsusage: fix block size returned on older Linux 2.6
914
915         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
916         which is available since Linux 2.6.
917         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
918         when the member is available so it can be used as a fallback.
919         * doc/posix-functions/statvfs.texi: Mention the hang issue
920         on Linux < 2.6.36.
921
922 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
923
924         bootstrap: suppress stderr chatter
925         * build-aux/bootstrap (insert_sorted_if_absent, main program):
926         Omit unnecessary chatter to stderr.  The main program chatter
927         was there only inadvertantly.
928
929         bootstrap: .gitignore files created by autopoint, libtool
930         I ran into this problem when bootstrapping the latest diffutils.
931         After './bootstrap', 'git status' reported lots of untracked files
932         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
933         autopoint and do not need to be version-controlled.
934         * build-aux/bootstrap: Put into .gitignore the files that
935         autopoint and libtool create, by keeping track of files that exist
936         after but not before these programs are run.
937         (version_controlled_file): Move up.  2nd arg is now full file
938         name, not base name; this is more convenient.  Put CVS at the end,
939         as it's now somewhat deprecated.
940
941 2012-05-14  Jim Meyering  <meyering@redhat.com>
942
943         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
944         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
945         definition.  Reported by Bruno Haible.
946
947 2012-05-13  Bruno Haible  <bruno@clisp.org>
948             Paul Eggert  <eggert@cs.ucla.edu>
949
950         binary-io: Define set_binary_mode function.
951         * lib/binary-io.h (set_binary_mode): New function.
952         (SET_BINARY): Define in terms of set_binary_mode.
953         * modules/binary-io (configure.ac): Require AC_C_INLINE.
954         * tests/test-binary-io.c (main): Accept an argument, and test either
955         set_binary_mode or SET_BINARY depending on the argument.
956         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
957         argument. Clean up also t-bin-out0.tmp.
958
959 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
960
961         bootstrap: take advantage of POSIX shell features
962
963         The 'bootstrap' script offered by Gnulib script already uses POSIX
964         shell features (like $((...)) arithmetic expansions) that are not
965         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
966         means that bootstrap must already be run using a proper POSIX shell,
967         which will thus provide more features, like ${var#pattern} parameter
968         expansion or inversion of a command exit status with '!'.  We can
969         thus use these features to improve the clarity and the performances
970         of the bootstrap script.
971
972         Suggested by Eric Blake.
973
974         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
975         of sed/expr plus command substitutions, to save some forks.  While
976         we are at it, prefer the POSIX $(...) form of command substitution,
977         rather than the legacy form `...` (since the former is visually
978         clearer and interacts better with quoting), and prefer the idiom:
979           "if ! CMD; then ACTION ..."
980         over the idiom:
981           "if CMD; then :; else ACTION ..."
982         which was required by legacy Bourne shells not supporting '!'.
983
984 2012-05-12  Bruno Haible  <bruno@clisp.org>
985
986         system-quote: Add more comments.
987         * lib/system-quote.h: Add more comments about wilcards and limitations.
988         Suggested by Eli Zaretskii <eliz@gnu.org>.
989
990         sh-quote, system-quote: Add comments about wildcards.
991         * lib/sh-quote.h: Clarify what happens with wildcard characters.
992         * lib/system-quote.h: Likewise.
993         Reported by Eli Zaretskii <eliz@gnu.org>.
994
995 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
996
997         fsusage: check for GNU/Linux statvfs problem dynamically
998         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
999         Define STAT_STATFS2_BSIZE too, since in this case the code now
1000         checks dynamically whether statvfs is reliable, falling back on
1001         Linux-style statfs otherwise.
1002         (statvfs_works): New function, for dynamically testing statvfs.
1003         (get_fs_usage) [STAT_STATVFS]: Use it.
1004         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1005         statvfs on GNU/Linux hosts, since it's now done dynamically.
1006
1007 2012-05-10  Bruno Haible  <bruno@clisp.org>
1008
1009         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1010         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1011         '?' character.
1012         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1013         * tests/test-system-quote-main.c (check_all): Check also strings like
1014         "??????????".
1015         Reported by Eli Zaretskii <eliz@gnu.org>.
1016
1017 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1018
1019         _Noreturn: port config.h to gcc -Wundef
1020         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1021         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1022         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1023
1024 2012-05-10  Bruno Haible  <bruno@clisp.org>
1025
1026         system-quote: Refactor.
1027         * lib/system-quote.h (system_quote_copy): Fix comment.
1028         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1029         New functions, extracted from system_quote_copy.
1030         (system_quote_length, system_quote_copy): Use these functions.
1031         Reported by Paul Eggert.
1032
1033 2012-05-08  Bruno Haible  <bruno@clisp.org>
1034
1035         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1036         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1037
1038 2012-05-08  Bruno Haible  <bruno@clisp.org>
1039
1040         Tests for module 'system-quote'.
1041         * modules/system-quote-tests: New file.
1042         * tests/test-system-quote.sh: New file.
1043         * tests/test-system-quote-main.c: New file.
1044         * tests/test-system-quote-child.c: New file.
1045
1046         New module 'system-quote'.
1047         * lib/system-quote.h: New file.
1048         * lib/system-quote.c: New file.
1049         * modules/system-quote: New file.
1050
1051 2012-05-08  Bruno Haible  <bruno@clisp.org>
1052
1053         sh-quote: Make C++ safe and allow multiple inclusion.
1054         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1055         declarations in extern "C".
1056
1057 2012-05-08  Bruno Haible  <bruno@clisp.org>
1058
1059         sh-quote tests: Make tests stricter.
1060         * tests/test-sh-quote.c (check_one): Check the return value of
1061         shell_quote_copy.
1062         (main): Check a string with a CR character. Check a string that
1063         contains UCHAR_MAX.
1064
1065 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1066
1067         warnings.m4: provide a means to specify the program to compile.
1068         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1069         (gl_WARN_ADD): here.
1070         Use gl_AS_VAR_APPEND.
1071         Support an argument to specify the program to compile.
1072         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1073         AC_SUBST the WARN_CFLAGS when they are used.
1074         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1075         leave this to gl_WARN_ADD.
1076
1077 2012-05-08  Eric Blake  <eblake@redhat.com>
1078
1079         doc: recommendations on gettext version
1080         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1081         choice between versions.
1082         * DEPENDENCIES (gettext): Cover both approaches.
1083
1084 2012-05-08  Jim Meyering  <meyering@redhat.com>
1085
1086         init.sh: explain why EXEEXT support uses aliases rather than functions
1087         * tests/init.sh: Add a comment.
1088
1089         init.sh: don't let bash aliases interfere with tests
1090         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1091         is bash.  This avoids problems for those who alias standard commands to
1092         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1093         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1094
1095 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1096
1097         stdint: be more consistent with glibc, SunOS libc
1098         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1099         (gl_int_fast16_t, gl_uint_fast16_t)
1100         (gl_int_fast32_t, gl_uint_fast32_t)
1101         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1102         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1103         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1104         Be consistent with glibc by default, and with SunOS 5.10 and later
1105         if __sun is defined.  This lessens the likelihood of clashes if
1106         code compiled for older hosts is combined with code compiled for
1107         newer ones.  Problem reported by Niels Möller in
1108         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1109
1110 2012-05-07  Eric Blake  <eblake@redhat.com>
1111
1112         isatty: relax license to LGPLv2+
1113         * modules/isatty (License): Relax license.
1114
1115 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1116
1117         stat-size: comment fix
1118         * lib/stat-size.h: Remove obsolete comment about indenting.
1119
1120 2012-05-06  Bruno Haible  <bruno@clisp.org>
1121
1122         Tests for module 'sh-quote'.
1123         * modules/sh-quote-tests: New file.
1124         * tests/test-sh-quote.c: New file.
1125
1126 2012-05-06  Bruno Haible  <bruno@clisp.org>
1127
1128         sh-quote: Improve shell_quote_argv's signature.
1129         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1130         * lib/sh-quote.c (shell_quote_argv): Likewise.
1131
1132 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1133
1134         stdint: document issues with int_fast8_t etc.
1135         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1136         stdint.h substitutes may define these types differently.  See
1137         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1138
1139 2012-05-05  Bruno Haible  <bruno@clisp.org>
1140
1141         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1143         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1144         or 'guessing no (mishandles large arguments)'.
1145
1146 2012-05-05  Bruno Haible  <bruno@clisp.org>
1147
1148         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1149         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1150         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1151         set gl_cv_func_link_follows_symlink to "guessing no".
1152
1153 2012-05-05  Bruno Haible  <bruno@clisp.org>
1154
1155         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1156         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1157         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1158         "guessing no".
1159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1160
1161 2012-05-05  Bruno Haible  <bruno@clisp.org>
1162
1163         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1164         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1165         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1166         set gl_cv_struct_dirent_d_ino to "guessing yes".
1167
1168 2012-05-05  Bruno Haible  <bruno@clisp.org>
1169
1170         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1171         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1172         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1173         "guessing yes".
1174
1175 2012-05-05  Bruno Haible  <bruno@clisp.org>
1176
1177         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1178         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1179         compiling to a glibc system, set gl_cv_func_signbit and
1180         gl_cv_func_signbit_gcc to "guessing yes".
1181
1182 2012-05-05  Bruno Haible  <bruno@clisp.org>
1183
1184         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1185         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1186         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1187         to "guessing yes".
1188         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1189         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1190
1191 2012-05-05  Bruno Haible  <bruno@clisp.org>
1192
1193         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1194         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1195         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1196         gl_cv_func_realpath_works to "guessing yes".
1197
1198 2012-05-05  Bruno Haible  <bruno@clisp.org>
1199
1200         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1201         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1202         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1203
1204 2012-05-04  Bruno Haible  <bruno@clisp.org>
1205
1206         Tweak last commit.
1207         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1208         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1209
1210 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1211
1212         unistd_h: make it easier to avoid sys_types_h
1213         This is useful for Emacs, which has its own method of porting to
1214         Windows, and which therefore does not need the sys_types_h module.
1215         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1216         code moved here from gl_SYS_TYPES_H.
1217         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1218         using the code directly.
1219         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1220         gl_SYS_TYPES_H.
1221         * modules/sys_types (Files):
1222         * modules/unistd (Files): Add m4/off_t.m4.
1223
1224 2012-05-03  Bruno Haible  <bruno@clisp.org>
1225
1226         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1227         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1228         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1229         "guessing yes" or "guessing no".
1230         (gl_FUNC_LSTAT): Update.
1231         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1232         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1233         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1234
1235 2012-05-03  Bruno Haible  <bruno@clisp.org>
1236
1237         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1238         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1239         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1240         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1241         cross-compiling, choose the first alternative on glibc systems.
1242         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1243
1244 2012-05-03  Bruno Haible  <bruno@clisp.org>
1245
1246         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1247         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1248         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1249
1250 2012-05-03  Bruno Haible  <bruno@clisp.org>
1251
1252         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1253         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1254
1255 2012-05-03  Bruno Haible  <bruno@clisp.org>
1256
1257         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1258         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1259         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1260         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1261         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1262         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1263         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1264         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1265         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1266         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1267         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1268         gl_cv_func_chown_ctime_works to "guessing yes".
1269         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1270         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1271         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1272         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1273         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1274         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1275         compiling to glibc systems, set gl_cv_func_open_directory_works to
1276         "guessing yes".
1277         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1278         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1279         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1280         "guessing yes".
1281         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1282         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1283         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1284         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1285         "guessing yes".
1286         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1287         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1288         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1289         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1290         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1291         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1292         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1293         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1294         "guessing yes".
1295         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1296         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1297         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1298         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1299         "guessing yes".
1300         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1301         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1302         "guessing yes".
1303         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1304         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1305         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1306         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1307         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1308         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1309         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1310         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1311         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1312         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1313         "guessing yes".
1314         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1315         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1316         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1317         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1318         "guessing yes".
1319         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1320         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1321         "guessing yes".
1322         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1323         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1324         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1325         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1326         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1327         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1328         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1329         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1330         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1331         "guessing yes".
1332         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1333         compiling to glibc systems, set gl_cv_func_mknod_works to
1334         "guessing yes".
1335         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1336         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1337         "guessing yes".
1338         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1339         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1340         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1341         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1342         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1343         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1344         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1345         compiling to glibc systems, set gl_cv_func_svid_putenv to
1346         "guessing yes".
1347         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1348         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1349         "guessing yes".
1350         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1351         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1352         "guessing yes".
1353         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1354         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1355         to "guessing yes".
1356         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1357         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1358         to "guessing yes".
1359         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1360         compiling to glibc systems, set gl_cv_func_rmdir_works to
1361         "guessing yes".
1362         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1363         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1364         gl_cv_func_unlink_parent_fails to "guessing yes".
1365         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1366         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1367         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1368         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1369         gl_cv_func_rename_dest_works to "guessing yes".
1370         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1371         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1372         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1373         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1374         "guessing yes".
1375         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1376         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1377         "guessing yes".
1378         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1379         compiling to glibc systems, set gl_cv_func_setenv_works to
1380         "guessing yes".
1381         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1382         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1383         "guessing yes".
1384         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1385         compiling to glibc systems, set gl_cv_func_sleep_works to
1386         "guessing yes".
1387         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1388         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1389         "guessing yes".
1390         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1391         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1392         "guessing yes".
1393         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1394         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1395         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1396         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1397         "guessing yes".
1398         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1399         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1400         "guessing yes".
1401         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1402         compiling to glibc systems, set gl_cv_func_usleep_works to
1403         "guessing yes".
1404         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1405         compiling to glibc systems, set gl_cv_func_futimesat_works to
1406         "guessing yes".
1407
1408 2012-05-03  Bruno Haible  <bruno@clisp.org>
1409
1410         Say "guessing yes" or "guessing no" when cross-compiling.
1411         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1412         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1413         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1414         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1415         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1416         am_cv_func_working_getline to "guessing yes" or "guessing no".
1417         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1418         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1419         (gl_FUNC_MEMMEM): When cross-compiling, set
1420         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1421         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1422         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1424         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1425         "guessing no".
1426         (gl_FUNC_STRCASESTR): When cross-compiling, set
1427         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1428         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1429         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1430         (gl_FUNC_STRSTR): When cross-compiling, set
1431         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1432         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1433         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1434         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1435         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1436
1437 2012-05-01  Bruno Haible  <bruno@clisp.org>
1438
1439         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1440         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1441         * build-aux/reloc-ldflags: Likewise.
1442         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1443
1444 2012-05-01  Bruno Haible  <bruno@clisp.org>
1445
1446         gnulib-tool: Remove transitional code.
1447         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1448         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1449
1450 2012-05-01  Bruno Haible  <bruno@clisp.org>
1451
1452         getcwd: Fix misindentation.
1453         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1454
1455 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1456
1457         exclude: process exclude and include directives in order
1458         This restores the pre-2009 behavior, and is part of a fix of a
1459         grep bug reported by Quentin Arce in
1460         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1461         * lib/exclude.c (struct exclude): Remove 'tail' member.
1462         (new_exclude_segment): Prepend the new segment instead of appending.
1463         Return void, since that's now more convenient.
1464         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1465         (file_name_matches): Renamed from excluded_file_name_p.
1466         (file_pattern_matches, file_name_matches):
1467         Return true if the pattern matches, not if it excludes.
1468         All callers changed.
1469         (excluded_file_name): Process the list in reverse order;
1470         since the list is now reversed this restores the pre-2009 behavior.
1471         (add_exclude): Adjust to new reversed-order list.  Use local var
1472         rather than macro, for clarity.
1473         * tests/test-exclude7.sh: Adjust to corrected behavior.
1474
1475         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1476         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1477         it's not possible here.  Handle the case of \ at end of pattern
1478         without dumping core.
1479         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1480
1481         _Noreturn: future-proof non-GNU and non-MSVC compilers
1482         * build-aux/snippet/_Noreturn.h (_Noreturn):
1483         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1484         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1485         C11 or later.  This is more likely to work with random future C
1486         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1487         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1488
1489         exclude: handle wildcards with FNM_EXTMATCH
1490         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1491         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1492         comment that "has wildcards" really means "has or may have
1493         wildcards".  Simplify by avoiding the need to call strcspn.
1494
1495 2012-04-29  Bruno Haible  <bruno@clisp.org>
1496
1497         gnulib-tool: Fix list of authors.
1498         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1499
1500 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1501
1502         bootstrap: support Automake-NG in $buildreq
1503         * bootstrap (check_versions): Handle automake and aclocal from
1504         Automake-NG specially.  They can be specified as respectively
1505         the "automake-ng" and "aclocal-ng" requirements.
1506
1507 2012-04-25  Eric Blake  <eblake@redhat.com>
1508
1509         bootstrap: only force latest Makefile.in.in for gettext module
1510         * build-aux/bootstrap (with_gettext): Only install latest
1511         Makefile.in.in for projects requesting bleeding edge gettext.
1512
1513 2012-04-22  Bruno Haible  <bruno@clisp.org>
1514
1515         doc: Mention reason for replacement on glibc/Linux systems.
1516         * doc/posix-functions/dprintf.texi: Mention the problem with special
1517         'long double' values.
1518         * doc/posix-functions/fprintf.texi: Likewise.
1519         * doc/posix-functions/printf.texi: Likewise.
1520         * doc/posix-functions/snprintf.texi: Likewise.
1521         * doc/posix-functions/sprintf.texi: Likewise.
1522         * doc/posix-functions/vdprintf.texi: Likewise.
1523         * doc/posix-functions/vfprintf.texi: Likewise.
1524         * doc/posix-functions/vprintf.texi: Likewise.
1525         * doc/posix-functions/vsnprintf.texi: Likewise.
1526         * doc/posix-functions/vsprintf.texi: Likewise.
1527         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1528         platforms with F_DUPFD_CLOEXEC problems.
1529         * doc/posix-functions/glob.texi: Mention which platforms are affected
1530         by the problem with symbolic links.
1531         * doc/posix-functions/linkat.texi: Mention the problem with
1532         AT_SYMLINK_FOLLOW on Linux.
1533
1534 2012-04-22  Bruno Haible  <bruno@clisp.org>
1535
1536         pwrite: Don't replace on all platforms.
1537         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1538
1539 2012-04-22  Bruno Haible  <bruno@clisp.org>
1540
1541         rint* tests: Avoid gcc warnings.
1542         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1543         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1544         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1545
1546 2012-04-21  Bruno Haible  <bruno@clisp.org>
1547
1548         users.txt: Update.
1549         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1550         switched from CVS to git, bzr, or svn.
1551
1552 2012-04-21  Bruno Haible  <bruno@clisp.org>
1553
1554         Large File Support for native Windows platforms.
1555
1556         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1557         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1558
1559         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1560         type.
1561         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1562         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1563         * doc/posix-headers/sys_types.texi: Mention the effect of the
1564         'largefile' module.
1565
1566         * lib/fcntl.in.h: Add comments about off_t.
1567         * modules/fcntl-h (Depends-on): Add sys_types.
1568
1569         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1570         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1571         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1572         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1573         * modules/unistd (Depends-on): Add sys_types.
1574         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1575
1576         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1577         instead of lseek.
1578         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1579         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1580         * modules/lseek (Depends-on): Add sys_types.
1581
1582         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1583         msvc-nothrow.h.
1584         (SetFileSize): New function.
1585         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1586         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1587         if Large File Support is requested.
1588         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1589         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1590
1591         * lib/stdio.in.h: Add comments about off_t.
1592         * modules/stdio (Depends-on): Add sys_types.
1593
1594         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1595         instead of ftello.
1596         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1597         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1598         (gl_PREREQ_FTELLO): New macro.
1599         * modules/ftello (Depends-on): Add sys_types.
1600         (configure.ac): Incoke gl_PREREQ_FTELLO.
1601
1602         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1603         instead of fseeko.
1604         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1605         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1606         (gl_PREREQ_FSEEKO): New macro.
1607         * modules/fseeko (Depends-on): Add sys_types.
1608         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1609
1610         * lib/sys_stat.in.h: Add comments about off_t.
1611         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1612         64-bit integer for st_size in 'struct stat'.
1613         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1614         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1615         * modules/sys_stat (Depends-on): Add sys_types.
1616         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1617
1618         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1619         instead of stat or _stat.
1620
1621         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1622         'struct _stati64' instead of fstat and 'struct stat'.
1623         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1624         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1625
1626         Reported by Ray Satiro <raysatiro@yahoo.com>.
1627
1628 2012-04-19  Eric Blake  <eblake@redhat.com>
1629
1630         bootstrap: accommodate older libtool
1631         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1632         Reported by Daniel P. Berrange.
1633
1634 2012-04-19  Jim Meyering  <meyering@redhat.com>
1635
1636         announce-gen: avoid failure due to lack of Digest::SHA1
1637         Even with the preferred Digest::SHA available, this script
1638         would fail when the backup module, Digest::SHA1, was not installed.
1639         * build-aux/announce-gen: Quote the conditional use of "use".
1640         Reported by Reuben Thomas in:
1641         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1642
1643         bootstrap: don't let a user's CDPATH setting affect this script
1644         When CDPATH is set, cd will sometimes generate output.
1645         When "cd" is run in a subshell whose output matters, that
1646         surprising-to-some output can cause malfunction.
1647         Unsetting CDPATH turns off this shell "feature."
1648         * build-aux/bootstrap (CDPATH): Unset.
1649         Reported by Reuben Thomas in:
1650         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1651         and inspired by his patch here:
1652         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1653
1654 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1655         and Jim Meyering  <meyering@redhat.com>
1656
1657         maint.mk: catch "see @xref{}" and similar
1658         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1659         prohibit "See also @xref{", "Also see @pxref{", and similar.
1660
1661 2012-04-16  Jim Meyering  <meyering@redhat.com>
1662
1663         bootstrap: really use gnulib's po/Makefile.in.in
1664         * build-aux/bootstrap: Correct the source file name in previous change.
1665         Reported by Akim Demaille.
1666
1667         configmake: correct minor inconsistency in Makefile rule
1668         * modules/configmake (Makefile.am): All other rules like this one
1669         run the final "mv -f ..." in the same backslash-continued command
1670         as the one that does everything else.  This one put the mv -f ...
1671         command on a separate, non-backslash-continued line.
1672         Make it like the others.
1673
1674         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1675         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1676         the one from gettext.  Reported by Akim Demaille.
1677
1678 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1679
1680         Fix recursion of install-* into po directories.
1681         Bison's install-pdf bug reported by Hans Aberg at
1682         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1683         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1684         (install-info, install-pdf, install-ps): New targets.
1685
1686 2012-04-16  Jim Meyering  <meyering@redhat.com>
1687
1688         maint: avoid spurious "make sc_maint" failure
1689         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1690         exempt all *.class file names, for lib/javaversion.class.
1691
1692 2012-04-15  Bruno Haible  <bruno@clisp.org>
1693
1694         lseek: Make configure test independent of environment.
1695         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1696         Windows, we know that lseek() on pipes is broken; skip the runtime
1697         test.
1698
1699 2012-04-14  Bruno Haible  <bruno@clisp.org>
1700
1701         stat: Bypass buggy override in mingw64.
1702         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1703         * lib/stat.c (stat) [mingw64]: Define to _stat.
1704         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1705
1706 2012-04-14  Bruno Haible  <bruno@clisp.org>
1707
1708         pathmax: Fix compilation error on MSVC 9.
1709         * modules/pathmax (Depends-on): Add unistd.
1710
1711 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1712
1713         README: document pointer comparison assumption
1714         * README (Portability guidelines): Document assumption about
1715         pointer comparisons, in response to a recent bug-gnulib comment by
1716         Jeffrey Kegler.
1717
1718 2012-04-12  Bruno Haible  <bruno@clisp.org>
1719
1720         Tests for module 'getrusage'.
1721         * modules/getrusage-tests: New file.
1722         * tests/test-getrusage.c: New file.
1723
1724         New module 'getrusage'.
1725         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1726         warn-on-use.h.
1727         (getrusage): New declaration.
1728         * lib/getrusage.c: New file.
1729         * m4/getrusage.m4: New file.
1730         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1731         is declared.
1732         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1733         HAVE_GETRUSAGE.
1734         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1735         snippet/c++defs, snippet/warn-on-use.
1736         (Makefile.am): Update generation of sys/resource.h. Substitute
1737         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1738         * modules/getrusage: New file.
1739         * doc/posix-functions/getrusage.texi: Mention the new module.
1740
1741 2012-04-12  Bruno Haible  <bruno@clisp.org>
1742
1743         Tests for module 'sys_resource'.
1744         * modules/sys_resource-tests: New file.
1745         * tests/test-sys_resource.c: New file.
1746
1747         New module 'sys_resource'.
1748         * lib/sys_resource.in.h: New file.
1749         * m4/sys_resource_h.m4: New file.
1750         * modules/sys_resource: New file.
1751         * doc/posix-headers/sys_resource.texi: Mention the new module.
1752
1753 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1754
1755         ioctl: Fix compilation error on mingw.
1756         * lib/ioctl.c: Include <windows.h>.
1757         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1758
1759 2012-04-04  Jim Meyering  <meyering@redhat.com>
1760
1761         regex: correct #pragma guard expression
1762         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1763         not 4.3.  Correct its cpp guard expression.
1764
1765 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1766
1767         regex: remove unnecessary type punning
1768         Problem reported by Vladimir Serbinenko in
1769         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1770         * lib/regex.h (struct re_pattern_buffer): Change the type of
1771         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1772         Fix comment to match code.
1773         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1774         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1775         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1776         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1777         (set_regs):
1778         Omit no-longer-necessary casts.
1779
1780 2012-04-03  Bruno Haible  <bruno@clisp.org>
1781
1782         Tests for module 'ilogbl'.
1783         * modules/ilogbl-tests: New file.
1784         * tests/test-ilogbl.c: New file.
1785
1786         New module 'ilogbl'.
1787         * lib/math.in.h (ilogbl): New declaration.
1788         * lib/ilogbl.c: New file.
1789         * m4/ilogbl.m4: New file.
1790         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1792         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1793         Split sed invocation, to avoid the limit of 100 substitutions of
1794         HP-UX 'sed'.
1795         * modules/ilogbl: New file.
1796         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1797         * doc/posix-functions/ilogbl.texi: Mention the new module.
1798
1799 2012-04-03  Bruno Haible  <bruno@clisp.org>
1800
1801         Tests for module 'ilogbf'.
1802         * modules/ilogbf-tests: New file.
1803         * tests/test-ilogbf.c: New file.
1804
1805         New module 'ilogbf'.
1806         * lib/math.in.h (ilogbf): New declaration.
1807         * lib/ilogbf.c: New file.
1808         * m4/ilogbf.m4: New file.
1809         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1811         REPLACE_ILOGBF.
1812         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1813         REPLACE_ILOGBF.
1814         * modules/ilogbf: New file.
1815         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1816         * doc/posix-functions/ilogbf.texi: Mention the new module.
1817
1818 2012-04-03  Bruno Haible  <bruno@clisp.org>
1819
1820         Tests for module 'ilogb'.
1821         * modules/ilogb-tests: New file.
1822         * tests/test-ilogb.c: New file.
1823         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1824         tests/test-logb-ieee.h.
1825
1826         New module 'ilogb'.
1827         * lib/math.in.h (ilogb): New declaration.
1828         * lib/ilogb.c: New file.
1829         * m4/ilogb.m4: New file.
1830         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1832         REPLACE_ILOGB.
1833         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1834         REPLACE_ILOGB.
1835         * modules/ilogb: New file.
1836         * tests/test-math-c++.cc: Check the declaration of ilogb.
1837         * doc/posix-functions/ilogb.texi: Mention the new module.
1838
1839 2012-04-03  Bruno Haible  <bruno@clisp.org>
1840
1841         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1842         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1843         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1844         (main): Check their values.
1845         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1846         problem.
1847
1848 2012-04-03  Bruno Haible  <bruno@clisp.org>
1849
1850         Tests for module 'logbl-ieee'.
1851         * modules/logbl-ieee-tests: New file.
1852         * tests/test-logbl-ieee.c: New file.
1853
1854         New module 'logbl-ieee'.
1855         * modules/logbl-ieee: New file.
1856
1857         Tests for module 'logb-ieee'.
1858         * modules/logb-ieee-tests: New file.
1859         * tests/test-logb-ieee.c: New file.
1860
1861         New module 'logb-ieee'.
1862         * modules/logb-ieee: New file.
1863
1864         Tests for module 'logbf-ieee'.
1865         * modules/logbf-ieee-tests: New file.
1866         * tests/test-logbf-ieee.c: New file.
1867         * tests/test-logb-ieee.h: New file.
1868
1869         New module 'logbf-ieee'.
1870         * modules/logbf-ieee: New file.
1871
1872 2012-04-03  Bruno Haible  <bruno@clisp.org>
1873
1874         Tests for module 'logbl'.
1875         * modules/logbl-tests: New file.
1876         * tests/test-logbl.c: New file.
1877
1878         New module 'logbl'.
1879         * lib/math.in.h (logbl): New declaration.
1880         * lib/logbl.c: New file.
1881         * m4/logbl.m4: New file.
1882         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1884         REPLACE_LOGBL.
1885         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1886         REPLACE_LOGBL.
1887         * modules/logbl: New file.
1888         * tests/test-math-c++.cc: Check the declaration of logbl.
1889         * doc/posix-functions/logbl.texi: Mention the new module.
1890
1891 2012-04-02  Bruno Haible  <bruno@clisp.org>
1892
1893         Tests for module 'logbf'.
1894         * modules/logbf-tests: New file.
1895         * tests/test-logbf.c: New file.
1896
1897         New module 'logbf'.
1898         * lib/math.in.h (logbf): New declaration.
1899         * lib/logbf.c: New file.
1900         * m4/logbf.m4: New file.
1901         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1903         REPLACE_LOGBF.
1904         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1905         REPLACE_LOGBF.
1906         * modules/logbf: New file.
1907         * tests/test-math-c++.cc: Check the declaration of logbf.
1908         * doc/posix-functions/logbf.texi: Mention the new module.
1909
1910 2012-04-02  Bruno Haible  <bruno@clisp.org>
1911
1912         logb tests: More tests.
1913         * tests/test-logb.h: New file, based on tests/test-logb.c and
1914         tests/test-frexp.h.
1915         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1916         (main): Just invoke test_function.
1917         * modules/logb-tests (Files): Add tests/test-logb.h,
1918         tests/minus-zero.h, tests/randomd.c.
1919         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1920
1921         logb: Provide replacement and workarounds.
1922         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1923         is 1.
1924         * lib/logb.c: New file.
1925         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1926         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1928         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1929         * modules/logb (Files): Add lib/logb.c.
1930         (Depends-on): Add isfinite, frexp, isnand.
1931         (configure.ac): Compile the replacement code logb.c if needed.
1932         * tests/test-math-c++.cc: Check the declaration of logb.
1933         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1934         with subnormal numbers.
1935
1936 2012-04-02  Bruno Haible  <bruno@clisp.org>
1937
1938         log10* tests: Speed up.
1939         * tests/test-log10.h (test_function): Reduce amount of random numbers
1940         to test.
1941
1942 2012-04-01  Bruno Haible  <bruno@clisp.org>
1943
1944         logf-ieee: Fix test whether logf works.
1945         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1946
1947 2012-04-01  Bruno Haible  <bruno@clisp.org>
1948
1949         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1950         * lib/log10l.c: Include <float.h>
1951         (log10l): On IRIX, normalize the +Infinity value.
1952         * modules/log10l (Depends-on): Add 'float'.
1953         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1954         +Infinity.
1955
1956         log10f-ieee: Work around test failure on NetBSD 5.1.
1957         * m4/log10f-ieee.m4: New file.
1958         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1959         test whether log10f works with a negative argument. Replace it if not.
1960         * lib/log10f.c (log10f): For negative arguments, return NaN.
1961         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1962         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1963         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1964
1965         log10f-ieee: Work around test failure on Solaris 9.
1966         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1967         (configure.ac): Require gl_FUNC_LOG10F.
1968
1969         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1970         * m4/log10-ieee.m4: New file.
1971         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1972         whether log10 works with a negative argument. Replace it if not.
1973         * lib/log10.c (log10): For negative arguments, return NaN.
1974         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1975         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1976         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1977
1978         Tests for module 'log10l-ieee'.
1979         * modules/log10l-ieee-tests: New file.
1980         * tests/test-log10l-ieee.c: New file.
1981
1982         New module 'log10l-ieee'.
1983         * modules/log10l-ieee: New file.
1984
1985         Tests for module 'log10-ieee'.
1986         * modules/log10-ieee-tests: New file.
1987         * tests/test-log10-ieee.c: New file.
1988
1989         New module 'log10-ieee'.
1990         * modules/log10-ieee: New file.
1991
1992         Tests for module 'log10f-ieee'.
1993         * modules/log10f-ieee-tests: New file.
1994         * tests/test-log10f-ieee.c: New file.
1995         * tests/test-log10-ieee.h: New file.
1996
1997         New module 'log10f-ieee'.
1998         * modules/log10f-ieee: New file.
1999
2000 2012-04-01  Bruno Haible  <bruno@clisp.org>
2001
2002         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2003         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2004         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2005         workaround.
2006         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2007         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2009         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2010         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2011         (Depends-on): Update conditions.
2012         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2013         IRIX 6.5, OSF/1 5.1 problems.
2014
2015 2012-04-01  Bruno Haible  <bruno@clisp.org>
2016
2017         log10f: Work around OSF/1 5.1 bug.
2018         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2019         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2020         workaround.
2021         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2022         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2024         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2025         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2026         (Depends-on): Update conditions.
2027         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2028
2029 2012-04-01  Bruno Haible  <bruno@clisp.org>
2030
2031         log10: Work around OSF/1 5.1 bug.
2032         * lib/math.in.h (log10): New declaration.
2033         * lib/log10.c: New file.
2034         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2035         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2036         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2038         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2039         * modules/log10 (Files): Add lib/log10.c.
2040         (Depends-on): Add math.
2041         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2042         * tests/test-math-c++.cc: Check the declaration of log10.
2043         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2044
2045 2012-03-31  Bruno Haible  <bruno@clisp.org>
2046
2047         log10l tests: More tests.
2048         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2049         tests/minus-zero.h, tests/randoml.c.
2050         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2051         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2052         (main): Invoke test_function.
2053
2054         log10f tests: More tests.
2055         * modules/log10f-tests (Files): Add tests/test-log10.h,
2056         tests/minus-zero.h, tests/randomf.c.
2057         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2058         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2059         (main): Invoke test_function.
2060
2061         log10 tests: More tests.
2062         * tests/test-log10.h: New file.
2063         * modules/log10-tests (Files): Add tests/test-log10.h,
2064         tests/minus-zero.h, tests/randomd.c.
2065         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2066         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2067         (main): Invoke test_function.
2068
2069 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2070
2071         fflush: Fix syntax error.
2072         * lib/fflush.c: Include unused-parameter.h, needed for
2073         _GL_UNUSED_PARAMETER.
2074         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2075
2076 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2077
2078         regex: pacify GCC when compiling GRUB
2079         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2080         a diagnostic.  Reported by Vladimir Serbinenko in
2081         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2082
2083 2012-03-29  Eric Blake  <eblake@redhat.com>
2084
2085         stdio: don't assume gets any more
2086         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2087         support.
2088         * modules/stdio (Makefile.am): Likewise.
2089         * lib/stdio-read.c (gets): Likewise.
2090         * tests/test-stdio-c++.cc: Likewise.
2091         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2092         * lib/stdio.in.h (gets): Make warning occur in more places.
2093         * doc/posix-functions/gets.texi (gets): Update documentation.
2094         Reported by Christer Solskogen.
2095
2096         maint.mk: fix syntax checks without exclusions
2097         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2098         Reported by Daniel P. Berrange.
2099
2100         strerror_r: avoid compiler warning
2101         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2102         level.
2103
2104         fflush: avoid compiler warning
2105         * lib/fflush.c (update_fpos_cache): Mark variables that are
2106         potentially unused.
2107
2108 2012-03-25  Bruno Haible  <bruno@clisp.org>
2109
2110         Tests for module 'localeconv'.
2111         * modules/localeconv-tests: New file.
2112         * tests/test-localeconv.c: New file.
2113
2114         New module 'localeconv'.
2115         * lib/locale.in.h (localeconv): New declaration.
2116         * lib/localeconv.c: New file.
2117         * m4/localeconv.m4: New file.
2118         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2119         REPLACE_LOCALECONV.
2120         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2121         REPLACE_LOCALECONV.
2122         * modules/localeconv: New file.
2123         * modules/nl_langinfo (Depends-on): Add localeconv.
2124         * modules/human (Depends-on): Likewise.
2125         * doc/posix-functions/localeconv.texi: Mention the new module.
2126
2127 2012-03-25  Bruno Haible  <bruno@clisp.org>
2128
2129         locale: Provide a complete 'struct lconv'.
2130         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2131         'struct lconv' does not contain int_p_cs_precedes.
2132         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2133         * doc/posix-headers/locale.texi: Update.
2134
2135         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2136         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2137         * doc/posix-headers/locale.texi: Update.
2138
2139         locale: Provide a working 'struct lconv'.
2140         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2141         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2142         'struct lconv' does not even contain decimal_point.
2143         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2144         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2145         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2146         * doc/posix-headers/locale.texi: Mention the problems with
2147         'struct lconv'.
2148         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2149
2150 2012-03-24  Bruno Haible  <bruno@clisp.org>
2151
2152         Enable common subexpression optimization in GCC.
2153         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2154         macros.
2155         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2156         GCC attribute 'const'.
2157         (uc_locale_language): Declare with GCC attribute 'pure'.
2158         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2159         with GCC attribute 'const'.
2160         * lib/unictype.in.h (uc_is_general_category_withtable,
2161         uc_combining_class, uc_combining_class_name,
2162         uc_combining_class_long_name, uc_bidi_class_name,
2163         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2164         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2165         uc_decimal_value, uc_digit_value, uc_numeric_value,
2166         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2167         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2168         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2169         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2170         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2171         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2172         Declare with GCC attribute 'const'.
2173         (uc_general_category_name, uc_general_category_long_name,
2174         uc_general_category_byname, uc_general_category,
2175         uc_is_general_category, uc_combining_class_byname,
2176         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2177         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2178         Declare with GCC attribute 'pure'.
2179         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2180         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2181         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2182         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2183         with GCC attribute 'pure'.
2184         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2185         'const'.
2186         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2187         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2188         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2189         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2190         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2191         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2192         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2193         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2194         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2195         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2196         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2197         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2198         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2199         GCC attribute 'pure'.
2200         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2201         'const'.
2202         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2203         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2204         u32_strwidth): Declare with GCC attribute 'pure'.
2205
2206         Enable common subexpression optimization in GCC.
2207         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2208         (alphasort): Declare with GCC attribute 'pure'.
2209         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2210         (atoll): Declare with GCC attribute 'pure'.
2211         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2212         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2213         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2214         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2215         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2216         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2217         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2218
2219 2012-03-24  Bruno Haible  <bruno@clisp.org>
2220
2221         gnulib-tool: Avoid unintended error output from 'cmp'.
2222         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2223         "cmp -s", not "cmp > /dev/null".
2224
2225 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2226
2227         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2228
2229         It's not just Automake versions < 1.9b that creates an empty
2230         pkgdatadir at installation time if pkgdata_DATA is specified
2231         to empty; modern automake versions do this as well, at least
2232         until automake 1.11.4 (not yet released at the moment of writing,
2233         but soon to appear).  That behaviour was generally considered a
2234         feature rather than a bug, at least until this discussion:
2235         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2236
2237         See also automake bugs #10997 and #11030.
2238
2239         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2240         reference to relevant automake bug numbers.
2241         (func_emit_tests_Makefile_am): Likewise.
2242
2243 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2244
2245         announce-gen: use Digest::SHA when possible
2246         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2247         back to Digest::SHA1 if necessary.
2248
2249 2012-03-20  Jim Meyering  <meyering@redhat.com>
2250
2251         tests: avoid gcc warnings about argv vs. const initializers
2252         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2253         warnings about discarding 'const' qualifier from pointer target type.
2254         * tests/test-posix_spawn2.c (main): Likewise.
2255
2256 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2257
2258         README-release: simplify slightly
2259         * top/README-release: Run "git checkout master" only once.
2260
2261 2012-03-15  Mark Wielaard  <mark@klomp.org>
2262
2263         git-merge-changelog: add specific example on how to use with hg.
2264         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2265
2266 2012-03-18  Mark Wielaard  <mark@klomp.org>
2267
2268         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2269
2270 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2271
2272         git-version-gen: don't let "prefix" envvar cause trouble
2273         * build-aux/git-version-gen (prefix): Initialize properly,
2274         so as not to use a value specified via the environment.
2275         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2276
2277 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2278
2279         regex: diagnose too-large repeat counts in EREs
2280         Previously, the code did not diagnose the too-large repeat count
2281         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2282         as if it were 'b\{1000000000}', which is unexpected.
2283         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2284         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2285         is a reasonable one for this problem.  Another option would be to
2286         create a new REG_OVERFLOW error for repeat counts that are too large.
2287         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2288         count is too large, so that the caller can distinguish the two cases.
2289         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2290         "Too large" return code, and that repeat counts are one example of this.
2291
2292 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2293
2294         doc: some glibc x32 integer width issues
2295         * doc/posix-headers/sys_types.texi (sys/types.h):
2296         * doc/posix-headers/time.texi (time.h):
2297         Mention that glibc x32 does not conform to POSIX in a couple of
2298         areas related to integer widths.
2299
2300 2012-03-15  Bruno Haible  <bruno@clisp.org>
2301
2302         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2303         * lib/fma.c (VOLATILE): New macro.
2304         (FUNC): Use it to work around a GCC compiler bug.
2305
2306 2012-03-13  Bruno Haible  <bruno@clisp.org>
2307
2308         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2309         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2310         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2311         REPLACE_HYPOTL to 1.
2312         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2313
2314 2012-03-13  Bruno Haible  <bruno@clisp.org>
2315
2316         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2317         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2318         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2319         REPLACE_REMAINDERL to 1.
2320         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2321         bug.
2322
2323 2012-03-13  Bruno Haible  <bruno@clisp.org>
2324
2325         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2326         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2327         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2328         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2329         too big rounding errors.
2330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2331         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2332         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2333         (Depends-on): Update conditions.
2334         * tests/test-sqrtl.c (my_ldexpl): New function.
2335         (main): Add test of a particular value.
2336         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2337
2338 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2339
2340         doc: Update timer_* platform portability notes.
2341         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2342         that always return ENOSYS.
2343         * doc/posix-functions/timer_delete.texi: Likewise.
2344         * doc/posix-functions/timer_gettime.texi: Likewise.
2345         * doc/posix-functions/timer_settime.texi: Likewise.
2346
2347 2012-03-13  Bruno Haible  <bruno@clisp.org>
2348
2349         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2350         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2351         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2352         REPLACE_CBRTL to 1.
2353         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2354
2355 2012-03-13  Bruno Haible  <bruno@clisp.org>
2356
2357         remainderl: Avoid compilation error on AIX >= 5.2.
2358         * lib/math.in.h (remainderl): Undefine macro from the system header.
2359
2360 2012-03-13  Bruno Haible  <bruno@clisp.org>
2361
2362         Avoid compilation errors with MSVC option -fp:strict.
2363         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2364         * lib/cbrtf.c: Likewise.
2365         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2366
2367 2012-03-12  Bruno Haible  <bruno@clisp.org>
2368
2369         uninorm: Don't crash in out-of-memory conditions.
2370         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2371         gracefully.
2372         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2373         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2374
2375 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2376
2377         quote: fix syntax-check
2378         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2379         also exports quote_quoting_options.
2380
2381 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2382
2383         Collapse list of copyright years to ranges.  See
2384         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2385         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2386         build-aux/csharpexec.sh.in, build-aux/gnupload,
2387         build-aux/install-reloc, build-aux/javacomp.sh.in,
2388         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2389         build-aux/move-if-change, build-aux/reloc-ldflags,
2390         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2391
2392 2012-03-11  Bruno Haible  <bruno@clisp.org>
2393
2394         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2395         * m4/log2f-ieee.m4: New file.
2396         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2397         whether log2f works with a minus zero argument. Replace it if not.
2398         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2399         (Depends-on): Add log2-ieee.
2400         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2401         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2402
2403         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2404         * m4/log2-ieee.m4: New file.
2405         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2406         whether log2 works with a minus zero argument. Replace it if not.
2407         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2408         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2409         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2410
2411         Tests for module 'log2l-ieee'.
2412         * modules/log2l-ieee-tests: New file.
2413         * tests/test-log2l-ieee.c: New file.
2414
2415         New module 'log2l-ieee'.
2416         * modules/log2l-ieee: New file.
2417
2418         Tests for module 'log2-ieee'.
2419         * modules/log2-ieee-tests: New file.
2420         * tests/test-log2-ieee.c: New file.
2421
2422         New module 'log2-ieee'.
2423         * modules/log2-ieee: New file.
2424
2425         Tests for module 'log2f-ieee'.
2426         * modules/log2f-ieee-tests: New file.
2427         * tests/test-log2f-ieee.c: New file.
2428         * tests/test-log2-ieee.h: New file.
2429
2430         New module 'log2f-ieee'.
2431         * modules/log2f-ieee: New file.
2432
2433 2012-03-11  Bruno Haible  <bruno@clisp.org>
2434
2435         Tests for module 'log2l'.
2436         * modules/log2l-tests: New file.
2437         * tests/test-log2l.c: New file.
2438
2439         New module 'log2l'.
2440         * lib/math.in.h (log2l): New declaration.
2441         * lib/log2l.c: New file.
2442         * m4/log2l.m4: New file.
2443         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2445         REPLACE_LOG2L.
2446         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2447         REPLACE_LOG2L.
2448         * modules/log2l: New file.
2449         * tests/test-math-c++.cc: Check the declaration of log2l.
2450         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2451         and OSF/1 problems.
2452
2453 2012-03-11  Bruno Haible  <bruno@clisp.org>
2454
2455         Tests for module 'log2f'.
2456         * modules/log2f-tests: New file.
2457         * tests/test-log2f.c: New file.
2458
2459         New module 'log2f'.
2460         * lib/math.in.h (log2f): New declaration.
2461         * lib/log2f.c: New file.
2462         * m4/log2f.m4: New file.
2463         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2465         REPLACE_LOG2F.
2466         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2467         REPLACE_LOG2F.
2468         * modules/log2f: New file.
2469         * tests/test-math-c++.cc: Check the declaration of log2f.
2470         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2471         and OSF/1 and Cygwin problems.
2472
2473 2012-03-11  Bruno Haible  <bruno@clisp.org>
2474
2475         Tests for module 'log2'.
2476         * modules/log2-tests: New file.
2477         * tests/test-log2.c: New file.
2478         * tests/test-log2.h: New file.
2479
2480         New module 'log2'.
2481         * lib/math.in.h (log2): New declaration.
2482         * lib/log2.c: New file.
2483         * m4/log2.m4: New file.
2484         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2486         REPLACE_LOG2.
2487         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2488         REPLACE_LOG2.
2489         * modules/log2: New file.
2490         * tests/test-math-c++.cc: Check the declaration of log2.
2491         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2492         and OSF/1 and Cygwin problems.
2493
2494 2012-03-11  Bruno Haible  <bruno@clisp.org>
2495
2496         exp2* tests: More tests.
2497         * tests/test-exp2.h (test_function): Test all integral arguments that
2498         don't need to overflow or denormalized numbers.
2499         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2500         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2501         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2502
2503 2012-03-10  Bruno Haible  <bruno@clisp.org>
2504
2505         log1pl-ieee: Work around test failure on AIX 7.1.
2506         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2507
2508         log1pl-ieee: Work around test failure on IRIX 6.5.
2509         * m4/log1pl-ieee.m4: New file.
2510         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2511         test whether log1pl works with a minus zero argument. Replace it if
2512         not.
2513         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2515         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2516         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2517         (Depends-on): Update conditions.
2518         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2519         m4/signbit.m4.
2520         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2521         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2522
2523         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2524         * m4/log1pf-ieee.m4: New file.
2525         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2526         test whether log1pf works with a minus zero argument. Replace it if
2527         not.
2528         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2529         m4/signbit.m4.
2530         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2531         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2532
2533         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2534         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2535         (configure.ac): Require gl_FUNC_LOG1PF.
2536
2537         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2538         * m4/log1p-ieee.m4: New file.
2539         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2540         whether log1p works with a minus zero argument. Replace it if not.
2541         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2543         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2544         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2545         (Depends-on): Update conditions.
2546         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2547         m4/signbit.m4.
2548         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2549         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2550
2551         Tests for module 'log1pl-ieee'.
2552         * modules/log1pl-ieee-tests: New file.
2553         * tests/test-log1pl-ieee.c: New file.
2554
2555         New module 'log1pl-ieee'.
2556         * modules/log1pl-ieee: New file.
2557
2558         Tests for module 'log1p-ieee'.
2559         * modules/log1p-ieee-tests: New file.
2560         * tests/test-log1p-ieee.c: New file.
2561
2562         New module 'log1p-ieee'.
2563         * modules/log1p-ieee: New file.
2564
2565         Tests for module 'log1pf-ieee'.
2566         * modules/log1pf-ieee-tests: New file.
2567         * tests/test-log1pf-ieee.c: New file.
2568         * tests/test-log1p-ieee.h: New file.
2569
2570         New module 'log1pf-ieee'.
2571         * modules/log1pf-ieee: New file.
2572
2573 2012-03-10  Bruno Haible  <bruno@clisp.org>
2574
2575         Tests for module 'log1pl'.
2576         * modules/log1pl-tests: New file.
2577         * tests/test-log1pl.c: New file.
2578
2579         New module 'log1pl'.
2580         * lib/math.in.h (log1pl): New declaration.
2581         * lib/log1pl.c: New file.
2582         * m4/log1pl.m4: New file.
2583         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2585         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2586         * modules/log1pl: New file.
2587         * tests/test-math-c++.cc: Check the declaration of log1pl.
2588         * doc/posix-functions/log1pl.texi: Mention the new module.
2589
2590 2012-03-10  Bruno Haible  <bruno@clisp.org>
2591
2592         Tests for module 'log1pf'.
2593         * modules/log1pf-tests: New file.
2594         * tests/test-log1pf.c: New file.
2595
2596         New module 'log1pf'.
2597         * lib/math.in.h (log1pf): New declaration.
2598         * lib/log1pf.c: New file.
2599         * m4/log1pf.m4: New file.
2600         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2602         REPLACE_LOG1PF.
2603         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2604         REPLACE_LOG1PF.
2605         * modules/log1pf: New file.
2606         * tests/test-math-c++.cc: Check the declaration of log1pf.
2607         * doc/posix-functions/log1pf.texi: Mention the new module.
2608
2609 2012-03-10  Bruno Haible  <bruno@clisp.org>
2610
2611         log1p tests: More tests.
2612         * tests/test-log1p.h: New file.
2613         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2614         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2615         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2616         (main): Invoke test_function.
2617
2618         log1p: Provide replacement for Minix and MSVC.
2619         * lib/math.in.h (log1p): New declaration.
2620         * lib/log1p.c: New file.
2621         * m4/log1p.m4: New file.
2622         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2624         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2625         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2626         (Depends-on): Add math, isnand, log, round.
2627         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2628         HAVE_LOG1P is 0.
2629         * tests/test-math-c++.cc: Check the declaration of log1p.
2630         * doc/posix-functions/log1p.texi: Mention the replacement.
2631
2632 2012-03-10  Bruno Haible  <bruno@clisp.org>
2633
2634         math tests: Small simplification.
2635         * tests/test-exp.h (test_function): Use the same err_bound for
2636         'double' on platforms with sizeof (long double) == sizeof (double)
2637         than on platforms with sizeof (long double) > sizeof (double).
2638         * tests/test-exp2.h (test_function): Likewise.
2639         * tests/test-expm1.h (test_function): Likewise.
2640         * tests/test-log.h (test_function): Likewise.
2641
2642 2012-03-10  Bruno Haible  <bruno@clisp.org>
2643
2644         Fix some comments.
2645         * lib/expl.c: Fix an ambiguous comment.
2646         * lib/expm1.c: Likewise.
2647         * lib/expm1l.c: Likewise.
2648         * lib/exp2.c: Likewise.
2649         * lib/exp2l.c: Likewise.
2650
2651 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2652
2653         regex: allow inclusion of <regex.h> before <limits.h>
2654         Without this patch, portable programs had to include <limits.h> before
2655         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2656         I ran into this problem with a test version of GNU grep on Solaris 8.
2657         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2658         This is done conditionally so that this change can be merged
2659         back to glibc.
2660         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2661         using the included regex.
2662
2663         fts: depend on fdopendir
2664         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2665         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2666         problem was introduced when fdopendir was split out.
2667
2668 2012-03-10  Bruno Haible  <bruno@clisp.org>
2669
2670         Remove unused variables.
2671         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2672         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2673
2674 2012-03-10  Bruno Haible  <bruno@clisp.org>
2675
2676         isnanf-nolibm: Fix last commit.
2677         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2678
2679         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2680         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2681
2682 2012-03-10  Bruno Haible  <bruno@clisp.org>
2683
2684         logf-ieee: Work around test failure on NetBSD 5.1.
2685         * m4/logf-ieee.m4: New file.
2686         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2687         whether logf works with a negative argument. Replace it if not.
2688         * lib/logf.c (logf): For negative arguments, return NaN.
2689         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2690         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2691         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2692
2693         logf-ieee: Work around test failure on Solaris 9.
2694         * modules/logf-ieee (Depends-on): Add log-ieee.
2695         (configure.ac): Require gl_FUNC_LOGF.
2696
2697         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2698         * m4/log-ieee.m4: New file.
2699         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2700         log works with a negative argument. Replace it if not.
2701         * lib/log.c (log): For negative arguments, return NaN.
2702         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2703         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2704         * doc/posix-functions/log.texi: Mention the log-ieee module.
2705
2706         Tests for module 'logl-ieee'.
2707         * modules/logl-ieee-tests: New file.
2708         * tests/test-logl-ieee.c: New file.
2709
2710         New module 'logl-ieee'.
2711         * modules/logl-ieee: New file.
2712
2713         Tests for module 'log-ieee'.
2714         * modules/log-ieee-tests: New file.
2715         * tests/test-log-ieee.c: New file.
2716
2717         New module 'log-ieee'.
2718         * modules/log-ieee: New file.
2719
2720         Tests for module 'logf-ieee'.
2721         * modules/logf-ieee-tests: New file.
2722         * tests/test-logf-ieee.c: New file.
2723         * tests/test-log-ieee.h: New file.
2724
2725         New module 'logf-ieee'.
2726         * modules/logf-ieee: New file.
2727
2728 2012-03-10  Bruno Haible  <bruno@clisp.org>
2729
2730         log: Fix bug introduced on 2012-03-09.
2731         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2732
2733 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2734
2735         timer-time: link explicitly with pthreads on glibc
2736         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2737         to support static linking, when newer glibc is
2738         detected, as that contains pthread emulation of
2739         POSIX timer functions where required.
2740         * modules/timer-time: Depend on threadlib to
2741         pull in the appropriate library to link.
2742
2743 2012-03-10  Bruno Haible  <bruno@clisp.org>
2744
2745         log* tests: More tests.
2746         * tests/test-log.h: New file.
2747         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2748         (main): Invoke test_function.
2749         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2750         (main): Invoke test_function.
2751         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2752         (main): Invoke test_function.
2753         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2754         tests/randomd.c.
2755         (Makefile.am): Add randomd.c to test_log_SOURCES.
2756         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2757         tests/randomf.c.
2758         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2759         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2760         tests/randoml.c.
2761         (Depends-on): Add 'float'.
2762         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2763
2764 2012-03-09  Bruno Haible  <bruno@clisp.org>
2765
2766         logl: Work around OSF/1 5.1 bug.
2767         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2768         * lib/logl.c (logl): If logl exists, use it and provide just the
2769         workaround.
2770         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2771         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2773         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2774         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2775         (Depends-on): Update conditions.
2776         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2777
2778 2012-03-09  Bruno Haible  <bruno@clisp.org>
2779
2780         logf: Work around OSF/1 5.1 bug.
2781         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2782         * lib/logf.c (logf): If logf exists, use it and provide just the
2783         workaround.
2784         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2785         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2787         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2788         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2789         (Depends-on): Update conditions.
2790         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2791
2792 2012-03-09  Bruno Haible  <bruno@clisp.org>
2793
2794         log: Work around OSF/1 5.1 bug.
2795         * lib/math.in.h (log): New declaration.
2796         * lib/log.c: New file.
2797         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2798         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2799         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2801         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2802         * modules/log (Files): Add lib/log.c.
2803         (Depends-on): Add math.
2804         (configure.ac): If REPLACE_LOG is 1, compile an override.
2805         * tests/test-math-c++.cc: Check the declaration of log.
2806         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2807
2808 2012-03-09  Jim Meyering  <meyering@redhat.com>
2809
2810         readtokens.c: adjust wording in a comment
2811         * lib/readtokens.c: Insert omitted "that" in a comment.
2812
2813 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2814
2815         modechange: add notations +40, 00440, etc.
2816         * lib/modechange.c (mode_compile): Support new notations
2817         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2818
2819 2012-03-08  Bruno Haible  <bruno@clisp.org>
2820
2821         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2822         * m4/exp2l-ieee.m4: New file.
2823         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2824         test whether exp2l works with a NaN argument and with a negative
2825         infinity argument. Replace it if not.
2826         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2828         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2829         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2830         (Depends-on): Update conditions.
2831         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2832         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2833         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2834
2835         Tests for module 'exp2l-ieee'.
2836         * modules/exp2l-ieee-tests: New file.
2837         * tests/test-exp2l-ieee.c: New file.
2838
2839         New module 'exp2l-ieee'.
2840         * modules/exp2l-ieee: New file.
2841
2842         Tests for module 'exp2-ieee'.
2843         * modules/exp2-ieee-tests: New file.
2844         * tests/test-exp2-ieee.c: New file.
2845
2846         New module 'exp2-ieee'.
2847         * modules/exp2-ieee: New file.
2848
2849         Tests for module 'exp2f-ieee'.
2850         * modules/exp2f-ieee-tests: New file.
2851         * tests/test-exp2f-ieee.c: New file.
2852         * tests/test-exp2-ieee.h: New file.
2853
2854         New module 'exp2f-ieee'.
2855         * modules/exp2f-ieee: New file.
2856
2857 2012-03-08  Bruno Haible  <bruno@clisp.org>
2858
2859         Tests for module 'exp2l'.
2860         * modules/exp2l-tests: New file.
2861         * tests/test-exp2l.c: New file.
2862
2863         New module 'exp2l'.
2864         * lib/math.in.h (exp2l): New declaration.
2865         * lib/exp2l.c: New file.
2866         * lib/expl-table.c: New file, extracted from lib/expl.c.
2867         * lib/expl.c (gl_expl_table): New declaration.
2868         (expl): Remove expl_table. Update reference.
2869         * m4/exp2l.m4: New file.
2870         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2872         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2873         * modules/exp2l: New file.
2874         * modules/expl (Files): Add lib/expl-table.c.
2875         (configure.ac): Compile also expl-table.c.
2876         * tests/test-math-c++.cc: Check the declaration of exp2l.
2877         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2878         problem.
2879
2880 2012-03-08  Bruno Haible  <bruno@clisp.org>
2881
2882         Tests for module 'exp2f'.
2883         * modules/exp2f-tests: New file.
2884         * tests/test-exp2f.c: New file.
2885
2886         New module 'exp2f'.
2887         * lib/math.in.h (exp2f): New declaration.
2888         * lib/exp2f.c: New file.
2889         * m4/exp2f.m4: New file.
2890         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2892         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2893         * modules/exp2f: New file.
2894         * tests/test-math-c++.cc: Check the declaration of exp2f.
2895         * doc/posix-functions/exp2f.texi: Mention the new module and the
2896         IRIX problem.
2897
2898 2012-03-08  Bruno Haible  <bruno@clisp.org>
2899
2900         Tests for module 'exp2'.
2901         * modules/exp2-tests: New file.
2902         * tests/test-exp2.c: New file.
2903         * tests/test-exp2.h: New file.
2904
2905         New module 'exp2'.
2906         * lib/math.in.h (exp2): New declaration.
2907         * lib/exp2.c: New file.
2908         * m4/exp2.m4: New file.
2909         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2911         REPLACE_EXP2.
2912         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2913         REPLACE_EXP2.
2914         * modules/exp2: New file.
2915         * tests/test-math-c++.cc: Check the declaration of exp2.
2916         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2917         and OpenBSD problems.
2918
2919 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2920
2921         savedir: fix comment typo
2922         * lib/savedir.c (savedirstream): Fix typo in comment.
2923
2924 2012-03-08  Bruno Haible  <bruno@clisp.org>
2925
2926         test-readtokens.c: use const; remove unwarranted cast
2927         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2928
2929 2012-03-08  Bruno Haible  <bruno@clisp.org>
2930
2931         fmal: Avoid compilation error on AIX.
2932         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2933         AIX 5.2..7.1.
2934
2935 2012-03-08  Bruno Haible  <bruno@clisp.org>
2936
2937         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2938         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2939         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2940         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2941         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2942         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2943         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2944
2945 2012-03-08  Bruno Haible  <bruno@clisp.org>
2946
2947         remainderf: Override buggy system function on IRIX 6.5.
2948         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2949         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2950         when it exists.
2951         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2952
2953 2012-03-08  Jim Meyering  <meyering@redhat.com>
2954
2955         test-readtokens.c: avoid const-related compilation warnings
2956         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2957
2958 2012-03-07  Jim Meyering  <meyering@redhat.com>
2959             Bruno Haible  <bruno@clisp.org>
2960
2961         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2962         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2963         tests/randomd.c.
2964         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2965         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2966         tests/randoml.c.
2967         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2968
2969 2012-03-07  Bruno Haible  <bruno@clisp.org>
2970
2971         expm1l: Avoid compilation error on AIX.
2972         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2973         AIX 5.2..7.1.
2974
2975 2012-03-07  Bruno Haible  <bruno@clisp.org>
2976
2977         expm1l: Don't override undeclared system function on IRIX 6.5.
2978         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2979         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2980         it exists. Set HAVE_DECL_EXPM1L.
2981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2982         HAVE_EXPM1L.
2983         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2984         HAVE_EXPM1L.
2985         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2986
2987 2012-03-07  Bruno Haible  <bruno@clisp.org>
2988
2989         remainderl: Don't override undeclared system function on IRIX 6.5.
2990         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2991         HAVE_REMAINDERL.
2992         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2993         declared when it exists. Set HAVE_DECL_REMAINDERL.
2994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2995         not HAVE_REMAINDERL.
2996         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2997         HAVE_REMAINDERL.
2998         * doc/posix-functions/remainderl.texi: Mention missing declaration
2999         problem.
3000
3001 2012-03-07  Bruno Haible  <bruno@clisp.org>
3002
3003         rintf: Don't override undeclared system function on IRIX 6.5.
3004         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3005         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3006         exists. Set HAVE_DECL_RINTF.
3007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3008         HAVE_RINTF.
3009         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3010         HAVE_RINTF.
3011         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3012
3013 2012-03-07  Bruno Haible  <bruno@clisp.org>
3014
3015         roundl: Avoid compilation error on AIX.
3016         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3017         AIX 5.2..7.1.
3018
3019 2012-03-07  Bruno Haible  <bruno@clisp.org>
3020
3021         roundl: Don't override undeclared system function on IRIX 6.5.
3022         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3023         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3024         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3025         * modules/roundl (configure.ac): For replacement code, test
3026         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3027         (Depends-on): Update conditions.
3028         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3029
3030 2012-03-07  Bruno Haible  <bruno@clisp.org>
3031
3032         roundf: Don't override undeclared system function on IRIX 6.5.
3033         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3034         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3035         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3036         * modules/roundf (configure.ac): For replacement code, test
3037         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3038         (Depends-on): Update conditions.
3039         * modules/roundf-ieee (Depends-on): Update conditions.
3040         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3041
3042 2012-03-07  Bruno Haible  <bruno@clisp.org>
3043
3044         round: Don't override undeclared system function on IRIX 6.5.
3045         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3046         argument.
3047         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3048         also when it is not declared. Set HAVE_ROUND. For replacement code,
3049         test HAVE_ROUND, not HAVE_DECL_ROUND.
3050         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3051         not HAVE_DECL_ROUND.
3052         (Depends-on): Update conditions.
3053         * modules/round-ieee (Depends-on): Update conditions.
3054         * doc/posix-functions/round.texi: Mention the IRIX problem.
3055
3056 2012-03-07  Bruno Haible  <bruno@clisp.org>
3057
3058         copysignf: Don't override undeclared system function on IRIX 6.5.
3059         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3060         HAVE_COPYSIGNF.
3061         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3062         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3064         not HAVE_COPYSIGNF.
3065         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3066         HAVE_COPYSIGNF.
3067         * doc/posix-functions/copysignf.texi: Mention missing declaration
3068         problem.
3069
3070 2012-03-07  Jim Meyering  <meyering@redhat.com>
3071
3072         readtokens: add tests
3073         * modules/readtokens-tests: New file.
3074         * tests/test-readtokens.c: New file.
3075
3076 2012-03-07  Jim Meyering  <meyering@redhat.com>
3077
3078         quotearg: the module must now include quote.h
3079         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3080         So must the module.
3081         * modules/quotearg (Files): Add quote.h.
3082
3083 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3084
3085         readtokens: avoid core dumps with unusual calling patterns
3086         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3087         * lib/readtokens.c: Include limits.h.
3088         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3089         (readtoken): Don't cache the delimiters; the cache code was buggy
3090         if !delim && saved_delim, or if the new n_delim differs from the old.
3091         Also, it wasn't thread-safe.
3092
3093 2012-03-07  Bruno Haible  <bruno@clisp.org>
3094
3095         quote: Adhere to common module description layout.
3096         * modules/quote (Makefile.am): Add back empty section.
3097
3098 2012-03-06  Akim Demaille  <demaille@gostai.com>
3099
3100         quote: fuse into quotearg
3101         This patch is made for the benefit of Bison.
3102         quote does not leave the choice of the quoting style to the user.
3103         quoting_style provides poor customizability, yet quoting_options,
3104         which is very rich, is hidden inside quotearg.c.  So in order to
3105         allow quote customization, move its implementation to quotearg.c.
3106         * lib/quote.c: Remove.
3107         * modules/quote: Adjust.
3108         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3109         warning: provide all the members of literal structs.
3110         (quote_quoting_options): New.
3111         (quote, quote_n): Import implementation from quote.c.
3112         * lib/quote.h: Import the comments from quote.c.
3113         (quote_quoting_options): New.
3114
3115 2012-03-06  Bruno Haible  <bruno@clisp.org>
3116
3117         Tests for module 'expm1l-ieee'.
3118         * modules/expm1l-ieee-tests: New file.
3119         * tests/test-expm1l-ieee.c: New file.
3120
3121         New module 'expm1l-ieee'.
3122         * modules/expm1l-ieee: New file.
3123
3124         Tests for module 'expm1f-ieee'.
3125         * modules/expm1f-ieee-tests: New file.
3126         * tests/test-expm1f-ieee.c: New file.
3127
3128         New module 'expm1f-ieee'.
3129         * modules/expm1f-ieee: New file.
3130
3131         Tests for module 'expm1-ieee'.
3132         * modules/expm1-ieee-tests: New file.
3133         * tests/test-expm1-ieee.c: New file.
3134         * tests/test-expm1-ieee.h: New file.
3135
3136         New module 'expm1-ieee'.
3137         * modules/expm1-ieee: New file.
3138         * m4/expm1-ieee.m4: New file.
3139         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3140         whether expm1 works with a minus zero argument. Replace it if not.
3141         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3143         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3144         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3145         (Depends-on): Update conditions.
3146         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3147         AIX problem.
3148
3149 2012-03-06  Bruno Haible  <bruno@clisp.org>
3150
3151         Work around expm1f bug on IRIX 6.5.
3152         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3153         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3154         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3155         not work.
3156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3157         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3158         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3159         (Depends-on): Update conditions.
3160         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3161
3162 2012-03-06  Bruno Haible  <bruno@clisp.org>
3163
3164         Tests for module 'expm1l'.
3165         * modules/expm1l-tests: New file.
3166         * tests/test-expm1l.c: New file.
3167
3168         New module 'expm1l'.
3169         * lib/math.in.h (expm1l): New declaration.
3170         * lib/expm1l.c: New file.
3171         * m4/expm1l.m4: New file.
3172         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3174         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3175         * modules/expm1l: New file.
3176         * tests/test-math-c++.cc: Check the declaration of expm1l.
3177         * doc/posix-functions/expm1l.texi: Mention the new module.
3178
3179 2012-03-06  Bruno Haible  <bruno@clisp.org>
3180
3181         Tests for module 'expm1f'.
3182         * modules/expm1f-tests: New file.
3183         * tests/test-expm1f.c: New file.
3184
3185         New module 'expm1f'.
3186         * lib/math.in.h (expm1f): New declaration.
3187         * lib/expm1f.c: New file.
3188         * m4/expm1f.m4: New file.
3189         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3191         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3192         * modules/expm1f: New file.
3193         * tests/test-math-c++.cc: Check the declaration of expm1f.
3194         * doc/posix-functions/expm1f.texi: Mention the new module.
3195
3196 2012-03-06  Bruno Haible  <bruno@clisp.org>
3197
3198         Tests for module 'expm1'.
3199         * modules/expm1-tests: New file.
3200         * tests/test-expm1.c: New file.
3201         * tests/test-expm1.h: New file.
3202
3203         New module 'expm1'.
3204         * lib/math.in.h (expm1): New declaration.
3205         * lib/expm1.c: New file.
3206         * m4/expm1.m4: New file.
3207         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3209         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3210         * modules/expm1: New file.
3211         * tests/test-math-c++.cc: Check the declaration of expm1.
3212         * doc/posix-functions/expm1.texi: Mention the new module.
3213
3214 2012-03-06  Bruno Haible  <bruno@clisp.org>
3215
3216         math: Ensure declarations of math functions.
3217         * modules/acosf (Depends-on): Add 'extensions'.
3218         * modules/asinf (Depends-on): Likewise.
3219         * modules/atan2f (Depends-on): Likewise.
3220         * modules/atanf (Depends-on): Likewise.
3221         * modules/cbrt (Depends-on): Likewise.
3222         * modules/cbrtf (Depends-on): Likewise.
3223         * modules/cbrtl (Depends-on): Likewise.
3224         * modules/copysignf (Depends-on): Likewise.
3225         * modules/copysignl (Depends-on): Likewise.
3226         * modules/cosf (Depends-on): Likewise.
3227         * modules/coshf (Depends-on): Likewise.
3228         * modules/expf (Depends-on): Likewise.
3229         * modules/fabsf (Depends-on): Likewise.
3230         * modules/fabsl (Depends-on): Likewise.
3231         * modules/fmaf (Depends-on): Likewise.
3232         * modules/fmal (Depends-on): Likewise.
3233         * modules/fmodf (Depends-on): Likewise.
3234         * modules/fmodl (Depends-on): Likewise.
3235         * modules/frexpf (Depends-on): Likewise.
3236         * modules/frexpl (Depends-on): Likewise.
3237         * modules/hypot (Depends-on): Likewise.
3238         * modules/hypotf (Depends-on): Likewise.
3239         * modules/hypotl (Depends-on): Likewise.
3240         * modules/ldexpf (Depends-on): Likewise.
3241         * modules/ldexpl (Depends-on): Likewise.
3242         * modules/log10f (Depends-on): Likewise.
3243         * modules/log10l (Depends-on): Likewise.
3244         * modules/log1p (Depends-on): Likewise.
3245         * modules/logb (Depends-on): Likewise.
3246         * modules/logf (Depends-on): Likewise.
3247         * modules/modff (Depends-on): Likewise.
3248         * modules/modfl (Depends-on): Likewise.
3249         * modules/powf (Depends-on): Likewise.
3250         * modules/remainderf (Depends-on): Likewise.
3251         * modules/remainderl (Depends-on): Likewise.
3252         * modules/rintf (Depends-on): Likewise.
3253         * modules/rintl (Depends-on): Likewise.
3254         * modules/sinf (Depends-on): Likewise.
3255         * modules/sinhf (Depends-on): Likewise.
3256         * modules/sqrtf (Depends-on): Likewise.
3257         * modules/tanf (Depends-on): Likewise.
3258         * modules/tanhf (Depends-on): Likewise.
3259         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3260         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3261         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3262         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3263         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3264         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3265         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3266         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3267         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3268         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3269         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3270         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3271         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3272         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3273         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3274         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3275         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3276         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3277         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3278         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3279         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3280         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3281         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3282         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3283         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3284         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3285         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3286         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3287         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3288         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3289         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3290         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3291         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3292         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3293         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3294         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3295         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3296         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3297         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3298         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3299         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3300
3301 2012-03-06  Bruno Haible  <bruno@clisp.org>
3302
3303         math: Update module names in warnings.
3304         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3305         tanl): Use specific module name in warn-on-use warning.
3306
3307 2012-03-06  Bruno Haible  <bruno@clisp.org>
3308
3309         expl: Simplify computation.
3310         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3311
3312 2012-03-05  Bruno Haible  <bruno@clisp.org>
3313
3314         exp* tests: More tests.
3315         * tests/test-exp.h: New file.
3316         * tests/test-exp.c: Include <float.h> and test-exp.h.
3317         (main): Invoke test_function.
3318         * tests/test-expf.c: Include <float.h> and test-exp.h.
3319         (main): Invoke test_function.
3320         * tests/test-expl.c: Include <float.h> and test-exp.h.
3321         (main): Invoke test_function.
3322         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3323         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3324         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3325         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3326         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3327         (Depends-on): Add 'float'.
3328         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3329
3330         expl: Fix precision of computed result.
3331         * lib/expl.c: Completely rewritten.
3332         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3333         (Maintainer): Add me.
3334         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3335
3336 2012-03-05  Bruno Haible  <bruno@clisp.org>
3337
3338         cbrt* tests: More tests.
3339         * tests/test-cbrt.h: New file.
3340         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3341         (main): Invoke test_function.
3342         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3343         (main): Invoke test_function.
3344         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3345         (main): Invoke test_function.
3346         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3347         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3348         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3349         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3350         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3351         (Depends-on): Add 'float'.
3352         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3353
3354 2012-03-05  Bruno Haible  <bruno@clisp.org>
3355
3356         hypot* tests: More tests.
3357         * tests/test-hypot.h: New file, partially extracted from
3358         tests/test-hypotl.c.
3359         * tests/test-hypot.c: Include test-hypot.h.
3360         (main): Invoke test_function.
3361         * tests/test-hypotf.c: Include test-hypot.h.
3362         (main): Invoke test_function.
3363         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3364         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3365         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3366         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3367         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3368         tests/randomf.c.
3369         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3370         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3371         tests/randoml.c.
3372         (Depends-on): Add 'fpucw', 'float'.
3373         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3374
3375 2012-03-05  Bruno Haible  <bruno@clisp.org>
3376
3377         fpucw: Doc about FreeBSD.
3378         * lib/fpucw.h: Mention FreeBSD in comments.
3379
3380 2012-03-04  Bruno Haible  <bruno@clisp.org>
3381
3382         sqrt* tests: More tests.
3383         * tests/test-sqrt.h: New file.
3384         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3385         (main): Invoke test_function.
3386         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3387         (main): Invoke test_function.
3388         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3389         (main): Invoke test_function.
3390         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3391         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3392         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3393         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3394         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3395         (Depends-on): Add 'float'.
3396         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3397
3398 2012-03-04  Bruno Haible  <bruno@clisp.org>
3399
3400         remainder* tests: More tests.
3401         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3402         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3403         (main): Invoke test_function.
3404         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3405         (main): Invoke test_function.
3406         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3407         (main): Invoke test_function.
3408         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3409         tests/randomd.c.
3410         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3411         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3412         tests/randomf.c.
3413         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3414         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3415         tests/randoml.c.
3416         (Depends-on): Add 'float'.
3417         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3418
3419 2012-03-04  Bruno Haible  <bruno@clisp.org>
3420
3421         remainder, remainderf, remainderl: Fix computation for large quotients.
3422         * lib/remainder.c: Completely rewritten.
3423         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3424         USE_FLOAT.
3425         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3426         USE_LONG_DOUBLE.
3427         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3428         isnand, isinf. Remove round, fma.
3429         * modules/remainderf (Files): Add lib/remainder.c.
3430         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3431         Remove roundf, fmaf.
3432         * modules/remainderl (Files): Add lib/remainder.c.
3433         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3434         isinf. Remove roundl, fmal.
3435         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3436         REMAINDER_LIBM.
3437         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3438         REMAINDERF_LIBM.
3439         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3440         REMAINDERL_LIBM.
3441
3442 2012-03-04  Bruno Haible  <bruno@clisp.org>
3443
3444         fmod* tests: More tests.
3445         * tests/test-fmod.h (my_ldexp): New function.
3446         (test_function): Reduce amount of random numbers to test. Add tests
3447         of very large quotients x / y.
3448         * tests/test-fmod.c (MAX_EXP): New macro.
3449         * tests/test-fmodf.c (MAX_EXP): Likewise.
3450         * tests/test-fmodl.c (MAX_EXP): Likewise.
3451
3452 2012-03-04  Bruno Haible  <bruno@clisp.org>
3453
3454         fmod, fmodl: Fix computation for large quotients x / y.
3455         * lib/fmod.c: Completely rewritten.
3456         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3457         USE_LONG_DOUBLE.
3458         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3459         isnand. Remove fma.
3460         * modules/fmodl (Files): Add lib/fmod.c.
3461         (Depends-on): Add float, isfinite, signbit, fabsl,
3462         frexpl, ldexpl, isnanl. Remove fma.
3463         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3464         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3465
3466 2012-03-03  Bruno Haible  <bruno@clisp.org>
3467
3468         fmod* tests: More tests.
3469         * tests/test-fmod.h: New file.
3470         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3471         (main): Invoke test_function.
3472         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3473         (main): Invoke test_function.
3474         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3475         (main): Invoke test_function.
3476         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3477         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3478         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3479         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3480         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3481         (Depends-on): Add 'float'.
3482         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3483
3484 2012-03-03  Bruno Haible  <bruno@clisp.org>
3485
3486         rint* tests: More tests.
3487         * tests/test-rint.h: New file, partially extracted from
3488         tests/test-rintl.c.
3489         * tests/test-rint.c: Include test-rint.h.
3490         (main): Invoke test_function.
3491         * tests/test-rintf.c: Include test-rint.h.
3492         (main): Invoke test_function.
3493         * tests/test-rintl.c: Include test-rint.h.
3494         (main): Invoke test_function.
3495         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3496         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3497         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3498         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3499         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3500         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3501
3502 2012-03-03  Bruno Haible  <bruno@clisp.org>
3503
3504         modf* tests: More tests.
3505         * tests/test-modf.h: New file.
3506         * tests/test-modf.c: Include <float.h> and test-modf.h.
3507         (main): Invoke test_function.
3508         * tests/test-modff.c: Include <float.h> and test-modf.h.
3509         (main): Invoke test_function.
3510         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3511         (main): Invoke test_function.
3512         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3513         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3514         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3515         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3516         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3517         (Depends-on): Add 'float'.
3518         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3519
3520 2012-03-03  Bruno Haible  <bruno@clisp.org>
3521
3522         fabs* tests: More tests.
3523         * tests/test-fabs.h: New file, partially extracted from
3524         tests/test-fabsl.c.
3525         * tests/test-fabs.c (RANDOM): New macro.
3526         * tests/test-fabsf.c (RANDOM): New macro.
3527         * tests/test-fabsl.c (RANDOM): New macro.
3528         * modules/fabs-tests (Files): Add tests/randomd.c.
3529         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3530         * modules/fabsf-tests (Files): Add tests/randomf.c.
3531         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3532         * modules/fabsl-tests (Files): Add tests/randoml.c.
3533         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3534
3535 2012-03-03  Bruno Haible  <bruno@clisp.org>
3536
3537         ldexp* tests: More tests.
3538         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3539         * tests/test-ldexp.c (RANDOM): New macro.
3540         * tests/test-ldexpf.c (RANDOM): New macro.
3541         * tests/test-ldexpl.c (RANDOM): New macro.
3542         * modules/ldexp-tests (Files): Add tests/randomd.c.
3543         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3544         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3545         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3546         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3547         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3548
3549 2012-03-03  Bruno Haible  <bruno@clisp.org>
3550
3551         frexp* tests: More tests.
3552         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3553         * tests/test-frexp.c (RANDOM): New macro.
3554         * tests/test-frexpf.c (RANDOM): New macro.
3555         * tests/test-frexpl.c (RANDOM): New macro.
3556         * modules/frexp-tests (Files): Add tests/randomd.c.
3557         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3558         * modules/frexpf-tests (Files): Add tests/randomf.c.
3559         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3560         * modules/frexpl-tests (Files): Add tests/randoml.c.
3561         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3562
3563 2012-03-03  Bruno Haible  <bruno@clisp.org>
3564
3565         Support for pseudo-random numbers in tests.
3566         * tests/randomf.c: New file.
3567         * tests/randomd.c: New file.
3568         * tests/randoml.c: New file.
3569         * tests/macros.h (randomf, randomd, randoml): New declarations.
3570
3571 2012-03-03  Bruno Haible  <bruno@clisp.org>
3572
3573         frexp* tests: Refactor.
3574         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3575         * tests/test-frexp.c: Include and use it.
3576         * tests/test-frexpf.c: Likewise.
3577         * tests/test-frexpl.c: Likewise.
3578         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3579         * modules/frexpf-tests (Files): Likewise.
3580         * modules/frexpl-tests (Files): Likewise.
3581
3582 2012-03-02  Jim Meyering  <meyering@redhat.com>
3583
3584         maint: don't specify XZ_OPT=-9ev in dist-related rule
3585         Using xz's -9 option is warranted only if you have a very large
3586         tarball (see xz's documentation for the sizes vs. presets), and
3587         requires 64MiB of memory at decompression time.
3588         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3589         Automake's default of just "-e" is fine.  Override on a
3590         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3591
3592 2012-03-01  Eric Blake  <eblake@redhat.com>
3593
3594         maint.mk: allow announcement for non-gnulib project
3595         * maint.mk (announcement): Skip gnulib version if not used.
3596
3597 2012-03-01  Jim Meyering  <meyering@redhat.com>
3598
3599         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3600         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3601         envvar settings cannot interfere.  Otherwise, setting envvars like
3602         prohibit=foo require=bar, etc. would cause spurious test failures.
3603
3604 2012-03-01  Eric Blake  <eblake@redhat.com>
3605
3606         maint.mk: add per-line exclusions to prohibitions
3607         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3608         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3609         (sc_const_long_option): Use it.
3610
3611 2012-03-01  Bruno Haible  <bruno@clisp.org>
3612
3613         Tests for module 'expl-ieee'.
3614         * modules/expl-ieee-tests: New file.
3615         * tests/test-expl-ieee.c: New file.
3616
3617         New module 'expl-ieee'.
3618         * modules/expl-ieee: New file.
3619
3620         Tests for module 'exp-ieee'.
3621         * modules/exp-ieee-tests: New file.
3622         * tests/test-exp-ieee.c: New file.
3623
3624         New module 'exp-ieee'.
3625         * modules/exp-ieee: New file.
3626
3627         Tests for module 'expf-ieee'.
3628         * modules/expf-ieee-tests: New file.
3629         * tests/test-expf-ieee.c: New file.
3630         * tests/test-exp-ieee.h: New file.
3631
3632         New module 'expf-ieee'.
3633         * modules/expf-ieee: New file.
3634
3635 2012-02-29  Bruno Haible  <bruno@clisp.org>
3636
3637         cbrtl-ieee: Work around test failure on IRIX 6.5.
3638         * m4/cbrtl-ieee.m4: New file.
3639         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3640         test whether cbrtl works with a minus zero argument. Replace it if not.
3641         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3643         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3644         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3645         (Depends-on): Update conditions.
3646         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3647         m4/signbit.m4.
3648         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3649         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3650         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3651
3652         Tests for module 'cbrtl-ieee'.
3653         * modules/cbrtl-ieee-tests: New file.
3654         * tests/test-cbrtl-ieee.c: New file.
3655
3656         New module 'cbrtl-ieee'.
3657         * modules/cbrtl-ieee: New file.
3658
3659         Tests for module 'cbrt-ieee'.
3660         * modules/cbrt-ieee-tests: New file.
3661         * tests/test-cbrt-ieee.c: New file.
3662
3663         New module 'cbrt-ieee'.
3664         * modules/cbrt-ieee: New file.
3665
3666         Tests for module 'cbrtf-ieee'.
3667         * modules/cbrtf-ieee-tests: New file.
3668         * tests/test-cbrtf-ieee.c: New file.
3669         * tests/test-cbrt-ieee.h: New file.
3670
3671         New module 'cbrtf-ieee'.
3672         * modules/cbrtf-ieee: New file.
3673
3674 2012-02-29  Bruno Haible  <bruno@clisp.org>
3675
3676         cbrtf: Work around bug in IRIX 6.5 system function.
3677         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3678         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3679         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3680         work.
3681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3682         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3683         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3684         (Depends-on): Update conditions.
3685         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3686
3687 2012-02-29  Bruno Haible  <bruno@clisp.org>
3688
3689         Tests for module 'cbrtl'.
3690         * modules/cbrtl-tests: New file.
3691         * tests/test-cbrtl.c: New file.
3692
3693         New module 'cbrtl'.
3694         * lib/math.in.h (cbrtl): New declaration.
3695         * lib/cbrtl.c: New file.
3696         * m4/cbrtl.m4: New file.
3697         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3699         HAVE_DECL_CBRTL.
3700         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3701         HAVE_DECL_CBRTL.
3702         * modules/cbrtl: New file.
3703         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3704         * doc/posix-functions/cbrtl.texi: Mention the new module.
3705
3706 2012-02-29  Bruno Haible  <bruno@clisp.org>
3707
3708         Tests for module 'cbrtf'.
3709         * modules/cbrtf-tests: New file.
3710         * tests/test-cbrtf.c: New file.
3711
3712         New module 'cbrtf'.
3713         * lib/math.in.h (cbrtf): New declaration.
3714         * lib/cbrtf.c: New file.
3715         * m4/cbrtf.m4: New file.
3716         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3718         HAVE_DECL_CBRTF.
3719         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3720         HAVE_DECL_CBRTF.
3721         * modules/cbrtf: New file.
3722         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3723         * doc/posix-functions/cbrtf.texi: Mention the new module.
3724
3725 2012-02-29  Bruno Haible  <bruno@clisp.org>
3726
3727         cbrt: Provide replacement on MSVC and Minix.
3728         * lib/math.in.h (cbrt): New declaration.
3729         * lib/cbrt.c: New file.
3730         * m4/cbrt.m4: New file.
3731         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3733         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3734         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3735         (Depends-on): Add dependencies.
3736         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3737         * tests/test-math-c++.cc: Check the declaration of cbrt.
3738         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3739         replacement.
3740
3741 2012-02-29  Bruno Haible  <bruno@clisp.org>
3742
3743         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3744         * m4/hypotl-ieee.m4: New file.
3745         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3746         test whether hypotl works with mixed NaN and Infinity arguments.
3747         Replace it if not.
3748         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3750         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3751         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3752         (Depends-on): Update conditions.
3753         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3754         (Depends-on): Add hypot-ieee.
3755         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3756         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3757
3758         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3759         * m4/hypotf-ieee.m4: New file.
3760         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3761         test whether hypotf works with mixed NaN and Infinity arguments.
3762         Replace it if not.
3763         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3764         (Depends-on): Add hypot-ieee.
3765         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3766         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3767
3768         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3769         * lib/math.in.h (hypot): New declaration.
3770         * lib/hypot.c: New file.
3771         * m4/hypot-ieee.m4: New file.
3772         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3773         whether hypot works with mixed NaN and Infinity arguments. Replace it
3774         if not.
3775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3776         REPLACE_HYPOT.
3777         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3778         * modules/hypot (Files): Add lib/hypot.c.
3779         (Depends-on): Add dependencies.
3780         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3781         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3782         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3783         * tests/test-math-c++.cc: Check the declaration of hypot.
3784         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3785
3786         Tests for module 'hypotl-ieee'.
3787         * modules/hypotl-ieee-tests: New file.
3788         * tests/test-hypotl-ieee.c: New file.
3789
3790         New module 'hypotl-ieee'.
3791         * modules/hypotl-ieee: New file.
3792
3793         Tests for module 'hypot-ieee'.
3794         * modules/hypot-ieee-tests: New file.
3795         * tests/test-hypot-ieee.c: New file.
3796
3797         New module 'hypot-ieee'.
3798         * modules/hypot-ieee: New file.
3799
3800         Tests for module 'hypotf-ieee'.
3801         * modules/hypotf-ieee-tests: New file.
3802         * tests/test-hypotf-ieee.c: New file.
3803         * tests/test-hypot-ieee.h: New file.
3804
3805         New module 'hypotf-ieee'.
3806         * modules/hypotf-ieee: New file.
3807
3808 2012-02-29  Bruno Haible  <bruno@clisp.org>
3809
3810         Remove unused variables.
3811         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3812         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3813         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3814         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3815
3816 2012-02-29  Eric Blake  <eblake@redhat.com>
3817
3818         termios: fix pid_t always, not just for tcgetsid
3819         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3820         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3821         just when building tcgetsid.
3822
3823 2012-02-29  Bruno Haible  <bruno@clisp.org>
3824
3825         Tests for module 'hypotl'.
3826         * modules/hypotl-tests: New file.
3827         * tests/test-hypotl.c: New file.
3828
3829         New module 'hypotl'.
3830         * lib/math.in.h (hypotl): New declaration.
3831         * lib/hypotl.c: New file.
3832         * m4/hypotl.m4: New file.
3833         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3835         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3836         * modules/hypotl: New file.
3837         * tests/test-math-c++.cc: Check the hypotl declaration.
3838         * doc/posix-functions/hypotl.texi: Mention the new module.
3839
3840 2012-02-29  Eric Blake  <eblake@redhat.com>
3841
3842         tcgetsid: fix cygwin header bug
3843         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3844
3845         docs: update cygwin progress
3846         * doc/posix-functions/llround.texi (llround): Added in cygwin
3847         1.7.8.
3848         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3849         * doc/glibc-functions/program_invocation_name.texi
3850         (program_invocation_name): Likewise.
3851         * doc/glibc-functions/program_invocation_short_name.texi
3852         (program_invocation_short_name): Likewise.
3853         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3854         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3855         Likewise.
3856         * doc/posix-functions/pthread_spin_destroy.texi
3857         (pthread_spin_destroy): Added in cygwin 1.7.10.
3858         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3859         Likewise.
3860         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3861         Likewise.
3862         * doc/posix-functions/pthread_spin_trylock.texi
3863         (pthread_spin_trylock): Likewise.
3864         * doc/posix-functions/pthread_spin_unlock.texi
3865         (pthread_spin_unlock): Likewise.
3866         * doc/posix-functions/pthread_setschedprio.texi
3867         (pthread_setschedprio): Likewise.
3868         * doc/posix-functions/pthread_attr_getstack.texi
3869         (pthread_attr_getstack): Likewise.
3870         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3871         (pthread_attr_getstackaddr): Likewise.
3872         * doc/glibc-functions/pthread_getattr_np.texi
3873         (pthread_getattr_np): Likewise.
3874         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3875         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3876         * doc/posix-functions/clock_settime.texi (clock_settime):
3877         Likewise.
3878         * doc/posix-functions/pthread_attr_getguardsize.texi
3879         (pthread_attr_getguardsize): Likewise.
3880         * doc/posix-functions/pthread_attr_setguardsize.texi
3881         (pthread_attr_setguardsize): Likewise.
3882         * doc/posix-functions/pthread_attr_setstack.texi
3883         (pthread_attr_setstack): Likewise.
3884         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3885         (pthread_attr_setstackaddr): Likewise.
3886         * doc/posix-functions/clock_getcpuclockid.texi
3887         (clock_getcpuclockid): Likewise.
3888         * doc/posix-functions/pthread_getcpuclockid.texi
3889         (pthread_getcpuclockid): Likewise.
3890         * doc/glibc-functions/error.texi (error): Likewise.
3891         * doc/glibc-functions/error_at_line.texi (error_at_line):
3892         Likewise.
3893         * doc/glibc-functions/error_message_count.texi
3894         (error_message_count): Likewise.
3895         * doc/glibc-functions/error_one_per_line.texi
3896         (error_one_per_line): Likewise.
3897         * doc/glibc-functions/error_print_progname.texi
3898         (error_print_progname): Likewise.
3899         * doc/posix-functions/pthread_condattr_getclock.texi
3900         (pthread_condattr_getclock): Likewise.
3901         * doc/posix-functions/pthread_condattr_setclock.texi
3902         (pthread_condattr_setclock): Likewise.
3903         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3904         Likewise.
3905         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3906         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3907         * doc/glibc-functions/get_current_dir_name.texi
3908         (get_current_dir_name): Likewise.
3909         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3910         Likewise.
3911         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3912         wrong return type.
3913         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3914         1.7.11.
3915
3916 2012-02-29  Bruno Haible  <bruno@clisp.org>
3917
3918         Tests for module 'hypotf'.
3919         * modules/hypotf-tests: New file.
3920         * tests/test-hypotf.c: New file.
3921
3922         New module 'hypotf'.
3923         * lib/math.in.h (hypotf): New declaration.
3924         * lib/hypotf.c: New file.
3925         * m4/hypotf.m4: New file.
3926         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3928         REPLACE_HYPOTF.
3929         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3930         REPLACE_HYPOTF.
3931         * modules/hypotf: New file.
3932         * tests/test-math-c++.cc: Check the hypotf declaration.
3933         * doc/posix-functions/hypotf.texi: Mention the new module.
3934
3935         hypot: Prepare for hypotf module.
3936         * m4/hypot.m4: New file.
3937         * modules/hypot (Files): Add m4/hypot.m4.
3938         (configure.ac): Invoke gl_FUNC_HYPOT.
3939
3940 2012-02-29  Bruno Haible  <bruno@clisp.org>
3941
3942         hypot tests: More tests.
3943         * tests/test-hypot.c: Include <float.h>.
3944         (main): Add tests about overflow and underflow.
3945
3946 2012-02-29  Bruno Haible  <bruno@clisp.org>
3947
3948         math code: Add comments.
3949         * lib/acosl.c: Add comment about related glibc source files.
3950         * lib/asinl.c: Likewise.
3951         * lib/atanl.c: Likewise.
3952         * lib/expl.c: Likewise.
3953         * lib/logl.c: Likewise.
3954         * lib/sincosl.c: Likewise.
3955         * lib/sinl.c: Likewise.
3956         * lib/tanl.c: Likewise.
3957         * lib/trigl.c: Likewise.
3958         * lib/cosl.c: Likewise. Fix comments.
3959
3960 2012-02-28  Bruno Haible  <bruno@clisp.org>
3961
3962         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3963         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3964         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3965         HUGE_VALL are defined.
3966         (numeric_equald): Renamed from numeric_equal.
3967         (numeric_equalf, numeric_equall): New functions.
3968         (main): Check also HUGE_VALF, HUGE_VALL.
3969         * modules/math-tests (Files): Add tests/macros.h.
3970         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3971         HUGE_VALL.
3972
3973 2012-02-28  Bruno Haible  <bruno@clisp.org>
3974
3975         doc: Move ISO C11 feature notes into POSIX chapters.
3976         * doc/posix-functions/aligned_alloc.texi: Renamed from
3977         doc/glibc-functions/aligned_alloc.texi.
3978         * doc/posix-functions/quick_exit.texi: Renamed from
3979         doc/glibc-functions/quick_exit.texi.
3980         * doc/posix-headers/uchar.texi: Renamed from
3981         doc/glibc-headers/uchar.texi.
3982         * doc/posix-functions/c16rtomb.texi: Renamed from
3983         doc/glibc-functions/c16rtomb.texi.
3984         * doc/posix-functions/c32rtomb.texi: Renamed from
3985         doc/glibc-functions/c32rtomb.texi.
3986         * doc/posix-functions/mbrtoc16.texi: Renamed from
3987         doc/glibc-functions/mbrtoc16.texi.
3988         * doc/posix-functions/mbrtoc32.texi: Renamed from
3989         doc/glibc-functions/mbrtoc32.texi.
3990         * doc/gnulib.texi: Update.
3991         (Glibc uchar.h): Remove section.
3992         Suggested by Eric Blake.
3993
3994 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3995
3996         stdnoreturn: port to MSVC better
3997         MSVC standard headers use __declspec(noreturn), so #define noreturn
3998         to empty on that platform.  Reported by Bruno Haible in
3999         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4000         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4001         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4002
4003 2012-02-28  Bruno Haible  <bruno@clisp.org>
4004
4005         doc: Mention new glibc headers and functions.
4006         * doc/glibc-headers/uchar.texi: New file.
4007         * doc/glibc-functions/aligned_alloc.texi: New file.
4008         * doc/glibc-functions/c16rtomb.texi: New file.
4009         * doc/glibc-functions/c32rtomb.texi: New file.
4010         * doc/glibc-functions/clock_adjtime.texi: New file.
4011         * doc/glibc-functions/fanotify_init.texi: New file.
4012         * doc/glibc-functions/fanotify_mark.texi: New file.
4013         * doc/glibc-functions/inet6_opt_append.texi: New file.
4014         * doc/glibc-functions/inet6_opt_find.texi: New file.
4015         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4016         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4017         * doc/glibc-functions/inet6_opt_init.texi: New file.
4018         * doc/glibc-functions/inet6_opt_next.texi: New file.
4019         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4020         * doc/glibc-functions/inet6_rth_add.texi: New file.
4021         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4022         * doc/glibc-functions/inet6_rth_init.texi: New file.
4023         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4024         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4025         * doc/glibc-functions/inet6_rth_space.texi: New file.
4026         * doc/glibc-functions/login.texi: New file.
4027         * doc/glibc-functions/mbrtoc16.texi: New file.
4028         * doc/glibc-functions/mbrtoc32.texi: New file.
4029         * doc/glibc-functions/name_to_handle_at.texi: New file.
4030         * doc/glibc-functions/ntp_gettimex.texi: New file.
4031         * doc/glibc-functions/open_by_handle_at.texi: New file.
4032         * doc/glibc-functions/prlimit.texi: New file.
4033         * doc/glibc-functions/process_vm_readv.texi: New file.
4034         * doc/glibc-functions/process_vm_writev.texi: New file.
4035         * doc/glibc-functions/recvmmsg.texi: New file.
4036         * doc/glibc-functions/scandirat.texi: New file.
4037         * doc/glibc-functions/sendmmsg.texi: New file.
4038         * doc/glibc-functions/setns.texi: New file.
4039         * doc/glibc-functions/timespec_get.texi: New file.
4040         * doc/gnulib.texi: Include them.
4041         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4042         sections.
4043         Reported by Eric Blake.
4044
4045 2012-02-28  Bruno Haible  <bruno@clisp.org>
4046
4047         Avoid compilation errors with MSVC option -fp:strict.
4048         * lib/floor.c: Use MSVC specific pragma fenv_access.
4049         * lib/ceil.c: Likewise.
4050         * lib/trunc.c: Likewise.
4051         * lib/round.c: Likewise.
4052         * lib/rint.c: Likewise.
4053         * lib/fma.c: Likewise.
4054         * lib/integer_length.c: Likewise.
4055         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4057         * tests/test-floor2.c: Likewise.
4058         * tests/test-floorf2.c: Likewise.
4059         * tests/test-ceil2.c: Likewise.
4060         * tests/test-ceilf2.c: Likewise.
4061         * tests/test-trunc2.c: Likewise.
4062         * tests/test-truncf2.c: Likewise.
4063         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4064
4065 2012-02-27  Bruno Haible  <bruno@clisp.org>
4066
4067         Tests for module 'sqrtl-ieee'.
4068         * modules/sqrtl-ieee-tests: New file.
4069         * tests/test-sqrtl-ieee.c: New file.
4070
4071         New module 'sqrtl-ieee'.
4072         * modules/sqrtl-ieee: New file.
4073
4074         Tests for module 'sqrt-ieee'.
4075         * modules/sqrt-ieee-tests: New file.
4076         * tests/test-sqrt-ieee.c: New file.
4077
4078         New module 'sqrt-ieee'.
4079         * modules/sqrt-ieee: New file.
4080
4081         Tests for module 'sqrtf-ieee'.
4082         * modules/sqrtf-ieee-tests: New file.
4083         * tests/test-sqrtf-ieee.c: New file.
4084         * tests/test-sqrt-ieee.h: New file.
4085
4086         New module 'sqrtf-ieee'.
4087         * modules/sqrtf-ieee: New file.
4088
4089 2012-02-27  Bruno Haible  <bruno@clisp.org>
4090
4091         remainderl-ieee: Work around test failure on OSF/1.
4092         * m4/remainderl-ieee.m4: New file.
4093         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4094         present, test whether remainderl works with a zero second argument.
4095         Replace it if not.
4096         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4098         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4099         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4100         (Depends-on): Update conditions.
4101         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4102         (Depends-on): Add remainder-ieee.
4103         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4104         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4105         module.
4106
4107         remainderf-ieee: Work around test failure on OSF/1.
4108         * m4/remainderf-ieee.m4: New file.
4109         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4110         present, test whether remainderf works with a zero second argument.
4111         Replace it if not.
4112         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4114         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4115         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4116         (Depends-on): Update conditions.
4117         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4118         (Depends-on): Add remainder-ieee.
4119         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4120         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4121         module.
4122
4123         remainder-ieee: Work around test failure on OSF/1.
4124         * m4/remainder-ieee.m4: New file.
4125         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4126         present, test whether remainder works with a zero second argument.
4127         Replace it if not.
4128         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4130         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4131         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4132         (Depends-on): Update dependencies.
4133         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4134         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4135         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4136
4137         Tests for module 'remainderl-ieee'.
4138         * modules/remainderl-ieee-tests: New file.
4139         * tests/test-remainderl-ieee.c: New file.
4140
4141         New module 'remainderl-ieee'.
4142         * modules/remainderl-ieee: New file.
4143
4144         Tests for module 'remainder-ieee'.
4145         * modules/remainder-ieee-tests: New file.
4146         * tests/test-remainder-ieee.c: New file.
4147
4148         New module 'remainder-ieee'.
4149         * modules/remainder-ieee: New file.
4150
4151         Tests for module 'remainderf-ieee'.
4152         * modules/remainderf-ieee-tests: New file.
4153         * tests/test-remainderf-ieee.c: New file.
4154         * tests/test-remainder-ieee.h: New file.
4155
4156         New module 'remainderf-ieee'.
4157         * modules/remainderf-ieee: New file.
4158
4159 2012-02-27  Bruno Haible  <bruno@clisp.org>
4160
4161         modff, modfl: Fix configure syntax error.
4162         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4163         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4164
4165 2012-02-27  Bruno Haible  <bruno@clisp.org>
4166
4167         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4168         * m4/fmodl-ieee.m4: New file.
4169         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4170         whether fmodl works with zero arguments. Replace it if not.
4171         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4172         (Depends-on): Add fmod-ieee.
4173         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4174         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4175
4176         fmodf-ieee: Work around test failure on OSF/1.
4177         * m4/fmodf-ieee.m4: New file.
4178         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4179         whether fmodf works with zero arguments. Replace it if not.
4180         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4182         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4183         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4184         (Depends-on): Update dependencies.
4185         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4186         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4187         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4188
4189         fmodf-ieee: Work around test failure on MSVC 9.
4190         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4191         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4192
4193         fmod-ieee: Work around test failures on OSF/1, mingw.
4194         * m4/fmod-ieee.m4: New file.
4195         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4196         whether fmod works with zero arguments. Replace it if not.
4197         * lib/math.in.h (fmod): New declaration.
4198         * lib/fmod.c: New file.
4199         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4201         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4202         * modules/fmod (Files): Add lib/fmod.c.
4203         (Depends-on): Add math, isinf, trunc, fma.
4204         (configure.ac): Arrange to compile lib/fmod.c if needed.
4205         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4206         m4/signbit.m4.
4207         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4208         * tests/test-math-c++.cc: Check the declaration of fmod.
4209         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4210
4211         fmodl-ieee: Fix test failures.
4212         * lib/fmodl.c (fmodl): Treat Inf specially.
4213         * modules/fmodl (Depends-on): Add isinf.
4214
4215         Tests for module 'fmodl-ieee'.
4216         * modules/fmodl-ieee-tests: New file.
4217         * tests/test-fmodl-ieee.c: New file.
4218
4219         New module 'fmodl-ieee'.
4220         * modules/fmodl-ieee: New file.
4221
4222         Tests for module 'fmod-ieee'.
4223         * modules/fmod-ieee-tests: New file.
4224         * tests/test-fmod-ieee.c: New file.
4225
4226         New module 'fmod-ieee'.
4227         * modules/fmod-ieee: New file.
4228
4229         Tests for module 'fmodf-ieee'.
4230         * modules/fmodf-ieee-tests: New file.
4231         * tests/test-fmodf-ieee.c: New file.
4232         * tests/test-fmod-ieee.h: New file.
4233
4234         New module 'fmodf-ieee'.
4235         * modules/fmodf-ieee: New file.
4236
4237 2012-02-27  Bruno Haible  <bruno@clisp.org>
4238
4239         Tests for module 'rintl-ieee'.
4240         * modules/rintl-ieee-tests: New file.
4241         * tests/test-rintl-ieee.c: New file.
4242
4243         New module 'rintl-ieee'.
4244         * modules/rintl-ieee: New file.
4245
4246         Tests for module 'rint-ieee'.
4247         * modules/rint-ieee-tests: New file.
4248         * tests/test-rint-ieee.c: New file.
4249
4250         New module 'rint-ieee'.
4251         * modules/rint-ieee: New file.
4252
4253         Tests for module 'rintf-ieee'.
4254         * modules/rintf-ieee-tests: New file.
4255         * tests/test-rintf-ieee.c: New file.
4256         * tests/test-rint-ieee.h: New file.
4257
4258         New module 'rintf-ieee'.
4259         * modules/rintf-ieee: New file.
4260
4261 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4262
4263         regex: re_search etc. should return -2 when memory exhausted
4264         This bug was uncovered when testing 'grep'.  Without the fix,
4265         re_search and friends return -1 when memory is exhausted, but -1
4266         means no match, and this causes grep to falsely report no-match
4267         instead of memory-exhaustion.  See
4268         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4269         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4270         trouble; this can occur if re_search_internal ran out of memory.
4271
4272 2012-02-26  Bruno Haible  <bruno@clisp.org>
4273
4274         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4275         * m4/modfl-ieee.m4: New file.
4276         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4277         whether modfl works with Inf. Replace it if not.
4278         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4280         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4281         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4282         (Depends-on): Update dependencies.
4283         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4284         m4/signbit.m4.
4285         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4286         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4287
4288         modfl-ieee: Fix dependencies.
4289         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4290
4291         modfl-ieee: Fix test failures.
4292         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4293         * modules/modfl (Depends-on): Add isfinite, isinf.
4294
4295         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4296         * m4/modff-ieee.m4: New file.
4297         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4298         whether modff works with NaN and Inf. Replace it if not.
4299         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4301         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4302         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4303         (Depends-on): Update dependencies.
4304         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4305         m4/signbit.m4.
4306         (Depends-on): Add modf-ieee.
4307         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4308         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4309
4310         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4311         * m4/modf-ieee.m4: New file.
4312         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4313         whether modf works with NaN and Inf. Replace it if not.
4314         * lib/math.in.h (modf): New declaration.
4315         * lib/modf.c: New file.
4316         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4318         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4319         * modules/modf (Files): Add lib/modf.c.
4320         (Depends-on): Add math, isfinite, trunc, isinf.
4321         (configure.ac): Addrange to compile lib/modf.c if needed.
4322         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4323         m4/signbit.m4.
4324         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4325         * tests/test-math-c++.cc: Check the declaration of modf.
4326         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4327
4328         Tests for module 'modfl-ieee'.
4329         * modules/modfl-ieee-tests: New file.
4330         * tests/test-modfl-ieee.c: New file.
4331
4332         New module 'modfl-ieee'.
4333         * modules/modfl-ieee: New file.
4334
4335         Tests for module 'modf-ieee'.
4336         * modules/modf-ieee-tests: New file.
4337         * tests/test-modf-ieee.c: New file.
4338
4339         New module 'modf-ieee'.
4340         * modules/modf-ieee: New file.
4341
4342         Tests for module 'modff-ieee'.
4343         * modules/modff-ieee-tests: New file.
4344         * tests/test-modff-ieee.c: New file.
4345         * tests/test-modf-ieee.h: New file.
4346
4347         New module 'modff-ieee'.
4348         * modules/modff-ieee: New file.
4349
4350 2012-02-26  Bruno Haible  <bruno@clisp.org>
4351
4352         Tests for module 'fabsl-ieee'.
4353         * modules/fabsl-ieee-tests: New file.
4354         * tests/test-fabsl-ieee.c: New file.
4355
4356         New module 'fabsl-ieee'.
4357         * modules/fabsl-ieee: New file.
4358
4359         Tests for module 'fabs-ieee'.
4360         * modules/fabs-ieee-tests: New file.
4361         * tests/test-fabs-ieee.c: New file.
4362
4363         New module 'fabs-ieee'.
4364         * modules/fabs-ieee: New file.
4365
4366         Tests for module 'fabsf-ieee'.
4367         * modules/fabsf-ieee-tests: New file.
4368         * tests/test-fabsf-ieee.c: New file.
4369         * tests/test-fabs-ieee.h: New file.
4370
4371         New module 'fabsf-ieee'.
4372         * modules/fabsf-ieee: New file.
4373
4374 2012-02-26  Bruno Haible  <bruno@clisp.org>
4375
4376         Tests for module 'fmal-ieee'.
4377         * modules/fmal-ieee-tests: New file.
4378         * tests/test-fmal-ieee.c: New file.
4379
4380         New module 'fmal-ieee'.
4381         * modules/fmal-ieee: New file.
4382
4383         Tests for module 'fma-ieee'.
4384         * modules/fma-ieee-tests: New file.
4385         * tests/test-fma-ieee.c: New file.
4386
4387         New module 'fma-ieee'.
4388         * modules/fma-ieee: New file.
4389
4390         Tests for module 'fmaf-ieee'.
4391         * modules/fmaf-ieee-tests: New file.
4392         * tests/test-fmaf-ieee.c: New file.
4393         * tests/test-fma-ieee.h: New file.
4394
4395         New module 'fmaf-ieee'.
4396         * modules/fmaf-ieee: New file.
4397
4398 2012-02-26  Bruno Haible  <bruno@clisp.org>
4399
4400         Tests for module 'ldexpl-ieee'.
4401         * modules/ldexpl-ieee-tests: New file.
4402         * tests/test-ldexpl-ieee.c: New file.
4403
4404         New module 'ldexpl-ieee'.
4405         * modules/ldexpl-ieee: New file.
4406
4407         Tests for module 'ldexp-ieee'.
4408         * modules/ldexp-ieee-tests: New file.
4409         * tests/test-ldexp-ieee.c: New file.
4410
4411         New module 'ldexp-ieee'.
4412         * modules/ldexp-ieee: New file.
4413
4414         Tests for module 'ldexpf-ieee'.
4415         * modules/ldexpf-ieee-tests: New file.
4416         * tests/test-ldexpf-ieee.c: New file.
4417         * tests/test-ldexp-ieee.h: New file.
4418
4419         New module 'ldexpf-ieee'.
4420         * modules/ldexpf-ieee: New file.
4421
4422 2012-02-26  Bruno Haible  <bruno@clisp.org>
4423
4424         Refactor frexp*-ieee tests.
4425         * tests/test-frexp-ieee.h: New file.
4426         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4427         (main): Just call test_function.
4428         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4429         (main): Just call test_function.
4430         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4431         (main): Just call test_function.
4432         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4433         * modules/frexp-ieee-tests (Files): Likewise.
4434         * modules/frexpl-ieee-tests (Files): Likewise.
4435
4436         Tests for module 'frexpl-ieee'.
4437         * modules/frexpl-ieee-tests: New file.
4438         * tests/test-frexpl-ieee.c: New file.
4439
4440         New module 'frexpl-ieee'.
4441         * modules/frexpl-ieee: New file.
4442
4443         Tests for module 'frexp-ieee'.
4444         * modules/frexp-ieee-tests: New file.
4445         * tests/test-frexp-ieee.c: New file.
4446
4447         New module 'frexp-ieee'.
4448         * modules/frexp-ieee: New file.
4449
4450         Tests for module 'frexpf-ieee'.
4451         * modules/frexpf-ieee-tests: New file.
4452         * tests/test-frexpf-ieee.c: New file.
4453
4454         New module 'frexpf-ieee'.
4455         * modules/frexpf-ieee: New file.
4456
4457 2012-02-26  Bruno Haible  <bruno@clisp.org>
4458
4459         roundl-ieee tests: More tests.
4460         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4461         (main): Add tests for [MX] shaded specification in POSIX.
4462         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4463         (Depends-on): Add isnanl-nolibm.
4464
4465         round-ieee tests: More tests.
4466         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4467         (main): Add tests for [MX] shaded specification in POSIX.
4468         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4469         (Depends-on): Add isnand-nolibm.
4470
4471         roundf-ieee tests: More tests.
4472         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4473         (main): Add tests for [MX] shaded specification in POSIX.
4474         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4475         (Depends-on): Add isnanf-nolibm.
4476
4477         truncl-ieee tests: More tests.
4478         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4479         (main): Add tests for [MX] shaded specification in POSIX.
4480         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4481         (Depends-on): Add isnanl-nolibm.
4482
4483         trunc-ieee tests: More tests.
4484         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4485         (main): Add tests for [MX] shaded specification in POSIX.
4486         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4487         (Depends-on): Add isnand-nolibm.
4488
4489         truncf-ieee tests: More tests.
4490         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4491         (main): Add tests for [MX] shaded specification in POSIX.
4492         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4493         (Depends-on): Add isnanf-nolibm.
4494
4495         ceill-ieee tests: More tests.
4496         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4497         (main): Add tests for [MX] shaded specification in POSIX.
4498         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4499         (Depends-on): Add isnanl-nolibm.
4500
4501         ceil-ieee tests: More tests.
4502         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4503         (main): Add tests for [MX] shaded specification in POSIX.
4504         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4505         (Depends-on): Add isnand-nolibm.
4506
4507         ceilf-ieee tests: More tests.
4508         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4509         (main): Add tests for [MX] shaded specification in POSIX.
4510         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4511         (Depends-on): Add isnanf-nolibm.
4512
4513         floorl-ieee tests: More tests.
4514         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4515         (main): Add tests for [MX] shaded specification in POSIX.
4516         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4517         (Depends-on): Add isnanl-nolibm.
4518
4519         floor-ieee tests: More tests.
4520         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4521         (main): Add tests for [MX] shaded specification in POSIX.
4522         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4523         (Depends-on): Add isnand-nolibm.
4524
4525         floorf-ieee tests: More tests.
4526         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4527         (main): Add tests for [MX] shaded specification in POSIX.
4528         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4529         (Depends-on): Add isnanf-nolibm.
4530
4531 2012-02-26  Bruno Haible  <bruno@clisp.org>
4532
4533         fpieee: More comments.
4534         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4535
4536 2012-02-25  Bruno Haible  <bruno@clisp.org>
4537
4538         Tests for module 'log10l'.
4539         * modules/log10l-tests: New file.
4540         * tests/test-log10l.c: New file.
4541         * tests/test-math-c++.cc: Check the declaration of log10l.
4542
4543         New module 'log10l'.
4544         * lib/math.in.h (log10l): New declaration.
4545         * lib/log10l.c: New file.
4546         * m4/log10l.m4: New file.
4547         * modules/log10l: New file.
4548         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4549         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4550         HAVE_DECL_LOG10L.
4551         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4552         HAVE_DECL_LOG10L.
4553         * doc/posix-functions/log10l.texi: Mention the new module.
4554
4555 2012-02-25  Bruno Haible  <bruno@clisp.org>
4556
4557         fmodl, remainder*: Avoid wrong results due to rounding errors.
4558         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4559         expected bounds.
4560         * lib/remainderf.c (remainderf): Likewise.
4561         * lib/remainder.c (remainder): Likewise.
4562         * lib/remainderl.c (remainderl): Likewise.
4563
4564 2012-02-25  Bruno Haible  <bruno@clisp.org>
4565
4566         Tests for module 'remainderl'.
4567         * modules/remainderl-tests: New file.
4568         * tests/test-remainderl.c: New file.
4569         * tests/test-math-c++.cc: Check the declaration of remainderl.
4570
4571         New module 'remainderl'.
4572         * lib/math.in.h (remainderl): New declaration.
4573         * lib/remainderl.c: New file.
4574         * m4/remainderl.m4: New file.
4575         * modules/remainderl: New file.
4576         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4578         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4579         HAVE_REMAINDERL.
4580         * doc/posix-functions/remainderl.texi: Mention the new module.
4581
4582 2012-02-25  Bruno Haible  <bruno@clisp.org>
4583
4584         Tests for module 'remainderf'.
4585         * modules/remainderf-tests: New file.
4586         * tests/test-remainderf.c: New file.
4587         * tests/test-math-c++.cc: Check the declaration of remainderf.
4588
4589         New module 'remainderf'.
4590         * lib/math.in.h (remainderf): New declaration.
4591         * lib/remainderf.c: New file.
4592         * m4/remainderf.m4: New file.
4593         * modules/remainderf: New file.
4594         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4596         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4597         HAVE_REMAINDERF.
4598         * doc/posix-functions/remainderf.texi: Mention the new module.
4599
4600 2012-02-25  Bruno Haible  <bruno@clisp.org>
4601
4602         remainder: Support for MSVC.
4603         * lib/math.in.h (remainder): New declaration.
4604         * lib/remainder.c: New file.
4605         * m4/remainder.m4: New file.
4606         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4607         (Depends-on): Add math, round, fma.
4608         (configure.ac): Use results of gl_FUNC_REMAINDER.
4609         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4611         HAVE_DECL_REMAINDER.
4612         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4613         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4614         * tests/test-math-c++.cc: Check the declaration of remainder.
4615         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4616         problems are fixed.
4617
4618 2012-02-25  Bruno Haible  <bruno@clisp.org>
4619
4620         Tests for module 'fmodl'.
4621         * modules/fmodl-tests: New file.
4622         * tests/test-fmodl.c: New file.
4623         * tests/test-math-c++.cc: Check the declaration of fmodl.
4624
4625         New module 'fmodl'.
4626         * lib/math.in.h (fmodl): New declaration.
4627         * lib/fmodl.c: New file.
4628         * m4/fmodl.m4: New file.
4629         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4631         REPLACE_FMODL.
4632         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4633         REPLACE_FMODL.
4634         * modules/fmodl: New file.
4635         * doc/posix-functions/fmodl.texi: Mention the new module.
4636
4637 2012-02-25  Bruno Haible  <bruno@clisp.org>
4638
4639         Tests for module 'modfl'.
4640         * modules/modfl-tests: New file.
4641         * tests/test-modfl.c: New file.
4642         * tests/test-math-c++.cc: Check the declaration of modfl.
4643
4644         New module 'modfl'.
4645         * lib/math.in.h (modfl): New declaration.
4646         * lib/modfl.c: New file.
4647         * m4/modfl.m4: New file.
4648         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4650         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4651         * modules/modfl: New file.
4652         * doc/posix-functions/modfl.texi: Mention the new module.
4653
4654 2012-02-25  Bruno Haible  <bruno@clisp.org>
4655
4656         Tests for module 'fabsl'.
4657         * modules/fabsl-tests: New file.
4658         * tests/test-fabsl.c: New file.
4659         * tests/test-math-c++.cc: Check the declaration of fabsl.
4660
4661         New module 'fabsl'.
4662         * lib/math.in.h (fabsl): New declaration.
4663         * lib/fabsl.c: New file.
4664         * m4/fabsl.m4: New file.
4665         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4667         REPLACE_FABSL.
4668         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4669         REPLACE_FABSL.
4670         * modules/fabsl: New file.
4671         * doc/posix-functions/fabsl.texi: Mention the new module.
4672
4673 2012-02-25  Bruno Haible  <bruno@clisp.org>
4674
4675         fabs tests: More tests.
4676         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4677         (zero): New variable.
4678         (main): Add tests for signed zero.
4679         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4680
4681         fabsf tests: More tests.
4682         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4683         (zero): New variable.
4684         (main): Add tests for signed zero.
4685         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4686
4687 2012-02-24  Bruno Haible  <bruno@clisp.org>
4688
4689         atanl: Provide function definition on MSVC.
4690         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4691         function pointer.
4692         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4693
4694 2012-02-24  Bruno Haible  <bruno@clisp.org>
4695
4696         acosl: Provide function definition on MSVC.
4697         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4698         function pointer.
4699         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4700
4701 2012-02-24  Bruno Haible  <bruno@clisp.org>
4702
4703         asinl: Provide function definition on MSVC.
4704         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4705         function pointer.
4706         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4707
4708 2012-02-24  Bruno Haible  <bruno@clisp.org>
4709
4710         tanl: Provide function definition on MSVC.
4711         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4712         function pointer.
4713         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4714
4715 2012-02-24  Bruno Haible  <bruno@clisp.org>
4716
4717         cosl: Provide function definition on MSVC.
4718         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4719         function pointer.
4720         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4721
4722 2012-02-24  Bruno Haible  <bruno@clisp.org>
4723
4724         sinl: Provide function definition on MSVC.
4725         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4726         function pointer.
4727         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4728
4729 2012-02-24  Bruno Haible  <bruno@clisp.org>
4730
4731         logl: Provide function definition on MSVC.
4732         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4733         function pointer.
4734         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4735
4736 2012-02-24  Bruno Haible  <bruno@clisp.org>
4737
4738         expl: Provide function definition on MSVC.
4739         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4740         function pointer.
4741         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4742
4743 2012-02-24  Bruno Haible  <bruno@clisp.org>
4744
4745         sqrtl: Provide function definition on MSVC.
4746         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4747         a function pointer.
4748         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4749
4750 2012-02-24  Bruno Haible  <bruno@clisp.org>
4751
4752         ceill: Provide function definition on MSVC.
4753         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4754         used as a function pointer.
4755         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4756
4757 2012-02-24  Bruno Haible  <bruno@clisp.org>
4758
4759         floorl: Provide function definition on MSVC.
4760         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4761         used as a function pointer.
4762         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4763
4764 2012-02-24  Bruno Haible  <bruno@clisp.org>
4765
4766         ceilf: Provide function definition on MSVC.
4767         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4768         used as a function pointer.
4769         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4770
4771 2012-02-24  Bruno Haible  <bruno@clisp.org>
4772
4773         floorf: Provide function definition on MSVC.
4774         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4775         used as a function pointer.
4776         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4777
4778 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4779
4780         stdnoreturn: new module
4781         This implements a replacement for C11's <stdnoreturn.h>.
4782         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4783         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4784         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4785         * tests/test-stdnoreturn.c: New files.
4786
4787 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4788
4789         regex: fix false multibyte matches in some regular expressions
4790         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4791         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4792         * lib/regex_internal.c (re_string_skip_chars):
4793         Fix miscomputation of remain_len that may cause incomplete
4794         multi-byte character and false match.
4795
4796 2012-02-24  Jim Meyering  <meyering@redhat.com>
4797
4798         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4799         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4800         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4801         Remove now-unnecessary str''cmp obfuscation.
4802         Suggested by Akim Demaille.
4803
4804 2012-02-24  Bruno Haible  <bruno@clisp.org>
4805
4806         streq: Rename macro.
4807         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4808         * NEWS: Mention the change.
4809         * lib/mbrtowc.c (mbrtowc): Update.
4810         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4811         * lib/wcwidth.c (wcwidth): Update.
4812         Suggested by Akim Demaille and Jim Meyering.
4813
4814 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4815
4816         regex: fix typo in definition of MIN
4817         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4818         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4819
4820 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4821             Bruno Haible  <bruno@clisp.org>
4822
4823         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4824         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4825         entries into a stack-allocated buffer directly.
4826         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4827
4828 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4829             Bruno Haible  <bruno@clisp.org>
4830
4831         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4832
4833          - There were several instances of this pattern:
4834
4835              for (;;) {
4836                n = acl (f, GETACLCNT, 0, NULL);
4837                [ allocate an array A of size N ]
4838                if (acl (f, GETACL, n, a) == n)
4839                  break;
4840              }
4841
4842            This loop might never terminate if some other process is constantly
4843            manipulating the file's ACL.  The loop should be rewritten to
4844            terminate.
4845
4846          - The acl (... GETACLNT ...) call is merely an optimization; its value
4847            is merely a hint as to how big to make the array.  A better
4848            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4849            and just guess a reasonably-big size, growing the size and trying
4850            again if it's not large enough.  This guarantees termination, and
4851            saves a system call.
4852
4853         * lib/acl-internal.h: Include <limits.h>.
4854         (MIN, SIZE_MAX): New macros.
4855         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4856         a stack-allocated buffer, and use malloc if it does not fit. Don't
4857         use GETACLCNT.
4858         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4859
4860 2012-02-19  Bruno Haible  <bruno@clisp.org>
4861
4862         acl: Fix endless loop on Solaris with vxfs.
4863         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4864         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4865         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4866         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4867         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4868         Reported by Bill Jones in
4869         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4870
4871 2012-02-19  Bruno Haible  <bruno@clisp.org>
4872
4873         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4874         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4875         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4876         that this function returns 0 in some more cases.
4877
4878 2012-02-19  Bruno Haible  <bruno@clisp.org>
4879
4880         acl: Update doc references.
4881         * doc/acl-resources.txt: Update links to Solaris documentation.
4882
4883 2012-02-19  Bruno Haible  <bruno@clisp.org>
4884
4885         Fix test failure in many locales on Solaris 11.
4886         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4887         'tr' arguments.
4888         * tests/test-pipe-filter-ii1.c (main): Likewise.
4889         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4890         expressions in the C locale.
4891         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4892         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4893
4894 2012-02-19  Bruno Haible  <bruno@clisp.org>
4895
4896         gnulib-tool: Improve usage message.
4897         * gnulib-tool (func_usage): Move doc of --help and --version to the
4898         section "Operation modes".
4899
4900 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4901
4902         README-release: make it easier to execute commands
4903         * top/README-release: break commands out on to separate lines.
4904
4905 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4906
4907         GNUmakefile: simplify detection of unconfigured trees
4908         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4909         whether the tree make is being run from is already configured or
4910         not.  Related simplifications.
4911
4912 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4913
4914         * gnulib-tool (func_usage): Document --help and --version.
4915
4916 2012-02-11  Jim Meyering  <meyering@redhat.com>
4917
4918         bootstrap: don't exit 0 upon gnulib-tool failure
4919         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4920         its exit status, not 0.
4921
4922 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4923
4924         README-release: various improvements
4925         * top/README-release: Give a command to push changes for the
4926         release.  Add "distcheck" to list of other pre-release checks.
4927         Fix instance of "make stable" which should be "make TYPE".
4928
4929 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4930
4931         maint: replace FSF snail-mail addresses with URLs
4932         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4933         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4934         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4935         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4936         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4937         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4938         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4939         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4940         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4941         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4942         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4943         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4944         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4945         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4946         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4947         * lib/glthread/thread.c, lib/glthread/thread.h:
4948         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4949         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4950         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4951         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4952         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4953         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4954         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4955         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4956         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4957         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4958         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4959         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4960         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4961         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4962         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4963         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4964         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4965         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4966         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4967         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4968         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4969         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4970         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4971         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4972         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4973         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4974         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4975         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4976         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4977         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4978         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4979         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4980         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4981         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4982         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4983         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4984         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4985         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4986         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4987         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4988         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4989         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4990         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4991         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4992         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4993         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4994         * tests/test-poll.c, tests/test-quotearg-simple.c:
4995         * tests/test-quotearg.c, tests/test-quotearg.h:
4996         * tests/test-round-ieee.c, tests/test-round1.c:
4997         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4998         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4999         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5000         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5001         * tests/test-strerror.c, tests/test-strerror_r.c:
5002         * tests/test-strsignal.c, tests/test-strverscmp.c:
5003         * tests/test-xmemdup0.c:
5004         Replace FSF snail mail addresses with URLs, as per GNU coding
5005         standards.  See glibc bug
5006         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5007
5008 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5009
5010         README-release: capitalize a word and split a line
5011         * top/README-release: Fix punctuation and spacing.
5012
5013 2012-02-08  Akim Demaille  <demaille@gostai.com>
5014
5015         fatal-signal: use C prototypes (with explicit void).
5016         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5017         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5018
5019 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5020
5021         regex: spelling fix
5022         * lib/regexec.c: spelling fix
5023
5024         regex: rely on stdint.h for SIZE_MAX
5025         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5026
5027 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5028
5029         regex: merge glibc changes
5030
5031         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5032         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5033         (init_word_char): Work even if bitset words are not exactly 32 or
5034         64 bits wide.  Don't assume there are no padding bits.
5035         * lib/regex.c [_LIBC]: Do not include <config.h>.
5036         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5037         and -Wtype-limits.
5038         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5039         needless disagreement with glibc.  All uses changed.  Define it to
5040         1 only if _GNU_SOURCE, to match glibc.
5041         (_REG_RM_NAME): Remove; no longer needed, since the names in
5042         question are now all protected by __USE_GNU.
5043         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5044         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5045         * lib/regex_internal.h (MIN): New macro.
5046
5047         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5048         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5049
5050         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5051         * lib/regex_internal.c (re_string_fetch_byte_case):
5052         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5053         is miscompiled, and it turns out it is because of an incorrect
5054         attribute on re_string_fetch_byte_case.  Unlike
5055         re_string_peek_byte_case, this one is really not pure, it modifies
5056         memory (increments pstr->cur_idx), and with the pure attribute GCC
5057         assumed it doesn't and it cached the presumed value of
5058         regexp->cur_idx in a variable across the
5059          for (;; ++i)
5060            {
5061              if (i >= BRACKET_NAME_BUF_SIZE)
5062                return REG_EBRACK;
5063              if (token->type == OP_OPEN_CHAR_CLASS)
5064                ch = re_string_fetch_byte_case (regexp);
5065              else
5066                ch = re_string_fetch_byte (regexp);
5067              if (re_string_eoi(regexp))
5068                return REG_EBRACK;
5069              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5070                break;
5071              elem->opr.name[i] = ch;
5072            }
5073
5074         2011-11-29 Andreas Schwab <schwab@redhat.com>
5075         * lib/regcomp.c (build_equiv_class):
5076         Fix access after end of search string in regex matcher.
5077
5078         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5079         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5080
5081         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5082         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5083
5084         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5085         * lib/regcomp.c (parse_branch, parse_sub_exp):
5086         More regex memory leak fixes and tests.
5087         (parse_sub_exp, parse_bracket_exp):
5088         Fix memory leak for some invalid regular expressions.
5089
5090         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5091         * lib/regex_internal.c, lib/regexec.c:
5092         Fix unnecessary overallocation due to incomplete character.  When
5093         incomplete characters are found at the end of a string the code
5094         ran amok and allocated lots of memory.  Stricter limits are now in
5095         place.
5096
5097         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5098         * lib/regex.h: Update documentation.
5099
5100         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5101         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5102
5103         2010-05-05 Andreas Schwab <schwab@redhat.com>
5104         * lib/regexec.c (find_collation_sequence_value):
5105         Fix lookup of collation sequence value during regexp matching.
5106
5107         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5108         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5109
5110         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5111         * lib/regex.h: Cleanup namespace.
5112
5113         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5114         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5115
5116         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5117         * lib/regex_internal.h: Prevent some declarations and definitions
5118         to be seen when used in tests.
5119
5120         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5121         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5122         __libc_lock_* macros if not _LIBC.
5123         (struct re_dfa_t): Add lock.
5124
5125 2012-02-07  Eric Blake  <eblake@redhat.com>
5126
5127         maint.mk: also prohibit lower-case @var@
5128         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5129         lower case, like @top_srcdir@.
5130
5131 2012-02-04  Eric Blake  <eblake@redhat.com>
5132
5133         canonicalize: avoid uninitialized memory use
5134         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5135         random '/' left in dest.
5136         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5137
5138 2012-02-04  Bruno Haible  <bruno@clisp.org>
5139
5140         isatty: Fix test failure of ptsname_r on native Windows.
5141         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5142         and don't set errno.
5143         (isatty): Test first whether fd is valid. Set errno when returning 0.
5144
5145 2012-02-04  Bruno Haible  <bruno@clisp.org>
5146
5147         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5148         * tests/test-spawn-pipe-main.c: Include progname.h.
5149         (main): Invoke set_program_name.
5150         * modules/spawn-pipe-tests (Depends-on): Add progname.
5151
5152         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5153         * tests/test-nonblocking-socket-main.c: Include progname.h.
5154         (main): Invoke set_program_name.
5155         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5156
5157         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5158         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5159         (main): Invoke set_program_name.
5160         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5161
5162 2012-02-04  Eric Blake  <eblake@redhat.com>
5163
5164         canonicalize-lgpl: fix // handling
5165         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5166
5167         canonicalize: fix // handling
5168         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5169         /// to //, since only // is special.
5170
5171 2012-02-04  Bruno Haible  <bruno@clisp.org>
5172
5173         ioctl: Fix test failure on native Windows.
5174         * lib/ioctl.c: Include msvc-nothrow.h.
5175         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5176
5177 2012-02-04  Bruno Haible  <bruno@clisp.org>
5178
5179         fsync: Avoid test failure on native Windows.
5180         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5181         read-only.
5182
5183 2012-02-04  Bruno Haible  <bruno@clisp.org>
5184
5185         sys_select: Avoid syntax error on OpenBSD 5.0.
5186         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5187         currently being included, just include the system's <sys/select.h>.
5188
5189 2012-02-04  Bruno Haible  <bruno@clisp.org>
5190
5191         sys_select: Avoid syntax error on OpenBSD 5.0.
5192         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5193         <sys/select.h>, not before.
5194         Reported by Jiri B <jirib@devio.us>.
5195
5196 2012-02-04  Bruno Haible  <bruno@clisp.org>
5197
5198         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5199         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5200         global variables.
5201         * tests/test-get-rusage-data.c (main): Likewise.
5202         Reported by Jim Meyering.
5203
5204 2012-02-04  Bruno Haible  <bruno@clisp.org>
5205
5206         stdioext: Fix last commit.
5207         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5208
5209 2012-02-03  Bruno Haible  <bruno@clisp.org>
5210
5211         stdioext: Add tentative support for Plan9.
5212         * lib/stdio-impl.h: Include <errno.h>.
5213         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5214         * lib/freadable.c (freadable): Likewise.
5215         * lib/fwritable.c (fwritable): Likewise.
5216         * lib/fbufmode.c (fbufmode): Likewise.
5217         * lib/freading.c (freading): Likewise.
5218         * lib/fwriting.c (fwriting): Likewise.
5219         * lib/freadptr.c (freadptr): Likewise.
5220         * lib/freadseek.c (freadptrinc): Likewise.
5221         * lib/freadahead.c (freadahead): Likewise.
5222         * lib/fpurge.c (fpurge): Likewise.
5223         * lib/fseeko.c (rpl_fseeko): Likewise.
5224         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5225         Reported by Jens Staal <staal1978@gmail.com>.
5226
5227 2012-02-02  Jim Meyering  <meyering@redhat.com>
5228
5229         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5230         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5231         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5232         not even to try to add the attribute.  Instead, add a pragma to suppress
5233         the suggestion/warning.
5234
5235 2012-01-31  Karl Berry  <karl@gnu.org>
5236
5237         setstate doc: typo.
5238         * doc/posix-functions/setstate.texi (setstate): { not (.
5239
5240 2012-01-31  Bruno Haible  <bruno@clisp.org>
5241
5242         popen: Make more robust on Windows.
5243         * lib/popen.c: On native Windows, use the _popen based code even if
5244         HAVE_POPEN is set.
5245         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5246         environment variable on native Windows.
5247
5248 2012-01-30  Bruno Haible  <bruno@clisp.org>
5249
5250         pclose: Fix typo.
5251         * lib/stdio.in.h (pclose): Fix typo in warning message.
5252
5253 2012-01-30  Bruno Haible  <bruno@clisp.org>
5254
5255         doc about getlogin_r, setstate.
5256         * doc/posix-functions/getlogin_r.texi: List the incompatible
5257         declaration problem under "not fixed by gnulib".
5258         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5259         problem on Solaris 11 and other platforms.
5260
5261 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5262             Bruno Haible  <bruno@clisp.org>
5263
5264         poll tests: Make test more robust.
5265         * tests/test-poll.c: Include macros.h.
5266         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5267         return value of various I/O operations.
5268         * modules/poll-tests (Files): Add tests/macros.h.
5269
5270 2012-01-30  Bruno Haible  <bruno@clisp.org>
5271
5272         sys_stat: Fix support for mingw64 and MSVC.
5273         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5274         header files already do it.
5275         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5276         stat itself.
5277         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5278
5279 2012-01-30  Bruno Haible  <bruno@clisp.org>
5280
5281         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5282         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5283         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5284
5285 2012-01-29  Bruno Haible  <bruno@clisp.org>
5286
5287         quotearg: Fix test failure on MacOS X 10.5.
5288         * tests/test-quotearg-simple.c: Include localcharset.h.
5289         (main): If the locale encoding is not ASCII, bypass the tests of
5290         locale_quoting_style and clocale_quoting_style.
5291         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5292
5293 2012-01-29  Jim Meyering  <meyering@redhat.com>
5294
5295         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5296         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5297         detect uses of canonicalize_file_name.
5298
5299 2012-01-28  Bruno Haible  <bruno@clisp.org>
5300
5301         test-framework-sh: Fix test failure with AIX 7.1 diff.
5302         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5303         in column 1, like 'diff -c' does.
5304         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5305         whether 'diff -u' is used. Instead, test whether the output contains
5306         some '@' character.
5307
5308 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5309
5310         strtoimax: eliminate need for stdint.h, inttypes.h checks
5311         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5312         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5313         the prerequisites for a recently-introduced strtoimax test.
5314         I guess this might cause strtoimax to be replaced when not
5315         strictly necessary on older hosts, but this shouldn't introduce
5316         any bugs and it should make Emacs 'configure' faster on typical
5317         modern hosts.  Problem discovered when importing the latest gnulib
5318         to an Emacs test version.
5319         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5320
5321 2012-01-28  Bruno Haible  <bruno@clisp.org>
5322
5323         sys_time: Override 'struct timeval' on some native Windows platforms.
5324         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5325         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5326         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5327         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5328         needs to be overridden.
5329         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5330         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5331         * tests/test-sys_select.c: Check that the tv_sec member has the same
5332         size as a 'time_t'.
5333         * tests/test-sys_time.c: Likewise.
5334         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5335         is set, set also REPLACE_GETTIMEOFDAY.
5336         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5337         convert the resulting 'struct timeval' before returning.
5338         * lib/select.c: Include <sys/time.h>.
5339         (select, timeval): Undefine at the right place.
5340         * modules/select (Depends-on): Add sys_time.
5341         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5342         some Windows platforms.
5343         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5344
5345 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5346
5347         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5348         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5349         an integer.
5350         * lib/fcntl.c (dupfd): Likewise.
5351         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5352
5353 2012-01-28  Bruno Haible  <bruno@clisp.org>
5354
5355         fcntl: Avoid compilation error on native Windows.
5356         * modules/fcntl (Depends-on): Add 'close'.
5357
5358 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5359
5360         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5361         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5362         pointer to an integer.
5363         * lib/poll.c (IsConsoleHandle): Likewise.
5364         * lib/isatty.c (IsConsoleHandle): Likewise.
5365
5366 2012-01-28  Jim Meyering  <meyering@redhat.com>
5367
5368         doc: clarify README-release
5369         * top/README-release: Clarify: you should make a point to have
5370         the latest stable versions of build tools in your PATH, and the
5371         reference to buildreq is solely for its list of tool names, not
5372         for its minimal-functional version numbers.
5373         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5374
5375         maint.mk: use more readable (yet functionally equivalent) quoting
5376         It is common to quote a single quote in a single quoted string like
5377         this:  '...'\''...'.  Unless you know the idiom, that looks like
5378         gibberish, so prefer to double-quote the string when possible.
5379         Then you can use a more readable, lone single quote: "...'..."
5380         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5381         "don't" is more readable than the equivalent 'don'\''t'.
5382         (sc_cast_of_x_alloc_return_value): Likewise.
5383         (sc_cast_of_alloca_return_value): Likewise.
5384         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5385         rather than '\'':'\''.
5386
5387 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5388
5389         stdalign: relax _Alignof and tighten _Alignas test
5390         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5391         as it was too strict: alignof must divide offsetof, but it need
5392         not equal offsetof.  Inspired by Joseph S. Myers's comment
5393         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5394         Conversely, tighten the _Alignas test a bit, as the resulting
5395         alignment must be exactly 8.
5396
5397 2012-01-27  Bruno Haible  <bruno@clisp.org>
5398
5399         stdalign: Document the last change.
5400         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5401
5402 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5403
5404         stdalign: check that alignof and offsetof are consistent
5405         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5406         Problem reported for gnulib by Richard W.M. Jones in
5407         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5408
5409 2012-01-27  Jim Meyering  <meyering@redhat.com>
5410
5411         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5412         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5413         convert a sequence with gaps to the minimal containing range.
5414         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5415         * tests/test-update-copyright.sh: Test for this.
5416         The FSF confirmed it is ok to do this, assuming there is at
5417         least one significant change per year in the affected range:
5418         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5419
5420 2012-01-26  Bruno Haible  <bruno@clisp.org>
5421
5422         pipe2: refine doc about thread-safety
5423         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5424         multithread-safety problem.
5425         * doc/glibc-functions/accept4.texi: Likewise.
5426
5427 2012-01-26  Bruno Haible  <bruno@clisp.org>
5428
5429         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5430         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5431         In the test program, include <fcntl.h>, for O_RDONLY.
5432
5433 2012-01-26  Eric Blake  <eblake@redhat.com>
5434
5435         pipe2: document lack of thread-safety in replacement
5436         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5437         issue in replacement.
5438         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5439         Based on a report by Eric Wong.
5440
5441 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5442             Bruno Haible  <bruno@clisp.org>
5443
5444         malloca: Avoid warnings on x86_64 mingw64.
5445         * lib/malloca.c: Include <stdint.h>.
5446         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5447         * modules/malloca (Depends-on): Add stdint.
5448         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5449
5450 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5451
5452         obstack: remove __STDC__ conditionals
5453         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5454         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5455         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5456         m4/include_next.m4 as the only gnulib-maintained places that still
5457         refer to __STDC__.
5458
5459 2012-01-24  Bruno Haible  <bruno@clisp.org>
5460
5461         havelib: Modern quoting.
5462         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5463         the recent change to the GNU coding standards.
5464
5465 2012-01-24  Bruno Haible  <bruno@clisp.org>
5466
5467         stdint: Improve support for Android.
5468         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5469         Reported by Simon Josefsson <simon@josefsson.org>.
5470
5471 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5472
5473         doc: omit trailing empty lines from INSTALL etc.
5474         * doc/Makefile (INSTALL): Omit trailing empty lines.
5475         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5476         omit trailing empty lines.  This simplifies the build procedure.
5477
5478 2012-01-23  Jim Meyering  <meyering@redhat.com>
5479
5480         tests: avoid spurious warnings about gl_sockets_startup
5481         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5482         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5483         reporting a "statement with no effect".
5484         * tests/test-accept.c (main): Mark as "(void)".
5485         * tests/test-accept4.c (main): Likewise.
5486         * tests/test-bind.c (main): Likewise.
5487         * tests/test-connect.c (main): Likewise.
5488         * tests/test-getpeername.c (main): Likewise.
5489         * tests/test-getsockname.c (main): Likewise.
5490         * tests/test-getsockopt.c (main): Likewise.
5491         * tests/test-listen.c (main): Likewise.
5492         * tests/test-recv.c (main): Likewise.
5493         * tests/test-recvfrom.c (main): Likewise.
5494         * tests/test-send.c (main): Likewise.
5495         * tests/test-sendto.c (main): Likewise.
5496         * tests/test-setsockopt.c (main): Likewise.
5497         * tests/test-shutdown.c (main): Likewise.
5498
5499 2012-01-21  Bruno Haible  <bruno@clisp.org>
5500
5501         locale-fr.m4: Fix for Android.
5502         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5503         failure of the test program on Bionic libc.
5504
5505 2012-01-21  Jim Meyering  <meyering@redhat.com>
5506
5507         bootstrap: fail when bootstrap_post_import_hook fails
5508         Otherwise, it's far too easy to miss diagnostics emitted
5509         between gnulib-tool's output and that of running configure.
5510         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5511
5512 2012-01-17  Jim Meyering  <meyering@redhat.com>
5513
5514         maint: enable sc_trailing_blank
5515         * build-aux/pmccabe.css: Remove trailing blanks.
5516         * doc/acl-cygwin.txt: Likewise.
5517         * doc/gnu-oids.texi: Likewise
5518         * cfg.mk: Enable sc_trailing_blank.
5519         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5520
5521 2012-01-17  Jim Meyering  <meyering@redhat.com>
5522
5523         maint: enable sc_prohibit_openat_without_use
5524         * cfg.mk: Enable sc_prohibit_openat_without_use.
5525         Exempt lib/selinux-at.c.
5526
5527 2012-01-17  Jim Meyering  <meyering@redhat.com>
5528
5529         maint: enable sc_prohibit_cloexec_without_use
5530         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5531         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5532
5533 2012-01-17  Jim Meyering  <meyering@redhat.com>
5534
5535         maint: enable sc_prohibit_intprops_without_use
5536         * cfg.mk: Enable sc_prohibit_intprops_without_use
5537         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5538
5539 2012-01-17  Jim Meyering  <meyering@redhat.com>
5540
5541         maint: enable sc_prohibit_hash_pjw_without_use
5542         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5543         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5544         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5545         following " (".
5546
5547 2012-01-17  Jim Meyering  <meyering@redhat.com>
5548
5549         maint: enable double-word-prohibiting rule
5550         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5551         Exempt three files.
5552
5553 2012-01-17  Jim Meyering  <meyering@redhat.com>
5554
5555         maint: remove empty lines at EOF, but excluding modules/*
5556         Apply syntax rules at home as well as abroad.  Most changes
5557         were induced by running this:
5558           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5559             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5560             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5561         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5562         Exempt modules/* and two binary files.
5563         Also exempt doc/INSTALL*, per request from Bruno Haible.
5564         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5565         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5566         * doc/Copyright/request-assign.future: Likewise.
5567         * doc/Copyright/request-disclaim.changes: Likewise.
5568         * doc/INSTALL: Likewise.
5569         * doc/INSTALL.ISO: Likewise.
5570         * doc/INSTALL.UTF-8: Likewise.
5571         * doc/acl-cygwin.txt: Likewise.
5572         * doc/acl-resources.txt: Likewise.
5573         * doc/fdl-1.2.texi: Likewise.
5574         * doc/fdl-1.3.texi: Likewise.
5575         * doc/fdl.texi: Likewise.
5576         * lib/argp-pin.c: Likewise.
5577         * lib/round.c: Likewise.
5578         * lib/unicase/u16-totitle.c: Likewise.
5579         * lib/unictype/block_test.c: Likewise.
5580         * lib/uninorm/canonical-decomposition.c: Likewise.
5581         * m4/README: Likewise.
5582         * m4/relocatable-lib.m4: Likewise.
5583         * tests/test-isnand-nolibm.c: Likewise.
5584         * tests/test-isnand.c: Likewise.
5585         * tests/uninorm/NormalizationTest.txt: Likewise.
5586
5587 2012-01-17  Jim Meyering  <meyering@redhat.com>
5588
5589         maint: add framework to run syntax-check rules against gnulib sources
5590         * cfg.mk: New file, to disable all currently-failing tests.
5591         We'll enable them one by one, as they are made to pass.
5592         * Makefile (sc_maint): New rule.
5593
5594 2012-01-21  Bruno Haible  <bruno@clisp.org>
5595
5596         stdint: Add support for Android.
5597         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5598         include the system's <stdint.h>.
5599         Reported by Simon Josefsson <simon@josefsson.org>.
5600
5601 2012-01-19  Jim Meyering  <meyering@redhat.com>
5602
5603         bootstrap: add bootstrap_post_import_hook
5604         Bison does still need something like the gnulib_mk_hook whose
5605         invocation I had to remove along with slurp in commit 767ccd40.
5606         Technically, we could get along without it, but doing so would
5607         have required living with a warning and a mandatory post-bootstrap
5608         automake rerun.
5609         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5610         (bootstrap_post_import_hook): New function.
5611         Invoke it after gnulib-tool --import and before autoreconf.
5612
5613 2012-01-18  Jim Meyering  <meyering@redhat.com>
5614
5615         gitlog-to-changelog: don't use "no_"-prefixed variable name
5616         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5617         to enable both --cluster and --no-cluster.  Change variable name,
5618         s/\$no_cluster/$cluster/, and reverse usage to match.
5619
5620         gitlog-to-changelog: use "||", not "or" in expressions
5621         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5622         expressions.
5623
5624 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5625
5626         gitlog-to-changelog: new option --no-cluster
5627         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5628         clustering of adjacent commit messages.
5629
5630 2012-01-17  Jim Meyering  <meyering@redhat.com>
5631
5632         maint: spell file systems with two words, not one
5633         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5634         two words, not one.
5635
5636 2012-01-16  Jim Meyering  <meyering@redhat.com>
5637
5638         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5639         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5640
5641 2012-01-16  Eric Blake  <eblake@redhat.com>
5642
5643         bootstrap: cater to autoconf 2.59
5644         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5645         is not available.
5646
5647         bootstrap: properly check for libtool
5648         * build-aux/bootstrap (libtoolize): Also run libtool when older
5649         usage is detected.
5650
5651 2012-01-15  Bruno Haible  <bruno@clisp.org>
5652
5653         Improve support for MSVC 9.
5654         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5655         clashes on MSVC.
5656         * lib/fcntl.in.h: Likewise.
5657         * lib/stdlib.in.h: Likewise.
5658         * lib/sys_stat.in.h: Likewise.
5659
5660 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5661
5662         gnupload: we hold the master copy of this script now
5663         For motivation and more information, see:
5664         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5665         * build-aux/gnupload: Make it clear in the heading comments that the
5666         master copy of this file is maintained by gnulib.  Since we are at
5667         it, bump its copyright year and ...
5668         ($scriptversion): ... the date in its version.
5669         ($usage): Patches and bug reports should be sent to the gnulib list,
5670         not the automake one.
5671         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5672         anymore.
5673
5674 2012-01-15  Bruno Haible  <bruno@clisp.org>
5675
5676         Fix module 'random'.
5677         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5678         initstate, setstate are declared.
5679
5680 2012-01-14  Bruno Haible  <bruno@clisp.org>
5681
5682         Tests for module 'random'.
5683         * modules/random-tests: New file.
5684         * tests/test-random.c: New file, based on tests/test-random_r.c.
5685
5686         New module 'random'.
5687         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5688         declarations.
5689         * lib/random.c: New file, based on glibc/stdlib/random.c.
5690         * m4/random.m4: New file.
5691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5692         HAVE_RANDOM.
5693         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5694         * modules/random: New file.
5695         * config/srclist.txt: Add an entry for random.c.
5696         * doc/posix-functions/random.texi: Mention the 'random' module.
5697         * doc/posix-functions/initstate.texi: Likewise.
5698         * doc/posix-functions/setstate.texi: Likewise.
5699         * doc/posix-functions/srandom.texi: Likewise.
5700
5701 2012-01-12  Bruno Haible  <bruno@clisp.org>
5702
5703         random_r: Use common idioms.
5704         * lib/random_r.c: Include <stdlib.h> first.
5705
5706         random_r: Override incompatible API on AIX, OSF/1.
5707         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5708         Override the system function if REPLACE_RANDOM_R is 1.
5709         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5710         and OSF/1, set REPLACE_RANDOM_R.
5711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5712         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5713         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5714         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5715         * doc/glibc-functions/random_r.texi: Likewise.
5716         * doc/glibc-functions/setstate_r.texi: Likewise.
5717
5718         random_r: Support for MSVC 9.
5719         * lib/random_r.c: Include stdint.h, not inttypes.h.
5720
5721 2012-01-12  Eric Blake  <eblake@redhat.com>
5722
5723         inet_ntop: guard extra work by IF_LINT
5724         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5725         better code generation when not checking for warnings.
5726         Suggested by Paul Eggert and Jim Meyering.
5727
5728         strptime: fix regression on mingw
5729         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5730         Fix regression.  Reported by Bruno Haible.
5731
5732 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5733             Bruno Haible  <bruno@clisp.org>
5734
5735         copy-file: add error-code-returning variant.
5736         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5737         (qcopy_file_preserving): New declaration.
5738         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5739         copy_file_preserving. Change return type to 'int'. Don't emit an error
5740         message here.
5741         (copy_file_preserving): New function.
5742         * tests/test-copy-file.c: Include <stdlib.h>.
5743         (main): Test qcopy_file_preserving if the environment variable
5744         NO_STDERR_OUTPUT is set.
5745         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5746         with NO_STDERR_OUTPUT
5747         * tests/test-copy-file-2.sh: Likewise.
5748
5749 2012-01-10  Bruno Haible  <bruno@clisp.org>
5750
5751         copy-file: Use 'quote' module consistently.
5752         * lib/copy-file.c (copy_file_preserving): Use quote().
5753
5754         copy-file: Refactor.
5755         * lib/copy-file.c: Include quote.h.
5756         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5757         message here.
5758         * modules/copy-file (Depends-on): Add quote.
5759
5760         acl: Export qcopy_acl.
5761         * lib/acl.h (qcopy_acl): New declaration.
5762         * lib/copy-acl.c (qcopy_acl): Make non-static.
5763
5764         acl: Rename a local variable.
5765         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5766
5767         acl: Align return values of copy_acl and qcopy_acl.
5768         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5769         maybe < -1.
5770
5771 2012-01-11  Eric Blake  <eblake@redhat.com>
5772
5773         strptime: silence gcc warnings
5774         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5775         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5776         Reported by Daniel P. Berrange.
5777
5778         inet_ntop: silence gcc warning
5779         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5780         Reported by Daniel P. Berrange.
5781
5782 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5783
5784         getloadavg test: skip the test on GNU/Linux without /proc mounted
5785         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5786         file.  When /proc is not mounted, it always fails with ENOENT.
5787         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5788         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5789
5790 2012-01-10  Bruno Haible  <bruno@clisp.org>
5791
5792         regex: Avoid link error on MSVC 9.
5793         * modules/regex (Depends-on): Add wctype.
5794
5795 2012-01-10  Bruno Haible  <bruno@clisp.org>
5796
5797         doc: Mention --with-tests option.
5798         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5799         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5800         --with-tests.
5801         Reported by Reuben Thomas.
5802
5803 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5804
5805         users.txt: order package names lexicographically.
5806         * users.txt: Order package names lexicographically.
5807
5808 2012-01-10  Jim Meyering  <meyering@redhat.com>
5809
5810         maint.mk: fix description in comment
5811         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5812
5813         ignore-value: remove deprecated ignore_ptr function
5814         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5815         * NEWS: Note this.
5816
5817 2012-01-09  Jim Meyering  <meyering@redhat.com>
5818
5819         test-init.sh: avoid a subshell
5820         * tests/test-init.sh: Remove protective subshell.
5821         Suggested by Bernhard Voelker.  While a subshell is normally
5822         required to protect against older shells (Solaris, FreeBSD) that
5823         warn about a missing program before performing redirection, the
5824         shell-selection tests performed by init.sh probably exclude any
5825         offending shell.
5826
5827 2012-01-08  Bruno Haible  <bruno@clisp.org>
5828
5829         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5830         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5831         variable.
5832
5833 2012-01-08  Bruno Haible  <bruno@clisp.org>
5834
5835         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5836         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5837         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5838         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5839         macro.
5840         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5841         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5842         * lib/spawn_faction_addopen.c: Add workaround implementation if
5843         HAVE_WORKING_POSIX_SPAWN.
5844         * modules/spawn (Makefile): Substitute
5845         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5846         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5847         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5848         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5849         (Depends-on): Update conditions.
5850         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5851         the Solaris 11 bug.
5852
5853 2012-01-08  Bruno Haible  <bruno@clisp.org>
5854
5855         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5856         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5857         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5858         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5859         macro.
5860         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5861         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5862         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5863         HAVE_WORKING_POSIX_SPAWN.
5864         * modules/spawn (Makefile): Substitute
5865         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5866         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5867         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5868         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5869         (Depends-on): Update conditions.
5870         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5871         the Solaris 11 bug.
5872
5873 2012-01-08  Bruno Haible  <bruno@clisp.org>
5874
5875         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5876         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5877         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5878         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5879         HAVE_WORKING_POSIX_SPAWN.
5880         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5881         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5882         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5883         * lib/spawn_faction_addclose.c: Add workaround implementation if
5884         HAVE_WORKING_POSIX_SPAWN.
5885         * modules/spawn (Makefile): Substitute
5886         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5887         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5888         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5889         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5890         (Depends-on): Update conditions.
5891         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5892         the Solaris 11 bug.
5893
5894 2012-01-08  Bruno Haible  <bruno@clisp.org>
5895
5896         doc: Update for Solaris 11 2011-11.
5897         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5898         * m4/printf.m4: Update comments.
5899
5900 2012-01-08  Bruno Haible  <bruno@clisp.org>
5901
5902         mktime: Avoid compilation error on Solaris 11.
5903         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5904
5905 2012-01-08  Bruno Haible  <bruno@clisp.org>
5906
5907         doc: Small fix.
5908         * doc/posix-headers/nl_types.texi: Correct platforms list.
5909
5910 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5911
5912         Add lgpl-3.0 module.
5913         * MODULES.html.sh (Support for building documentation): Add
5914         lgpl-3.0.
5915         * modules/lgpl-3.0: New file.
5916
5917 2012-01-08  Jim Meyering  <meyering@redhat.com>
5918
5919         select.c: indent with spaces, not TABs
5920         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5921
5922 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5923
5924         quotearg: do not use grave accent for left quote
5925         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5926         locale_quoting_style.
5927         (quotearg_buffer_restyled): Fix example.
5928         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5929
5930 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5931
5932         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5933         Most programs do not have translation catalogs for English and much
5934         less separate catalogs for British and American English.  Drop the
5935         suggestion to translators about these two, and provide it
5936         automatically for Unicode locales.  Like most programs, even those
5937         using American English, we use single quotation marks.  This conflicts
5938         with the American typographic convention, but works better when you
5939         cite the entire error message within double quotes.  It also tries not
5940         to clash with established practice and with what non-gnulib programs
5941         will usually do.
5942         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5943         using an UTF-8 or GB-18030 locale.  The list of other locales with
5944         quotes was provided by Bruno Haible.
5945         (quotearg_buffer_restyled): Adjust instructions to translators.
5946         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5947         text, since this would be wrong when using Unicode.
5948         * modules/quotearg: Depend on c-strcaseeq.
5949
5950 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5951
5952         quotearg: fix Wikipedia link
5953         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5954
5955 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5956
5957         Fix for mingw with MSVC9.
5958         * m4/ld-version-script.m4: Check that compiler rejects version
5959         scripts with syntax errors.  Reported by Bruno Haible
5960         <bruno@clisp.org>.
5961
5962 2012-01-06  Bruno Haible  <bruno@clisp.org>
5963
5964         Talk about "native Windows API", not "Woe32".
5965         * lib/accept4.c: Update comments to mention native Windows.
5966         * lib/execute.c: Likewise.
5967         * lib/fatal-signal.c: Likewise.
5968         * lib/localcharset.c: Likewise.
5969         * lib/nanosleep.c: Likewise.
5970         * lib/nl_langinfo.c: Likewise.
5971         * lib/pclose.c: Likewise.
5972         * lib/pipe-filter-gi.c: Likewise.
5973         * lib/pipe-filter-ii.c: Likewise.
5974         * lib/pipe.c: Likewise.
5975         * lib/pipe2.c: Likewise.
5976         * lib/popen.c: Likewise.
5977         * lib/progreloc.c: Likewise.
5978         * lib/relocatable.c: Likewise.
5979         * lib/sigaction.c: Likewise.
5980         * lib/sigprocmask.c: Likewise.
5981         * lib/spawn-pipe.h: Likewise.
5982         * lib/spawn-pipe.c: Likewise.
5983         * lib/spawni.c: Likewise.
5984         * lib/stat-time.h: Likewise.
5985         * lib/w32spawn.h: Likewise.
5986         * tests/test-isatty.c: Likewise.
5987         * lib/config.charset: More comments.
5988         * doc/gnulib-intro.texi: Mention native Windows.
5989         * doc/posix-functions/_Exit_C99.texi: Likewise.
5990         * doc/posix-headers/fcntl.texi: Likewise.
5991
5992 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5993
5994         argp: Avoid crash if translator uses % characters in a translation.
5995         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5996         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5997
5998 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5999
6000         doc: C11 and C++11 are now official
6001         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6002         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6003         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6004         * modules/stdalign:
6005         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6006
6007 2012-01-06  Bruno Haible  <bruno@clisp.org>
6008
6009         uc-is-grapheme-break tests: Tweak.
6010         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6011         message.
6012
6013 2012-01-06  Bruno Haible  <bruno@clisp.org>
6014
6015         test-init.sh: correct the test for diff -u
6016         * tests/test-init.sh: Also redirect stdout to /dev/null.
6017
6018 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6019
6020         Use ', not `, for quoting output.
6021         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6022         (print_changelog_deltas, get_tool_versions, main program):
6023         * build-aux/git-version-gen:
6024         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6025         * build-aux/move-if-change (help):
6026         * build-aux/useless-if-before-free (usage, main program):
6027         * check-module (parse_module_file, usage)
6028         (find_included_lib_files, check_module):
6029         * lib/argmatch.c (main) [TEST]:
6030         * lib/argp-help.c (_help):
6031         * lib/getopt1.c (main) [TEST]:
6032         * lib/git-merge-changelog.c (usage):
6033         * lib/xstrtol-error.c (xstrtol_error):
6034         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6035         * m4/argz.m4 (gl_FUNC_ARGZ):
6036         * m4/bison.m4 (gl_BISON):
6037         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6038         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6039         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6040         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6041         * m4/gc-random.m4 (gl_GC_RANDOM):
6042         * m4/intl.m4 (gt_CHECK_DECL):
6043         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6044         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6045         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6046         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6047         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6048         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6049         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6050         * tests/test-dirname.c (main):
6051         * tests/test-getpass.c (main):
6052         * tests/test-iconvme.c (main):
6053         * tests/test-parse-datetime.c (LOG):
6054         * tests/test-xstrtoimax.sh:
6055         * tests/test-xstrtol.sh:
6056         * tests/test-xstrtoll.sh:
6057         * tests/test-xstrtoumax.sh:
6058         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6059         * top/GNUmakefile (abort-due-to-no-makefile):
6060         Quote 'like this', not `like this', as per the recent change to
6061         the GNU coding standards.
6062
6063 2012-01-05  Bruno Haible  <bruno@clisp.org>
6064
6065         strtoimax: Don't force a replacement on systems where intmax_t is int.
6066         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6067         'intmax_t' is not larger than 'int'.
6068         Reported by Pádraig Brady <P@draigBrady.com>.
6069
6070 2012-01-05  Bruno Haible  <bruno@clisp.org>
6071
6072         doc: Mention NetBSD bugs.
6073         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6074         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6075
6076 2012-01-05  Bruno Haible  <bruno@clisp.org>
6077
6078         strtoumax tests: Enhance tests.
6079         * tests/test-strtoumax.c (main): Add tests for large values.
6080
6081 2012-01-05  Bruno Haible  <bruno@clisp.org>
6082
6083         strtoimax: Work around AIX 5.1 bug.
6084         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6085         definition.
6086         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6087         Set HAVE_STRTOIMAX.
6088         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6089         REPLACE_STRTOIMAX.
6090         * modules/inttypes-incomplete (Makefile.am): Substitute
6091         REPLACE_STRTOIMAX.
6092         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6093         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6094         (Depends-on): Update conditions.
6095         * tests/test-strtoimax.c (main): Add tests for large values.
6096         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6097
6098 2012-01-05  Bruno Haible  <bruno@clisp.org>
6099
6100         inttypes: Modernize.
6101         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6102         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6103         (Makefile.am): Update inttypes.h rule.
6104
6105 2012-01-05  Jim Meyering  <meyering@redhat.com>
6106
6107         init.sh: don't waste a subshell just to redirect stderr
6108         * tests/init.sh: In testing for diff -u and diff -c, use a
6109         stderr-redirecting exec inside `...` rather than a subshell.
6110
6111         test-init.sh: avoid failure on HP-UX 11.00
6112         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6113         resolves to diff -c or cmp.  Reported by Bruno Haible.
6114
6115 2012-01-05  Bruno Haible  <bruno@clisp.org>
6116
6117         Tests for module 'strtoull'.
6118         * modules/strtoull-tests: New file.
6119         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6120
6121 2012-01-05  Bruno Haible  <bruno@clisp.org>
6122
6123         Tests for module 'strtoll'.
6124         * modules/strtoll-tests: New file.
6125         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6126
6127 2012-01-05  Bruno Haible  <bruno@clisp.org>
6128
6129         Tests for module 'strtoul'.
6130         * modules/strtoul-tests: New file.
6131         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6132
6133 2012-01-05  Bruno Haible  <bruno@clisp.org>
6134
6135         Tests for module 'strtol'.
6136         * modules/strtol-tests: New file.
6137         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6138
6139 2012-01-04  Jim Meyering  <meyering@redhat.com>
6140
6141         test-init.sh: accommodate Solaris 5.10's different diff -u output
6142         * tests/test-init.sh: Also exempt @@ lines from the comparison
6143         of diff output, since Solaris 5.10 and GNU diff formats differ.
6144         Reported by Stefano Lattarini.
6145
6146 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6147
6148         test-posixtm: don't assume signed integer wraparound
6149         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6150         after signed integer overflow.  Inspired by (though it may not
6151         fix) Bruno Haible's bug report in
6152         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6153
6154         Spell out "Windows 9x" and "Windows XP".
6155         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6156         "Windows 9x" and "WinXP" with "Windows XP".
6157
6158 2012-01-04  Jim Meyering  <meyering@redhat.com>
6159
6160         test-vc-list-files-cvs.sh: remove obsolete comment
6161         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6162         double exit.  Now that's all encapsulated via skip_ and Exit.
6163
6164 2012-01-04  Bruno Haible  <bruno@clisp.org>
6165
6166         Talk about "native Windows API", not "Win32".
6167         * lib/classpath.c: Update comments to mention native Windows.
6168         * lib/csharpexec.c: Likewise.
6169         * lib/dup2.c: Likewise.
6170         * lib/error.c: Likewise.
6171         * lib/fcntl.c: Likewise.
6172         * lib/filename.h: Likewise.
6173         * lib/findprog.c: Likewise.
6174         * lib/get-rusage-as.c: Likewise.
6175         * lib/get-rusage-data.c: Likewise.
6176         * lib/getpagesize.c: Likewise.
6177         * lib/javaexec.c: Likewise.
6178         * lib/msvc-inval.c: Likewise.
6179         * lib/msvc-nothrow.c: Likewise.
6180         * lib/nanosleep.c: Likewise.
6181         * lib/nonblocking.c: Likewise.
6182         * lib/printf-parse.c: Likewise.
6183         * lib/setlocale.c: Likewise.
6184         * lib/sigaction.c: Likewise.
6185         * lib/strerror_r.c: Likewise.
6186         * lib/tmpdir.c: Likewise.
6187         * lib/vasnprintf.c: Likewise.
6188         * lib/w32spawn.h: Likewise.
6189         * lib/waitpid.c: Likewise.
6190         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6191         * m4/locale-ar.m4: Likewise.
6192         * m4/locale-fr.m4: Likewise.
6193         * m4/locale-ja.m4: Likewise.
6194         * m4/locale-tr.m4: Likewise.
6195         * m4/locale-zh.m4: Likewise.
6196         * m4/printf.m4: Likewise.
6197         * tests/test-cloexec.c: Likewise.
6198         * tests/test-copy-acl.sh: Likewise.
6199         * tests/test-copy-file.sh: Likewise.
6200         * tests/test-file-has-acl.sh: Likewise.
6201         * tests/test-set-mode-acl.sh: Likewise.
6202         * tests/test-dup-safer.c: Likewise.
6203         * tests/test-dup2.c: Likewise.
6204         * tests/test-dup3.c: Likewise.
6205         * tests/test-fcntl.c: Likewise.
6206         * tests/test-nonblocking-pipe.h: Likewise.
6207         * tests/test-nonblocking-socket.h: Likewise.
6208         * tests/test-pipe.c: Likewise.
6209         * tests/test-pipe2.c: Likewise.
6210         * tests/test-spawn-pipe-child.c: Likewise.
6211         * doc/acl-resources.txt: Likewise.
6212         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6213         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6214         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6215         * lib/localcharset.c: Update comments to mention native Windows.
6216         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6217         * lib/localename.c: Likewise.
6218         * lib/progreloc.c: Likewise.
6219         * lib/relocatable.c: Likewise.
6220         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6221         (windows_compute_revents): Renamed from win32_compute_revents.
6222         (windows_compute_revents_socket): Renamed from
6223         win32_compute_revents_socket.
6224         * lib/select.c: Update comments to mention native Windows.
6225         (windows_poll_handle): Renamed from win32_poll_handle.
6226         * m4/threadlib.m4: Update comments to mention native Windows.
6227         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6228         --enable-threads=windows instead of --enable-threads=win32. Set
6229         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6230         * lib/glthread/lock.h: Update comments to mention native Windows.
6231         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6232         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6233         USE_WIN32_THREADS.
6234         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6235         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6236         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6237         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6238         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6239         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6240         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6241         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6242         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6243         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6244         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6245         * tests/test-tls.c: Likewise.
6246         Rationale:
6247         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6248         on both 32-bit and 64-bit Windows systems.
6249         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6250         line of distinction is between "native Windows" on one side and Unix/
6251         POSIX systems on the other side. More details in
6252         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6253         Suggested by Paul Eggert.
6254
6255 2012-01-03  Bruno Haible  <bruno@clisp.org>
6256
6257         isatty: Support for MSVC 9.
6258         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6259         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6260         (_isatty_nothrow): New function.
6261         (isatty): Use it instead of _isatty.
6262         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6263         * lib/poll.c (IsConsoleHandle): Likewise.
6264         * lib/select.c (IsConsoleHandle): Likewise.
6265         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6266         (gl_PREREQ_ISATTY): New macro.
6267         * modules/isatty (Depends-on): Add msvc-inval.
6268         (configure.ac): Invoke gl_PREREQ_ISATTY.
6269
6270 2012-01-03  Jim Meyering  <meyering@redhat.com>
6271
6272         maint.mk: remove temporary transition aid from over 1.5 years ago
6273         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6274         purpose was to aid in the transition (avoiding silent malfunction)
6275         from that old name to the new _sc_search_regexp.  This shim was
6276         added by commit 219c504b.
6277
6278         init.sh: do not try to accommodate compare arguments starting with "-"
6279         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6280         compare arguments that start with "-".  Besides, we do not worry
6281         about this when invoking diff or cmp; why start now with sed?
6282         Using "--" to separate options from argument would trigger sed
6283         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6284         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6285
6286 2012-01-02  Bruno Haible  <bruno@clisp.org>
6287
6288         Enhance tests for module 'isatty'.
6289         * modules/isatty-tests (Depends-on): Add pipe-posix.
6290         * tests/test-isatty.c: Include <fcntl.h>.
6291         (DEV_NULL): New macro.
6292         (main): Test the resut of isatty() also on regular files, pipes, and
6293         /dev/null.
6294
6295         New module 'isatty'.
6296         * lib/unistd.in.h (isatty): New declaration.
6297         * lib/isatty.c: New file, based on an idea of
6298         Bastien Roucariès <roucaries.bastien@gmail.com>.
6299         * m4/isatty.m4: New file.
6300         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6301         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6302         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6303         REPLACE_ISATTY.
6304         * modules/isatty: New file.
6305         * doc/posix-functions/isatty.texi: Mention the new module.
6306         Suggested by Paolo Bonzini.
6307
6308 2012-01-02  Bruno Haible  <bruno@clisp.org>
6309
6310         canonicalize: Tweak 2011-12-29 commit.
6311         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6312         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6313
6314 2012-01-02  Jim Meyering  <meyering@redhat.com>
6315
6316         gitlog-to-changelog: describe input syntax in --help output
6317         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6318
6319         gitlog-to-changelog: fix typo in --help: show backslash before email @
6320         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6321         in sources, but not in actual output.
6322
6323 2011-12-30  Jim Meyering  <meyering@redhat.com>
6324
6325         gitlog-to-changelog: don't malfunction when name contains %-directive
6326         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6327         in a name string cause trouble.  E.g., with a user name of "%s",
6328         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6329
6330 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6331
6332         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6333         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6334         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6335         the "  (tiny change)" notation that is appended to the standard
6336         ChangeLog "date  name  email" header line.
6337
6338 2012-01-01  Jim Meyering  <meyering@redhat.com>
6339
6340         test-framework-sh: init.sh: fix "make dist" failure
6341         When using gnulib-tool's --with-tests option and any module that
6342         depends on test-framework-sh, "make dist" would fail due to the
6343         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6344         in the gltests directory, and not in the gllib/ directory.
6345         One way to work around that is to move the EXTRA_DIST += init.sh
6346         from the primary module to the -tests one:
6347         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6348         * modules/test-framework-sh (Makefile.am): ...not here.
6349         Reported by Tom G. Christensen in
6350         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6351
6352         version-etc: update copyright year reported by --version
6353         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6354
6355 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6356
6357         canonicalize: only stat() if required
6358         * lib/canonicalize.c (canonicalize_filename_mode):
6359         Avoid calling l?stat() when both CAN_MISSING,
6360         and CAN_NOLINKS are set, as we neither need
6361         to resolve symlinks or test component existence.
6362
6363 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6364
6365         doc: cover st_ino issues once; add OpenVMS etc.
6366         * doc/posix-functions/stat.texi (stat):
6367         * doc/posix-functions/lstat.texi (lstat):
6368         * doc/posix-functions/fstatat.texi (fstatat):
6369         * doc/posix-functions/fstat.texi (fstat):
6370         Move general 'struct stat' stuff to sys_stat.texi,
6371         leaving behind a pointer.
6372         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6373         Merge duplicate info about 'struct stat' problems into here.
6374         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6375         and suggest partial workarounds.
6376
6377         same-inode: port to OpenVMS
6378         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6379         three st_ino values.
6380
6381 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6382
6383         canonicalize: fix references to stat() and lstat()
6384         * lib/canonicalize.c (canonicalize_filename_mode):
6385         Ensure references always resolve to a replacement
6386         function if required (even via a macro).
6387
6388 2011-12-30  Jim Meyering  <meyering@redhat.com>
6389
6390         gitlog-to-changelog: remove a little duplication
6391         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6392         rather than twice.
6393
6394 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6395
6396         canonicalize: add support for not resolving symlinks
6397         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6398         indicate we don't want to follow symlinks.  Also
6399         provide CAN_MODE_MASK to aid setting these existing
6400         mutually exclusive values.
6401         * lib/canonicalize.c (canonicalize_filename_mode):
6402         Extract the flags from can_mode parameter, which
6403         are currently just used to select between stat()
6404         and lstat().  Also ensure that mutually exclusive
6405         values are flagged immediately as invalid.
6406         * tests/test-canonicalize.c: Verify symlinks are
6407         not followed, and that invalid flag combinations
6408         are diagnosed.
6409
6410 2011-12-25  Jim Meyering  <meyering@redhat.com>
6411
6412         gitlog-to-changelog: do not clump multi-paragraph entries
6413         Identical header lines (date,name,email+coauthors) are suppressed,
6414         thus putting all entries with those same characteristics under
6415         a single header.  However, when a log entry consists of two or
6416         more paragraphs, it may not be clear where it starts and ends.
6417         This change makes it so that such an entry is always separated
6418         from others by a header line, even when that header would
6419         otherwise be suppressed.
6420         * build-aux/gitlog-to-changelog: Implement the above.
6421         Inspired by a related request from Stefano Lattarini in
6422         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6423
6424 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6425
6426         announce-gen: fix `cmd' typo in diagnostic
6427         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6428         diagnostic: a missing '$' meant that the command was not output.
6429
6430 2011-12-23  Jim Meyering  <meyering@redhat.com>
6431
6432         test-framework-sh: distribute init.sh
6433         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6434         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6435         fail due to the lack of init.sh.
6436
6437         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6438         * modules/atexit-tests: Rather than listing tests/init.sh,
6439         now that there's a module for it, simply depend on that new module.
6440         * modules/closein-tests: Likewise.
6441         * modules/exclude-tests: Likewise.
6442         * modules/getcwd-tests: Likewise.
6443         * modules/perror-tests: Likewise.
6444         * modules/pread-tests: Likewise.
6445         * modules/pwrite-tests: Likewise.
6446         * modules/vc-list-files-tests: Likewise.
6447         * modules/verify-tests: Likewise.
6448         * modules/xalloc-die-tests: Likewise.
6449         * modules/xstrtoimax-tests: Likewise.
6450         * modules/xstrtol-tests: Likewise.
6451         * modules/xstrtoll-tests: Likewise.
6452         * modules/xstrtoumax-tests: Likewise.
6453         * modules/yesno-tests: Likewise.
6454
6455 2011-12-22  Jim Meyering  <meyering@redhat.com>
6456
6457         test-framework-sh: add minimal tests of init.sh's compare function
6458         * modules/test-framework-sh-tests: New file.
6459         * tests/test-init.sh: New file.
6460
6461         test-framework-sh: new module
6462         * modules/test-framework-sh: New file.
6463         * MODULES.html.sh (Support for maintaining and releasing projects):
6464         List it.
6465
6466         init.sh: do not emit simulated diff output to stderr
6467         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6468
6469 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6470
6471         .gitignore: ignore gnulib.dvi and regex.info
6472         * doc/.gitignore:add gnulib.dvi and regex.info
6473
6474 2011-12-22  Jim Meyering  <meyering@redhat.com>
6475
6476         init.sh: correct previous change
6477         * tests/init.sh (compare): My previous change was wrong.
6478         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6479
6480         init.sh: avoid unwarranted test failure when using "set -e"
6481         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6482         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6483         a use like "compare exp out" would get evoke an unconditional failure.
6484
6485 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6486
6487         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6488         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6489         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6490         autoreconf that did not.
6491         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6492         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6493
6494 2011-12-17  Jim Meyering  <meyering@redhat.com>
6495
6496         bootstrap: remove some now-unneeded code
6497         This script arose back when gnulib-tool was young.
6498         Since then, it has seen improvements that render much of this
6499         script unnecessary.  In particular, it can now make symlinks
6500         to the files it uses.  Also, I no longer see as much value in
6501         marking files as read-only via comments.
6502         If you relied on the symlink-creation feature of the preceding
6503         version of this script, you can get most of that functionality
6504         by adding the --symlink option to the definition of
6505         gnulib_tool_option_extras in your bootstrap.conf file.
6506         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6507         Run autopoint and libtoolize *before* gnulib-tool.
6508         After it, run an abbreviated autoreconf, rather than a loop around
6509         all tools.
6510         (slirp, bt_mark_as_generated): Remove functions.
6511
6512 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6513
6514         ftoastr: fix typo
6515         * lib/ftoastr.h: Fix misspelling in comment.
6516
6517 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6518
6519         * top/README-release: fix punctuation.
6520
6521 2011-12-17  Jim Meyering  <meyering@redhat.com>
6522
6523         bootstrap: correct the recent buildreq change
6524         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6525         had no effect.
6526         * build-aux/bootstrap (buildreq): Bracket each search term with
6527         "*...*", so that the shell "case" statement works as intended.
6528         Add comments.
6529
6530 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6531
6532         build: let bootstrap resort to wget when downloading .po files
6533         * build-aux/bootstrap (download_po_files): Fallback to wget when
6534         downloading the .po files via rsync fails.  This is necessary to
6535         bootstrap from behind a strict firewall.
6536
6537 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6538
6539         stdint: don't assume C++11 when compiling with g++
6540         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6542         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6543         work also in C++ before C++11, as that improperly inhibits
6544         generating a substitute stdint.h for that case.
6545
6546 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6547
6548         alloca: protect comment from gnulib-tool
6549         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6550         that gnulib-tool doesn't think it's a license, and munge it to
6551         say "GCC version 3".
6552
6553 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6554
6555         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6556         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6557         $(abs_top_builddir) instead of $(top_builddir).
6558
6559 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6560
6561         strftime-tests: also test nanoseconds
6562         * tests/test-strftime.c (T): Add a test of %N.
6563
6564 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6565
6566         inttypes, stdint: add C++11 support
6567         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6568         when including inttypes.h and stdint.h.  Support this change to
6569         the standard.
6570         * doc/posix-headers/inttypes.texi (inttypes.h):
6571         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6572         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6573         Define if not defined already, for the benefit of pre-C++11 hosts.
6574         Define the standard format macros (e.g., PRId8) always.
6575         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6576         Likewise, if __cpluspus.  Define the standard constant and limit
6577         macros (e.g., INT8_C, INT8_MAX) always.
6578         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6579         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6580         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6581         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6582         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6583         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6584         Likewise.
6585
6586 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6587
6588         nonblocking tests: Fix test failure on Linux/PPC.
6589         Suggested by Prerna Saxena in
6590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6591         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6592         Set to 1100000.
6593
6594 2011-12-12  Jim Meyering  <meyering@redhat.com>
6595
6596         argmatch: don't hard-code `' when listing valid option arguments
6597         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6598         use the quote function to add quotes.  Use fputs rather than
6599         fprintf for the format string with no format directive.
6600
6601 2011-12-07  Eric Blake  <eblake@redhat.com>
6602
6603         bootstrap: detect tools required by gnulib-tool
6604         * build-aux/bootstrap (buildreq): Provide minimum implicit
6605         dependencies.
6606         * DEPENDENCIES: Mention patch as a prereq.
6607
6608 2011-12-04  Bruno Haible  <bruno@clisp.org>
6609
6610         sethostname: Port to Windows platforms.
6611         * lib/sethostname.c: Provide an alternate implementation for Windows
6612         platforms.
6613         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6614         (main): Skip the test if sethostname() fails with EPERM. On Windows
6615         platforms, don't check the result of gethostname().
6616
6617 2011-12-04  Bruno Haible  <bruno@clisp.org>
6618             Jim Meyering  <meyering@redhat.com>
6619
6620         tests: Avoid spurious error message on platforms without mktemp program.
6621         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6622
6623 2011-12-04  Bruno Haible  <bruno@clisp.org>
6624
6625         sethostname: Fix documentation.
6626         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6627         "not fixed" section.
6628
6629 2011-12-03  Bruno Haible  <bruno@clisp.org>
6630
6631         gnulib-tool: Verify that the License field is present and non-empty.
6632         * gnulib-tool (func_get_license_raw): New function, extracted from
6633         func_get_license.
6634         (func_get_license): Use it. Warn if the module is not a test module and
6635         has no license.
6636         Suggested by Jim Meyering.
6637
6638 2011-12-03  Bruno Haible  <bruno@clisp.org>
6639
6640         sethostname tests: Fix link error on mingw.
6641         * tests/test-sethostname1.c: New file, extracted from
6642         tests/test-sethostname.c.
6643         * tests/test-sethostname2.c: New file, extracted from
6644         tests/test-sethostname.c.
6645         * tests/test-sethostname.c: Remove file.
6646         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6647         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6648         (Depends-on): Add gethostname.
6649         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6650         Link the latter with $(GETHOSTNAME_LIB).
6651
6652         sethostname tests: Fix compilation error on mingw.
6653         * tests/test-sethostname.c: Don't include <sys/types.h>.
6654         (geteuid): Use a dummy value without uid_t.
6655         * modules/sethostname-tests (Depends-on): Remove sys_types.
6656
6657         sethostname tests: Avoid a gcc warning.
6658         * tests/test-sethostname.c (main): Remove an unused variable.
6659
6660         Tweak last commit.
6661         * modules/sethostname-tests (Files): Sort by decreasing importance.
6662         (configure.ac): Check for geteuid.
6663         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6664         the test when there's nothing to test. Drop an unnecessary cast.
6665         Improve an error message. Verify that the final sethostname() call
6666         succeeds.
6667
6668 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6669
6670         Add a test suite for the sethostname module.
6671         * modules/sethostname-tests: New file.  A test program
6672         for the sethostname module.
6673         * tests/test-sethostname.c: Likewise.
6674
6675 2011-12-03  Bruno Haible  <bruno@clisp.org>
6676
6677         Tweak last commit.
6678         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6679         Fix preprocessor directives indentation. Fix typos.
6680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6681         * modules/unistd (Makefile): Likewise.
6682
6683 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6684
6685         Integrate the sethostname module into unistd.
6686         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6687         into the unistd.h header.
6688         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6689         preprocessor directives.
6690         * modules/unistd: Setup the Makefile substitutions of the
6691         SETHOSTNAME preprocessor directives.
6692
6693 2011-12-03  Bruno Haible  <bruno@clisp.org>
6694
6695         Tweak last commit.
6696         * lib/sethostname.c: Don't include <string.h>.
6697         (sethostname): No need to copy the argument string to the stack. Don't
6698         call clearerr. Preserve errno when fprintf failed.
6699         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6700         Don't invoke AC_REPLACE_FUNCS.
6701         * modules/sethostname (Link): Remove empty section.
6702         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6703         failure problem.
6704
6705 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6706
6707         New module 'sethostname'.
6708         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6709         for systems that lack it.
6710         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6711         sethostname declaration and function.
6712         * modules/sethostname: New file.  Define the sethostname module.
6713
6714 2011-12-03  Bruno Haible  <bruno@clisp.org>
6715
6716         Tweak last commit.
6717         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6718
6719 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6720
6721         Split the HOST_NAME_MAX detection into a separate m4 macro.
6722         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6723         macro so it can be used by the pending sethostname module.
6724
6725 2011-12-03  Bruno Haible  <bruno@clisp.org>
6726
6727         Fix module descriptions syntax.
6728         * modules/argv-iter (License): Fix syntax.
6729         * modules/di-set (License): Likewise.
6730         * modules/ino-map (License): Likewise.
6731         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6732
6733 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6734
6735         stdalign: port to Clang 3.0
6736         Problem reported by Simon Josefsson in
6737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6738         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6739         which has <stdalign.h> but which does not define alignof.
6740         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6741
6742 2011-12-01  Eric Blake  <eblake@redhat.com>
6743
6744         mktempd: silence dd usage
6745         * build-aux/mktempd (rand_bytes): Silence dd.
6746
6747 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6748
6749         manywarnings: Don't mention gcc version in docstring.
6750         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6751         Jim Meyering <meyering@redhat.com>.
6752
6753 2011-11-30  Jim Meyering  <meyering@redhat.com>
6754
6755         hash: mark a few floating point constants with "f" suffix
6756         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6757         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6758         floating point constants with "f", since they're destined to be
6759         saved/used as "float"s.
6760
6761 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6762
6763         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6764         * tests/test-float.c (test_long_double): Correct and re-enable the
6765         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6766
6767 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6768
6769         Avoid subtracting two pointers that don't point into the same block.
6770         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6771         only pointers into the same memory block are subtracted. We cannot
6772         assume that sizeof (ptrdiff_t) == sizeof (void *).
6773
6774 2011-11-29  Eric Blake  <eblake@redhat.com>
6775
6776         maint.mk: add syntax check for use of compare from init.sh
6777         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6778         moved here from coreutils.
6779
6780         manywarnings: drop -Wunsuffixed-float-constants
6781         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6782         '1.0D', which is the only way to silence this warning for 'double'.
6783
6784 2011-11-29  Jim Meyering  <meyering@redhat.com>
6785
6786         hash: mark compute_bucket_size with the pure attribute
6787         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6788
6789         quotearg, propername: correct pragma guard expression
6790         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6791         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6792
6793 2011-11-28  Jim Meyering  <meyering@redhat.com>
6794
6795         propername: do not mark proper_name with the const attribute
6796         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6797         since it examines data pointed to by its parameter.
6798         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6799         the suggestion from -Wsuggest-attribute=const.
6800
6801         propername: mark one more function as const
6802         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6803
6804 2011-11-27  Jim Meyering  <meyering@redhat.com>
6805
6806         mark functions with const and pure attributes
6807
6808         Mark functions per suggestions from gcc-4.6 when using these options:
6809         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6810         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6811         Follow these guidelines: when possible, apply the attribute to
6812         an extern declaration, not to its definition.  Apply it to the
6813         definition only when the definition is static.
6814         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6815         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6816         * lib/base64.h (isbase64): Likewise.
6817         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6818         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6819         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6820         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6821         (c_tolower, c_toupper): Likewise.
6822         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6823         * lib/chdir-long.c (find_non_slash): Likewise.
6824         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6825         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6826         * lib/file-type.h (file_type): Likewise.
6827         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6828         * lib/filevercmp.c (verrevcmp): Likewise.
6829         * lib/freadahead.h (freadahead): Likewise.
6830         * lib/fts.c (fts_maxarglen): Likewise.
6831         * lib/hash-pjw.h (hash_pjw): Likewise.
6832         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6833         * lib/hash.c (is_prime, next_prime): Likewise.
6834         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6835         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6836         (hash_table_ok, hash_get_first, hash_string): Likewise.
6837         (compute_bucket_size): Likewise.
6838         * lib/i-ring.h (i_ring_empty): Likewise.
6839         * lib/isnan.c (isnanl): Likewise.
6840         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6841         * lib/memcasecmp.h (memcasecmp): Likewise.
6842         * lib/memchr2.h (memchr2): Likewise.
6843         * lib/memcmp2.h (memcmp2): Likewise.
6844         * lib/parse-datetime.y (lookup_zone): Likewise.
6845         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6846         [!WINDOWS_SOCKETS]: Likewise.
6847         * lib/strnlen1.h (strnlen1): Likewise.
6848         * lib/uniwidth.in.h (uc_width): Likewise.
6849         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6850         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6851         (quoting_options_from_style): Add a comment.
6852         * lib/propername.h (proper_name): Add a comment.
6853
6854 2011-11-27  Bruno Haible  <bruno@clisp.org>
6855
6856         Remove unused macros from !_LIBC code in glibc-borrowed files.
6857         * lib/fnmatch.c (STRCOLL): Remove macro.
6858         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6859         * lib/glob.c (__stat, __readdir64): Remove macros.
6860         * lib/tempname.c (__open64, __xstat64): Remove macros.
6861         Suggested by Paul Eggert.
6862
6863 2011-11-27  Bruno Haible  <bruno@clisp.org>
6864
6865         getcwd: Fix link error on MSVC 9.
6866         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6867
6868 2011-11-27  Bruno Haible  <bruno@clisp.org>
6869
6870         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6871         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6872         HAVE_OPENDIR is 0.
6873         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6874         HAVE_CLOSEDIR is 0.
6875         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6876         is 0.
6877         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6878
6879 2011-11-27  Bruno Haible  <bruno@clisp.org>
6880
6881         getcwd: Fix bug from 2011-08-17.
6882         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6883         platforms that need it.
6884         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6885         code of 4 to be a failure, not a success. This ensures that
6886         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6887
6888 2011-11-27  Bruno Haible  <bruno@clisp.org>
6889
6890         binary-io tests: Avoid test failure on mingw when libtool is used.
6891         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6892         Don't verify the size of t-bin-out1.tmp here.
6893         * tests/test-binary-io.sh: Verify it here.
6894         Reported by Simon Josefsson.
6895
6896 2011-11-26  Bruno Haible  <bruno@clisp.org>
6897
6898         Fix conflict between two instantiations of module 'unistd'.
6899         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6900         ${include_guard_prefix} also in the autoconf snippet.
6901         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6903         GNULIB_UNISTD_H_GETOPT.
6904         * modules/getopt-posix (configure.ac): Set the
6905         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6906         * modules/getopt-gnu (configure.ac): Likewise.
6907         * modules/unistd (Makefile.am): Change the substitution value of
6908         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6909         Reported by Simon Josefsson.
6910
6911 2011-11-25  Bruno Haible  <bruno@clisp.org>
6912
6913         pagealign_alloc: Doc and comments.
6914         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6915         module.
6916         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6917
6918 2011-11-25  Jim Meyering  <meyering@redhat.com>
6919
6920         test-update-copyright.sh: avoid false-positive failure
6921         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6922         around false positive failure on Cygwin/Windows.  The latter was
6923         matching erroneously-created files with names like
6924         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6925
6926 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6927
6928         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6929         * m4/valgrind-tests.m4: Check that the parameters that will be
6930         used works, not just a subset of them.  Reported by Bruno Haible
6931         <bruno@clisp.org>.
6932
6933 2011-11-24  Jim Meyering  <meyering@redhat.com>
6934
6935         test-stdalign.c: comment out long double tests
6936         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6937         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6938         error: '_Alignas' specifiers cannot reduce alignment of \
6939         'static_longdouble_alignas'.
6940
6941 2011-11-22  Jim Meyering  <meyering@redhat.com>
6942
6943         init.sh: make "compare /dev/null FILE" output more readable
6944         * tests/init.sh (compare_): Document the preferred order of arguments.
6945         (emit_diff_u_header_): New function.
6946         (compare_dev_null_): Emit a simulated diff, rather than just the
6947         contents of the unexpected file.  Suggestion from Bruno Haible.
6948
6949 2011-11-21  Jim Meyering  <meyering@redhat.com>
6950             Eric Blake  <eblake@redhat.com>
6951
6952         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6953         * tests/init.sh: Make our compare function slightly more portable.
6954         Reported by Bruno Haible in
6955         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6956
6957 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6958
6959         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6960         before using it, in code that ends up in config.h.
6961
6962 2011-11-20  Bruno Haible  <bruno@clisp.org>
6963
6964         getcwd: Work around getcwd bug on AIX 5..7.
6965         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6966         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6967         Use a different value for gl_cv_func_getcwd_path_max. Move the
6968         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6969         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6970         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6971         Define HAVE_MINIMALLY_WORKING_GETCWD.
6972         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6973         where it is not even minimally working, that is, on AIX.
6974         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6975         m4/getcwd-path-max.m4.
6976         (main): Update exit code computation.
6977         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6978         getcwd does not handle long file names.
6979
6980 2011-11-20  Bruno Haible  <bruno@clisp.org>
6981
6982         getcwd: Fix bug from 2009-09-10.
6983         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6984         like "no".
6985
6986 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6987
6988         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6989
6990 2011-11-20  Bruno Haible  <bruno@clisp.org>
6991
6992         fma tests: Avoid shadowing local variables.
6993         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6994         expected.
6995
6996 2011-11-20  Bruno Haible  <bruno@clisp.org>
6997
6998         copysignf tests: Fix.
6999         * tests/test-copysignf.c: Fix signature check.
7000
7001 2011-11-20  Bruno Haible  <bruno@clisp.org>
7002
7003         fma: Remove unused code.
7004         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7005         unused macros.
7006
7007 2011-11-20  Bruno Haible  <bruno@clisp.org>
7008
7009         sethostname: Fix doc about AIX.
7010         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7011         sethostname; it has it.
7012
7013         sethostname: Mention more portability problems.
7014         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7015         problem.
7016         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7017
7018 2011-11-19  Bruno Haible  <bruno@clisp.org>
7019
7020         Depend on module fcntl-h when AT_FDCWD is used.
7021         * modules/utimens (Depends-on): Add fcntl-h.
7022         * modules/areadlinkat (Depends-on): Likewise.
7023         * modules/areadlinkat-with-size (Depends-on): Likewise.
7024         * modules/faccessat (Depends-on): Likewise.
7025         * modules/fchmodat (Depends-on): Likewise.
7026         * modules/fchownat (Depends-on): Likewise.
7027         * modules/getcwd (Depends-on): Likewise.
7028         * modules/mkdirat (Depends-on): Likewise.
7029         * modules/mkfifoat (Depends-on): Likewise.
7030         * modules/readlinkat (Depends-on): Likewise.
7031         * modules/symlinkat (Depends-on): Likewise.
7032         * modules/dup2-tests (Depends-on): Likewise.
7033         * modules/fdutimensat-tests (Depends-on): Likewise.
7034         * modules/futimens-tests (Depends-on): Likewise.
7035
7036 2011-11-19  Bruno Haible  <bruno@clisp.org>
7037
7038         euidaccess: Update a comment.
7039         * lib/euidaccess.c: Update comment about platforms with faccessat.
7040
7041 2011-11-19  Bruno Haible  <bruno@clisp.org>
7042
7043         openat: Fix file list.
7044         * modules/openat (Files): Remove lib/at-func.c.
7045
7046 2011-11-19  Bruno Haible  <bruno@clisp.org>
7047
7048         fstatat: Simplify.
7049         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7050         gnulib should define rpl_fstatat, there is a
7051         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7052
7053 2011-11-19  Bruno Haible  <bruno@clisp.org>
7054
7055         Ensure 'inline' can be used in tests/test-utimens-common.h.
7056         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7057         * modules/futimens-tests (configure.ac): Likewise.
7058         * modules/utimens-tests (configure.ac): Likewise.
7059         * modules/utimensat-tests (configure.ac): Likewise.
7060
7061 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7062
7063         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7064         not hash_insert0.
7065         (hash_insert_if_absent): Doc fix.
7066
7067 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7068
7069         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7070
7071 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7072
7073         test-getcwd: disambiguate exit status
7074         * tests/test-getcwd.c (test_long_name): Return 0..7.
7075         (main): Exit with an unambiguous exit status.  The old
7076         code yielded a mysterious mixture of two failure codes.
7077
7078         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7079         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7080         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7081         rpl_fstatat or fstatat.  This should fix the other problem
7082         reported by Kai Habel in
7083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7084         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7086         and I reproduced it on a Solaris 8 host we still have in production.
7087
7088 2011-11-18  Jim Meyering  <meyering@redhat.com>
7089
7090         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7091         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7092         Add a sentence to the comment.
7093         (hash_insert0): New function that simply calls hash_insert_if_absent.
7094         * lib/hash.h (hash_insert_if_absent): Declare it.
7095         (hash_insert0): Add deprecation attribute.
7096         (_GL_ATTRIBUTE_DEPRECATED): Define.
7097         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7098         not hash_insert0.
7099         * NEWS: Mention it, even though it's not really an incompatible change.
7100
7101 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7102
7103         openat: avoid compilation failure due to lack of <errno.h> inclusion
7104         * lib/openat.c: Include <errno.h>.
7105
7106 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7107
7108         * modules/getcwd (Depends-on): Add fdopendir.
7109         This fixes one of the two problems reported by Kai Habel in
7110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7111
7112         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7113         stdalign problem reported by Ian Beckwith in
7114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7115         * modules/crypto/gc-arcfour (Depends-on):
7116         Depend conditionally on crypto/arcfour.
7117         * modules/crypto/gc-arctwo (Depends-on):
7118         Depend conditionally on crypto/arctwo.
7119         * modules/crypto/gc-des (Depends-on):
7120         Depend conditionally on crypto/des.
7121         * modules/crypto/gc-hmac-md5 (Depends-on):
7122         Depend conditionally on crypto/hmac-md5.
7123         * modules/crypto/gc-hmac-sha1 (Depends-on):
7124         Depend conditionally on crypto/hmac-sha1.
7125         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7126         * modules/crypto/gc-md4 (Depends-on):
7127         Depend conditionally on crypto/md4.
7128         * modules/crypto/gc-md5 (Depends-on):
7129         Depend conditionally on crypto/md5.
7130         * modules/crypto/gc-rijndael (Depends-on):
7131         Depend conditionally on crypto/rijndael.
7132         * modules/crypto/gc-sha1 (Depends-on):
7133         Depend conditionally on crypto/sha1.
7134         * modules/crypto/gc-arcfour:
7135         * modules/crypto/gc-arctwo:
7136         * modules/crypto/gc-des:
7137         * modules/crypto/gc-hmac-md5:
7138         * modules/crypto/gc-hmac-sha1:
7139         * modules/crypto/gc-md2:
7140         * modules/crypto/gc-md4:
7141         * modules/crypto/gc-md5:
7142         * modules/crypto/gc-rijndael:
7143         * modules/crypto/gc-sha1:
7144         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7145         now that the conditional dependencies do the work for us.
7146
7147 2011-11-17  Jim Meyering  <meyering@redhat.com>
7148
7149         tests: factor st_ctime-comparison out of two headers
7150         * tests/test-utimens-common.h (ctime_compare): Define.
7151         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7152         * tests/test-lutimens.h (test_lutimens): Likewise.
7153         * tests/test-utimens.h (test_utimens): Likewise.
7154
7155         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7156         Invoke the test program via an init.sh-using wrapper.
7157         * tests/test-getcwd.sh: New file.
7158         * modules/getcwd-tests (Files): Add it.
7159         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7160
7161 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7162
7163         gitlog-to-changelog: support multi-author commits.
7164         The FSF cares about keeping track of all authors of patches to its
7165         projects, but Git doesn't provide obvious support for multi-author
7166         changesets. Consensus seems to be forming around the use of extra
7167         Signed-off-by inspired lines in the log message formatted as
7168         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7169         multi-author commits between version control systems.
7170         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7171         log message and output in standard ChangeLog multi-author format.
7172         Reported by Peter Rosin <peda@lysator.liu.se>
7173
7174 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7175             Bruno Haible  <bruno@clisp.org>
7176
7177         Fix some modules' file list.
7178         * modules/fstatat (Files): Add m4/lstat.m4.
7179         * modules/openat (Files): Likewise.
7180         * modules/unlinkat (Files): Likewise.
7181
7182 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7183
7184         maint.mk: fix tight-scope.mk generation in VPATH builds.
7185         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7186         reference with $(srcdir) so that the file is found correctly even
7187         when running `make syntax-check' in a VPATH build.
7188
7189 2011-11-13  Bruno Haible  <bruno@clisp.org>
7190             Jim Meyering  <meyering@redhat.com>
7191
7192         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7193         * tests/init.sh (compare): Remove "No differences encountered" or
7194         synonymous output from the 'diff' program.
7195
7196 2011-11-13  Bruno Haible  <bruno@clisp.org>
7197
7198         Makefile: Tweak indentation.
7199         * Makefile: Use tab as first character in every line that contains rule
7200         commands.
7201
7202 2011-11-13  Bruno Haible  <bruno@clisp.org>
7203
7204         Syntax check for copyright statements.
7205         * check-copyright: New file.
7206         * Makefile (sc_check_copyright): New rule.
7207
7208 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7209
7210         * build-aux/git-version-gen: Add --prefix to configure the tag
7211         match string.
7212
7213 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7214
7215         * build-aux/git-version-gen: Add --help and --version.
7216
7217 2011-11-12  Jim Meyering  <meyering@redhat.com>
7218
7219         revamp the other test-exclude?.sh scripts to use init.sh, too
7220         * tests/test-exclude1.sh: Use init.sh.
7221         * tests/test-exclude2.sh: Likewise.
7222         * tests/test-exclude3.sh: Likewise.
7223         * tests/test-exclude4.sh: Likewise.
7224         * tests/test-exclude5.sh: Likewise.
7225         * tests/test-exclude6.sh: Likewise.
7226         * tests/test-exclude7.sh: Likewise.
7227         * tests/test-exclude8.sh: Likewise.
7228         * modules/exclude-tests (Files): List init.sh.
7229
7230         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7231         These shell scripts ignored failure of the binary test-exclude,
7232         so making the latter return 77 didn't cause them to be skipped.
7233         * tests/test-exclude5.sh: Exit with test-exclude's error status
7234         when that program fails.  Revamp to use init.sh.
7235         * tests/test-exclude2.sh: Likewise.
7236
7237         test-exclude: fix a typo
7238         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7239
7240 2011-11-11  Bruno Haible  <bruno@clisp.org>
7241
7242         obstack: Fix compilation error on MSVC 9.
7243         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7244
7245 2011-11-11  Jim Meyering  <meyering@redhat.com>
7246
7247         test-exclude: skip tests rather than failing on deficient systems
7248         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7249         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7250         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7251         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7252
7253 2011-11-10  Bruno Haible  <bruno@clisp.org>
7254
7255         ptsname_r test: Avoid gcc warning on glibc systems.
7256         * tests/test-ptsname_r.c (null_ptr): New function.
7257         (test_errors): Use it.
7258
7259 2011-11-10  Bruno Haible  <bruno@clisp.org>
7260
7261         ptsname_r: Avoid compilation error on OSF/1 5.1.
7262         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7264         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7265         function is not declared or incompatibly declared.
7266         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7267         * modules/ptsname_r (Depends-on, configure.ac): Update.
7268         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7269
7270 2011-11-10  Bruno Haible  <bruno@clisp.org>
7271
7272         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7273         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7274         When cross-compiling, guess yes on all platforms except AIX.
7275         Reported by Ludovic Courtès <ludo@gnu.org>.
7276
7277 2011-11-09  Bruno Haible  <bruno@clisp.org>
7278
7279         ptsname_r tests: Fix bugs.
7280         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7281         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7282
7283 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7284
7285         fstatat: work with cross-compilation
7286         Problem reported by Ludovic Courtès in
7287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7288         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7289         "cross-compiling" and assume the bug is present.  Replace
7290         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7291         an inverted sense, to be more conservative about our assumptions.
7292         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7293
7294 2011-11-09  Bruno Haible  <bruno@clisp.org>
7295
7296         Improve MODULES.html output.
7297         * modules/mkfifoat (Description): Use the word "function".
7298         * modules/readlinkat (Description): Likewise.
7299         * modules/symlinkat (Description): Likewise.
7300
7301 2011-11-09  Eric Blake  <eblake@redhat.com>
7302
7303         ptsname_r-tests: new test module
7304         * modules/ptsname_r-tests: New module.
7305         * tests/test-ptsname_r.c: New file.
7306
7307         ptsname_r: new module
7308         * modules/ptsname_r: New module.
7309         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7310         * lib/ptsname.c (__ptsname_r): Split...
7311         * lib/ptsname_r.c: ...into new file.
7312         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7313         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7314         * modules/stdlib (Makefile.am): Substitute witnesses.
7315         * lib/stdlib.in.h (ptsname_r): Declare it.
7316         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7317         * MODULES.html.sh (Misc): Likewise.
7318         * modules/ptsname (Depends-on): Alter dependency.
7319         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7320
7321 2011-11-09  Jim Meyering  <meyering@redhat.com>
7322
7323         announce-gen: be more concise when there's only one URL+tarball
7324         * build-aux/announce-gen (get_tool_versions): When you distribute
7325         only one type of tarball, combine the first two "Here are..."
7326         sections and make the key-checking grammar independent of
7327         how many tarballs there are.
7328
7329 2011-11-09  Eric Blake  <eblake@redhat.com>
7330
7331         openpty: provide a stub on mingw
7332         * lib/pty.in.h (includes): Provide forward declarations.
7333         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7334
7335         raise: fix mingw handling of SIGPIPE
7336         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7337
7338 2011-11-08  Bruno Haible  <bruno@clisp.org>
7339
7340         More conditional dependencies.
7341         * modules/faccessat (Depends-on): Add conditions.
7342         * modules/fchmodat (Depends-on): Likewise.
7343         * modules/fchownat (Depends-on): Likewise.
7344         * modules/fstatat (Depends-on): Likewise.
7345         * modules/mkfifoat (Depends-on): Likewise.
7346         * modules/readlinkat (Depends-on): Likewise.
7347         * modules/symlinkat (Depends-on): Likewise.
7348         * modules/unlinkat (Depends-on): Likewise.
7349         * modules/utimensat (Depends-on): Likewise.
7350         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7351         * modules/linkat (Depends-on): Refine the conditions.
7352         * modules/renameat (Depends-on): Likewise.
7353
7354 2011-11-08  Bruno Haible  <bruno@clisp.org>
7355
7356         faccessat: Move AC_LIBOBJ invocation to module description.
7357         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7358         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7359         invocation from here...
7360         * modules/faccessat (configure.ac): ... to here. Invoke
7361         gl_PREREQ_FACCESSAT.
7362
7363 2011-11-08  Bruno Haible  <bruno@clisp.org>
7364
7365         faccessat: Simplify autoconf macro.
7366         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7367         gl_FUNC_EUIDACCESS.
7368
7369 2011-11-08  Bruno Haible  <bruno@clisp.org>
7370
7371         renameat: Fix dependencies.
7372         * modules/renameat (Depends-on): Add stdbool.
7373
7374 2011-11-08  Bruno Haible  <bruno@clisp.org>
7375
7376         mkfifoat: Fix module description.
7377         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7378         not gl_UNISTD_MODULE_INDICATOR.
7379
7380 2011-11-08  Bruno Haible  <bruno@clisp.org>
7381
7382         fstatat: Remove unused dependency.
7383         * modules/fstatat (Depends-on): Remove fstat.
7384
7385 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7386
7387         GNUmakefile: behave when Makefile is missing.
7388         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7389
7390 2011-11-08  Bruno Haible  <bruno@clisp.org>
7391
7392         openat: Conditionalize dependencies.
7393         * lib/openat.c: Reduce the scope of some #includes.
7394         * modules/openat (Depends-on): Add conditions.
7395
7396 2011-11-07  Jim Meyering  <meyering@redhat.com>
7397
7398         maint.mk: extract GPG key ID without using a temporary file
7399         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7400         without using a temporary file.  Based on a suggestion from Werner Koch
7401         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7402
7403 2011-11-07  Eric Blake  <eblake@redhat.com>
7404
7405         grantpt: fix typo
7406         * lib/stdlib.in.h (grantpt): Check correct function.
7407
7408         maint.mk: silence new syntax check
7409         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7410
7411 2011-11-06  Bruno Haible  <bruno@clisp.org>
7412
7413         Doc about floating-point and math API.
7414         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7415         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7416
7417 2011-11-06  Bruno Haible  <bruno@clisp.org>
7418
7419         stdalign tests: Skip the test when compiled by Sun C.
7420         * tests/test-stdalign.c (main): Skip the test on Sun C.
7421
7422 2011-11-06  Bruno Haible  <bruno@clisp.org>
7423
7424         ansi-c++-opt: Complete the 2011-06-05 change.
7425         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7426         does not support namespaces, set the variable to "no", not to ":".
7427
7428 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7429
7430         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7431
7432 2011-11-06  Bruno Haible  <bruno@clisp.org>
7433
7434         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7435         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7436         (minus_zerol) [HP-UX]: New macro.
7437         (unary_minus) [HP-UX]: New function.
7438         (copysignl) [HP-UX]: Use unary_minus function.
7439
7440 2011-11-06  Bruno Haible  <bruno@clisp.org>
7441
7442         ldexp, ldexpf, ldexpl: Enhance tests.
7443         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7444         and tests/test-ldexpl.c.
7445         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7446         LDEXP, MIN_EXP, MAX_EXP): New macros.
7447         Include test-ldexp.h.
7448         (main): Just call test_function.
7449         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7450         infinity.h, nan.h.
7451         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7452         MAX_EXP): New macros.
7453         Include test-ldexp.h.
7454         (x, y): Remove variables.
7455         (main): Just call test_function.
7456         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7457         infinity.h, nan.h.
7458         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7459         MAX_EXP): New macros.
7460         Include test-ldexp.h.
7461         (x, y): Remove variables.
7462         (main): Just call test_function.
7463         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7464         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7465         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7466         (Depends-on): Add isnand-nolibm, signbit, float.
7467         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7468         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7469         (Depends-on): Add isnanf-nolibm, signbit, float.
7470
7471 2011-11-06  Bruno Haible  <bruno@clisp.org>
7472
7473         math tests: Cosmetics.
7474         * tests/test-math-c++.cc: Reorder declarations.
7475
7476 2011-11-05  Bruno Haible  <bruno@clisp.org>
7477
7478         fma*: Simplify test.
7479         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7480         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7481
7482         Tests for module 'fmal'.
7483         * modules/fmal-tests: New file.
7484         * tests/test-fmal1.c: New file.
7485         * tests/test-fmal2.c: New file.
7486
7487         New module 'fmal'.
7488         * lib/math.in.h (fmal): New declaration.
7489         * lib/fmal.c: New file.
7490         * m4/fmal.m4: New file.
7491         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7493         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7494         REPLACE_FMAL.
7495         * modules/fmal: New file.
7496         * doc/posix-functions/fmal.texi: Mention the new module and the various
7497         bugs.
7498
7499         Tests for module 'fmaf'.
7500         * modules/fmaf-tests: New file.
7501         * tests/test-fmaf1.c: New file.
7502         * tests/test-fmaf2.c: New file.
7503
7504         New module 'fmaf'.
7505         * lib/math.in.h (fmaf): New declaration.
7506         * lib/fmaf.c: New file.
7507         * m4/fmaf.m4: New file.
7508         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7510         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7511         REPLACE_FMAF.
7512         * modules/fmaf: New file.
7513         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7514         bugs.
7515
7516         Tests for module 'fma'.
7517         * modules/fma-tests: New file.
7518         * tests/test-fma1.c: New file.
7519         * tests/test-fma1.h: New file.
7520         * tests/test-fma2.c: New file.
7521         * tests/test-fma2.h: New file.
7522
7523         New module 'fma'.
7524         * lib/math.in.h (fma): New declaration.
7525         * lib/fma.c: New file.
7526         * m4/fma.m4: New file.
7527         * m4/fegetround.m4: New file.
7528         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7530         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7531         REPLACE_FMA.
7532         * modules/fma: New file.
7533         * doc/posix-functions/fma.texi: Mention the new module and the various
7534         bugs.
7535
7536         Extend gl_MATHFUNC.
7537         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7538         Support 'void' as argument type.
7539         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7540
7541 2011-11-05  Jim Meyering  <meyering@redhat.com>
7542
7543         maint.mk: also prohibit inclusion of dirent.h without use
7544         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7545
7546 2011-11-05  Bruno Haible  <bruno@clisp.org>
7547
7548         ldexpl tests: Avoid test failure on MSVC 9.
7549         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7550         value. Needed in order to enforce the conversion from a value greater
7551         than LDBL_MAX to Infinity.
7552
7553 2011-11-05  Bruno Haible  <bruno@clisp.org>
7554
7555         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7556         * modules/at-internal: New file, extracted from modules/openat.
7557         * modules/openat-h: New file.
7558         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7559         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7560         * modules/openat (Description): Add reference to POSIX function.
7561         (Files): Remove lib/openat.h, lib/openat-proc.c.
7562         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7563         intprops, unistd.
7564         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7565         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7566         gl_FCNTL_MODULE_INDICATOR.
7567         (Include): Remove unistd.h, openat.h.
7568         * modules/areadlinkat (Files): Add lib/at-func.c.
7569         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7570         openat-die, openat-h, save-cwd.
7571         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7572         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7573         openat-die, openat-h, save-cwd, unistd.
7574         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7575         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7576         openat-h, save-cwd. Remove fcntl-h, openat.
7577         * modules/fchmodat (Files): Remove lib/openat.h.
7578         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7579         openat, stdbool, unistd.
7580         * modules/fchownat (Files): Remove lib/openat.h.
7581         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7582         openat, stdbool, sys_stat.
7583         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7584         lib/openat-proc.c.
7585         (Depends-on): Add at-internal.
7586         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7587         * modules/fstatat (Files): Remove lib/openat.h.
7588         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7589         stdbool, unistd.
7590         * modules/fts (Depends-on): Add openat-h.
7591         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7592         openat.
7593         * modules/mkdirat (Files): Remove lib/openat.h.
7594         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7595         openat, stdbool, sys_stat.
7596         * modules/mkfifoat (Files): Add lib/at-func.c.
7597         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7598         openat-h, save-cwd. Remove fcntl-h, openat.
7599         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7600         * modules/readlinkat (Files): Add lib/at-func.c.
7601         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7602         openat-h, save-cwd. Remove fcntl-h, openat.
7603         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7604         openat.
7605         * modules/selinux-at (Files): Add lib/at-func.c.
7606         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7607         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7608         * modules/symlinkat (Files): Add lib/at-func.c.
7609         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7610         openat-h, save-cwd. Remove fcntl-h, openat.
7611         * modules/unlinkat (Files): Remove lib/openat.h.
7612         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7613         stdbool.
7614         * modules/utimensat (Files): Add lib/at-func.c.
7615         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7616         openat-die, openat-h, save-cwd.
7617         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7618         * modules/fdutimensat-tests (Depends-on): Add openat.
7619         * modules/fstatat-tests (Depends-on): Add openat-h.
7620         * modules/readlinkat-tests (Depends-on): Add openat.
7621         * modules/symlinkat-tests (Depends-on): Add openat.
7622
7623 2011-11-05  Bruno Haible  <bruno@clisp.org>
7624
7625         openat: Include <stdbool.h>.
7626         * lib/openat.c: Include <stdbool.h>.
7627
7628 2011-11-04  Bruno Haible  <bruno@clisp.org>
7629
7630         fchownat, renameat, unlinkat: Fix dependencies.
7631         * modules/fchownat (Depends-on): Add fstatat.
7632         * modules/renameat (Depends-on): Likewise.
7633         * modules/unlinkat (Depends-on): Likewise.
7634
7635 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7636
7637         openat: remove direct dependency on dirent
7638         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7639         and hasn't been needed ever since fdopendir was split into its own
7640         module on 2009-08-31.
7641         * modules/openat (Depends-on): Remove dirent.
7642
7643 2011-11-04  Bruno Haible  <bruno@clisp.org>
7644
7645         renameat: Optimize code size.
7646         * modules/renameat (configure.ac): Don't compile at-func2.c if
7647         REPLACE_RENAMEAT is 1.
7648
7649 2011-11-04  Bruno Haible  <bruno@clisp.org>
7650
7651         openat tests: Fix file list.
7652         * modules/openat-tests (Files): Add tests/test-open.h.
7653
7654 2011-11-04  Bruno Haible  <bruno@clisp.org>
7655
7656         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7657         * modules/fchmodat (Depends-on): Add openat-die.
7658         * modules/fchownat (Depends-on): Likewise.
7659         * modules/linkat (Depends-on): Likewise.
7660         * modules/renameat (Depends-on): Likewise.
7661         * modules/openat (Depends-on): Add dirent.
7662
7663 2011-11-04  Jim Meyering  <meyering@redhat.com>
7664
7665         at-func*.c: fix comments
7666         * lib/at-func2.c: Correct/improve first-line comment.
7667         * lib/at-func.c: Correct grammar in first-line comment.
7668
7669 2011-11-04  Bruno Haible  <bruno@clisp.org>
7670
7671         New module 'mkdirat', split off from module 'openat'.
7672         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7673         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7674         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7675         * modules/mkdirat: New file, extracted from modules/openat.
7676         * modules/openat (Files): Remove lib/mkdirat.c.
7677         (Depends-on): Remove mkdir.
7678         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7679         (Include): Remove <sys/stat.h>.
7680         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7681         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7682         tests/test-mkdir.h.
7683         (Depends-on): Remove ignore-value.
7684         (Makefile.am): Remove rules for test-mkdirat.
7685         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7686         of module 'openat'.
7687         * NEWS: Mention the change.
7688
7689 2011-11-04  Bruno Haible  <bruno@clisp.org>
7690
7691         closedir: Avoid warning on mingw.
7692         * lib/closedir.c: Include <unistd.h>.
7693
7694 2011-11-04  Bruno Haible  <bruno@clisp.org>
7695
7696         New module 'fstatat', split off from module 'openat'.
7697         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7698         defined.
7699         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7700         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7701         gl_FUNC_FSTATAT.
7702         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7703         * modules/fstatat: New file, extracted from modules/openat.
7704         * modules/openat (Files): Remove lib/fstatat.c.
7705         (Depends-on): Remove lstat.
7706         (configure.ac): Remove AC_LIBOBJ of fstatat.
7707         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7708         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7709         tests/test-lstat.h, tests/test-stat.h.
7710         (Depends-on): Remove getcwd-lgpl.
7711         (Makefile.am): Remove rules for test-fstatat.
7712         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7713         of module 'openat'.
7714         * NEWS: Mention the change.
7715         * modules/getcwd (Depends-on): Add fstatat.
7716         * modules/linkat (Depends-on): Likewise.
7717         * modules/mkfifoat-tests (Depends-on): Likewise.
7718         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7719
7720 2011-11-03  Bruno Haible  <bruno@clisp.org>
7721
7722         New module 'unlinkat', split off from module 'openat'.
7723         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7724         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7725         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7726         * modules/unlinkat: New file, extracted from modules/openat. Correct
7727         the dependency conditions.
7728         * modules/openat (Files): Remove lib/unlinkat.c.
7729         (Depends-on): Remove rmdir, unlink.
7730         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7731         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7732         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7733         tests/test-rmdir.h, tests/test-unlink.h.
7734         (Depends-on): Remove unlinkdir.
7735         (Makefile.am): Remove rules for test-unlinkat.
7736         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7737         of module 'openat'.
7738         * NEWS: Mention the change.
7739         * modules/linkat-tests (Depends-on): Add unlinkat.
7740         * modules/mkfifoat-tests (Depends-on): Likewise.
7741         * modules/readlinkat-tests (Depends-on): Likewise.
7742
7743 2011-11-02  Bruno Haible  <bruno@clisp.org>
7744
7745         New module 'fchmodat', split off from module 'openat'.
7746         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7747         defined.
7748         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7749         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7750         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7751         * modules/fchmodat: New file, extracted from modules/openat.
7752         * modules/openat (Files): Remove lib/fchmodat.c.
7753         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7754         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7755         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7756         (Makefile.am): Remove rules for test-fchmodat.
7757         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7758         of module 'openat'.
7759         * NEWS: Mention the change.
7760
7761 2011-11-02  Jim Meyering  <meyering@redhat.com>
7762
7763         putenv: indent #definition of "environ" to placate cppi
7764         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7765
7766         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7767         Git logs are often treated as immutable, because editing them
7768         changes the SHA1 checksums of all descendants.  Thus, errors in
7769         git logs tend to stay there forever.  However, when we generate
7770         a ChangeLog file -- typically for distribution -- from that git log,
7771         we can actually make corrections in the generated file.  The key
7772         lies in recording in machine-readable/applicable form the desired
7773         corrections.  See --help for description and an example.
7774         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7775         (usage): Describe it; alphabetize option descriptions.
7776         (main): Honor the new option, carefully.
7777
7778 2011-11-01  Jim Meyering  <meyering@redhat.com>
7779
7780         gitlog-to-changelog: avoid an infloop
7781         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7782         that ends up being empty.
7783
7784 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7785
7786         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7787         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7788         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7789         contains (possibly-quoted) backslashes.  This should avoid
7790         all-too-common shell bugs if COMPLICATED contains backslashes in
7791         the "wrong" places.  Reported by David Evans in
7792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7793         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7794         because we want ASCII ranges.  Is there some reason we don't use
7795         the C locale everywhere in this script?
7796         (func_module, top level): Avoid unwanted pathname expansion when
7797         $repo_url_prefix or $repo_url_suffix_repl contain shell
7798         metacharacters like '?' and '*'.
7799
7800 2011-11-01  Bruno Haible  <bruno@clisp.org>
7801
7802         fchownat: Improve description.
7803         * modules/fchownat (Description): Add link to function.
7804
7805 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7806
7807         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7808         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7810         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7811
7812 2011-11-01  Bruno Haible  <bruno@clisp.org>
7813
7814         alignof: Avoid collision with stdalign module.
7815         * lib/alignof.h (alignof): Remove macro.
7816         * NEWS: Mention the change.
7817         Reported by Paul Eggert.
7818
7819 2011-11-01  Bruno Haible  <bruno@clisp.org>
7820
7821         New module 'fchownat', split off from module 'openat'.
7822         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7823         defined.
7824         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7825         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7826         invoke gl_FUNC_FCHOWNAT.
7827         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7828         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7829         * modules/fchownat: New file, extracted from modules/openat.
7830         * modules/openat (Files): Remove lib/fchownat.c.
7831         (Depends-on): Remove lchown.
7832         (configure.ac): Remove AC_LIBOBJ of fchownat.
7833         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7834         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7835         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7836         (Depends-on): Remove mgetgroups, usleep, stat-time.
7837         (configure.ac): Remove test for getegid.
7838         (Makefile.am): Remove rules for test-fchownat.
7839         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7840         of module 'openat'.
7841         * NEWS: Mention the change.
7842
7843 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7844
7845         stdalign: port better to MSVC and to Sun C 5.11
7846         This fixes some of the problems reported by Bruno Haible in
7847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7848         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7849         shortcomings of MSVC and of Sun C 5.11.
7850         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7851         around __declspec arg.
7852         * modules/stdalign-tests (Files): Add tests/macros.h.
7853         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7854         Include macros.h, for ASSERT.
7855         (DECLARE_ALIGNED): Remove.
7856         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7857         to catch bug), and to 1 if not (simplifies the rest of the code).
7858         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7859         (CHECK_AUTO): Remove.
7860         (CHECK_ALIGNED): Check only the alignment of the static vars,
7861         since auto var alignment isn't supported by Sun C 5.11.
7862         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7863         ASSERT failures are easier to diagnose.
7864
7865 2011-10-31  Bruno Haible  <bruno@clisp.org>
7866
7867         doc about some IRIX 5.3 problems.
7868         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7869         on IRIX 5.3.
7870         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7871         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7872         5.3.
7873         * doc/posix-functions/grantpt.texi: Likewise.
7874         * doc/posix-functions/unlockpt.texi: Likewise.
7875         * doc/posix-functions/lgamma.texi: Likewise.
7876         * doc/posix-functions/nextafter.texi: Likewise.
7877         * doc/posix-functions/remainder.texi: Likewise.
7878         * doc/posix-functions/select.texi: Mention misplaced declaration on
7879         IRIX 5.3.
7880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7881
7882 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7883
7884         gitlog-to-changelog: fix git-log invocation.
7885         git-log mishandles date strings before 1970-01-01 UTC, and there is
7886         no use to specify --since=1970-01-01 by default anyway.
7887         * build-aux/gitlog-to-changelog: By default, when no --since option
7888         was given, do not specify explicit --since option to git-log.
7889
7890 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7891
7892         gitlog-to-changelog: new option --append-dot.
7893         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7894         first non-blank line of each commit message terminated with a dot.
7895
7896 2011-10-30  Bruno Haible  <bruno@clisp.org>
7897
7898         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7899         * lib/ffsl.h: Include <config.h>.
7900         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7901
7902 2011-10-30  Jim Meyering  <meyering@redhat.com>
7903
7904         GNUmakefile: reenable "make syntax-check" for most projects
7905         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7906         build-aux variable", "syntax-check" would do nothing but succeed with
7907         the "No version control files detected..." diagnostic (unless you
7908         happened to override _build-aux via cfg.mk).
7909         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7910         to precede inclusion of maint.mk.  Otherwise, these variables would
7911         be used undefined in any project that does not override the default.
7912
7913 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7914
7915         gitlog-to-changelog: treat a message with only blank lines as empty.
7916         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7917         trailing blank lines before the code that issues a warning about an
7918         empty commit message.
7919
7920 2011-10-30  Jim Meyering  <meyering@redhat.com>
7921
7922         test-parse-datetime.c: avoid new DST-related false positive test failure
7923         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7924         based on the time/date we'll convert, not the current time.
7925         Otherwise, the moment we cross a DST boundary like today's in
7926         Europe, (CEST to CET), that offset ends up being one hour off.
7927
7928 2011-10-27  Bruno Haible  <bruno@clisp.org>
7929
7930         fstat: Tweak documentation.
7931         * modules/fstat (Description): More precise description.
7932
7933 2011-10-27  Bruno Haible  <bruno@clisp.org>
7934
7935         Update documentation regarding 'largefile' module.
7936         * doc/posix-functions/fstat.texi: Tweak wording.
7937         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7938         problems with huge directories and/or small ino_t types.
7939         * doc/posix-functions/readdir.texi: Likewise.
7940         * doc/posix-functions/rewinddir.texi: Likewise.
7941
7942 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7943
7944         maint.mk: don't maintain a second build-aux variable.
7945         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7946         depends on GNUmakefile, which already maintains a cfg.mk
7947         overridable $(_build-aux) for projects with a non-standard
7948         build-aux directory location, although without the $(srcdir)
7949         prefix.  Use that variable consistently instead of introducing a
7950         second one.  Adjust all call sites.
7951
7952 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7953
7954         Add stdalign module and use it in other modules.
7955         This is based on a previous proposal by Bruno Haible
7956         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7957
7958         stdalign: new module
7959         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7960         * modules/stdalign: New files.
7961         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7962         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7963
7964         stdalign-tests: new module
7965         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7966
7967         argp: use stdalign
7968         * lib/argp-parse.c: Include <stdalign.h>.
7969         (alignof): Remove.
7970         * modules/argp (Depends-on): Add stdalign.
7971
7972         crypto libraries: use stdalign
7973         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7974         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7975         Do not include <stdlib.h> twice, in md4.c.
7976         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7977         because we are accessing a pointer's bit-pattern, not a size.
7978         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7979         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7980         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7981         * modules/crypto/sha512: Likewise.
7982
7983         sys_socket: use stdalign, not alignof
7984         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7985         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7986
7987 2011-10-27  Bruno Haible  <bruno@clisp.org>
7988
7989         raise test: Avoid a test failure on Linux/MIPS.
7990         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7991         because 99 is a valid signal on Linux/MIPS.
7992
7993 2011-10-27  Bruno Haible  <bruno@clisp.org>
7994
7995         nonblocking tests: Fix test failure on Linux/MIPS.
7996         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7997         Set to 270000.
7998
7999 2011-10-27  Bruno Haible  <bruno@clisp.org>
8000
8001         utimensat: Work around problem on Linux/hppa.
8002         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8003         values.
8004         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8005
8006 2011-10-25  Jim Meyering  <meyering@redhat.com>
8007
8008         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8009         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8010         after symbols like NULL, size_t, etc.
8011         Reported by Alfred M. Szmidt.
8012
8013         maint.mk: exempt ENODATA from a syntax-check rule
8014         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8015         from the sc_prohibit_always-defined_macros syntax-check rule.
8016         Add a comment.  See this for more details:
8017         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8018
8019 2011-10-23  Jim Meyering  <meyering@redhat.com>
8020
8021         fts: close parent dir FD before returning from post-traversal fts_read
8022         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8023         unlink A, even though an FD open on A remained.  This is suboptimal
8024         (holding a file descriptor open longer than needed), but otherwise not
8025         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8026         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8027         that represents a real problem: it causes the removal of A to fail
8028         with e.g., "rm: cannot remove `A': Device or resource busy"
8029
8030         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8031         directory file descriptors.  After completing the final, FTS_DP,
8032         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8033         cache, but then proceeded to add a new FD to it via the subsequent
8034         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8035         final file descriptor would be closed only via fts_close's call to
8036         fd_ring_clear.  Now, it is usually closed earlier, via the final
8037         FTS_DP-returning fts_read call.
8038         * lib/fts.c (restore_initial_cwd): New function, converted from
8039         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8040         Update callers.
8041         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8042         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8043
8044 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8045             Bruno Haible  <bruno@clisp.org>
8046             Jim Meyering  <jim@meyering.net>
8047
8048         readme-release: improve safety of release prep instructions.
8049         * README-release: Don't git pull all branches when only master
8050         is needed for the release process.
8051         Run make maintainer-clean before changing trees and merging.
8052         Don't try to run ./configure right after git pull in case files
8053         that influence the bootstrap process have changed, move the
8054         ./configure step to after running ./bootstrap.
8055         Don't bootstrap "one last time"... it's the first time!
8056
8057 2011-10-22  Bruno Haible  <bruno@clisp.org>
8058
8059         errno, strerror-override: Support for MSVC 10.
8060         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8061         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8062         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8063         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8064         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8065         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8066         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8067         Assign values compatible with MSVC 10.
8068         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8069         New macros.
8070         (GNULIB_defined_EWINSOCK): New macro.
8071         * lib/strerror-override.c (strerror_override): Update accordingly.
8072         * lib/strerror-override.h: Likewise.
8073         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8074         longer equal to the corresponding errno value.
8075         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8076
8077 2011-10-22  Bruno Haible  <bruno@clisp.org>
8078
8079         perror: Recognize when test program crashes.
8080         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8081         strerror, set gl_cv_func_perror_works to no.
8082         Reported by Daniel Richard G. <skunk@iskunk.org>.
8083
8084         perror: Fix indentation.
8085         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8086
8087 2011-10-22  Bruno Haible  <bruno@clisp.org>
8088
8089         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8090         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8091         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8092         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8093         functions, not as a macro.
8094         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8095         macros.
8096         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8097         absence of macro.
8098         Suggested by Eric Blake.
8099         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8100
8101 2011-10-21  Bruno Haible  <bruno@clisp.org>
8102
8103         relocatable-prog-wrapper: Don't leave object files behind.
8104         * build-aux/install-reloc: Re-synchronize list of .o files to be
8105         removed with list of compilation units.
8106
8107 2011-10-20  Bruno Haible  <bruno@clisp.org>
8108
8109         openpty, posix_openpt: Remove code duplication.
8110         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8111         * lib/openpty.c: Include <stdlib.h>.
8112         (openpty): Use posix_openpt on all platforms except IRIX.
8113         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8114
8115 2011-10-20  Bruno Haible  <bruno@clisp.org>
8116
8117         unlockpt: Detect invalid argument.
8118         * lib/unlockpt.c: Include <fcntl.h>.
8119         (unlockpt): Check whether fd is valid, using fcntl().
8120         * modules/unlockpt (Depends-on): Add fcntl-h.
8121
8122 2011-10-20  Bruno Haible  <bruno@clisp.org>
8123
8124         openpty: Avoid compilation error on AIX 6.1.
8125         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8126
8127 2011-10-20  Bruno Haible  <bruno@clisp.org>
8128
8129         posix_openpt: Support for OpenBSD.
8130         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8131         (posix_openpt) [OpenBSD]: New code.
8132         * lib/grantpt.c: Include <fcntl.h>.
8133         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8134         * modules/grantpt (Depends-on): Add fcntl-h.
8135
8136 2011-10-20  Bruno Haible  <bruno@clisp.org>
8137
8138         posix_openpt test: Coding style.
8139         * tests/test-posix_openpt.c: Use GNU coding style.
8140
8141 2011-10-20  Bruno Haible  <bruno@clisp.org>
8142
8143         grantpt: Support --avoid=pt_chown.
8144         * modules/grantpt (Files): Add lib/pty-private.h.
8145
8146 2011-10-20  Bruno Haible  <bruno@clisp.org>
8147
8148         posix_openpt: Fix autoconf macro.
8149         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8150         unneeded check for _getpty.
8151
8152 2011-10-20  Bruno Haible  <bruno@clisp.org>
8153
8154         openpty: Update comments.
8155         * lib/openpty.c: Add comments about Minix.
8156
8157 2011-10-19  Eric Blake  <eblake@redhat.com>
8158
8159         openpty: relax license
8160         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8161
8162         pt_chown: use configmake to simplify build
8163         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8164
8165         ptsname and others: relax license
8166         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8167         * modules/unlockpt (License): Likewise.
8168         * modules/pt_chown (License): Likewise.
8169         * modules/ptsname (License): Likewise.
8170         * modules/ttyname_r (License): Likewise.
8171
8172 2011-10-19  Jim Meyering  <meyering@redhat.com>
8173
8174         posix_openpt: remove spurious #endif
8175         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8176
8177 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8178
8179         maint.mk: Respect $(build_aux) in web-manual rule.
8180         * top/maint.mk (web-manual): Find gen-announce script in user's
8181         $(build_aux) directory instead of hard-coding 'build-aux'.
8182
8183 2011-10-19  Bruno Haible  <bruno@clisp.org>
8184
8185         posix_openpt: Fix compilation error.
8186         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8187         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8188         Mention the openpty module as an alternative.
8189
8190 2011-10-19  Bruno Haible  <bruno@clisp.org>
8191
8192         Support for old NeXTstep 3.3 frexp().
8193         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8194         execution time of the test to 5 seconds.
8195         Reported by Daniel Richard G. <skunk@iskunk.org>.
8196
8197 2011-10-19  Bruno Haible  <bruno@clisp.org>
8198
8199         Support for old NeXTstep 3.3 sed.
8200         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8201         part, use /.../, not \|...|. Escape periods in the header file name.
8202         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8203         Reported by Daniel Richard G. <skunk@iskunk.org>.
8204
8205 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8206
8207         Support for old NeXTstep 3.3 gcc.
8208         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8209         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8210         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8211         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8212         * lib/regex.h (_Restrict_arr_): Likewise.
8213         * lib/regex_internal.h (re_token_t): Likewise.
8214         * lib/regexec.c (check_node_accept_bytes): Likewise.
8215         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8216
8217 2011-10-18  Eric Blake  <eblake@redhat.com>
8218
8219         posix_openpt: new module
8220         * modules/posix_openpt: New module.
8221         * m4/posix_openpt.m4: New file.
8222         * lib/posix_openpt.c: Likewise.
8223         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8224         (gl_STDLIB_H_DEFAULTS): Set defaults.
8225         * modules/stdlib (Makefile.am): Substitute macros.
8226         * lib/stdlib.in.h (posix_openpt): Declare.
8227         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8228         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8229         * modules/posix_openpt-tests: New test module.
8230         * tests/test-posix_openpt.c: New test.
8231
8232 2011-10-15  Bruno Haible  <bruno@clisp.org>
8233
8234         xstrtoll: Fix compilation failure.
8235         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8236         from lib/strtol.c.
8237         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8238         some platforms.
8239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8240
8241 2011-10-15  Bruno Haible  <bruno@clisp.org>
8242
8243         vasnprintf: Optimize bit search operation.
8244         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8246         gl_DOUBLE_EXPONENT_LOCATION.
8247         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8248         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8249         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8250         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8251         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8252         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8253         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8254         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8255         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8256
8257 2011-10-15  Bruno Haible  <bruno@clisp.org>
8258
8259         vasnprintf: Fix comments.
8260         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8261
8262 2011-10-14  Bruno Haible  <bruno@clisp.org>
8263
8264         Tests for module 'integer_length_ll'.
8265         * modules/integer_length_ll-tests: New file.
8266         * tests/test-integer_length_ll.c: New file.
8267
8268         New module 'integer_length_ll'.
8269         * lib/integer_length_ll.c: New file.
8270         * modules/integer_length_ll: New file.
8271
8272 2011-10-14  Bruno Haible  <bruno@clisp.org>
8273
8274         Tests for module 'integer_length_l'.
8275         * modules/integer_length_l-tests: New file.
8276         * tests/test-integer_length_l.c: New file.
8277
8278         New module 'integer_length_l'.
8279         * lib/integer_length_l.c: New file.
8280         * modules/integer_length_l: New file.
8281
8282 2011-10-14  Bruno Haible  <bruno@clisp.org>
8283
8284         Tests for module 'integer_length'.
8285         * modules/integer_length-tests: New file.
8286         * tests/test-integer_length.c: New file.
8287
8288         New module 'integer_length'.
8289         * lib/integer_length.h: New file.
8290         * lib/integer_length.c: New file.
8291         * modules/integer_length: New file.
8292
8293 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8294
8295         popen: Fix dependency conditions.
8296         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8297
8298 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8299
8300         perror: Fix autoconf test.
8301         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8302         <stdlib.h> and <string.h>.
8303
8304 2011-10-14  Bruno Haible  <bruno@clisp.org>
8305
8306         ffsl: Optimize on 64-bit platforms.
8307         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8308         unrolling.
8309
8310 2011-10-13  Bruno Haible  <bruno@clisp.org>
8311
8312         ffsl: Optimize on 32-bit platforms.
8313         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8314         use ffs() without a loop.
8315
8316         ffsl, ffsll: Optimize for GCC.
8317         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8318         * lib/ffsl.c (GCC_BUILTIN): New macro.
8319         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8320
8321 2011-10-13  Bruno Haible  <bruno@clisp.org>
8322
8323         ffs, bcopy, memset: Support symbol renaming via config.h.
8324         * lib/ffs.c: Include <config.h>.
8325         * lib/bcopy.c: Likewise.
8326         * lib/memset.c: Likewise.
8327
8328 2011-10-10  Bruno Haible  <bruno@clisp.org>
8329
8330         atanl: Simplify for platforms where 'long double' == 'double'.
8331         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8332         alternative implementation.
8333         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8334         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8335         * modules/atanl (Depends-on): Add atan. Update conditions.
8336
8337 2011-10-10  Bruno Haible  <bruno@clisp.org>
8338
8339         acosl: Simplify for platforms where 'long double' == 'double'.
8340         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8341         alternative implementation.
8342         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8343         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8344         * modules/acosl (Depends-on): Add acos. Update conditions.
8345
8346 2011-10-10  Bruno Haible  <bruno@clisp.org>
8347
8348         asinl: Simplify for platforms where 'long double' == 'double'.
8349         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8350         alternative implementation.
8351         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8352         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8353         * modules/asinl (Depends-on): Add asin. Update conditions.
8354
8355 2011-10-10  Bruno Haible  <bruno@clisp.org>
8356
8357         tanl: Simplify for platforms where 'long double' == 'double'.
8358         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8359         implementation.
8360         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8361         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8362         * modules/tanl (Depends-on): Add tan. Update conditions.
8363         (configure.ac): Don't compile trigl.c if
8364         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8365
8366 2011-10-10  Bruno Haible  <bruno@clisp.org>
8367
8368         cosl: Simplify for platforms where 'long double' == 'double'.
8369         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8370         implementation.
8371         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8372         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8373         * modules/cosl (Depends-on): Add cos. Update conditions.
8374         (configure.ac): Don't compile sincosl.c and trigl.c if
8375         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8376
8377 2011-10-10  Bruno Haible  <bruno@clisp.org>
8378
8379         sinl: Simplify for platforms where 'long double' == 'double'.
8380         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8381         implementation.
8382         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8383         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8384         * modules/sinl (Depends-on): Add sin. Update conditions.
8385         (configure.ac): Don't compile sincosl.c and trigl.c if
8386         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8387
8388 2011-10-10  Bruno Haible  <bruno@clisp.org>
8389
8390         logl: Simplify for platforms where 'long double' == 'double'.
8391         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8392         implementation.
8393         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8394         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8395         * modules/logl (Depends-on): Add log. Update conditions.
8396
8397 2011-10-10  Bruno Haible  <bruno@clisp.org>
8398
8399         expl: Simplify for platforms where 'long double' == 'double'.
8400         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8401         implementation.
8402         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8403         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8404         * modules/expl (Depends-on): Add exp. Update conditions.
8405
8406 2011-10-10  Bruno Haible  <bruno@clisp.org>
8407
8408         sqrtl: Simplify for platforms where 'long double' == 'double'.
8409         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8410         alternative implementation.
8411         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8412         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8413         * modules/sqrtl (Depends-on): Update conditions.
8414
8415 2011-10-10  Bruno Haible  <bruno@clisp.org>
8416
8417         ldexpl: Simplify for platforms where 'long double' == 'double'.
8418         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8419         alternative implementation.
8420         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8421         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8422         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8423
8424 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8425
8426         ffsll: set correct witness
8427         * modules/ffsll (configure.ac): Fix typo.
8428
8429 2011-10-10  Bruno Haible  <bruno@clisp.org>
8430
8431         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8432         * lib/printf-frexpl.c: Include <config.h>.
8433         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8434         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8435         second time.
8436         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8437         gl_LONG_DOUBLE_VS_DOUBLE.
8438         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8439         conditions.
8440
8441 2011-10-10  Bruno Haible  <bruno@clisp.org>
8442
8443         frexpl: Simplify for platforms where 'long double' == 'double'.
8444         * lib/frexpl.c: Include <config.h>.
8445         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8446         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8447         time.
8448         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8449         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8450         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8451         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8452         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8453         conditions.
8454
8455 2011-10-10  Jim Meyering  <meyering@redhat.com>
8456
8457         test-renameat: don't leave behind a temporary file
8458         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8459           ERROR: files left in build directory after distclean:
8460           ./gltests/test-renameat.too
8461           make[1]: *** [distcleancheck] Error 1
8462         Reported by Tom G. Christensen.
8463
8464 2011-10-09  Bruno Haible  <bruno@clisp.org>
8465
8466         rint: Determine RINT_LIBM correctly on AIX 7.
8467         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8468         directly, not only through a function pointer. Also accept an optional
8469         4th argument with extra code.
8470         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8471         rintf() call by gcc when optimizing.
8472
8473         mathfunc.m4: Refactor.
8474         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8475         m4 variable.
8476
8477 2011-10-09  Bruno Haible  <bruno@clisp.org>
8478
8479         rintl: Simplify for platforms where 'long double' == 'double'.
8480         * lib/rintl.c: Include <config.h>.
8481         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8482         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8483         time.
8484         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8485         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8486         * modules/rintl (Depends-on): Add rint. Update conditions.
8487
8488 2011-10-09  Bruno Haible  <bruno@clisp.org>
8489
8490         roundl: Simplify for platforms where 'long double' == 'double'.
8491         * lib/roundl.c: Include <config.h>.
8492         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8493         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8494         time.
8495         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8496         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8497         * modules/roundl (Depends-on): Add round. Update conditions.
8498
8499 2011-10-09  Bruno Haible  <bruno@clisp.org>
8500
8501         truncl: Simplify for platforms where 'long double' == 'double'.
8502         * lib/truncl.c: Include <config.h>.
8503         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8504         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8505         time.
8506         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8507         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8508         * modules/truncl (Depends-on): Add trunc. Update conditions.
8509
8510 2011-10-09  Bruno Haible  <bruno@clisp.org>
8511
8512         ceill: Simplify for platforms where 'long double' == 'double'.
8513         * lib/ceill.c: Include <config.h>.
8514         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8515         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8516         time.
8517         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8518         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8519         * modules/ceill (Depends-on): Add ceil. Update conditions.
8520
8521 2011-10-09  Bruno Haible  <bruno@clisp.org>
8522
8523         floorl: Simplify for platforms where 'long double' == 'double'.
8524         * lib/floorl.c: Include <config.h>.
8525         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8526         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8527         time.
8528         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8529         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8530         * modules/floorl (Depends-on): Add floor. Update conditions.
8531
8532 2011-10-09  Bruno Haible  <bruno@clisp.org>
8533
8534         rint: Fix ordering constraints.
8535         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8536         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8537         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8538
8539 2011-10-09  Bruno Haible  <bruno@clisp.org>
8540
8541         copysignl: Simplify for platforms where 'long double' == 'double'.
8542         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8543         alternative.
8544         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8545         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8546         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8547
8548 2011-10-09  Bruno Haible  <bruno@clisp.org>
8549
8550         Tests for module 'rintl'.
8551         * modules/rintl-tests: New file.
8552         * tests/test-rintl.c: New file.
8553
8554         New module 'rintl'.
8555         * lib/math.in.h (rintl): New declaration.
8556         * lib/rintl.c: New file.
8557         * m4/rintl.m4: New file.
8558         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8560         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8561         * modules/rintl: New file.
8562         * tests/test-math-c++.cc: Check the declaration of rintl.
8563         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8564         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8565         * doc/posix-functions/rintl.texi: Mention the new module.
8566
8567 2011-10-09  Bruno Haible  <bruno@clisp.org>
8568
8569         Tests for module 'rintf'.
8570         * modules/rintf-tests: New file.
8571         * tests/test-rintf.c: New file.
8572
8573         New module 'rintf'.
8574         * lib/math.in.h (rintf): New declaration.
8575         * lib/rintf.c: New file.
8576         * m4/rintf.m4: New file.
8577         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8579         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8580         * modules/rintf: New file.
8581         * tests/test-math-c++.cc: Check the declaration of rintf.
8582         * doc/posix-functions/rintf.texi: Mention the new module.
8583
8584 2011-10-09  Bruno Haible  <bruno@clisp.org>
8585
8586         rint: Support for MSVC.
8587         * lib/math.in.h (rint): New declaration.
8588         * lib/rint.c: New file.
8589         * m4/rint.m4: New file.
8590         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8592         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8593         * modules/rint (Description): Fix.
8594         (Files): Add lib/rint.c, m4/rint.m4.
8595         (Depends-on): Add math.
8596         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8597         gl_MATH_MODULE_INDICATOR.
8598         * tests/test-math-c++.cc: Check the declaration of rint.
8599         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8600         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8601         * doc/posix-functions/rint.texi: Mention the replacement provided by
8602         the module.
8603
8604         rint tests: More tests.
8605         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8606         minus-zero.h, infinity.h, nan.h.
8607         (main): Skip the test if the current rounding mode is not standard. Add
8608         tests for negative numbers, minus zero, infinity, NaN.
8609         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8610         tests/nan.h.
8611         (Depends-on): Add isnand-nolibm.
8612
8613 2011-10-09  Bruno Haible  <bruno@clisp.org>
8614
8615         Tests for module 'copysignl'.
8616         * modules/copysignl-tests: New file.
8617         * tests/test-copysignl.c: New file.
8618
8619         New module 'copysignl'.
8620         * lib/math.in.h (copysignl): New declaration.
8621         * lib/copysignl.c: New file.
8622         * m4/copysignl.m4: New file.
8623         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8625         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8626         HAVE_COPYSIGNL.
8627         * modules/copysignl: New file.
8628         * tests/test-math-c++.cc: Check the declaration of copysignl.
8629         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8630         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8631         * doc/posix-functions/copysignl.texi: Mention the new module.
8632
8633 2011-10-09  Bruno Haible  <bruno@clisp.org>
8634
8635         Tests for module 'copysignf'.
8636         * modules/copysignf-tests: New file.
8637         * tests/test-copysignf.c: New file.
8638
8639         New module 'copysignf'.
8640         * lib/math.in.h (copysignf): New declaration.
8641         * lib/copysignf.c: New file.
8642         * m4/copysignf.m4: New file.
8643         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8645         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8646         HAVE_COPYSIGNF.
8647         * modules/copysignf: New file.
8648         * tests/test-math-c++.cc: Check the declaration of copysignf.
8649         * doc/posix-functions/copysignf.texi: Mention the new module.
8650
8651 2011-10-09  Bruno Haible  <bruno@clisp.org>
8652
8653         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8654         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8655         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8656         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8657         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8658         gl_SIGNAL_H_DEFAULTS.
8659
8660 2011-10-09  Bruno Haible  <bruno@clisp.org>
8661
8662         poll: Make macro safer.
8663         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8664         ac_cv_header_poll_h is not set.
8665
8666 2011-10-09  Bruno Haible  <bruno@clisp.org>
8667
8668         copysign: Provide replacement.
8669         * lib/math.in.h (copysign): New declaration.
8670         * lib/copysign.c: New file.
8671         * m4/copysign.m4: New file.
8672         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8674         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8675         HAVE_COPYSIGN.
8676         * modules/copysign (Description): Clarify.
8677         (Files): Add lib/copysign.c, m4/copysign.m4.
8678         (Depends-on): Add math, signbit.
8679         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8680         gl_MATH_MODULE_INDICATOR.
8681         * tests/test-math-c++.cc: Check the declaration of copysign.
8682         * doc/posix-functions/copysign.texi: Mention the effects of the module
8683         on Minix and MSVC.
8684
8685 2011-10-09  Bruno Haible  <bruno@clisp.org>
8686
8687         isinf: Ensure macro on AIX 5.1.
8688         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8689         macro.
8690         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8691
8692 2011-10-09  Bruno Haible  <bruno@clisp.org>
8693
8694         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8695         * modules/snprintf-posix-tests (configure.ac): Require
8696         gl_LONG_DOUBLE_VS_DOUBLE.
8697         * modules/sprintf-posix-tests (configure.ac): Likewise.
8698         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8699         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8700         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8701         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8702         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8703         tests on platforms where 'long double' is the same as 'double'.
8704         * tests/test-sprintf-posix.h (test_function): Likewise.
8705         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8706         * tests/test-vasprintf-posix.c (test_function): Likewise.
8707
8708         *printf: Fix for platforms where 'long double' == 'double'.
8709         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8710         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8711         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8712         * modules/fprintf-posix (Files): Likewise.
8713         * modules/obstack-printf-posix (Files): Likewise.
8714         * modules/snprintf-posix (Files): Likewise.
8715         * modules/sprintf-posix (Files): Likewise.
8716         * modules/vasnprintf (Files): Likewise.
8717         * modules/vasnprintf-posix (Files): Likewise.
8718         * modules/vasprintf-posix (Files): Likewise.
8719         * modules/vdprintf-posix (Files): Likewise.
8720         * modules/vfprintf-posix (Files): Likewise.
8721         * modules/vsnprintf-posix (Files): Likewise.
8722         * modules/vsprintf-posix (Files): Likewise.
8723         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8724         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8725         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8726         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8727         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8728         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8729         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8730
8731         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8732         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8733         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8734         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8735         'long double'.
8736         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8737
8738         isinf: Fix for platforms where 'long double' == 'double'.
8739         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8740         Don't blindly assume 80-bit 'long double'.
8741
8742         isfinite: Fix for platforms where 'long double' == 'double'.
8743         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8744         Don't blindly assume 80-bit 'long double'.
8745
8746         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8747         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8748         * modules/isfinite-tests (configure.ac): Require
8749         gl_LONG_DOUBLE_VS_DOUBLE.
8750         * modules/isinf-tests (configure.ac): Likewise.
8751         * modules/isnan-tests (configure.ac): Likewise.
8752         * modules/isnanl-tests (configure.ac): Likewise.
8753         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8754         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8755         tests on platforms where 'long double' is the same as 'double'.
8756         * tests/test-isinf.c (test_isinfl): Likewise.
8757         * tests/test-isnan.c (test_long_double): Likewise.
8758         * tests/test-isnanl.h (main): Likewise.
8759
8760 2011-10-08  Bruno Haible  <bruno@clisp.org>
8761
8762         Tests for module 'tanhf'.
8763         * modules/tanhf-tests: New file.
8764         * tests/test-tanhf.c: New file.
8765
8766         New module 'tanhf'.
8767         * lib/math.in.h (tanhf): New declaration.
8768         * lib/tanhf.c: New file.
8769         * m4/tanhf.m4: New file.
8770         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8772         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8773         * modules/tanhf: New file.
8774         * tests/test-math-c++.cc: Check the declaration of tanhf.
8775         * doc/posix-functions/tanhf.texi: Mention the new module.
8776
8777         tanh: Use a .m4 file.
8778         * m4/tanh.m4: New file.
8779         * modules/tanh (Files): Add it.
8780         (configure.ac): Just invoke gl_FUNC_TANH.
8781
8782 2011-10-08  Bruno Haible  <bruno@clisp.org>
8783
8784         Tests for module 'coshf'.
8785         * modules/coshf-tests: New file.
8786         * tests/test-coshf.c: New file.
8787
8788         New module 'coshf'.
8789         * lib/math.in.h (coshf): New declaration.
8790         * lib/coshf.c: New file.
8791         * m4/coshf.m4: New file.
8792         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8794         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8795         * modules/coshf: New file.
8796         * tests/test-math-c++.cc: Check the declaration of coshf.
8797         * doc/posix-functions/coshf.texi: Mention the new module.
8798
8799         cosh: Use a .m4 file.
8800         * m4/cosh.m4: New file.
8801         * modules/cosh (Files): Add it.
8802         (configure.ac): Just invoke gl_FUNC_COSH.
8803
8804 2011-10-08  Bruno Haible  <bruno@clisp.org>
8805
8806         Tests for module 'sinhf'.
8807         * modules/sinhf-tests: New file.
8808         * tests/test-sinhf.c: New file.
8809
8810         New module 'sinhf'.
8811         * lib/math.in.h (sinhf): New declaration.
8812         * lib/sinhf.c: New file.
8813         * m4/sinhf.m4: New file.
8814         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8816         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8817         * modules/sinhf: New file.
8818         * tests/test-math-c++.cc: Check the declaration of sinhf.
8819         * doc/posix-functions/sinhf.texi: Mention the new module.
8820
8821         sinh: Use a .m4 file.
8822         * m4/sinh.m4: New file.
8823         * modules/sinh (Files): Add it.
8824         (configure.ac): Just invoke gl_FUNC_SINH.
8825
8826 2011-10-08  Bruno Haible  <bruno@clisp.org>
8827
8828         Tests for module 'atan2f'.
8829         * modules/atan2f-tests: New file.
8830         * tests/test-atan2f.c: New file.
8831
8832         New module 'atan2f'.
8833         * lib/math.in.h (atan2f): New declaration.
8834         * lib/atan2f.c: New file.
8835         * m4/atan2f.m4: New file.
8836         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8838         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8839         * modules/atan2f: New file.
8840         * tests/test-math-c++.cc: Check the declaration of atan2f.
8841         * doc/posix-functions/atan2f.texi: Mention the new module.
8842
8843         atan2: Use a .m4 file.
8844         * m4/atan2.m4: New file.
8845         * modules/atan2 (Files): Add it.
8846         (configure.ac): Just invoke gl_FUNC_ATAN2.
8847
8848 2011-10-08  Bruno Haible  <bruno@clisp.org>
8849
8850         Tests for module 'atanf'.
8851         * modules/atanf-tests: New file.
8852         * tests/test-atanf.c: New file.
8853
8854         New module 'atanf'.
8855         * lib/math.in.h (atanf): New declaration.
8856         * lib/atanf.c: New file.
8857         * m4/atanf.m4: New file.
8858         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8860         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8861         * modules/atanf: New file.
8862         * tests/test-math-c++.cc: Check the declaration of atanf.
8863         * doc/posix-functions/atanf.texi: Mention the new module.
8864
8865         atan: Use a .m4 file.
8866         * m4/atan.m4: New file.
8867         * modules/atan (Files): Add it.
8868         (configure.ac): Just invoke gl_FUNC_ATAN.
8869
8870 2011-10-08  Bruno Haible  <bruno@clisp.org>
8871
8872         Tests for module 'acosf'.
8873         * modules/acosf-tests: New file.
8874         * tests/test-acosf.c: New file.
8875
8876         New module 'acosf'.
8877         * lib/math.in.h (acosf): New declaration.
8878         * lib/acosf.c: New file.
8879         * m4/acosf.m4: New file.
8880         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8881         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8882         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8883         * modules/acosf: New file.
8884         * tests/test-math-c++.cc: Check the declaration of acosf.
8885         * doc/posix-functions/acosf.texi: Mention the new module.
8886
8887         acos: Use a .m4 file.
8888         * m4/acos.m4: New file.
8889         * modules/acos (Files): Add it.
8890         (configure.ac): Just invoke gl_FUNC_ACOS.
8891
8892 2011-10-08  Bruno Haible  <bruno@clisp.org>
8893
8894         Tests for module 'asinf'.
8895         * modules/asinf-tests: New file.
8896         * tests/test-asinf.c: New file.
8897
8898         New module 'asinf'.
8899         * lib/math.in.h (asinf): New declaration.
8900         * lib/asinf.c: New file.
8901         * m4/asinf.m4: New file.
8902         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8903         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8904         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8905         * modules/asinf: New file.
8906         * tests/test-math-c++.cc: Check the declaration of asinf.
8907         * doc/posix-functions/asinf.texi: Mention the new module.
8908
8909         asin: Use a .m4 file.
8910         * m4/asin.m4: New file.
8911         * modules/asin (Files): Add it.
8912         (configure.ac): Just invoke gl_FUNC_ASIN.
8913
8914 2011-10-08  Bruno Haible  <bruno@clisp.org>
8915
8916         Tests for module 'tanf'.
8917         * modules/tanf-tests: New file.
8918         * tests/test-tanf.c: New file.
8919
8920         New module 'tanf'.
8921         * lib/math.in.h (tanf): New declaration.
8922         * lib/tanf.c: New file.
8923         * m4/tanf.m4: New file.
8924         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8926         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8927         * modules/tanf: New file.
8928         * tests/test-math-c++.cc: Check the declaration of tanf.
8929         * doc/posix-functions/tanf.texi: Mention the new module.
8930
8931         tan: Use a .m4 file.
8932         * m4/tan.m4: New file.
8933         * modules/tan (Files): Add it.
8934         (configure.ac): Just invoke gl_FUNC_TAN.
8935
8936 2011-10-08  Bruno Haible  <bruno@clisp.org>
8937
8938         Tests for module 'cosf'.
8939         * modules/cosf-tests: New file.
8940         * tests/test-cosf.c: New file.
8941
8942         New module 'cosf'.
8943         * lib/math.in.h (cosf): New declaration.
8944         * lib/cosf.c: New file.
8945         * m4/cosf.m4: New file.
8946         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8948         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8949         * modules/cosf: New file.
8950         * tests/test-math-c++.cc: Check the declaration of cosf.
8951         * doc/posix-functions/cosf.texi: Mention the new module.
8952
8953         cos: Use a .m4 file.
8954         * m4/cos.m4: New file.
8955         * modules/cos (Files): Add it.
8956         (configure.ac): Just invoke gl_FUNC_COS.
8957
8958 2011-10-08  Bruno Haible  <bruno@clisp.org>
8959
8960         Tests for module 'sinf'.
8961         * modules/sinf-tests: New file.
8962         * tests/test-sinf.c: New file.
8963
8964         New module 'sinf'.
8965         * lib/math.in.h (sinf): New declaration.
8966         * lib/sinf.c: New file.
8967         * m4/sinf.m4: New file.
8968         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8969         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8970         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8971         * modules/sinf: New file.
8972         * tests/test-math-c++.cc: Check the declaration of sinf.
8973         * doc/posix-functions/sinf.texi: Mention the new module.
8974
8975         sin: Use a .m4 file.
8976         * m4/sin.m4: New file.
8977         * modules/sin (Files): Add it.
8978         (configure.ac): Just invoke gl_FUNC_SIN.
8979
8980 2011-10-08  Bruno Haible  <bruno@clisp.org>
8981
8982         Tests for module 'powf'.
8983         * modules/powf-tests: New file.
8984         * tests/test-powf.c: New file.
8985
8986         New module 'powf'.
8987         * lib/math.in.h (powf): New declaration.
8988         * lib/powf.c: New file.
8989         * m4/powf.m4: New file.
8990         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8992         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8993         * modules/powf: New file.
8994         * tests/test-math-c++.cc: Check the declaration of powf.
8995         * doc/posix-functions/powf.texi: Mention the new module.
8996
8997         pow: Use a .m4 file.
8998         * m4/pow.m4: New file.
8999         * modules/pow (Files): Add it.
9000         (configure.ac): Just invoke gl_FUNC_POW.
9001
9002 2011-10-08  Bruno Haible  <bruno@clisp.org>
9003
9004         Tests for module 'log10f'.
9005         * modules/log10f-tests: New file.
9006         * tests/test-log10f.c: New file.
9007
9008         New module 'log10f'.
9009         * lib/math.in.h (log10f): New declaration.
9010         * lib/log10f.c: New file.
9011         * m4/log10f.m4: New file.
9012         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9014         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9015         * modules/log10f: New file.
9016         * tests/test-math-c++.cc: Check the declaration of log10f.
9017         * doc/posix-functions/log10f.texi: Mention the new module.
9018
9019         log10: Use a .m4 file.
9020         * m4/log10.m4: New file.
9021         * modules/log10 (Files): Add it.
9022         (configure.ac): Just invoke gl_FUNC_LOG10.
9023
9024 2011-10-08  Bruno Haible  <bruno@clisp.org>
9025
9026         Tests for module 'logf'.
9027         * modules/logf-tests: New file.
9028         * tests/test-logf.c: New file.
9029
9030         New module 'logf'.
9031         * lib/math.in.h (logf): New declaration.
9032         * lib/logf.c: New file.
9033         * m4/logf.m4: New file.
9034         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9036         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9037         * modules/logf: New file.
9038         * tests/test-math-c++.cc: Check the declaration of logf.
9039         * doc/posix-functions/logf.texi: Mention the new module.
9040
9041         log: Use a .m4 file.
9042         * m4/log.m4: New file.
9043         * modules/log (Files): Add it.
9044         (configure.ac): Just invoke gl_FUNC_LOG.
9045
9046 2011-10-08  Bruno Haible  <bruno@clisp.org>
9047
9048         Tests for module 'expf'.
9049         * modules/expf-tests: New file.
9050         * tests/test-expf.c: New file.
9051
9052         New module 'expf'.
9053         * lib/math.in.h (expf): New declaration.
9054         * lib/expf.c: New file.
9055         * m4/expf.m4: New file.
9056         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9058         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9059         * modules/expf: New file.
9060         * tests/test-math-c++.cc: Check the declaration of expf.
9061         * doc/posix-functions/expf.texi: Mention the new module.
9062
9063         exp: Use a .m4 file.
9064         * m4/exp.m4: New file.
9065         * modules/exp (Files): Add it.
9066         (configure.ac): Just invoke gl_FUNC_EXP.
9067
9068 2011-10-08  Bruno Haible  <bruno@clisp.org>
9069
9070         Tests for module 'sqrtf'.
9071         * modules/sqrtf-tests: New file.
9072         * tests/test-sqrtf.c: New file.
9073
9074         New module 'sqrtf'.
9075         * lib/math.in.h (sqrtf): New declaration.
9076         * lib/sqrtf.c: New file.
9077         * m4/sqrtf.m4: New file.
9078         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9080         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9081         * modules/sqrtf: New file.
9082         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9083         * doc/posix-functions/sqrtf.texi: Mention the new module.
9084
9085 2011-10-08  Bruno Haible  <bruno@clisp.org>
9086
9087         Tests: Avoid link failures w.r.t. libintl.
9088         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9089         $(LIBINTL).
9090         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9091         $(LIBINTL).
9092         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9093         against $(LIBINTL).
9094         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9095         $(LIBINTL).
9096         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9097         $(LIBINTL).
9098         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9099
9100 2011-10-08  Bruno Haible  <bruno@clisp.org>
9101
9102         pow tests: Defeat compiler optimizations.
9103         * tests/test-pow.c (main): Assign arguments to x and y before use.
9104
9105 2011-10-08  Bruno Haible  <bruno@clisp.org>
9106
9107         gnulib-tool: Improve last commit.
9108         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9109         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9110         ignore dependencies that are not among the modules list.
9111
9112 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9113
9114         gnulib-tool: don't follow dependencies to avoided modules
9115         This fixes a bug that is related to the previous one.
9116         * gnulib-tool (func_modules_transitive_closure)
9117         (func_emit_autoconf_snippets):
9118         Check whether a dependency is acceptable before using it.
9119         (--extract-dependencies): Report an error if --avoid is also used,
9120         since this combination of options is not yet supported.
9121
9122         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9123         Problem reported by Peter Dyballa in
9124         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9125         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9126         when echoing "$condition".
9127
9128 2011-10-07  Bruno Haible  <bruno@clisp.org>
9129
9130         Fix documentation about math functions on MacOS X.
9131         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9132         MacOS X 10.5.
9133         * doc/posix-functions/fdim.texi: Likewise.
9134         * doc/posix-functions/feclearexcept.texi: Likewise.
9135         * doc/posix-functions/fegetenv.texi: Likewise.
9136         * doc/posix-functions/fegetround.texi: Likewise.
9137         * doc/posix-functions/feholdexcept.texi: Likewise.
9138         * doc/posix-functions/feraiseexcept.texi: Likewise.
9139         * doc/posix-functions/fesetenv.texi: Likewise.
9140         * doc/posix-functions/fesetround.texi: Likewise.
9141         * doc/posix-functions/fetestexcept.texi: Likewise.
9142         * doc/posix-functions/feupdateenv.texi: Likewise.
9143         * doc/posix-functions/fmax.texi: Likewise.
9144         * doc/posix-functions/fmin.texi: Likewise.
9145         * doc/posix-functions/log2.texi: Likewise.
9146         * doc/posix-functions/modff.texi: Likewise.
9147         * doc/posix-functions/nan.texi: Likewise.
9148         * doc/posix-functions/nanf.texi: Likewise.
9149         * doc/posix-functions/nextafterf.texi: Likewise.
9150         * doc/posix-functions/remquo.texi: Likewise.
9151
9152 2011-10-07  Bruno Haible  <bruno@clisp.org>
9153
9154         modff: Drop assumption about library that defines modff.
9155         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9156         AC_CHECK_FUNCS.
9157         * modules/modff (Files): Add m4/mathfunc.m4.
9158
9159 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9160
9161         raise tests: Avoid a GCC warning.
9162         * tests/test-raise.c (handler): Use _Noreturn.
9163
9164 2011-10-07  Bruno Haible  <bruno@clisp.org>
9165
9166         Tests for module 'ldexpf'.
9167         * modules/ldexpf-tests: New file.
9168         * tests/test-ldexpf.c: New file.
9169
9170         New module 'ldexpf'.
9171         * lib/math.in.h (ldexpf): New declaration.
9172         * lib/ldexpf.c: New file.
9173         * m4/ldexpf.m4: New file.
9174         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9176         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9177         * modules/ldexpf: New file.
9178         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9179         * doc/posix-functions/ldexpf.texi: Mention the new module.
9180
9181 2011-10-06  Bruno Haible  <bruno@clisp.org>
9182
9183         frexpf: Work around problems on IRIX and mingw.
9184         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9186         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9187         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9188         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9189         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9190         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9191
9192 2011-10-06  Bruno Haible  <bruno@clisp.org>
9193
9194         fabsf: Drop assumption about library that defines fabsf.
9195         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9196         AC_CHECK_FUNCS.
9197         * modules/fabsf (Files): Add m4/mathfunc.m4.
9198
9199 2011-10-06  Bruno Haible  <bruno@clisp.org>
9200
9201         frexpf: Drop assumption about library that defines frexpf.
9202         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9203         'int *', 'float *', 'long double *', 'float', 'long double'.
9204         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9205         AC_CHECK_FUNCS.
9206         * modules/frexpf (Files): Add m4/mathfunc.m4.
9207
9208         Tests for module 'frexpf'.
9209         * modules/frexpf-tests: New file.
9210         * tests/test-frexpf.c: New file.
9211
9212         New module 'frexpf'.
9213         * lib/math.in.h (frexpf): New declaration.
9214         * lib/frexpf.c: New file.
9215         * m4/frexpf.m4: New file.
9216         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9218         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9219         * modules/frexpf: New file.
9220         * tests/test-math-c++.cc: Check the declaration of frexpf.
9221         * doc/posix-functions/frexpf.texi: Mention the new module.
9222
9223 2011-10-06  Bruno Haible  <bruno@clisp.org>
9224
9225         math: Sort function declarations of math.in.h.
9226         * lib/math.in.h (frexp, logb): Move declarations.
9227
9228 2011-10-05  Bruno Haible  <bruno@clisp.org>
9229
9230         Tests for module 'modff'.
9231         * modules/modff-tests: New file.
9232         * tests/test-modff.c: New file.
9233
9234         New module 'modff'.
9235         * lib/math.in.h (modff): New declaration.
9236         * lib/modff.c: New file.
9237         * m4/modff.m4: New file.
9238         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9240         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9241         * modules/modff: New file.
9242         * tests/test-math-c++.cc: Check the declaration of modff.
9243         * doc/posix-functions/modff.texi: Mention the new module.
9244
9245         modf tests: Make test sharper.
9246         * tests/test-modf.c (main): Strengthen upper bound.
9247
9248         modf: Use a .m4 file.
9249         * m4/modf.m4: New file.
9250         * modules/modf (Files): Add it.
9251         (configure.ac): Just invoke gl_FUNC_MODF.
9252
9253 2011-10-05  Bruno Haible  <bruno@clisp.org>
9254
9255         Tests for module 'fmodf'.
9256         * modules/fmodf-tests: New file.
9257         * tests/test-fmodf.c: New file.
9258
9259         New module 'fmodf'.
9260         * lib/math.in.h (fmodf): New declaration.
9261         * lib/fmodf.c: New file.
9262         * m4/fmodf.m4: New file.
9263         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9265         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9266         * modules/fmodf: New file.
9267         * tests/test-math-c++.cc: Check the declaration of fmodf.
9268         * doc/posix-functions/fmodf.texi: Mention the new module.
9269
9270         fmod: Use a .m4 file.
9271         * m4/fmod.m4: New file.
9272         * modules/fmod (Files): Add it.
9273         (configure.ac): Just invoke gl_FUNC_FMOD.
9274
9275 2011-10-05  Bruno Haible  <bruno@clisp.org>
9276
9277         Tests for module 'fabsf'.
9278         * modules/fabsf-tests: New file.
9279         * tests/test-fabsf.c: New file.
9280
9281         New module 'fabsf'.
9282         * lib/math.in.h (fabsf): New declaration.
9283         * lib/fabsf.c: New file.
9284         * m4/fabsf.m4: New file.
9285         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9287         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9288         * modules/fabsf: New file.
9289         * tests/test-math-c++.cc: Check the declaration of fabsf.
9290         * doc/posix-functions/fabsf.texi: Mention the new module.
9291
9292         fabs: Use a .m4 file.
9293         * m4/fabs.m4: New file.
9294         * modules/fabs (Files): Add it.
9295         (configure.ac): Just invoke gl_FUNC_FABS.
9296
9297 2011-10-05  Jim Meyering  <meyering@redhat.com>
9298
9299         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9300         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9301         ls -lL regression introduced in coreutils-8.12, it does so at the
9302         cost of an additional stat call in the common case.  Besides, now
9303         that the kernel change that prompted commit 95f7c57f has been reverted
9304         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9305         we have no use for commit 95f7c57f, "file-has-acl: use
9306         acl_extended_file_nofollow if available".
9307
9308 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9309
9310         file-has-acl: revert unintended change in behavior of ls -L
9311         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9312         derived from...
9313         (file_has_acl): ...code here.  Call it.
9314         This problem was introduced with 2011-07-22 commit 95f7c57f,
9315         "file-has-acl: use acl_extended_file_nofollow if available".
9316         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9317
9318 2011-10-03  Bruno Haible  <bruno@clisp.org>
9319
9320         poll: Avoid link errors on MSVC.
9321         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9322         * modules/poll (Depends-on): Add sockets.
9323         (Link): New section.
9324         * NEWS: Mention the change.
9325         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9326         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9327         $(LIB_POLL) instead of $(LIBSOCKET).
9328
9329 2011-10-03  Bruno Haible  <bruno@clisp.org>
9330
9331         sys_select tests: Fix link error on MSVC 9.
9332         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9333         with $(LIB_SELECT) instead of $(LIBSOCKET).
9334
9335 2011-10-03  Bruno Haible  <bruno@clisp.org>
9336
9337         sys_select: Fix compilation error on mingw.
9338         * lib/sys_select.in.h: On native Windows, include <io.h>.
9339
9340 2011-10-03  Bruno Haible  <bruno@clisp.org>
9341
9342         wmemset: Support for MSVC.
9343         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9344         whether wmemset() exists.
9345
9346 2011-10-03  Bruno Haible  <bruno@clisp.org>
9347
9348         wmemmove: Support for MSVC.
9349         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9350         whether wmemmove() exists.
9351
9352 2011-10-03  Bruno Haible  <bruno@clisp.org>
9353
9354         wmemcpy: Support for MSVC.
9355         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9356         whether wmemcpy() exists.
9357
9358 2011-10-03  Bruno Haible  <bruno@clisp.org>
9359
9360         wmemcmp: Support for MSVC.
9361         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9362         whether wmemcmp() exists.
9363
9364 2011-10-03  Bruno Haible  <bruno@clisp.org>
9365
9366         wmemchr: Support for MSVC.
9367         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9368         whether wmemchr() exists.
9369
9370 2011-10-03  Bruno Haible  <bruno@clisp.org>
9371
9372         glthread/*, strsignal: Support for MSVC.
9373         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9374         including <winsock.h> on MSVC 9.
9375         * lib/glthread/lock.h: Likewise.
9376         * lib/glthread/thread.h: Likewise.
9377         * lib/glthread/tls.h: Likewise.
9378         * lib/glthread/yield.h: Likewise.
9379         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9380         if HAVE_UNISTD_H is false.
9381         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9382
9383 2011-10-03  Bruno Haible  <bruno@clisp.org>
9384
9385         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9386         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9387         Set to 100000.
9388
9389 2011-10-03  Bruno Haible  <bruno@clisp.org>
9390
9391         acl: Fix specification.
9392         * lib/file-has-acl.c (file_has_acl): Fix specification.
9393
9394 2011-10-03  Bruno Haible  <bruno@clisp.org>
9395
9396         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9397         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9398         (compute_curr_prefix, shared_library_fullname,
9399         find_shared_library_fullname, get_shared_library_fullname, relocate):
9400         Use it together with PIC && INSTALLDIR.
9401         Reported by <jojelino@gmail.com>
9402         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9403
9404 2011-10-01  Jim Meyering  <meyering@redhat.com>
9405
9406         maint.mk: adjust a release-related rule not to require use of gzip
9407         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9408         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9409         projects that build only .tar.xz files.  Also fix an erroneous test.
9410
9411         test-linkat: don't leave behind a temporary file
9412         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9413         Otherwise, coreutils' "make distcheck" would fail with this:
9414           Only in /c/cu/tests/torture/coreutils/test/\
9415             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9416           make[2]: *** [my-distcheck] Error 1
9417
9418         float, math: add omitted file
9419         * lib/itold.c: Add file, required for yesterday's float change.
9420
9421 2011-10-01  Bruno Haible  <bruno@clisp.org>
9422
9423         isinf: Fix for OpenBSD/x86.
9424         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9425         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9426         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9427
9428 2011-10-01  Bruno Haible  <bruno@clisp.org>
9429
9430         isfinite: Fix syntax error in configure test.
9431         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9432
9433         isfinite: Fix typo.
9434         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9435         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9436
9437 2011-10-01  Bruno Haible  <bruno@clisp.org>
9438
9439         nonblocking tests: Fix test failure on Linux/IA-64.
9440         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9441         Set to 270000.
9442
9443 2011-10-01  Bruno Haible  <bruno@clisp.org>
9444
9445         mkfifoat tests: Fix a test failure on mingw.
9446         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9447         with error ENOSYS.
9448
9449 2011-09-30  Bruno Haible  <bruno@clisp.org>
9450
9451         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9452         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9453         'long double'. Set REPLACE_ITOLD.
9454         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9455         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9456         * lib/itold.c: New file.
9457         * modules/float (Files): Add lib/itold.c.
9458         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9459         (Makefile.am): Substitute REPLACE_ITOLD.
9460         * modules/math (Depends-on): Add float.
9461         (Makefile.am): Substitute REPLACE_ITOLD.
9462         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9463         * doc/posix-headers/math.texi: Likewise.
9464         * doc/posix-functions/logl.texi: Likewise.
9465
9466 2011-09-30  Bruno Haible  <bruno@clisp.org>
9467
9468         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9469         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9470         Set to 140000.
9471
9472 2011-09-30  Bruno Haible  <bruno@clisp.org>
9473
9474         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9475         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9476         invocation, say "right after AC_PROG_CC_STDC", not "right after
9477         AC_PROG_CC".
9478         Reported by Gary V. Vaughan <gary@gnu.org>.
9479
9480 2011-09-30  Bruno Haible  <bruno@clisp.org>
9481
9482         Centralize C99 requirement.
9483         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9484         * modules/stdarg (configure.ac-early): Invoke it instead of
9485         AC_PROG_CC_STDC.
9486         Reported by Gary V. Vaughan and Paul Eggert.
9487
9488 2011-09-29  Bruno Haible  <bruno@clisp.org>
9489
9490         float: Fix LDBL_MAX value on Linux/PowerPC.
9491         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9492         on Linux/PowerPC.
9493         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9494         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9495         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9496         platform.
9497         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9498
9499 2011-09-29  Bruno Haible  <bruno@clisp.org>
9500
9501         doc: Improve doc about gl_EARLY.
9502         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9503         AC_PROG_CC_STDC invocation.
9504         Reported by Gary V. Vaughan <gary@gnu.org>.
9505
9506 2011-09-28  Bruno Haible  <bruno@clisp.org>
9507
9508         fgetc, fputc, fread, fwrite tests: Fix link error.
9509         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9510         on non-MSVC platforms.
9511         * tests/test-fputc.c (main): Likewise.
9512         * tests/test-fread.c (main): Likewise.
9513         * tests/test-fwrite.c (main): Likewise.
9514         Reported by Jim Meyering.
9515
9516 2011-09-27  Bruno Haible  <bruno@clisp.org>
9517
9518         fputc, fwrite tests: Avoid test failure on MSVC.
9519         * tests/test-fgetc.c: Include msvc-inval.h.
9520         (main): Invoke gl_msvc_inval_ensure_handler.
9521         * tests/test-fputc.c: Include msvc-inval.h.
9522         (main): Invoke gl_msvc_inval_ensure_handler.
9523         * tests/test-fread.c: Include msvc-inval.h.
9524         (main): Invoke gl_msvc_inval_ensure_handler.
9525         * tests/test-fwrite.c: Include msvc-inval.h.
9526         (main): Invoke gl_msvc_inval_ensure_handler.
9527         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9528         * modules/fputc-tests (Depends-on): Likewise.
9529         * modules/fread-tests (Depends-on): Likewise.
9530         * modules/fwrite-tests (Depends-on): Likewise.
9531
9532 2011-09-27  Bruno Haible  <bruno@clisp.org>
9533
9534         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9535         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9536         (raise): Remove older, duplicated declaration.
9537         (_gl_raise_SIGPIPE): New declaration.
9538         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9539         (rpl_raise): Remove function.
9540         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9541         a gnulib-defined SIGPIPE here.
9542         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9543         'sigprocmask' has detected missing signal-blocking and the module
9544         'sigpipe' is enabled.
9545         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9546
9547 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9548
9549         base64-tests: avoid memory leak
9550         * tests/test-base64.c (main): Plug memory leak.
9551
9552         base32: new module
9553         * modules/base32: New module.
9554         * lib/base32.c: New file.
9555         * lib/base32.h: Likewise.
9556         * m4/base32.m4: Likewise.
9557         * modules/base32-tests: New test.
9558         * tests/test-base32.c: Likewise.
9559         * MODULES.html.sh (Misc): Mention it.
9560
9561 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9562
9563         gnulib: use more-standard license notice wording
9564         * gnulib-tool (func_emit_copyright_notice): When emitting a
9565         license notice into a file, use the standard wording as suggested
9566         by the current information for GNU maintainers, except say "file"
9567         rather than "program".  The new wording gives a license version
9568         number, which addresses an issue raised by Glenn Morris in
9569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9570         * m4/onceonly.m4: Use that same wording here, too.
9571
9572         dup2: minor simplification
9573         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9574         as lib/dup2.c no longer uses 'inline'.
9575
9576 2011-09-25  Bruno Haible  <bruno@clisp.org>
9577
9578         strings: Fix compilation error on MSVC.
9579         * lib/strings.in.h: Include <stddef.h> for size_t.
9580
9581 2011-09-25  Bruno Haible  <bruno@clisp.org>
9582
9583         fflush et al.: Document limitation on MSVC.
9584         * doc/posix-functions/fflush.texi: Document possible crash in handling
9585         mode other than DEFAULT_HANDLING.
9586         * doc/posix-functions/fgetc.texi: Likewise.
9587         * doc/posix-functions/fputc.texi: Likewise.
9588         * doc/posix-functions/fread.texi: Likewise.
9589         * doc/posix-functions/fwrite.texi: Likewise.
9590
9591 2011-09-25  Bruno Haible  <bruno@clisp.org>
9592
9593         msvc-inval: Allow three invalid parameter handling modes.
9594         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9595         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9596         macros.
9597         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9598         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9599         SANE_LIBRARY_HANDLING as a no-op.
9600         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9601         <stdlib.h>.
9602         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9603
9604 2011-09-25  Bruno Haible  <bruno@clisp.org>
9605
9606         msvc-inval: Make handler multithread-safe.
9607         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9608         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9609         declarations.
9610         (gl_msvc_inval_current): New declaration.
9611         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9612         Operate on the structure returned by gl_msvc_inval_current().
9613         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9614         Remove varaiables.
9615         (tls_index, tls_initialized): New variables.
9616         (not_per_thread): New variable.
9617         (gl_msvc_inval_current): New function.
9618         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9619         returned by gl_msvc_inval_current().
9620
9621 2011-09-25  Bruno Haible  <bruno@clisp.org>
9622
9623         msvc-inval: Install handler globally.
9624         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9625         !_MSC_VER.
9626         (gl_msvc_invalid_parameter_handler): Remove declaration.
9627         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9628         declarations.
9629         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9630         Install the handler globally, don't uninstall it.
9631         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9632         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9633         currently valid, call RaiseException instead.
9634         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9635         for !_MSC_VER.
9636
9637 2011-09-25  Bruno Haible  <bruno@clisp.org>
9638
9639         strerror_r-posix: Fix for MSVC 9.
9640         * lib/strerror_r.c (local_snprintf): New function.
9641         (snprintf): Define to local_snprintf, not to _snprintf.
9642
9643 2011-09-25  Bruno Haible  <bruno@clisp.org>
9644
9645         ftruncate: Support for MSVC 9.
9646         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9647         (chsize_nothrow): New function.
9648         (chsize): Redefine as a macro.
9649         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9650         * modules/ftruncate (Depends-on): Add msvc-inval.
9651
9652 2011-09-25  Bruno Haible  <bruno@clisp.org>
9653
9654         New module 'fstat'.
9655         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9656         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9657         * lib/fchdir.c (rpl_fstat): Remove function.
9658         * m4/fstat.m4: New file.
9659         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9661         declared.
9662         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9663         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9664         * modules/fstat: New file.
9665         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9666         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9667         is set.
9668         * doc/posix-functions/fstat.texi: Mention the new module and the
9669         problem on MSVC.
9670         * NEWS: Mention the change.
9671         * modules/acl (Depends-on): Add fstat.
9672         * modules/chdir-safer (Depends-on): Likewise.
9673         * modules/chown (Depends-on): Likewise.
9674         * modules/copy-file (Depends-on): Likewise.
9675         * modules/fchdir (Depends-on): Likewise.
9676         * modules/fdopendir (Depends-on): Likewise.
9677         * modules/fopen (Depends-on): Likewise.
9678         * modules/fts (Depends-on): Likewise.
9679         * modules/getcwd (Depends-on): Likewise.
9680         * modules/isapipe (Depends-on): Likewise.
9681         * modules/linkat (Depends-on): Likewise.
9682         * modules/lseek (Depends-on): Likewise.
9683         * modules/mkdir-p (Depends-on): Likewise.
9684         * modules/open (Depends-on): Likewise.
9685         * modules/openat (Depends-on): Likewise.
9686         * modules/read-file (Depends-on): Likewise.
9687         * modules/renameat (Depends-on): Likewise.
9688         * modules/utimens (Depends-on): Likewise.
9689
9690 2011-09-25  Bruno Haible  <bruno@clisp.org>
9691
9692         linkat: Fix compilation on MSVC 9.
9693         * lib/linkat.c: Don't include <stdint.h>.
9694
9695 2011-09-25  Bruno Haible  <bruno@clisp.org>
9696
9697         fclose: Support for MSVC 9.
9698         * lib/fclose.c: Include msvc-inval.h.
9699         (fclose_nothrow): New function.
9700         (rpl_fclose): Use it.
9701         * modules/fclose (Depends-on): Add msvc-inval.
9702         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9703
9704 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9705
9706         dup2: minor simplifications
9707         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9708         that it's a performance win.
9709         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9710         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9711
9712 2011-09-24  Jim Meyering  <meyering@redhat.com>
9713
9714         test-futimens: avoid a warning from gcc -Wshadow
9715         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9716         to avoid a shadowing warning.
9717
9718 2011-09-24  Bruno Haible  <bruno@clisp.org>
9719
9720         fdopen: Support for MSVC 9.
9721         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9722         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9723         * lib/fdopen.c: Include msvc-inval.h.
9724         (fdopen_nothrow): New function.
9725         (rpl_fdopen): Use it.
9726         * modules/fdopen (Depends-on): Add msvc-inval.
9727         * modules/fclose-tests (Depends-on): Add fdopen.
9728         * modules/fflush-tests (Depends-on): Likewise.
9729         * modules/fgetc-tests (Depends-on): Likewise.
9730         * modules/fputc-tests (Depends-on): Likewise.
9731         * modules/fread-tests (Depends-on): Likewise.
9732         * modules/freopen-tests (Depends-on): Likewise.
9733         * modules/fseeko-tests (Depends-on): Likewise.
9734         * modules/ftello-tests (Depends-on): Likewise.
9735         * modules/fwrite-tests  (Depends-on): Likewise.
9736         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9737
9738 2011-09-24  Bruno Haible  <bruno@clisp.org>
9739
9740         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9741         * modules/fgetc-tests (Depends-on): Add unistd.
9742         * modules/fputc-tests (Depends-on): Likewise.
9743         * modules/fread-tests (Depends-on): Likewise.
9744         * modules/fwrite-tests (Depends-on): Likewise.
9745
9746 2011-09-24  Bruno Haible  <bruno@clisp.org>
9747
9748         dup: Simplify autoconf test.
9749         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9750         on gl_MSVC_INVAL's result.
9751
9752 2011-09-24  Bruno Haible  <bruno@clisp.org>
9753
9754         Tests for function fwrite().
9755         * modules/fwrite-tests: New file.
9756         * tests/test-fwrite.c: New file.
9757         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9758
9759         Tests for function fread().
9760         * modules/fread-tests: New file.
9761         * tests/test-fread.c: New file.
9762         * modules/stdio-tests (Depends-on): Add fread-tests.
9763
9764         Activate fputc tests.
9765         * modules/stdio-tests (Depends-on): Add fputc-tests.
9766
9767         Enhance fgetc, fputc tests.
9768         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9769         * tests/test-fputc.c (main): Likewise.
9770
9771 2011-09-24  Bruno Haible  <bruno@clisp.org>
9772
9773         write: Support for MSVC 9.
9774         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9775         is not 1.
9776         * lib/write.c (write_nothrow): New function.
9777         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9778         not 1. Use write_nothrow.
9779         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9780         invalid parameter handler.
9781         (gl_PREREQ_WRITE): New macro.
9782         * modules/write (Depends-on): Add msvc-inval.
9783         (configure.ac): Invoke gl_PREREQ_WRITE.
9784         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9785
9786 2011-09-24  Bruno Haible  <bruno@clisp.org>
9787
9788         read: Fix last commit.
9789         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9790
9791 2011-09-24  Bruno Haible  <bruno@clisp.org>
9792
9793         dup2: Fix last commit.
9794         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9795         (rpl_dup2): Disable fcntl workaround on native Windows.
9796
9797         sigprocmask: Make code safer.
9798         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9799         section that changes macro definitions for this compilation unit.
9800
9801 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9802
9803         dup2: clarify by coalescing Windows-specific material
9804         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9805         "msvc-nothrow.h"' to the Windows-specific section, so that the
9806         Emacs source need not contain these include files.
9807         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9808         Windows-specific fixes into this function rather than just the
9809         nothrow fix, as this shortens and clarifies the code.  Always
9810         define as a function, as that's a bit cleaner than having it be
9811         sometimes a function and sometimes a macro.
9812         (rpl_dup2): Move the Windows-specific stuff out of here and into
9813         ms_windows_dup2.  Don't protect the Haiku-related fix with
9814         "#if !defined __linux__", as the same code also works around
9815         a Linux kernel bug, and it doesn't add any system calls on any
9816         platform.  Add comment about FreeBSD 6.1.
9817
9818         sigprocmask: move #include directive
9819         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9820         Windows-specific section, so that the Emacs source need not
9821         contain msvc-inval.h.
9822
9823 2011-09-23  Bruno Haible  <bruno@clisp.org>
9824
9825         read: Support for MSVC 9.
9826         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9827         is not 1.
9828         * lib/read.c (read_nothrow): New function.
9829         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9830         read_nothrow.
9831         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9832         invalid parameter handler.
9833         (gl_PREREQ_READ): New macro.
9834         * modules/read (Depends-on): Add msvc-inval.
9835         (configure.ac): Invoke gl_PREREQ_READ.
9836         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9837
9838 2011-09-23  Bruno Haible  <bruno@clisp.org>
9839
9840         close: Support for MSVC 9.
9841         * lib/close.c: Include <errno.h>, msvc-inval.h.
9842         (close_nothrow): New function.
9843         (rpl_close): Use it.
9844         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9845         invalid parameter handler.
9846         * modules/close (Depends-on): Add msvc-inval.
9847         * modules/dup2-tests (Depends-on): Add close.
9848         * modules/dup3-tests (Depends-on): Likewise.
9849         * modules/fcntl-tests (Depends-on): Likewise.
9850         * modules/spawn-pipe-tests (Depends-on): Likewise.
9851         * modules/unistd-safer-tests (Depends-on): Likewise.
9852         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9853
9854 2011-09-23  Bruno Haible  <bruno@clisp.org>
9855
9856         New module 'dup'.
9857         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9858         Allow replacement.
9859         * lib/dup.c: New file.
9860         * lib/fchdir.c (rpl_dup): Remove function.
9861         * m4/dup.m4: New file.
9862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9863         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9864         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9865         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9866         * modules/dup: New file.
9867         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9868         'dup' module is in use.
9869         * modules/fdopendir (Depends-on): Add dup.
9870         * modules/fdutimensat-tests (Depends-on): Likewise.
9871         * modules/fts (Depends-on): Likewise.
9872         * modules/futimens-tests (Depends-on): Likewise.
9873         * modules/posix_spawnp-tests (Depends-on): Likewise.
9874         * modules/unistd-safer-tests (Depends-on): Likewise.
9875         * modules/utimens-tests (Depends-on): Likewise.
9876         * doc/posix-functions/dup.texi: Mention the new module and the problem
9877         on MSVC.
9878
9879 2011-09-23  Bruno Haible  <bruno@clisp.org>
9880
9881         getdtablesize: Support for MSVC 9.
9882         * lib/getdtablesize.c: Include msvc-inval.h.
9883         (_setmaxstdio_nothrow): New function.
9884         (_setmaxstdio): Redefine it.
9885         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9886         * modules/getdtablesize (Depends-on): Add msvc-inval.
9887         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9888
9889 2011-09-23  Bruno Haible  <bruno@clisp.org>
9890
9891         signal-h: Rename from signal.
9892         * modules/signal-h: Renamed from modules/signal.
9893         * modules/pthread_sigmask (Depends-on): Update.
9894         * modules/raise (Depends-on): Likewise.
9895         * modules/sigaction (Depends-on): Likewise.
9896         * modules/sigpipe (Depends-on): Likewise.
9897         * modules/sigprocmask (Depends-on): Likewise.
9898         * modules/sys_select (Depends-on): Likewise.
9899         * modules/signal-h-tests: Renamed from modules/signal-tests.
9900         (Files, Depends-on, Makefile.am): Update.
9901         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9902         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9903         (Files, Makefile.am): Update.
9904         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9905         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9906         * modules/signal: New placeholder file.
9907         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9908         * doc/posix-headers/signal.texi: Update.
9909         * NEWS: Mention the change.
9910
9911 2011-09-23  Bruno Haible  <bruno@clisp.org>
9912
9913         sigprocmask: Avoid crashes through signal() on MSVC 9.
9914         * lib/sigprocmask.c: Include msvc-inval.h.
9915         (signal_nothrow): New function.
9916         (signal): Redefine it.
9917         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9918         * modules/sigprocmask (Depends-on): Add msvc-inval.
9919         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9920
9921 2011-09-23  Bruno Haible  <bruno@clisp.org>
9922
9923         Tests for module 'raise'.
9924         * modules/raise-tests: New file.
9925         * tests/test-raise.c: New file.
9926
9927         raise: Support for MSVC.
9928         * lib/signal.in.h (raise): New declaration.
9929         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9930         for native Windows platforms.
9931         * m4/raise.m4: New file.
9932         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9933         HAVE_RAISE, REPLACE_RAISE.
9934         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9935         REPLACE_RAISE.
9936         * modules/raise (Status, Notice): Remove fields.
9937         (Files): Add m4/raise.m4.
9938         (Depends-on): Add signal, msvc-inval.
9939         (configure.ac): Use the common idioms.
9940         (Maintainer): Add me.
9941         * tests/test-signal-c++.cc: Check the signature of raise.
9942         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9943
9944 2011-09-23  Bruno Haible  <bruno@clisp.org>
9945
9946         pipe2: Fix compilation on pre-C99 compilers.
9947         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9948
9949 2011-09-23  Bruno Haible  <bruno@clisp.org>
9950
9951         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9952         * lib/msvc-nothrow.h: New file.
9953         * lib/msvc-nothrow.c: New file.
9954         * m4/msvc-nothrow.m4: New file.
9955         * modules/msvc-nothrow: New file.
9956         * lib/dup2.c: Include msvc-nothrow.h.
9957         (rpl_dup2): No need to protect _get_osfhandle call here.
9958         * lib/accept4.c: Include msvc-nothrow.h.
9959         * lib/error.c: Likewise.
9960         * lib/fcntl.c: Likewise.
9961         * lib/lseek.c: Likewise.
9962         * lib/nonblocking.c: Likewise.
9963         * lib/poll.c: Likewise.
9964         * lib/read.c: Likewise.
9965         * lib/select.c: Likewise.
9966         * lib/sockets.h: Likewise.
9967         * lib/sockets.c: Likewise.
9968         * lib/stdio-read.c: Likewise.
9969         * lib/stdio-write.c: Likewise.
9970         * lib/write.c: Likewise.
9971         * lib/w32sock.h: Likewise.
9972         * lib/w32spawn.h: Likewise.
9973         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9974         * lib/fsync.c: Likewise.
9975         * lib/isapipe.c: Likewise.
9976         * modules/dup2 (Depends-on): Add msvc-nothrow.
9977         * modules/accept4 (Depends-on): Likewise.
9978         * modules/error (Depends-on): Likewise.
9979         * modules/fcntl (Depends-on): Likewise.
9980         * modules/lseek (Depends-on): Likewise.
9981         * modules/nonblocking (Depends-on): Likewise.
9982         * modules/poll (Depends-on): Likewise.
9983         * modules/read (Depends-on): Likewise.
9984         * modules/select (Depends-on): Likewise.
9985         * modules/sockets (Depends-on): Likewise.
9986         * modules/sigpipe (Depends-on): Likewise.
9987         * modules/write (Depends-on): Likewise.
9988         * modules/accept (Depends-on): Likewise.
9989         * modules/bind (Depends-on): Likewise.
9990         * modules/connect (Depends-on): Likewise.
9991         * modules/gethostname (Depends-on): Likewise.
9992         * modules/getpeername (Depends-on): Likewise.
9993         * modules/getsockname (Depends-on): Likewise.
9994         * modules/getsockopt (Depends-on): Likewise.
9995         * modules/ioctl (Depends-on): Likewise.
9996         * modules/listen (Depends-on): Likewise.
9997         * modules/recv (Depends-on): Likewise.
9998         * modules/recvfrom (Depends-on): Likewise.
9999         * modules/send (Depends-on): Likewise.
10000         * modules/sendto (Depends-on): Likewise.
10001         * modules/setsockopt (Depends-on): Likewise.
10002         * modules/shutdown (Depends-on): Likewise.
10003         * modules/socket (Depends-on): Likewise.
10004         * modules/execute (Depends-on): Likewise.
10005         * modules/spawn-pipe (Depends-on): Likewise.
10006         * modules/flock (Depends-on): Likewise.
10007         * modules/fsync (Depends-on): Likewise.
10008         * modules/isapipe (Depends-on): Likewise.
10009         * tests/test-cloexec.c: Include msvc-nothrow.h.
10010         * tests/test-dup-safer.c: Likewise.
10011         * tests/test-dup2.c: Likewise.
10012         * tests/test-dup3.c: Likewise.
10013         * tests/test-fcntl.c: Likewise.
10014         * tests/test-pipe.c: Likewise.
10015         * tests/test-pipe2.c: Likewise.
10016         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10017         * modules/unistd-safer-tests (Depends-on): Likewise.
10018         * modules/dup2-tests (Depends-on): Likewise.
10019         * modules/dup3-tests (Depends-on): Likewise.
10020         * modules/fcntl-tests (Depends-on): Likewise.
10021         * modules/pipe-posix-tests (Depends-on): Likewise.
10022         * modules/pipe2-tests (Depends-on): Likewise.
10023
10024 2011-09-23  Bruno Haible  <bruno@clisp.org>
10025
10026         dup2: Make code more maintainable.
10027         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10028         (rpl_dup2): Use it.
10029         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10030         * modules/dup2 (configure.ac): Invoke it.
10031         Reported by Paul Eggert.
10032
10033 2011-09-23  Bruno Haible  <bruno@clisp.org>
10034
10035         msvc-inval: Fix compilation error.
10036         * lib/msvc-inval.h: Include <excpt.h>.
10037
10038 2011-09-23  Bruno Haible  <bruno@clisp.org>
10039
10040         mkdir: Tweak for MSVC 9.
10041         * lib/sys_stat.in.h: Update comments.
10042         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10043
10044         Tests for module 'chdir'.
10045         * modules/chdir-tests: New file.
10046         * tests/test-chdir.c: New file.
10047
10048         New module 'chdir'.
10049         * modules/chdir: New file.
10050         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10051         (chdir): New declaration.
10052         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10053         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10054         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10055         * tests/test-unistd-c++.cc: Check signature of chdir.
10056         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10057         * modules/chdir-long (Depends-on): Add chdir.
10058         * modules/fchdir (Depends-on): Likewise.
10059         * modules/rename (Depends-on): Likewise.
10060         * modules/savewd (Depends-on): Likewise.
10061
10062         rmdir: Support for mingw, MSVC 9.
10063         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10064         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10065
10066         getcwd: Tweak for MSVC 9.
10067         * lib/unistd.in.h: Update comments.
10068         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10069
10070 2011-09-22  Bruno Haible  <bruno@clisp.org>
10071
10072         strerror_r-posix: Avoid a link error on MSVC.
10073         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10074         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10075
10076 2011-09-22  Bruno Haible  <bruno@clisp.org>
10077
10078         select: Avoid link errors on MSVC.
10079         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10080         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10081         * modules/pselect (Link): Likewise.
10082         * NEWS: Mention the change.
10083         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10084         test-select-stdin against $(LIB_SELECT).
10085         * modules/pselect-tests (Makefile.am): Link test-pselect against
10086         $(LIB_SELECT).
10087
10088 2011-09-22  Bruno Haible  <bruno@clisp.org>
10089
10090         select: Avoid compilation error on MSVC.
10091         * lib/select.c: Don't include <stdbool.h>.
10092
10093 2011-09-21  Bruno Haible  <bruno@clisp.org>
10094
10095         Consolidate all uses of PATH_MAX in *.m4 files.
10096         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10097         macros.
10098         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10099         and gl_PATHMAX_SNIPPET.
10100         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10102         * modules/chdir-long (Files): Add m4/pathmax.m4.
10103         * modules/getcwd (Files): Likewise.
10104
10105 2011-09-21  Bruno Haible  <bruno@clisp.org>
10106
10107         ftruncate: Un-deprecate, concentrate on Win32 support.
10108         * modules/ftruncate (Status, Notice): Remove sections.
10109         (Depends-on): Add largefile.
10110         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10111         non-mingw platforms.
10112         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10113         include <io.h>.
10114         * modules/perror-tests (Depends-on): Add ftruncate.
10115         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10116         'ftruncate' module.
10117
10118 2011-09-21  Bruno Haible  <bruno@clisp.org>
10119
10120         Add dependencies to new dirent related modules.
10121         * modules/opendir (Depends-on): Add closedir.
10122         * modules/getcwd (Depends-on): Add opendir, closedir.
10123         * modules/dirent-safer-tests (Depends-on): Likewise.
10124         * modules/fdopendir-tests (Depends-on): Likewise.
10125         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10126         * modules/renameat-tests (Depends-on): Likewise.
10127
10128 2011-09-21  Bruno Haible  <bruno@clisp.org>
10129
10130         opendir: Avoid compilation error on mingw.
10131         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10132         * modules/opendir (Depends-on): Add unistd.
10133
10134 2011-09-21  Bruno Haible  <bruno@clisp.org>
10135
10136         ftruncate tests: Avoid a test failure on mingw.
10137         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10138
10139 2011-09-21  Bruno Haible  <bruno@clisp.org>
10140
10141         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10142         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10143         native Windows.
10144
10145 2011-09-21  Bruno Haible  <bruno@clisp.org>
10146
10147         New module 'fdopen'.
10148         * lib/stdio.in.h (fdopen): New declaration.
10149         * lib/fdopen.c: New file.
10150         * m4/fdopen.m4: New file.
10151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10152         REPLACE_FDOPEN.
10153         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10154         REPLACE_FDOPEN.
10155         * modules/fdopen: New file.
10156         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10157         * tests/test-stdio-c++.cc: Check signature of fdopen.
10158         * doc/posix-functions/fdopen.texi: Mention the new module.
10159
10160 2011-09-21  Bruno Haible  <bruno@clisp.org>
10161
10162         unlockpt tests: Avoid test failure on NetBSD 5.1.
10163         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10164         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10165
10166 2011-09-21  Bruno Haible  <bruno@clisp.org>
10167
10168         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10169         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10170         * tests/test-getlogin_r.c (main): Likewise.
10171
10172 2011-09-20  Bruno Haible  <bruno@clisp.org>
10173
10174         time tests: Don't require pid_t.
10175         * doc/posix-headers/time.texi: Revert last change.
10176         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10177         * tests/test-time.c: Comment out the check for pid_t.
10178
10179 2011-09-20  Bruno Haible  <bruno@clisp.org>
10180
10181         fsync tests: Avoid a test failure on mingw.
10182         * tests/test-fsync.c (main): Allow a failure with EIO.
10183
10184 2011-09-20  Bruno Haible  <bruno@clisp.org>
10185
10186         euidaccess: Update comments.
10187         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10188
10189 2011-09-20  Bruno Haible  <bruno@clisp.org>
10190
10191         Ensure EBADF returns for socket functions on mingw.
10192         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10193         descriptor is invalid.
10194         * lib/bind.c (rpl_bind): Likewise.
10195         * lib/connect.c (rpl_connect): Likewise.
10196         * lib/getpeername.c (rpl_getpeername): Likewise.
10197         * lib/getsockname.c (rpl_getsockname): Likewise.
10198         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10199         * lib/listen.c (rpl_listen): Likewise.
10200         * lib/recv.c (rpl_recv): Likewise.
10201         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10202         * lib/send.c (rpl_send): Likewise.
10203         * lib/sendto.c (rpl_sendto): Likewise.
10204         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10205         * lib/shutdown.c (rpl_shutdown): Likewise.
10206
10207 2011-09-20  Bruno Haible  <bruno@clisp.org>
10208
10209         select tests: EBADF tests.
10210         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10211         test_bad_fd): New functions.
10212         (test_function): Invoke also test_bad_fd.
10213
10214 2011-09-20  Bruno Haible  <bruno@clisp.org>
10215
10216         Tests for module 'posix_spawn_file_actions_addopen.
10217         * modules/posix_spawn_file_actions_addopen-tests: New file.
10218         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10219
10220         Tests for module 'posix_spawn_file_actions_adddup2'.
10221         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10222         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10223
10224         Tests for module 'posix_spawn_file_actions_addclose'.
10225         * modules/posix_spawn_file_actions_addclose-tests: New file.
10226         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10227
10228 2011-09-20  Bruno Haible  <bruno@clisp.org>
10229
10230         Tests for module 'unlockpt'.
10231         * modules/unlockpt-tests: New file.
10232         * tests/test-unlockpt.c: New file.
10233         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10234
10235         Tests for module 'grantpt'.
10236         * modules/grantpt-tests: New file.
10237         * tests/test-grantpt.c: New file.
10238         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10239
10240 2011-09-20  Bruno Haible  <bruno@clisp.org>
10241
10242         freopen tests: EBADF tests.
10243         * tests/test-freopen.c: Include errno.h, unistd.h.
10244         (main): Add tests for EBADF, commented out for the moment.
10245
10246         fclose tests: EBADF tests.
10247         * tests/test-fclose.c (main): Add tests for EBADF.
10248
10249         fflush tests: EBADF tests.
10250         * tests/test-fflush.c: Include errno.h, macros.h.
10251         (main): Add tests for EBADF.
10252
10253         ftello tests: EBADF tests.
10254         * tests/test-ftello4.sh: New file.
10255         * tests/test-ftello4.c: New file.
10256         * modules/ftello-tests (Files): Add them.
10257         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10258
10259         fseeko tests: EBADF tests.
10260         * tests/test-fseeko4.sh: New file.
10261         * tests/test-fseeko4.c: New file.
10262         * modules/fseeko-tests (Files): Add them.
10263         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10264
10265         Tests for function fputc().
10266         * modules/fputc-tests: New file.
10267         * tests/test-fputc.c: New file.
10268         * modules/stdio-tests (Depends-on): Add fputc-tests.
10269
10270         Tests for function fgetc().
10271         * modules/fgetc-tests: New file.
10272         * tests/test-fgetc.c: New file.
10273         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10274
10275         Tests for function fdopen().
10276         * modules/fdopen-tests: New file.
10277         * tests/test-fdopen.c: New file.
10278         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10279
10280         Tests for module 'vdprintf'.
10281         * modules/vdprintf-tests: New file.
10282         * tests/test-vdprintf.c: New file.
10283
10284         Tests for module 'dprintf'.
10285         * modules/dprintf-tests: New file.
10286         * tests/test-dprintf.c: New file.
10287
10288 2011-09-20  Bruno Haible  <bruno@clisp.org>
10289
10290         Tests for module 'ioctl'.
10291         * modules/ioctl-tests: New file.
10292         * tests/test-ioctl.c: New file.
10293
10294 2011-09-20  Bruno Haible  <bruno@clisp.org>
10295
10296         fcntl tests: EBADF tests.
10297         * tests/test-fcntl.c (main): Add more tests for EBADF.
10298
10299 2011-09-20  Bruno Haible  <bruno@clisp.org>
10300
10301         utimensat tests: EBADF tests.
10302         * tests/test-utimensat.c (main): Add tests for EBADF.
10303
10304         renameat tests: EBADF tests.
10305         * tests/test-renameat.c (main): Add tests for EBADF.
10306
10307         mkfifoat tests: EBADF tests.
10308         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10309
10310         readlinkat tests: EBADF tests.
10311         * tests/test-readlinkat.c (main): Add tests for EBADF.
10312
10313         symlinkat tests: EBADF tests.
10314         * tests/test-symlinkat.c (main): Add tests for EBADF.
10315
10316         linkat tests: EBADF tests.
10317         * tests/test-linkat.c (main): Add tests for EBADF.
10318
10319         Tests for module 'faccessat'.
10320         * modules/faccessat-tests: New file.
10321         * tests/test-faccessat.c: New file.
10322
10323         fdopendir tests: EBADF tests.
10324         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10325
10326         openat tests: EBADF tests.
10327         * tests/test-fchownat.c (main): Add tests for EBADF.
10328         * tests/test-fstatat.c (main): Likewise.
10329         * tests/test-mkdirat.c (main): Likewise.
10330         * tests/test-openat.c (main): Likewise.
10331         * tests/test-unlinkat.c (main): Likewise.
10332         * tests/test-fchmodat.c: New file.
10333         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10334         (Makefile.am): Also run 'test-fchmodat'.
10335
10336 2011-09-20  Bruno Haible  <bruno@clisp.org>
10337
10338         utimens, futimens, fdutimensat tests: EBADF tests.
10339         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10340
10341         Tests for function fstat().
10342         * modules/fstat-tests: New file.
10343         * tests/test-fstat.c: New file.
10344         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10345
10346 2011-09-20  Bruno Haible  <bruno@clisp.org>
10347
10348         test-ttyname_r tests: EBADF tests.
10349         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10350
10351         Tests for module 'isatty'.
10352         * modules/isatty-tests: New file.
10353         * tests/test-isatty.c: New file.
10354
10355         Tests for module 'write'.
10356         * modules/write-tests: New file.
10357         * tests/test-write.c: New file.
10358
10359         Tests for module 'read'.
10360         * modules/read-tests: New file.
10361         * tests/test-read.c: New file.
10362
10363         pwrite tests: EBADF tests.
10364         * tests/test-pwrite.c (main): Add tests for EBADF.
10365
10366         pread tests: EBADF tests.
10367         * tests/test-pread.c (main): Add tests for EBADF.
10368
10369         lseek tests: EBADF tests.
10370         * tests/test-lseek.c (main): Add more tests for EBADF.
10371
10372         Tests for module 'ftruncate'.
10373         * modules/ftruncate-tests: New file.
10374         * tests/test-ftruncate.sh: New file.
10375         * tests/test-ftruncate.c: New file.
10376
10377         fsync tests: EBADF tests.
10378         * tests/test-fsync.c (main): Add more tests for EBADF.
10379
10380         fdatasync tests: EBADF tests.
10381         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10382
10383         Tests for module 'fchown'.
10384         * modules/fchown-tests: New file.
10385         * tests/test-fchown.c: New file.
10386
10387         Tests for module 'fchmod'.
10388         * modules/fchmod-tests: New file.
10389         * tests/test-fchmod.c: New file.
10390
10391         fchdir tests: EBADF tests.
10392         * tests/test-fchdir.c (main): Add more tests for EBADF.
10393
10394         dup2 tests: EBADF tests.
10395         * tests/test-dup2.c (main): Add more tests for EBADF.
10396
10397         Tests for module 'dup'.
10398         * modules/dup-tests: New file.
10399         * tests/test-dup.c: New file.
10400
10401         Tests for module 'close'.
10402         * modules/close-tests: New file.
10403         * tests/test-close.c: New file.
10404
10405 2011-09-20  Bruno Haible  <bruno@clisp.org>
10406
10407         Tests for module 'shutdown'.
10408         * modules/shutdown-tests: New file.
10409         * tests/test-shutdown.c: New file.
10410
10411         Tests for module 'setsockopt'.
10412         * modules/setsockopt-tests: New file.
10413         * tests/test-setsockopt.c: New file.
10414
10415         Tests for module 'sendto'.
10416         * modules/sendto-tests: New file.
10417         * tests/test-sendto.c: New file.
10418
10419         Tests for module 'send'.
10420         * modules/send-tests: New file.
10421         * tests/test-send.c: New file.
10422
10423         Tests for module 'recvfrom'.
10424         * modules/recvfrom-tests: New file.
10425         * tests/test-recvfrom.c: New file.
10426
10427         Tests for module 'recv'.
10428         * modules/recv-tests: New file.
10429         * tests/test-recv.c: New file.
10430
10431         Tests for module 'listen'.
10432         * modules/listen-tests: New file.
10433         * tests/test-listen.c: New file.
10434
10435         Tests for module 'getsockopt'.
10436         * modules/getsockopt-tests: New file.
10437         * tests/test-getsockopt.c: New file.
10438
10439         Tests for module 'getsockname'.
10440         * modules/getsockname-tests: New file.
10441         * tests/test-getsockname.c: New file.
10442
10443         Tests for module 'getpeername'.
10444         * modules/getpeername-tests: New file.
10445         * tests/test-getpeername.c: New file.
10446
10447         Tests for module 'connect'.
10448         * modules/connect-tests: New file.
10449         * tests/test-connect.c: New file.
10450
10451         Tests for module 'bind'.
10452         * modules/bind-tests: New file.
10453         * tests/test-bind.c: New file.
10454
10455         accept4 tests: Fix for native Windows.
10456         * tests/test-accept4.c: Include sockets.h.
10457         (main): Invoke gl_sockets_startup.
10458         * modules/accept4-tests (Depends-on): Add sockets.
10459
10460         accept tests: Fix for native Windows.
10461         * tests/test-accept.c: Include sockets.h.
10462         (main): Invoke gl_sockets_startup.
10463         * modules/accept-tests (Depends-on): Add sockets.
10464
10465 2011-09-19  Bruno Haible  <bruno@clisp.org>
10466
10467         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10468         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10469         do...while(0).
10470         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10471         Suggested by Paul Eggert.
10472
10473 2011-09-19  Bruno Haible  <bruno@clisp.org>
10474
10475         sched: Ensure pid_t is defined.
10476         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10477         not define pid_t.
10478         * lib/sched.in.h: Include <sys/types.h>.
10479         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10480         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10481
10482 2011-09-19  Bruno Haible  <bruno@clisp.org>
10483
10484         msvc-inval: Ensure the entire expansion is a single statement.
10485         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10486         of braces.
10487
10488 2011-09-19  Jim Meyering  <meyering@redhat.com>
10489
10490         tests: use printf, not echo in init.sh's warn_ function
10491         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10492         misbehave when given strings containing a backslash or starting
10493         with e.g., -n.  James Youngman suggested setting IFS.
10494
10495 2011-09-19  Eric Blake  <eblake@redhat.com>
10496
10497         futimens: enhance test
10498         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10499         closed non-negative fd.
10500
10501         date: accept 'hence' as opposite of 'ago'
10502         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10503         * tests/test-parse-datetime.c (main): Enhance test.
10504         Suggested by Jesse Wilson.
10505
10506 2011-09-19  Jim Meyering  <meyering@redhat.com>
10507
10508         getcwd: don't fail in a deep directory on a system without openat
10509         Before this change, getcwd would fail when called from a directory
10510         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10511         the non-openat implementation used "..", "../..", "../../..", etc.
10512         to access ancestor directories.  With too many, that string would
10513         be longer than PATH_MAX.
10514         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10515         using gnulib's openat replacement.
10516         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10517         we're using the replacement function.
10518
10519 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10520
10521         maint.mk: avoid warnings from perl about missing files
10522         * top/maint.mk (def_sym_regex): Ignore files listed in
10523         $(gl_other_headers_) that do not exist, say because a project
10524         does not use a corresponding module.
10525
10526 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10527
10528         stat: use pathmax.h only if needed
10529         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10530         This is better for Emacs, which does not have a mingw port and
10531         therefore can avoid the pathmax module.
10532
10533         utimens: remove dependency on dup2
10534         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10535         to work around the Linux kernel bug.
10536         * modules/utimens (Depends-on): Remove dup2.
10537
10538 2011-09-18  Bruno Haible  <bruno@clisp.org>
10539
10540         inet_ntop, inet_pton: Look for it also in libresolv.
10541         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10542         libnsl, search for it in libresolv.
10543         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10544         Needed on Solaris 7.
10545
10546 2011-09-18  Bruno Haible  <bruno@clisp.org>
10547
10548         accept, accept4 tests: Avoid link error on Solaris.
10549         * modules/accept-tests (Makefile.am): Link test-accept against
10550         $(LIBSOCKET).
10551         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10552         $(LIBSOCKET).
10553
10554         accept4: Avoid link error on Solaris.
10555         * modules/accept4 (Link): New section.
10556
10557         socket functions: Avoid link errors on Solaris.
10558         * modules/accept (Depends-on): Add socketlib.
10559         (Link): New section.
10560         * modules/bind (Depends-on): Add socketlib.
10561         (Link): New section.
10562         * modules/connect (Depends-on): Add socketlib.
10563         (Link): New section.
10564         * modules/getpeername (Depends-on): Add socketlib.
10565         (Link): New section.
10566         * modules/getsockname (Depends-on): Add socketlib.
10567         (Link): New section.
10568         * modules/getsockopt (Depends-on): Add socketlib.
10569         (Link): New section.
10570         * modules/listen (Depends-on): Add socketlib.
10571         (Link): New section.
10572         * modules/recv (Depends-on): Add socketlib.
10573         (Link): New section.
10574         * modules/recvfrom (Depends-on): Add socketlib.
10575         (Link): New section.
10576         * modules/send (Depends-on): Add socketlib.
10577         (Link): New section.
10578         * modules/sendto (Depends-on): Add socketlib.
10579         (Link): New section.
10580         * modules/setsockopt (Depends-on): Add socketlib.
10581         (Link): New section.
10582         * modules/shutdown (Depends-on): Add socketlib.
10583         (Link): New section.
10584         * modules/socket (Depends-on): Add socketlib.
10585         (Link): New section.
10586
10587 2011-09-18  Bruno Haible  <bruno@clisp.org>
10588
10589         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10590         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10591         than 5 seconds.
10592         * modules/ptsname-tests (configure.ac): Test for alarm.
10593
10594 2011-09-18  Bruno Haible  <bruno@clisp.org>
10595
10596         posix_spawn_file_actions_add*: Fix module dependencies.
10597         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10598         posix_spawn_file_actions_init.
10599         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10600         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10601
10602 2011-09-18  Bruno Haible  <bruno@clisp.org>
10603
10604         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10605         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10606         * tests/test-renameat.c (main): Likewise.
10607
10608 2011-09-18  Bruno Haible  <bruno@clisp.org>
10609
10610         Tests for module 'accept4'.
10611         * modules/accept4-tests: New file.
10612         * tests/test-accept4.c: New file.
10613
10614 2011-09-18  Bruno Haible  <bruno@clisp.org>
10615
10616         Tests for module 'accept'.
10617         * modules/accept-tests: New file.
10618         * tests/test-accept.c: New file.
10619
10620 2011-09-18  Bruno Haible  <bruno@clisp.org>
10621
10622         dup2: Support for MSVC.
10623         * lib/dup2.c: Include msvc-inval.h.
10624         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10625         _get_osfhandle calls.
10626         * modules/dup2 (Depends-on): Add msvc-inval.
10627         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10628
10629         New module 'msvc-inval'.
10630         * lib/msvc-inval.h: New file.
10631         * lib/msvc-inval.c: New file.
10632         * m4/msvc-inval.m4: New file.
10633         * modules/msvc-inval: New file.
10634
10635 2011-09-17  Bruno Haible  <bruno@clisp.org>
10636
10637         Tests for module 'pclose'.
10638         * modules/pclose-tests: New file.
10639
10640         New module 'pclose'.
10641         * lib/stdio.in.h (pclose): New declaration.
10642         * lib/pclose.c: New file.
10643         * m4/pclose.m4: New file.
10644         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10645         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10646         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10647         * modules/pclose: New file.
10648         * modules/popen-tests (Depends-on): Add pclose.
10649         * modules/popen-safer-tests (Depends-on): Likewise.
10650         * doc/posix-functions/pclose.texi: Mention the new module.
10651
10652 2011-09-17  Bruno Haible  <bruno@clisp.org>
10653
10654         popen: Support for MSVC.
10655         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10656         * lib/popen.c (popen): Provide alternate definition for native Windows.
10657         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10659         * modules/popen (Depends-on, configure.ac): Update condition.
10660         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10661         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10662         fixed.
10663
10664 2011-09-17  Bruno Haible  <bruno@clisp.org>
10665
10666         isnanl, isnand, isnanf: Work around MSVC bug.
10667         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10668
10669 2011-09-17  Bruno Haible  <bruno@clisp.org>
10670
10671         sys_socket tests: Fix recent mistake.
10672         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10673
10674 2011-09-17  Bruno Haible  <bruno@clisp.org>
10675
10676         putenv: Support for MSVC.
10677         * modules/putenv (Depends-on): Add environ.
10678         * lib/putenv.c (environ): Disable declaration.
10679         * lib/unistd.in.h: Update comment.
10680
10681 2011-09-17  Bruno Haible  <bruno@clisp.org>
10682
10683         math: Avoid macro redefinition warnings on MSVC.
10684         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10685         Undefine before redefining.
10686
10687 2011-09-17  Bruno Haible  <bruno@clisp.org>
10688
10689         doc: Mention functions which are declared as macros.
10690         * doc/posix-functions/*[fl].texi: Mention that some functions are
10691         defined as macros with arguments only.
10692
10693 2011-09-17  Bruno Haible  <bruno@clisp.org>
10694
10695         Add dependencies to new dirent related modules.
10696         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10697         * modules/fts (Depends-on): Likewise.
10698         * modules/glob (Depends-on): Likewise.
10699         * modules/savedir (Depends-on): Likewise.
10700         * modules/scandir (Depends-on): Likewise.
10701         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10702         * modules/fdopendir (Depends-on): Add opendir.
10703
10704 2011-09-17  Bruno Haible  <bruno@clisp.org>
10705
10706         inet_pton: Support for MSVC on Windows Vista or newer.
10707         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10708         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10709         HAVE_DECL_INET_PTON is defined.
10710         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10711         On platforms with <winsock2.h>, test whether inet_pton is declared in
10712         <ws2tcpip.h>. If so, arrange to replace it.
10713         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10714         REPLACE_INET_PTON.
10715         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10716         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10717         (Depends-on, configure.ac): Update condition.
10718         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10719
10720 2011-09-17  Bruno Haible  <bruno@clisp.org>
10721
10722         inet_ntop: Support for MSVC on Windows Vista or newer.
10723         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10724         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10725         HAVE_DECL_INET_NTOP is defined.
10726         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10727         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10728         <ws2tcpip.h>. If so, arrange to replace it.
10729         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10730         REPLACE_INET_NTOP.
10731         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10732         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10733         (Depends-on, configure.ac): Update condition.
10734         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10735
10736 2011-09-16  Eric Blake  <eblake@redhat.com>
10737
10738         test-fsync: yet another enhancement
10739         * tests/test-fsync.c (main): Also test behavior on read-only text
10740         file.
10741
10742 2011-09-16  Bruno Haible  <bruno@clisp.org>
10743
10744         Enhance fsync, fdatasync tests.
10745         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10746         * tests/test-fdatasync.c (main): Likewise.
10747
10748 2011-09-16  Bruno Haible  <bruno@clisp.org>
10749
10750         Support for MSVC compiler: Ensure mode_t gets defined.
10751         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10752         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10753         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10754         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10755         * tests/test-fcntl-h.c: Check that mode_t is defined.
10756         * tests/test-sys_stat.c: Likewise.
10757         * tests/test-sys_types.c: Likewise.
10758         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10759         * doc/posix-headers/sys_stat.texi: Likewise.
10760         * doc/posix-headers/sys_types.texi: Likewise.
10761
10762 2011-09-16  Bruno Haible  <bruno@clisp.org>
10763
10764         sys_stat: Support for MSVC.
10765         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10766         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10767         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10768         MSVC.
10769
10770 2011-09-16  Bruno Haible  <bruno@clisp.org>
10771
10772         Support for MSVC compiler: Ensure off_t gets defined.
10773         * lib/unistd.in.h: Include <sys/types.h>.
10774         * tests/test-fcntl-h.c: Check that off_t is defined.
10775         * tests/test-sys_stat.c: Likewise.
10776         * tests/test-sys_types.c: Likewise.
10777
10778 2011-09-16  Eric Blake  <eblake@redhat.com>
10779
10780         fdatasync: port to Solaris
10781         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10782         * modules/fdatasync (Link): Document it.
10783         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10784
10785         fdatasync: port to MacOS X 10.7
10786         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10787         declared.
10788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10789         * modules/unistd (Makefile.am): Substitute it.
10790         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10791         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10792
10793         fdatasync: minor improvements
10794         * modules/fdatasync (Depends-on): Add condition for fsync.
10795         * lib/fdatasync.c (fdatasync): Add comment.
10796         * tests/test-unistd-c++.cc: Test fdatasync.
10797
10798         unistd: update refs to newer POSIX
10799         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10800         Suggested by Bruno Haible.
10801
10802         fdatasync: new module
10803         * modules/fsync (Description): Document difference to fdatasync.
10804         * modules/fdatasync: New module.
10805         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10806         * lib/fdatasync.c (fdatasync): Likewise.
10807         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10808         defaults.
10809         * modules/unistd (Makefile.am): Set witnesses.
10810         * lib/unistd.in.h (fdatasync): Declare.
10811         * MODULES.html.sh: Document it.
10812         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10813         * modules/fdatasync-tests: New test.
10814         * tests/test-fdatasync.c: Likewise.
10815
10816 2011-09-16  Eric Blake  <eblake@redhat.com>
10817
10818         test-fsync: enhance tests
10819         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10820         * tests/test-fsync.c (main): Enhance test.
10821
10822 2011-09-15  Bruno Haible  <bruno@clisp.org>
10823
10824         Support for MSVC compiler: Ensure ssize_t gets defined.
10825         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10826         * doc/posix-headers/stdio.texi: Likewise.
10827         * modules/stdio (Depends-on): Add ssize_t.
10828         * modules/sys_socket (Depends-on): Likewise.
10829         * modules/sys_types (Depends-on): Likewise.
10830         * modules/sys_uio (Depends-on): Likewise.
10831         * modules/unistd (Depends-on): Likewise.
10832         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10833         * tests/test-sys_types.c: Check that ssize_t is defined.
10834
10835 2011-09-14  Bruno Haible  <bruno@clisp.org>
10836
10837         Avoid using #, the m4 comment starter character, near brackets.
10838         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10839         delimiter character in sed expressions.
10840         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10841         Suggested by Eric Blake.
10842
10843         Properly quote AC_CHECK_DECLS' 4th argument.
10844         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10845         argument.
10846         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10847         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10848         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10849         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10850         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10851         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10853         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10854         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10855         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10856         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10857         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10858         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10859         * m4/isinf.m4 (gl_ISINF): Likewise.
10860         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10861         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10862         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10863         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10864         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10865         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10866         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10867         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10868         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10869         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10870         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10871         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10873         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10875         Reported by Eric Blake.
10876
10877         Properly quote AC_CHECK_DECL's 4th argument.
10878         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10879         argument.
10880         * m4/argp.m4 (gl_ARGP): Likewise.
10881         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10882         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10883         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10884         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10885         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10886         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10887         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10888         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10889         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10890         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10891         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10892         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10893         Reported by Eric Blake.
10894
10895 2011-09-14  Eric Blake  <eblake@redhat.com>
10896
10897         opendir: avoid compile warning
10898         * lib/opendir.c (includes): Always include errno.h.
10899         Reported by Tatsuro MATSUOKA.
10900
10901 2011-09-14  Jim Meyering  <meyering@redhat.com>
10902
10903         maint.mk: sc_tight_scope: propagate failure from sub-make
10904         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10905         Reported by Martin von Gagern.
10906
10907 2011-09-13  Bruno Haible  <bruno@clisp.org>
10908
10909         tempname: Support for MSVC.
10910         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10911         MSVC.
10912         * modules/tempname (Depends-on): Add fcntl-h.
10913
10914 2011-09-13  Bruno Haible  <bruno@clisp.org>
10915
10916         sys_time: Support for MSVC.
10917         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10918         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10919         include <winsock2.h>.
10920         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10921         function declarations that collide with POSIX.
10922         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10923         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10924
10925 2011-09-13  Bruno Haible  <bruno@clisp.org>
10926
10927         stat: Support for MSVC.
10928         * lib/stat.c: Include pathmax.h.
10929         * modules/stat (Depends-on): Add pathmax.
10930
10931         pathmax: Support for native Windows.
10932         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10933
10934 2011-09-12  Bruno Haible  <bruno@clisp.org>
10935
10936         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10937         * lib/dirent.in.h (struct dirent): New type.
10938         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10939         DT_WHT): New macros.
10940         (DIR): New type.
10941         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10942         (readdir, rewinddir): New declarations.
10943         * lib/dirent-private.h: New file.
10944         * lib/opendir.c: New file.
10945         * lib/readdir.c: New file.
10946         * lib/rewinddir.c: New file.
10947         * lib/closedir.c: New file.
10948         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10949         * m4/opendir.m4: New file.
10950         * m4/readdir.m4: New file.
10951         * m4/rewinddir.m4: New file.
10952         * m4/closedir.m4: New file.
10953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10954         REPLACE_CLOSEDIR here.
10955         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10956         readdir, rewinddir are declared.
10957         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10958         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10959         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10960         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10961         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10962         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10963         * modules/opendir: New file.
10964         * modules/readdir: New file.
10965         * modules/rewinddir: New file.
10966         * modules/closedir: New file.
10967         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10968         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10969         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10970         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10971         * NEWS: Mention the 'fchdir' change.
10972
10973 2011-09-11  Bruno Haible  <bruno@clisp.org>
10974
10975         asm-underscore.m4: Support for MSVC.
10976         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10977         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10978
10979 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10980
10981         Doc about crypt functions.
10982         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10983         needing for _GNU_SOURCE to get crypt.
10984         * doc/posix-functions/encrypt.texi: Likewise.
10985         * doc/posix-functions/setkey.texi: Likewise.
10986
10987 2011-09-11  Bruno Haible  <bruno@clisp.org>
10988
10989         doc: Update regarding MSVC 9.
10990         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10991         tested".
10992         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10993         * doc/posix-headers/*.texi: Likewise.
10994         * doc/pastposix-functions/*.texi: Likewise.
10995         * doc/glibc-functions/*.texi: Likewise.
10996         * doc/glibc-headers/*.texi: Likewise.
10997
10998 2011-09-11  Bruno Haible  <bruno@clisp.org>
10999
11000         unistd et al.: Don't assume <unistd.h> exists.
11001         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11002         does not exist.
11003         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11004         exist. But include <stdlib.h>.
11005         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11006         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11007         symlink() does not exist.
11008         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11009         include <io.h> instead.
11010         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11011         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11012         include <direct.h> instead.
11013         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11015         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11016         <io.h> instead.
11017         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11018         correctly if the system does not have hard links.
11019         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11020         <direct.h> instead.
11021         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11022         it when looking for function declarations.
11023         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11024         <direct.h> and <io.h> instead.
11025         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11026
11027 2011-09-11  Bruno Haible  <bruno@clisp.org>
11028
11029         strcase: Support for MSVC.
11030         * modules/strcase (Status, Notice): Remove obsoletion mark.
11031         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11032         * doc/posix-functions/strncasecmp.texi: Likewise.
11033
11034         strings: Don't assume <strings.h> exists.
11035         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11036         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11037         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11038         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11039
11040 2011-09-11  Bruno Haible  <bruno@clisp.org>
11041
11042         dirent: Don't assume <dirent.h> exists.
11043         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11044         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11045         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11046         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11047
11048 2011-09-11  Bruno Haible  <bruno@clisp.org>
11049
11050         Fix wint_t on MSVC.
11051         * lib/wchar.in.h (wint_t): On MSVC, override it.
11052         * lib/wctype.in.h (wint_t): Likewise.
11053         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11054         MSVC.
11055         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11056         * doc/posix-headers/wctype.texi: Likewise.
11057
11058 2011-09-11  Bruno Haible  <bruno@clisp.org>
11059
11060         sys_types: Fix typo.
11061         * lib/sys_types.in.h: Fix typo in comment.
11062         Reported by Paul Eggert.
11063
11064         Support for MSVC compiler: Ensure size_t gets defined.
11065         * modules/strings (Depends-on): Add 'sys_types'.
11066         * modules/sys_uio (Depends-on): Likewise.
11067         * lib/sys_uio.in.h: Update comment.
11068
11069         C++ tests for module 'sys_types'.
11070         * modules/sys_types-c++-tests: New file.
11071         * tests/test-sys_types-c++.cc: New file.
11072
11073         Tests for module 'sys_types'.
11074         * modules/sys_types-tests: New file.
11075         * tests/test-sys_types.c: New file.
11076
11077         New module 'sys_types'.
11078         * lib/sys_types.in.h: New file.
11079         * m4/sys_types_h.m4: New file.
11080         * modules/sys_types: New file.
11081         * doc/posix-headers/sys_types.texi: Mention the new module and the
11082         size_t problem on MSVC 9.
11083
11084 2011-09-11  Bruno Haible  <bruno@clisp.org>
11085
11086         Support for MSVC compiler: Avoid division by a literal 0.
11087         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11088         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11089         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11090         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11091         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11092         * tests/infinity.h: New file.
11093         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11094         on MSVC.
11095         * tests/test-ceilf1.c: Include infinity.h.
11096         (main): Use Infinityf.
11097         * tests/test-ceil1.c: Include infinity.h.
11098         (main): Use Infinityd.
11099         * tests/test-ceill.c: Include infinity.h.
11100         (main): Use Infinityl.
11101         * tests/test-dprintf-posix.c: Include infinity.h.
11102         (test_function): Use Infinityd.
11103         * tests/test-floorf1.c: Include infinity.h.
11104         (main): Use Infinityf.
11105         * tests/test-floor1.c: Include infinity.h.
11106         (main): Use Infinityd.
11107         * tests/test-floorl.c: Include infinity.h.
11108         (main): Use Infinityl.
11109         * tests/test-fprintf-posix.c: Include infinity.h.
11110         (test_function): Use Infinityd.
11111         * tests/test-frexp.c: Include infinity.h.
11112         (main): Use Infinityd.
11113         * tests/test-frexpl.c: Include infinity.h.
11114         (main): Use Infinityl.
11115         * tests/test-isfinite.c: Include infinity.h.
11116         (test_isfinitef): Use Infinityf.
11117         (test_isfinited): Use Infinityd.
11118         (test_isfinitel): Use Infinityl.
11119         * tests/test-isinf.c: Include infinity.h.
11120         (test_isinff): Use Infinityf.
11121         (test_isinfd): Use Infinityd.
11122         (test_isinfl): Use Infinityl.
11123         * tests/test-isnan.c: Include infinity.h.
11124         (test_float): Use Infinityf.
11125         (test_double): Use Infinityd.
11126         (test_long_double): Use Infinityl.
11127         * tests/test-isnanf.h: Include infinity.h.
11128         (main): Use Infinityf.
11129         * tests/test-isnand.h: Include infinity.h.
11130         (main): Use Infinityd.
11131         * tests/test-isnanl.h: Include infinity.h.
11132         (main): Use Infinityl.
11133         * tests/test-ldexpl.c: Include infinity.h.
11134         (main): Use Infinityl.
11135         * tests/test-printf-posix.h: Include infinity.h.
11136         (test_function): Use Infinityd.
11137         * tests/test-roundf1.c: Include infinity.h.
11138         (main): Use Infinityf.
11139         * tests/test-round1.c: Include infinity.h.
11140         (main): Use Infinityd.
11141         * tests/test-roundl.c: Include infinity.h.
11142         (main): Use Infinityl.
11143         * tests/test-signbit.c: Include infinity.h.
11144         (test_signbitf): Use Infinityf.
11145         (test_signbitd): Use Infinityd.
11146         (test_signbitl): Use Infinityl.
11147         * tests/test-snprintf-posix.h: Include infinity.h.
11148         (test_function): Use Infinityd, Infinityl.
11149         * tests/test-sprintf-posix.h: Include infinity.h.
11150         (test_function): Use Infinityd, Infinityl.
11151         * tests/test-truncf1.c: Include infinity.h.
11152         (main): Use Infinityf.
11153         * tests/test-trunc1.c: Include infinity.h.
11154         (main): Use Infinityd.
11155         * tests/test-truncl.c: Include infinity.h.
11156         (main): Use Infinityl.
11157         * tests/test-vasnprintf-posix.c: Include infinity.h.
11158         (test_function): Use Infinityd, Infinityl.
11159         * tests/test-vasprintf-posix.c: Include infinity.h.
11160         (test_function): Use Infinityd, Infinityl.
11161         * modules/ceilf-tests (Files): Add tests/infinity.h.
11162         * modules/ceil-tests (Files): Likewise.
11163         * modules/ceill-tests (Files): Likewise.
11164         * modules/dprintf-posix-tests (Files): Likewise.
11165         * modules/floorf-tests (Files): Likewise.
11166         * modules/floor-tests (Files): Likewise.
11167         * modules/floorl-tests (Files): Likewise.
11168         * modules/fprintf-posix-tests (Files): Likewise.
11169         * modules/frexp-tests (Files): Likewise.
11170         * modules/frexp-nolibm-tests (Files): Likewise.
11171         * modules/frexpl-tests (Files): Likewise.
11172         * modules/frexpl-nolibm-tests (Files): Likewise.
11173         * modules/isfinite-tests (Files): Likewise.
11174         * modules/isinf-tests (Files): Likewise.
11175         * modules/isnan-tests (Files): Likewise.
11176         * modules/isnanf-tests (Files): Likewise.
11177         * modules/isnanf-nolibm-tests (Files): Likewise.
11178         * modules/isnand-tests (Files): Likewise.
11179         * modules/isnand-nolibm-tests (Files): Likewise.
11180         * modules/isnanl-tests (Files): Likewise.
11181         * modules/isnanl-nolibm-tests (Files): Likewise.
11182         * modules/ldexpl-tests (Files): Likewise.
11183         * modules/printf-posix-tests (Files): Likewise.
11184         * modules/roundf-tests (Files): Likewise.
11185         * modules/round-tests (Files): Likewise.
11186         * modules/roundl-tests (Files): Likewise.
11187         * modules/signbit-tests (Files): Likewise.
11188         * modules/snprintf-posix-tests (Files): Likewise.
11189         * modules/sprintf-posix-tests (Files): Likewise.
11190         * modules/truncf-tests (Files): Likewise.
11191         * modules/trunc-tests (Files): Likewise.
11192         * modules/truncl-tests (Files): Likewise.
11193         * modules/vasnprintf-posix-tests (Files): Likewise.
11194         * modules/vasprintf-posix-tests (Files): Likewise.
11195         * modules/vdprintf-posix-tests (Files): Likewise.
11196         * modules/vfprintf-posix-tests (Files): Likewise.
11197         * modules/vprintf-posix-tests (Files): Likewise.
11198         * modules/vsnprintf-posix-tests (Files): Likewise.
11199         * modules/vsprintf-posix-tests (Files): Likewise.
11200         * modules/xprintf-posix-tests (Files): Likewise.
11201
11202 2011-09-11  Bruno Haible  <bruno@clisp.org>
11203
11204         Ensure pid_t gets defined.
11205         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11206         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11207         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11208         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11209         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11210         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11211         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11212         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11213         * tests/test-fcntl-h.c: Check that pid_t is defined.
11214         * tests/test-sched.c: Likewise.
11215         * tests/test-termios.c: Likewise.
11216         * tests/test-time.c: Likewise.
11217         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11218         * doc/posix-headers/signal.texi: Likewise.
11219         * doc/posix-headers/sys_types.texi: Likewise.
11220         * doc/posix-headers/time.texi: Likewise.
11221
11222 2011-09-11  Bruno Haible  <bruno@clisp.org>
11223
11224         acl: Fix compilation on Solaris 10 (older version).
11225         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11226         of ACE_EVERYONE.
11227         * lib/set-mode-acl.c (qset_acl): Likewise.
11228         Reported by Christian Jullien <eligis@orange.fr>.
11229
11230 2011-09-10  Bruno Haible  <bruno@clisp.org>
11231
11232         iconv, unsetenv: Add support for MSVC compiler.
11233         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11234         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11235
11236 2011-09-10  Bruno Haible  <bruno@clisp.org>
11237
11238         *printf: Add support for MSVC compiler.
11239         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11240         handles the exception caused by the %n directive. When cross-compiling,
11241         guess no on native Windows.
11242         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11243         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11244         emulate it through vsnprintf.
11245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11246         * doc/posix-functions/dprintf.texi: Update documentation regarding
11247         MSVC 9.
11248         * doc/posix-functions/fprintf.texi: Likewise.
11249         * doc/posix-functions/printf.texi: Likewise.
11250         * doc/posix-functions/snprintf.texi: Likewise.
11251         * doc/posix-functions/sprintf.texi: Likewise.
11252         * doc/posix-functions/swprintf.texi: Likewise.
11253         * doc/posix-functions/vdprintf.texi: Likewise.
11254         * doc/posix-functions/vfprintf.texi: Likewise.
11255         * doc/posix-functions/vprintf.texi: Likewise.
11256         * doc/posix-functions/vsnprintf.texi: Likewise.
11257         * doc/posix-functions/vsprintf.texi: Likewise.
11258         * doc/glibc-functions/asprintf.texi: Likewise.
11259         * doc/glibc-functions/obstack_printf.texi: Likewise.
11260         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11261         * doc/glibc-functions/vasprintf.texi: Likewise.
11262
11263 2011-09-10  Bruno Haible  <bruno@clisp.org>
11264
11265         nocrash: Add support for native Windows.
11266         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11267
11268 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11269             Bruno Haible  <bruno@clisp.org>
11270
11271         absolute-header, include-next: Add support for MSVC compiler.
11272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11273         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11274         directory separator in #line directives.
11275         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11276         recognize also backslash as directory separator in #line directives.
11277
11278 2011-09-08  Jim Meyering  <meyering@redhat.com>
11279
11280         maint.mk: mark the post-release commit log with "maint: " prefix
11281         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11282         one-line commit-log summary.
11283
11284 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11285             Bruno Haible  <bruno@clisp.org>
11286
11287         Doc about crypt functions.
11288         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11289         systems.
11290         * doc/posix-functions/encrypt.texi: Likewise.
11291         * doc/posix-functions/setkey.texi: Likewise.
11292
11293 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11294
11295         * lib/gc.h: Fix copyright header.
11296
11297 2011-09-07  Bruno Haible  <bruno@clisp.org>
11298
11299         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11300         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11301         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11302
11303 2011-09-07  Bruno Haible  <bruno@clisp.org>
11304
11305         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11306         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11307         * lib/freopen.c: Likewise.
11308         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11309         * lib/lstat.c: Likewise.
11310         * lib/stat.c: Likewise.
11311         * lib/open.c: Use different syntax for include of <fcntl.h>.
11312         * lib/openat.c: Include fcntl.h again, explicitly.
11313
11314 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11315
11316         parse-datetime: document the newly accepted format
11317         * doc/parse-datetime.texi (Combined date and time of day items):
11318         New section.
11319
11320 2011-09-06  Bruno Haible  <bruno@clisp.org>
11321
11322         acl: Fix a test failure on newer Solaris 10 with ZFS.
11323         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11324         ENOSYS as no ACL.
11325         Reported by Jim Meyering.
11326
11327 2011-09-06  Bruno Haible  <bruno@clisp.org>
11328
11329         acl: Update for AIX >= 5.3 with NFS.
11330         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11331         ENOSYS as no ACL.
11332
11333         acl: Fix a test failure on AIX >= 5.3 with NFS.
11334         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11335         as no ACL.
11336
11337 2011-09-06  Bruno Haible  <bruno@clisp.org>
11338
11339         acl: Fix a test failure on IRIX 6.5 with NFS.
11340         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11341         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11342         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11343         * lib/copy-acl.c (qcopy_acl): Likewise.
11344
11345 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11346
11347         openat: port to AIX 7.1 with large files
11348         AIX 7.1 does a "#define openat open64at" if large files are in use,
11349         so we can't simply #undef openat.  Use the orig_openat trick (similar
11350         to orig_open in lib/open.c) to work around the problem.  Problem
11351         reported by Kevin Brott for GNU tar, in the thread containing
11352         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11353         * lib/openat.c (__need_system_fcntl_h): Define first.
11354         Include <fcntl.h> and <sys/types.h> before undefining.
11355         (orig_openat) [HAVE_OPENAT]: New inline function.
11356         (openat) [HAVE_OPENAT]: Do not undef.
11357         (rpl_openat): Use orig_openat, not openat.
11358
11359 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11360             Bruno Haible  <bruno@clisp.org>
11361
11362         acl: Avoid errors on NonStop Kernel.
11363         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11364         ENOTSUP errors.
11365
11366 2011-09-05  Bruno Haible  <bruno@clisp.org>
11367
11368         acl: Clean up Solaris code.
11369         * lib/acl-internal.h: Remove no-op #if.
11370         * lib/file-has-acl.c: Likewise.
11371         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11372         * lib/copy-acl.c (qcopy_acl): Likewise.
11373
11374 2011-09-05  Bruno Haible  <bruno@clisp.org>
11375
11376         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11377         binaries built on the original Solaris 10.
11378         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11379         trivial.
11380
11381 2011-09-05  Bruno Haible  <bruno@clisp.org>
11382
11383         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11384         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11385         10.
11386         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11387         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11388         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11389         instead of acl_get, facl_get, acl_set, facl_set.
11390
11391 2011-09-05  Bruno Haible  <bruno@clisp.org>
11392
11393         copy-file: Try unit tests on more file systems.
11394         * tests/test-copy-file-1.sh: New file.
11395         * tests/test-copy-file-2.sh: New file.
11396         * modules/copy-file-tests (Files): Add them.
11397         (Makefile.am): Add them to TESTS.
11398
11399         acl: Try unit tests on more file systems.
11400         * tests/test-file-has-acl-1.sh: New file.
11401         * tests/test-file-has-acl-2.sh: New file.
11402         * tests/test-set-mode-acl-1.sh: New file.
11403         * tests/test-set-mode-acl-2.sh: New file.
11404         * tests/test-copy-acl-1.sh: New file.
11405         * tests/test-copy-acl-2.sh: New file.
11406         * modules/acl-tests (Files): Add them.
11407         (Makefile.am): Add them to TESTS.
11408
11409 2011-09-04  Bruno Haible  <bruno@clisp.org>
11410
11411         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11412         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11413         10.
11414         (OLD_ALLOW, OLD_DENY): New macros.
11415         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11416         ACE_ACCESS_ALLOWED_ACE_TYPE.
11417         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11418         ACE_ACCESS_DENIED_ACE_TYPE.
11419         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11420         (NEW_ACE_EXECUTE): Fix value.
11421         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11422         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11423         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11424         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11425         NEW_ACE_SYNCHRONIZE): New macros.
11426         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11427         instead of acl_fromtext, acl_set, facl_set.
11428         Fixes a coreutils/tests/cp/perm failure.
11429
11430 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11431
11432         openat: test for fstatat (..., 0) bug
11433         Further testing with tar suggests that fstatat (..., 0)
11434         does not work in general, on AIX 7.1; see
11435         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11436         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11437         replacement fstatat (which is what older AIX releases were using
11438         anyway).
11439         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11440         use is now changed to orig_fstatat.  This was probably the right
11441         thing to do anyway.
11442         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11443         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11444         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11445         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11446         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11447         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11448         if the bug is found.
11449
11450         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11451         This tests for another fstatat bug on AIX 7.1:
11452         fstatat (AT_FDCWD, ..., 0) does not work.  See
11453         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11454         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11455         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11456         (rpl_fstatat): Adjust so that it works around either (or both)
11457         bugs if present.
11458         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11459
11460 2011-09-03  Karl Berry  <karl@gnu.org>
11461
11462         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11463         in index entries.
11464
11465 2011-09-02  Bruno Haible  <bruno@clisp.org>
11466
11467         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11468         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11469         values of AR, ARFLAGS, RANLIB.
11470         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11471
11472 2011-09-02  Bruno Haible  <bruno@clisp.org>
11473
11474         Find 'ar' program that fits with --host argument.
11475         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11476
11477 2011-09-02  Bruno Haible  <bruno@clisp.org>
11478
11479         tests: init.sh: Support any non-GNU diff.
11480         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11481         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11482         Solaris 8.
11483
11484 2011-09-02  Bruno Haible  <bruno@clisp.org>
11485
11486         tests: init.sh: work also with any non-GNU diff that supports -u
11487         * tests/init.sh: Relax check for diff -u support.
11488         Rather than checking for GNU diff via --version, simply check
11489         for support for -u itself.  Useful at least on OpenBSD 4.9,
11490         AIX 7.1, IRIX 6.5, and Solaris 10.
11491
11492 2011-09-01  Bruno Haible  <bruno@clisp.org>
11493
11494         strtoimax, strtoumax: Document problem on HP-UX 11.
11495         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11496         * doc/posix-functions/strtoumax.texi: Likewise.
11497
11498 2011-09-01  Bruno Haible  <bruno@clisp.org>
11499
11500         strtoumax: Avoid link error on OSF/1 with DTK cc.
11501         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11502         defined as a function.
11503         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11504         strtoumax is defined, not whether it is declared.
11505
11506 2011-09-01  Bruno Haible  <bruno@clisp.org>
11507
11508         strtoimax: Avoid link error on OSF/1 with DTK cc.
11509         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11510         defined as a function.
11511         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11512         strtoimax is defined, not whether it is declared.
11513
11514 2011-09-01  Bruno Haible  <bruno@clisp.org>
11515
11516         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11517         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11518         as a function.
11519         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11520         whether it is declared.
11521
11522 2011-09-01  Bruno Haible  <bruno@clisp.org>
11523
11524         imaxabs: Avoid link error on OSF/1 with DTK cc.
11525         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11526         as a function.
11527         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11528         whether it is declared.
11529
11530 2011-09-01  Bruno Haible  <bruno@clisp.org>
11531
11532         Tests for module 'strtoumax'.
11533         * modules/strtoumax-tests: New file.
11534         * tests/test-strtoumax.c: New file.
11535
11536         Tests for module 'strtoimax'.
11537         * modules/strtoimax-tests: New file.
11538         * tests/test-strtoimax.c: New file.
11539
11540         Tests for module 'imaxdiv'.
11541         * modules/imaxdiv-tests: New file.
11542         * tests/test-imaxdiv.c: New file.
11543
11544         Tests for module 'imaxabs'.
11545         * modules/imaxabs-tests: New file.
11546         * tests/test-imaxabs.c: New file.
11547
11548 2011-09-01  Bruno Haible  <bruno@clisp.org>
11549
11550         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11551         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11552         pthread_create.
11553
11554 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11555
11556         openat: work around AIX 7.1 fstatat issue
11557         This should fix the problem that was not properly fixed
11558         in the previous change, dated 2011-08-30.
11559         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11560         __need_system_stat_h defined.
11561         (orig_fstatat) [HAVE_FSTATAT]: New function.
11562         (rpl_fstatat): Go back to the old way of doing things,
11563         except call orig_fstatat instead of fstatat.
11564         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11565         Remove unnecessary check whether fstatat fills in st_size etc.
11566
11567 2011-09-01  Bruno Haible  <bruno@clisp.org>
11568
11569         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11570         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11571         just include the system's header.
11572
11573 2011-08-31  Jim Meyering  <meyering@redhat.com>
11574
11575         tests: avoid spurious assertion failure in test-float.c on ppc64
11576         * tests/test-float.c (test_long_double): Comment out an assertion,
11577         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11578         with gcc-4.4.4.
11579
11580         maint: indent with spaces, not TABs
11581         I need to get in the habit of running gnulib's "make check".
11582         Both of these would have been caught.
11583         * m4/largefile.m4: Indent with spaces, not TABs.
11584         * lib/parse-datetime.y (iso_8601_time): Likewise.
11585         Spotted by Pádraig Brady.
11586
11587         test-parse-datetime.c: accommodate a relatively strict gcc warning
11588         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11589         to avoid a warning from gcc's -Werror=missing-declarations.
11590         Insert a few spaces-before-funcall-parenthesis.
11591
11592 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11593
11594         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11595         The parser now accepts ISO 8601 date-time strings with "T" as the
11596         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11597         with a space between the date and time strings.  Now it also parses
11598         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11599         variants like "2004-02-29T16:21:42.333-07:00"
11600         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11601         of day representation using the 'T' separator character.
11602         * doc/parse-datetime.texi (General date syntax): replace use of
11603         deprecated --iso-8601 option with --rfc-3339 in example of date
11604         command output formats that can be parsed.
11605         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11606         lib/parse-datetime.y.
11607         (gmt_offset): New function.
11608         (main): Add additional test cases to validate ISO8601 extended
11609         date and time of day parsing.
11610
11611 2011-08-31  Bruno Haible  <bruno@clisp.org>
11612
11613         freopen: Documentation.
11614         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11615         name.
11616         Reported by Claudio Bley <claudio.bley@gmail.com>.
11617
11618 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11619
11620         freopen: Don't crash if the filename argument is NULL.
11621         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11622         NULL.
11623
11624 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11625
11626         openat: work around AIX 7.1 fstatat bug
11627         Problem reported by Kevin Brott for GNU tar, in the thread containing
11628         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11629         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11630         FSTATAT_ST_SIZE_ETC_BROKEN.
11631         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11632         rpl_fstatat.
11633         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11634         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11635         AC_CHECK_FUNCS_ONCE for fstatat.
11636         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11637         fchmodat, mkdirat, openat and unlinkat.
11638
11639 2011-08-30  Bruno Haible  <bruno@clisp.org>
11640
11641         Avoid endless recursions if config.h includes some header files.
11642         * lib/fopen.c (__need_FILE): Define already before including config.h.
11643         * lib/freopen.c (__need_FILE): Likewise.
11644         * lib/open.c (__need_system_fcntl_h): Likewise.
11645         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11646         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11647         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11648
11649 2011-08-25  Karl Berry  <karl@gnu.org>
11650
11651         * config/srclist.txt (ylwrap): new try.
11652         * build-aux/ylwrap: new file.
11653
11654 2011-08-23  Bruno Haible  <bruno@clisp.org>
11655
11656         tmpdir: Use a good default directory on native Windows.
11657         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11658         (P_tmpdir): Default to _P_tmpdir on native Windows.
11659         (path_search): On native Windows, try the value returned by GetTempPath
11660         before trying P_tmpdir.
11661         * modules/tmpdir (Depends-on): Add pathmax.
11662         Suggested by John Darrington <john@darrington.wattle.id.au>.
11663
11664 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11665
11666         doc: fix typo in README-release
11667         * top/README-release: Capitalize first word of a sentence.
11668
11669 2011-08-19  Jim Meyering  <meyering@redhat.com>
11670
11671         fts: do not exhaust memory when processing million-entry directories
11672         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11673         directory would require about 256*N bytes of memory.  Thus, it was
11674         easy to construct a directory too large to be processed by any of
11675         those tools.  With this change, fts' maximum memory utilization is
11676         now limited to around 30MB.
11677         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11678         (fts_read): When we've processed the final entry (i.e., when
11679         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11680         using the parent entry to read any remaining entries.  Dispatch
11681         depending on what fts_build returns:
11682         - NULL+stop, aka failure: stop
11683         - NULL otherwise: move up in the dir hierarchy
11684         - non-NULL: handle this new entry
11685         (fts_build): Declare and use new local, continue_readdir.
11686         Prepare to be called from fts_read, when the entries
11687         from a partially-read directory have just been exhausted.
11688         In that case, we'll skip the opendir and instead use the parent's
11689         fts_dirp and derive dir_fd from that.
11690         Finally, in the readdir loop, if we read max_entries entries,
11691         exit the loop ensuring *not* to call closedir.  This is required
11692         so that fts_dirp can be reused on a subsequent call.
11693         Prompted by Ben England's report of memory exhaustion in find
11694         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11695
11696         maint: fts: move decl of `dp' down into while loop; split a long line
11697         * lib/fts.c (fts_build): No semantic change.
11698
11699         fts: add/use new struct member, fts_dirp
11700         We are about to use this to manage any directory with
11701         too many entries to read all of them into memory at once.
11702         To do that, we'll need to save the DIR* pointer in each
11703         affected FTSENT struct.
11704         * lib/fts_.h: Include <dirent.h>.
11705         (struct FTSENT) [fts_dirp]: New member.
11706         * lib/fts.c (closedir_and_clear): Define.
11707         Use it in place of closedir so that we are sure to
11708         clear the new fts_dirp member when done with it.
11709         (fts_alloc): Initialize the new member.
11710         (fts_lfree): Free, if needed.
11711
11712         maint: fts: give __opendir2 a new parameter and rename
11713         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11714         than surreptitiously using sole caller's "dir_fd".
11715         (fts_opendir): Rename from __opendir2.
11716
11717         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11718         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11719
11720         maint: fts.c: correct off-by-one indentation
11721         * lib/fts.c (fts_build): Correct indentation, change style
11722         of a couple of block comments, and bracing style.
11723
11724         maint: fts.c: move __opendir2 #define "up" out of function body
11725         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11726
11727         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11728         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11729         out for a long time and besides was useful only on BSD systems.
11730
11731 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11732
11733         regex: port to Stratus OpenVOS
11734         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11735         define to empty, rather than attempting nonportable optimizations.
11736         Problem reported by Paul Green in:
11737         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11738         and fix suggested by Eric Blake in:
11739         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11740
11741 2011-08-17  Eric Blake  <eblake@redhat.com>
11742
11743         getcwd: fix test failures on mingw
11744         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11745         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11746         test if long directory cannot be created, and allow mingw errno.
11747
11748         getcwd-lgpl: fix m4 to match relaxed test for BSD
11749         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11750         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11751         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11752         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11753         signature problem.
11754
11755         getcwd: fix compilation on mingw64
11756         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11757         getcwd.
11758         Reported by Marc-André Lureau.
11759
11760         pipe2: silence compiler warning
11761         * lib/pipe2.c (pipe2): Hide label if it is not used.
11762
11763 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11764
11765         relocatable-prog: fix link error
11766         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11767         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11768         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11769         into modules/relocatable-lib without noticing that
11770         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11771         also needs to build relocatable.c.
11772
11773 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11774
11775         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11777         shell code: it contained a 'break' that was not in a loop.
11778         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11779         via a shell-language loop; this may have been true in old Autoconf
11780         versions, but it's not true in Autoconf 2.68.  I found this bug
11781         when testing coreutils git on Solaris 8, whose shell complains
11782         about the syntax error.
11783
11784 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11785
11786         * lib/base64.c: Fix comment to reference RFC 4648.
11787         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11788         <gvtulder@gmail.com>.
11789
11790 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11791
11792         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11793
11794         po/Makefile.in.in: fix make -q problem
11795         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11796         rule, since there's no file named 'check-macro-version' and its
11797         use as a file breaks make -q.
11798         (all): Don't depend on check-macro-version.
11799         (CHECK_MACRO_VERSION): New macro.
11800         (stamp-po): Use it.
11801
11802         configmake: fix make -q problem
11803         * modules/configmake (configmake.h): Update configmake.h's time stamp
11804         even if the file does not change.  Otherwise, 'make -q' fails.
11805         Problem reported by Simon Josefsson in
11806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11807
11808 2011-08-11  Jim Meyering  <meyering@redhat.com>
11809
11810         git-version-gen: correct the advice in a comment
11811         * build-aux/git-version-gen: Correct comment.
11812         Don't recommend to list .tarball-version in .gitignore.
11813
11814 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11815
11816         base64: fix off-by-one buffer size bug
11817         Problem and (trivial) fix reported by Gijs van Tulder in
11818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11819         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11820         * tests/test-base64.c (main): Catch the bug.
11821
11822 2011-08-10  Eric Blake  <eblake@redhat.com>
11823
11824         closein: correct comments
11825         * lib/closein.c (close_stdin): Improve comments.
11826
11827 2011-08-09  Bruno Haible  <bruno@clisp.org>
11828
11829         More tests for 'fseeko'.
11830         * tests/test-fseeko3.c: New file, from Eric Blake.
11831         * tests/test-fseeko3.sh: New file.
11832         * modules/fseeko-tests (Files): Add them.
11833         (TESTS): Add test-fseeko3.sh.
11834         (check_PROGRAMS): Add test-fseeko3.
11835
11836 2011-08-09  Eric Blake  <eblake@redhat.com>
11837
11838         fseeko: remove unneeded hack
11839         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11840
11841         fseeko: fix bug on glibc
11842         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11843         Reported by John W. Eaton.
11844
11845 2011-08-08  Bruno Haible  <bruno@clisp.org>
11846
11847         unictype/base: Fix interoperability with preinstalled libunistring.
11848         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11849         Reported by Simon Josefsson.
11850
11851 2011-08-08  Bruno Haible  <bruno@clisp.org>
11852
11853         iswblank: Detect declaration correctly.
11854         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11855         AC_CHECK_DECLS invocation.
11856
11857 2011-08-08  Bruno Haible  <bruno@clisp.org>
11858
11859         tcgetsid: Detect declaration correctly.
11860         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11861         AC_CHECK_DECLS invocation.
11862         Reported by Simon Josefsson.
11863
11864 2011-08-08  Eric Blake  <eblake@redhat.com>
11865
11866         largefile: fix typo that regressed large file support
11867         * modules/largefile (configure.ac-early): Fix section name.
11868
11869 2011-08-06  Karl Berry  <karl@gnu.org>
11870
11871         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11872         a separate module.
11873
11874 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11875
11876         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11877         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11878         get prototype for free.
11879
11880 2011-08-04  Bruno Haible  <bruno@clisp.org>
11881
11882         Tests for module 'pathmax'.
11883         * modules/pathmax-tests: New file.
11884         * tests/test-pathmax.c: New file.
11885
11886         canonicalize-lgpl: Support larger filenames on the Hurd.
11887         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11888         Reported by Paul Eggert.
11889
11890         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11891         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11892         * lib/chdir-long.h: Include pathmax.h.
11893         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11894         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11895         (PATH_MAX): Remove code that is done by pathmax.h.
11896         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11897         * lib/tmpfile.c: Add a comment.
11898         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11899         * modules/chdir-long (Depends-on): Add pathmax.
11900         * modules/getcwd (Depends-on): Add pathmax.
11901         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11902         is not defined.
11903         * doc/posix-headers/limits.texi: Mention the pathmax module.
11904         * NEWS: Mention the change.
11905
11906 2011-08-02  Bruno Haible  <bruno@clisp.org>
11907
11908         pthread_sigmask: Actually use results of gl_THREADLIB.
11909         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11910         gl_THREADLIB, not gl_[]THREADLIB.
11911         Reported by Eric Blake.
11912
11913 2011-08-02  Jim Meyering  <meyering@redhat.com>
11914
11915         maint.mk: relax the default _gl_TS_function_match regexp
11916         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11917         space between function name and "(" in an "extern" declaration.
11918         That would fail to match a decl with no space there: extern void foo();
11919
11920 2011-07-31  Iain Nicol  <iain@thenicols.net>
11921
11922         git-version-gen: document that EXTRA_DIST must include .version
11923         * build-aux/git-version-gen: In the how-to-use comment, document
11924         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11925         will fail when run from an unpacked distribution tarball.
11926
11927 2011-08-01  Bruno Haible  <bruno@clisp.org>
11928
11929         wctype-h: Fix last change.
11930         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11931         REPLACE_TOWLOWER to 0.
11932         Reported by Sam Steingold <sds@gnu.org>.
11933
11934 2011-07-31  Bruno Haible  <bruno@clisp.org>
11935
11936         frexpl: Update autoconf test.
11937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11938         according to changes of 2011-06-20.
11939
11940 2011-07-31  Bruno Haible  <bruno@clisp.org>
11941
11942         sys_utsname: Add support for Minix.
11943         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11944         <sys/utsname.h>.
11945         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11946         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11947
11948 2011-07-31  Bruno Haible  <bruno@clisp.org>
11949
11950         strings: Add support for Minix.
11951         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11952         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11953         * doc/posix-headers/strings.texi: Document the Minix problem.
11954
11955 2011-07-31  Bruno Haible  <bruno@clisp.org>
11956
11957         wctype-h: Add support for Minix.
11958         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11959         REPLACE_TOWLOWER.
11960         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11961         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11962         REPLACE_ISWCNTRL.
11963
11964 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11965
11966         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11967         This is a performance improvement for 64-bit hosts: it causes the
11968         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11969
11970 2011-07-31  Bruno Haible  <bruno@clisp.org>
11971
11972         stdioext: Add support for Minix.
11973         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11974         * lib/fpurge.c (fpurge): Likewise.
11975         * lib/freadahead.c (freadahead): Likewise.
11976         * lib/freadable.c (freadable): Likewise.
11977         * lib/freading.c (freading): Likewise.
11978         * lib/freadptr.c (freadptr): Likewise.
11979         * lib/freadseek.c (freadptrinc): Likewise.
11980         * lib/fseeko.c (rpl_fseeko): Likewise.
11981         * lib/fseterr.c (fseterr): Likewise.
11982         * lib/fwritable.c (fwritable): Likewise.
11983         * lib/fwriting.c (fwriting): Likewise.
11984         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11985         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11986
11987 2011-07-31  Bruno Haible  <bruno@clisp.org>
11988
11989         errno: Port to Minix.
11990         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11991         ECONNABORTED are defined.
11992         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11993         GNULIB_defined_ECONNABORTED): New macros.
11994         * lib/strerror-override.h (strerror_override): Test also
11995         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11996         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11997         ECONNABORTED.
11998         * doc/posix-headers/errno.texi: Mention the Minix problem.
11999
12000 2011-07-31  Bruno Haible  <bruno@clisp.org>
12001
12002         Work around declaration collisions on Minix.
12003         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12004         defined, set REPLACE_MBSINIT.
12005         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12006         defined, set REPLACE_MBRTOWC.
12007         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12008         set REPLACE_MBRLEN.
12009         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12010         defined, set REPLACE_MBSRTOWCS.
12011         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12012         defined, set REPLACE_WCRTOMB.
12013         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12014         defined, set REPLACE_WCSRTOMBS.
12015
12016 2011-07-31  Bruno Haible  <bruno@clisp.org>
12017
12018         Add support for Minix with ACK compiler.
12019         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12020         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12021         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12022
12023 2011-07-31  Bruno Haible  <bruno@clisp.org>
12024
12025         Documentation about Minix.
12026         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12027         * doc/glibc-headers/*.texi: Likewise.
12028         * doc/posix-functions/*.texi: Likewise.
12029         * doc/glibc-functions/*.texi: Likewise.
12030
12031 2011-07-31  Bruno Haible  <bruno@clisp.org>
12032
12033         snippet/warn-on-use: Fix indentation.
12034         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12035
12036 2011-07-25  Jim Meyering  <meyering@redhat.com>
12037
12038         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12039         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12040         commands.
12041
12042 2011-07-27  Jim Meyering  <meyering@redhat.com>
12043
12044         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12045         * top/maint.mk (gl_extract_significant_defines_): Now that
12046         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12047         gnulib/lib/signal.in.h, and now that we recommend to
12048         define-if-undefined those two symbols in application code,
12049         we must filter them out of the "significant" list.
12050         This avoids a "make syntax-check" failure in coreutils.
12051
12052 2011-07-26  Eric Blake  <eblake@redhat.com>
12053
12054         warnings: add comments about previous patch
12055         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12056         * m4/include_next.m4: Likewise.
12057         * m4/warn-on-use.m4: Likewise.
12058         * m4/warnings.m4: Likewise, and simplify use.
12059         Suggested by Stefano Lattarini.
12060
12061         include-next, warnings: support older autoconf
12062         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12063         AS_VAR_PUSHDEF in a way that works with older autoconf.
12064         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12065         Reported by Daniel P. Berrange.
12066
12067 2011-07-25  Bruno Haible  <bruno@clisp.org>
12068
12069         fseek, ftell: Fix doc.
12070         * doc/posix-functions/fseek.texi: Reword statement about
12071         AC_SYS_LARGEFILE.
12072         * doc/posix-functions/ftell.texi: Likewise.
12073
12074 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12075             Bruno Haible  <bruno@clisp.org>
12076
12077         Add dependencies to the 'largefile' module.
12078         * modules/fopen (Depends-on): Add 'largefile'.
12079         * modules/freopen (Depends-on): Likewise.
12080         * modules/fseeko (Depends-on): Likewise.
12081         * modules/ftello (Depends-on): Likewise.
12082         * modules/glob (Depends-on): Likewise.
12083         * modules/lseek (Depends-on): Likewise.
12084         * modules/lstat (Depends-on): Likewise.
12085         * modules/mkostemp (Depends-on): Likewise.
12086         * modules/mkostemps (Depends-on): Likewise.
12087         * modules/mkstemp (Depends-on): Likewise.
12088         * modules/mkstemps (Depends-on): Likewise.
12089         * modules/open (Depends-on): Likewise.
12090         * modules/openat (Depends-on): Likewise.
12091         * modules/pread (Depends-on): Likewise.
12092         * modules/pwrite (Depends-on): Likewise.
12093         * modules/scandir (Depends-on): Likewise.
12094         * modules/stat (Depends-on): Likewise.
12095         * modules/tmpfile (Depends-on): Likewise.
12096         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12097         since the containing module now depends on the largefile module.
12098         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12099         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12100         off_t is fixed by gnulib.
12101         * doc/posix-functions/freopen.texi: Likewise.
12102         * doc/posix-functions/fseeko.texi: Likewise.
12103         * doc/posix-functions/fstatat.texi: Likewise.
12104         * doc/posix-functions/ftello.texi: Likewise.
12105         * doc/posix-functions/glob.texi: Likewise.
12106         * doc/posix-functions/lseek.texi: Likewise.
12107         * doc/posix-functions/lstat.texi: Likewise.
12108         * doc/posix-functions/mkstemp.texi: Likewise.
12109         * doc/posix-functions/open.texi: Likewise.
12110         * doc/posix-functions/openat.texi: Likewise.
12111         * doc/posix-functions/pread.texi: Likewise.
12112         * doc/posix-functions/pwrite.texi: Likewise.
12113         * doc/posix-functions/scandir.texi: Likewise.
12114         * doc/posix-functions/stat.texi: Likewise.
12115         * doc/posix-functions/tmpfile.texi: Likewise.
12116         * doc/glibc-functions/mkostemp.texi: Likewise.
12117         * doc/glibc-functions/mkostemps.texi: Likewise.
12118         * doc/glibc-functions/mkstemps.texi: Likewise.
12119
12120 2011-07-25  Bruno Haible  <bruno@clisp.org>
12121
12122         fcntl: Move AC_LIBOBJ invocation to module description.
12123         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12124         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12125
12126         fcntl: Remove call-in from fchdir.m4.
12127         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12129
12130         dup3: Remove potential call-in from fchdir.m4.
12131         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12133
12134         dup2: Move AC_LIBOBJ invocation to module description.
12135         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12136         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12137         Don't invoke AC_LIBOBJ.
12138         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12139
12140         dup2: Remove call-in from fchdir.m4.
12141         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12143
12144         fclose: Move AC_LIBOBJ invocation to module description.
12145         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12146         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12147         to 1.
12148         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12149
12150         fclose: Remove call-in from close.m4.
12151         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12152         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12153
12154         close: Move AC_LIBOBJ invocation to module description.
12155         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12156         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12157         1.
12158         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12159
12160         close: Remove call-in from fchdir.m4.
12161         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12162         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12163
12164         open: Move AC_LIBOBJ invocation to module description.
12165         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12166         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12167         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12168
12169         open: Remove call-in from fchdir.m4.
12170         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12172
12173         fchdir: Start to remove gl_REPLACE_* idiom.
12174         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12175         (gl_FUNC_FCHDIR): Invoke it.
12176
12177 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12178
12179         * lib/ftell.c (ftell): Comment out cast.
12180
12181         close: use gl_REPLACE_FCLOSE only if defined
12182         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12183         is defined.  The close module doesn't depend on the fclose module
12184         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12186         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12187
12188 2011-07-24  Jim Meyering  <meyering@redhat.com>
12189
12190         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12191         * tests/test-select.h (test_function): Declare as "static".
12192
12193 2011-07-24  Bruno Haible  <bruno@clisp.org>
12194
12195         doc: Mention the effects of AC_SYS_LARGEFILE.
12196         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12197         on this function.
12198         * doc/posix-functions/aio_error.texi: Likewise.
12199         * doc/posix-functions/aio_fsync.texi: Likewise.
12200         * doc/posix-functions/aio_read.texi: Likewise.
12201         * doc/posix-functions/aio_return.texi: Likewise.
12202         * doc/posix-functions/aio_suspend.texi: Likewise.
12203         * doc/posix-functions/aio_write.texi: Likewise.
12204         * doc/posix-functions/fgetpos.texi: Likewise.
12205         * doc/posix-functions/fopen.texi: Likewise.
12206         * doc/posix-functions/freopen.texi: Likewise.
12207         * doc/posix-functions/fsetpos.texi: Likewise.
12208         * doc/posix-functions/fstatvfs.texi: Likewise.
12209         * doc/posix-functions/ftruncate.texi: Likewise.
12210         * doc/posix-functions/ftw.texi: Likewise.
12211         * doc/posix-functions/getrlimit.texi: Likewise.
12212         * doc/posix-functions/glob.texi: Likewise.
12213         * doc/posix-functions/lio_listio.texi: Likewise.
12214         * doc/posix-functions/lockf.texi: Likewise.
12215         * doc/posix-functions/mkstemp.texi: Likewise.
12216         * doc/posix-functions/mmap.texi: Likewise.
12217         * doc/posix-functions/nftw.texi: Likewise.
12218         * doc/posix-functions/openat.texi: Likewise.
12219         * doc/posix-functions/opendir.texi: Likewise.
12220         * doc/posix-functions/posix_fadvise.texi: Likewise.
12221         * doc/posix-functions/posix_fallocate.texi: Likewise.
12222         * doc/posix-functions/pread.texi: Likewise.
12223         * doc/posix-functions/pwrite.texi: Likewise.
12224         * doc/posix-functions/readdir.texi: Likewise.
12225         * doc/posix-functions/readdir_r.texi: Likewise.
12226         * doc/posix-functions/rewinddir.texi: Likewise.
12227         * doc/posix-functions/scandir.texi: Likewise.
12228         * doc/posix-functions/seekdir.texi: Likewise.
12229         * doc/posix-functions/setrlimit.texi: Likewise.
12230         * doc/posix-functions/statvfs.texi: Likewise.
12231         * doc/posix-functions/telldir.texi: Likewise.
12232         * doc/posix-functions/tmpfile.texi: Likewise.
12233         * doc/posix-functions/truncate.texi: Likewise.
12234         * doc/glibc-functions/fallocate.texi: Likewise.
12235         * doc/glibc-functions/fstatfs.texi: Likewise.
12236         * doc/glibc-functions/fts_children.texi: Likewise.
12237         * doc/glibc-functions/fts_read.texi: Likewise.
12238         * doc/glibc-functions/getdirentries.texi: Likewise.
12239         * doc/glibc-functions/mkostemp.texi: Likewise.
12240         * doc/glibc-functions/mkostemps.texi: Likewise.
12241         * doc/glibc-functions/mkstemps.texi: Likewise.
12242         * doc/glibc-functions/preadv.texi: Likewise.
12243         * doc/glibc-functions/pwritev.texi: Likewise.
12244         * doc/glibc-functions/sendfile.texi: Likewise.
12245         * doc/glibc-functions/statfs.texi: Likewise.
12246
12247 2011-07-24  Bruno Haible  <bruno@clisp.org>
12248
12249         doc: Fix typo.
12250         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12251
12252 2011-07-24  Bruno Haible  <bruno@clisp.org>
12253
12254         doc: Mention fsusage.
12255         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12256
12257 2011-07-24  Bruno Haible  <bruno@clisp.org>
12258
12259         doc: Mention new glibc headers and functions.
12260         * doc/glibc-headers/gshadow.texi: New file.
12261         * doc/glibc-functions/endsgent.texi: New file.
12262         * doc/glibc-functions/fgetsgent.texi: New file.
12263         * doc/glibc-functions/fgetsgent_r.texi: New file.
12264         * doc/glibc-functions/getsgent.texi: New file.
12265         * doc/glibc-functions/getsgent_r.texi: New file.
12266         * doc/glibc-functions/getsgnam.texi: New file.
12267         * doc/glibc-functions/getsgnam_r.texi: New file.
12268         * doc/glibc-functions/putsgent.texi: New file.
12269         * doc/glibc-functions/setsgent.texi: New file.
12270         * doc/glibc-functions/sgetsgent.texi: New file.
12271         * doc/glibc-functions/sgetsgent_r.texi: New file.
12272         * doc/glibc-functions/malloc_info.texi: New file.
12273         * doc/glibc-functions/preadv.texi: New file.
12274         * doc/glibc-functions/pwritev.texi: New file.
12275         * doc/glibc-functions/register_printf_modifier.texi: New file.
12276         * doc/glibc-functions/register_printf_specifier.texi: New file.
12277         * doc/glibc-functions/register_printf_type.texi: New file.
12278         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12279         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12280         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12281         * doc/glibc-functions/pthread_getname_np.texi: New file.
12282         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12283         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12284         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12285         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12286         * doc/glibc-functions/pthread_setname_np.texi: New file.
12287         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12288         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12289         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12290         * doc/glibc-functions/qsort_r.texi: New file.
12291         * doc/glibc-functions/quick_exit.texi: New file.
12292         * doc/glibc-functions/syncfs.texi: New file.
12293         * doc/gnulib.texi: Include them.
12294         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12295         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12296         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12297         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12298         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12299         * doc/glibc-functions/execvpe.texi: Likewise.
12300
12301 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12302
12303         ftell: don't include <unistd.h>
12304         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12305         guaranteed to define off_t, and the ftell module depends on the
12306         stdio module.
12307
12308         ftell: do not assume wraparound signed arithmetic
12309         * lib/ftell.c: Include <limits.h>.
12310         (ftell): Don't assume wraparound signed arithmetic.
12311
12312 2011-07-24  Bruno Haible  <bruno@clisp.org>
12313
12314         close: No longer depend on module 'fclose'.
12315         * modules/close (Depends-on): Remove fclose.
12316         * NEWS: Mention the change.
12317         Suggested by Sam Steingold <sds@gnu.org>.
12318
12319 2011-07-24  Bruno Haible  <bruno@clisp.org>
12320
12321         fsusage: Enable large volume support on AIX >= 5.2.
12322         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12323         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12324         instead of STAT_STATVFS.
12325         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12326
12327         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12328         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12329         f_blocks field only on MacOS X.
12330
12331         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12332         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12333         * modules/fsusage (Depends-on): Add largefile.
12334
12335 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12336
12337         * README: Modernize discussion of signed integers.
12338         Assuming overflow wraparound is no longer safe.
12339         Mention ones' complement and signed magnitude.
12340
12341 2011-07-22  Bruno Haible  <bruno@clisp.org>
12342
12343         select tests, pselect tests: Refactor.
12344         * tests/test-select.h: New file, extracted from tests/test-select.c.
12345         (select_fn): New type.
12346         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12347         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12348         test_pipe): Add my_select argument.
12349         (test_function): Renamed from main. Add my_select argument.
12350         * tests/test-select.c: Move most code to tests/test-select.h. Include
12351         test-select.h.
12352         * modules/select-tests (Files): Add tests/test-select.h.
12353         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12354         (my_select, main): New functions.
12355         * modules/pselect-tests (Files): Add tests/test-select.h,
12356         tests/macros.h, tests/signature.h.
12357         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12358         (configure.ac): Check for <sys/wait.h>.
12359
12360 2011-07-22  Bruno Haible  <bruno@clisp.org>
12361
12362         sys_select tests: Check the signature of FD_*.
12363         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12364         signature tests from here...
12365         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12366         here.
12367         * modules/sys_select-tests (Files): Add tests/signature.h.
12368
12369 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12370
12371         largefile: new module, replacing large-inode
12372         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12373         * MODULES.html.sh: Add largefile, remove large-inode.
12374         * modules/largefile, m4/largefile.m4: New files.
12375         * modules/large-inode, m4/large-inode.m4: Remove.
12376
12377         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12378         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12379         implementations that use only 32 bits to count blocks.
12380         On typical hosts with 1024-byte blocks, this fails with file
12381         systems as small as 4 TiB.  Problem reported by Herb Wartens
12382         <http://debbugs.gnu.org/9140> and this should also fix a similar
12383         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12384
12385         large-inode: New module
12386         * MODULES.html.sh: Add it.
12387         * modules/large-inode, m4/large-inode.m4: New files.
12388
12389         extensions: Enable extensions on MacOS X 10.5 and later.
12390         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12391
12392 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12393
12394         file-has-acl: use acl_extended_file_nofollow if available
12395         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12396         (acl_extended_file): New macro.
12397         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12398         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12399
12400 2011-07-21  Bruno Haible  <bruno@clisp.org>
12401
12402         Declare system functions in a way that works with C++.
12403         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12404         declare fdopendir as extern "C".
12405         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12406         declare frexpl as extern "C".
12407         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12408         declare gai_strerror as extern "C".
12409         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12410         programs, declare gai_strerror as extern "C".
12411         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12412         declare getlogin_r as extern "C".
12413         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12414         as extern "C".
12415         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12416         declare ldexpl as extern "C".
12417         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12418         as extern "C".
12419         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12420         program, declare getmntinfo as extern "C".
12421         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12422         stpncpy as extern "C".
12423         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12424         program, declare __xpg_strerror_r as extern "C".
12425         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12426         strndup as extern "C".
12427         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12428         declare memset and bzero as extern "C".
12429         Reported by Sam Steingold <sds@gnu.org>.
12430
12431 2011-07-12  Jim Meyering  <meyering@redhat.com>
12432
12433         maint.mk: prohibit inclusion of "verify.h" without use
12434         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12435
12436 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12437
12438         timer-time: A new module to check for timer_settime()
12439         * m4/timer_time.m4: Check for the posix function.
12440         * modules/timer-time: Add the new module.
12441         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12442         Mention it.
12443
12444 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12445             Bruno Haible  <bruno@clisp.org>
12446
12447         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12448         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12449         not defined, assume POSIX threads and look for pthread_sigmask in
12450         $LIBS, without changing $CPPFLAGS.
12451
12452 2011-07-19  Bruno Haible  <bruno@clisp.org>
12453
12454         strstr: Update cross-compilation guess.
12455         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12456         CPUs, guess no, in view of glibc
12457         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12458         Suggested by Eric Blake. Reported by Reuben Thomas.
12459
12460 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12461
12462         getopt-gnu: suppress core dumps from detection code
12463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12464         to suppress core dumps that may well occur on glibc systems.
12465         * modules/getopt-gnu: Depend on nocrash.
12466
12467 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12468
12469         pthread_sigmask: ensure usleep is declared
12470         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12471         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12472
12473 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12474
12475         doc: Document NonStop portability issues.
12476         * doc/posix-functions/sigaction.texi (sigaction):
12477         * doc/posix-headers/signal.texi (signal.h):
12478         Document NonStop.  See Joachim Schmitz in
12479         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12480
12481 2011-07-15  Bruno Haible  <bruno@clisp.org>
12482
12483         ffsl, ffsll: Avoid unportable behaviour.
12484         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12485
12486 2011-07-15  Bruno Haible  <bruno@clisp.org>
12487
12488         ffs: More tests.
12489         * tests/test-ffs.c (NBITS): New macro.
12490         (main): Add more tests.
12491         * tests/test-ffsl.c (NBITS): New macro.
12492         (main): Add more tests.
12493         * tests/test-ffsll.c (NBITS): New macro.
12494         (main): Add more tests.
12495
12496 2011-07-15  Eric Blake  <eblake@redhat.com>
12497
12498         ffsl, ffsll: new modules
12499         * modules/ffsl: New file.
12500         * modules/ffsll: Likewise.
12501         * m4/ffsl.m4: Likewise.
12502         * m4/ffsll.m4: Likewise.
12503         * lib/ffsl.c: Likewise.
12504         * lib/ffsl.h: Likewise.
12505         * lib/ffsll.c: Likewise.
12506         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12507         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12508         * modules/string (Makefile.am): Substitute witnesses.
12509         * lib/strings.in.h (ffsl, ffsll): Declare.
12510         * modules/ffsl-tests: New test file.
12511         * modules/ffsll-tests: Likewise.
12512         * tests/test-ffsl.c: Likewise.
12513         * tests/test-ffsll.c: Likewise.
12514         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12515         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12516         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12517
12518         ffs: fix m4 prerequisite
12519         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12520
12521         ffs: avoid undefined behavior
12522         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12523         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12524         Reported by Bruno Haible.
12525
12526 2011-07-12  Bruno Haible  <bruno@clisp.org>
12527
12528         pthread_sigmask: Rely on module 'threadlib'.
12529         * modules/pthread_sigmask (Depends-on): Add threadlib.
12530         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12531         is defined.
12532
12533 2011-07-12  Bruno Haible  <bruno@clisp.org>
12534
12535         regex: Depend on module 'strcase'.
12536         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12537
12538 2011-07-12  Jim Meyering  <meyering@redhat.com>
12539
12540         warn-on-use: fix typo in file name
12541         * modules/snippet/warn-on-use (Files): Correct file name:
12542         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12543
12544 2011-07-12  Bruno Haible  <bruno@clisp.org>
12545
12546         strings: Document module.
12547         * doc/posix-headers/strings.texi: Mention module 'strings'.
12548
12549 2011-07-12  Bruno Haible  <bruno@clisp.org>
12550
12551         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12552         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12553         (Files, Makefile.am): Update.
12554         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12555         * modules/stdlib (Depends-on): Update.
12556
12557 2011-07-12  Bruno Haible  <bruno@clisp.org>
12558
12559         * NEWS: Mention the changes.
12560
12561         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12562         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12563         (Files, Makefile.am): Update.
12564         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12565         * modules/arpa_inet (Depends-on): Update.
12566         * modules/ctype (Depends-on): Update.
12567         * modules/dirent (Depends-on): Update.
12568         * modules/fcntl-h (Depends-on): Update.
12569         * modules/glob (Depends-on): Update.
12570         * modules/iconv-h (Depends-on): Update.
12571         * modules/inttypes-incomplete (Depends-on): Update.
12572         * modules/langinfo (Depends-on): Update.
12573         * modules/locale (Depends-on): Update.
12574         * modules/math (Depends-on): Update.
12575         * modules/netdb (Depends-on): Update.
12576         * modules/poll-h (Depends-on): Update.
12577         * modules/pty (Depends-on): Update.
12578         * modules/search (Depends-on): Update.
12579         * modules/signal (Depends-on): Update.
12580         * modules/spawn (Depends-on): Update.
12581         * modules/stdio (Depends-on): Update.
12582         * modules/stdlib (Depends-on): Update.
12583         * modules/string (Depends-on): Update.
12584         * modules/strings (Depends-on): Update.
12585         * modules/sys_file (Depends-on): Update.
12586         * modules/sys_ioctl (Depends-on): Update.
12587         * modules/sys_select (Depends-on): Update.
12588         * modules/sys_socket (Depends-on): Update.
12589         * modules/sys_stat (Depends-on): Update.
12590         * modules/sys_time (Depends-on): Update.
12591         * modules/sys_times (Depends-on): Update.
12592         * modules/sys_utsname (Depends-on): Update.
12593         * modules/sys_wait (Depends-on): Update.
12594         * modules/termios (Depends-on): Update.
12595         * modules/time (Depends-on): Update.
12596         * modules/unistd (Depends-on): Update.
12597         * modules/wchar (Depends-on): Update.
12598         * modules/wctype-h (Depends-on): Update.
12599         * MODULES.html.sh (Support for building libraries and executables):
12600         Update.
12601
12602         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12603         * modules/snippet/unused-parameter: Renamed from
12604         modules/unused-parameter.
12605         (Files, Makefile.am): Update.
12606         * build-aux/snippet/unused-parameter.h: Renamed from
12607         build-aux/unused-parameter.h.
12608         * modules/selinux-h (Depends-on): Update.
12609         * modules/unistr/base (Depends-on): Update.
12610         * MODULES.html.sh (Core language properties): Update.
12611
12612         Rename module 'link-warning' to 'snippet/link-warning'.
12613         * modules/snippet/link-warning: Renamed from modules/link-warning.
12614         (Files, Makefile.am): Update.
12615         * build-aux/snippet/link-warning.h: Renamed from
12616         build-aux/link-warning.h.
12617         * MODULES.html.sh (Support for building libraries and executables):
12618         Update.
12619
12620         Rename module 'c++defs' to 'snippet/c++defs'.
12621         * modules/snippet/c++defs: Renamed from modules/c++defs.
12622         (Files, Makefile.am): Update.
12623         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12624         * modules/arpa_inet (Depends-on): Update.
12625         * modules/ctype (Depends-on): Update.
12626         * modules/dirent (Depends-on): Update.
12627         * modules/fcntl-h (Depends-on): Update.
12628         * modules/glob (Depends-on): Update.
12629         * modules/iconv-h (Depends-on): Update.
12630         * modules/langinfo (Depends-on): Update.
12631         * modules/locale (Depends-on): Update.
12632         * modules/math (Depends-on): Update.
12633         * modules/netdb (Depends-on): Update.
12634         * modules/poll-h (Depends-on): Update.
12635         * modules/pty (Depends-on): Update.
12636         * modules/search (Depends-on): Update.
12637         * modules/signal (Depends-on): Update.
12638         * modules/spawn (Depends-on): Update.
12639         * modules/stdio (Depends-on): Update.
12640         * modules/stdlib (Depends-on): Update.
12641         * modules/string (Depends-on): Update.
12642         * modules/strings (Depends-on): Update.
12643         * modules/sys_ioctl (Depends-on): Update.
12644         * modules/sys_select (Depends-on): Update.
12645         * modules/sys_socket (Depends-on): Update.
12646         * modules/sys_stat (Depends-on): Update.
12647         * modules/sys_time (Depends-on): Update.
12648         * modules/sys_wait (Depends-on): Update.
12649         * modules/termios (Depends-on): Update.
12650         * modules/time (Depends-on): Update.
12651         * modules/unistd (Depends-on): Update.
12652         * modules/wchar (Depends-on): Update.
12653         * modules/wctype-h (Depends-on): Update.
12654
12655         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12656         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12657         (Files, Makefile.am): Update.
12658         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12659         * modules/argv-iter (Depends-on): Update.
12660         * modules/arpa_inet (Depends-on): Update.
12661         * modules/dirent (Depends-on): Update.
12662         * modules/fcntl-h (Depends-on): Update.
12663         * modules/fnmatch (Depends-on): Update.
12664         * modules/getopt-posix (Depends-on): Update.
12665         * modules/glob (Depends-on): Update.
12666         * modules/iconv-h (Depends-on): Update.
12667         * modules/inttypes-incomplete (Depends-on): Update.
12668         * modules/locale (Depends-on): Update.
12669         * modules/math (Depends-on): Update.
12670         * modules/netdb (Depends-on): Update.
12671         * modules/search (Depends-on): Update.
12672         * modules/signal (Depends-on): Update.
12673         * modules/spawn (Depends-on): Update.
12674         * modules/stdio (Depends-on): Update.
12675         * modules/stdlib (Depends-on): Update.
12676         * modules/string (Depends-on): Update.
12677         * modules/strings (Depends-on): Update.
12678         * modules/sys_socket (Depends-on): Update.
12679         * modules/sys_stat (Depends-on): Update.
12680         * modules/sys_time (Depends-on): Update.
12681         * modules/sys_times (Depends-on): Update.
12682         * modules/sys_utsname (Depends-on): Update.
12683         * modules/time (Depends-on): Update.
12684         * modules/unistd (Depends-on): Update.
12685         * modules/wchar (Depends-on): Update.
12686         * MODULES.html.sh (Support for building libraries and executables):
12687         Update.
12688
12689 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12690
12691         Improvements on _Noreturn and related modules.
12692
12693         modules/_Exit-tests: test _Noreturn too
12694         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12695         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12696         (main): Use them.
12697
12698         stdnoreturn, stdnoreturn-tests: remove modules
12699         They're not needed here and a bit premature for use elsewhere.  See
12700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12701         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12702         * tests/test-stdnoreturn.c: Remove files.
12703         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12704         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12705         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12706         and using noreturn.
12707         * modules/openat, modules/sigpipe-die, modules/xalloc:
12708         * modules/xmemdup0, modules/xstrtol:
12709         Remove dependency on stdnoreturn.
12710
12711         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12712         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12713         Reparenthesize to avoid GCC warning.
12714         Support Microsoft's syntax.
12715         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12716
12717         _Noreturn-tests: remove module
12718         * modules/_Noreturn-tests: Remove.
12719         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12720         * tests/test-_Noreturn.c: Remove.
12721         * tests/test-stdnoreturn.c: Merge from the old
12722         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12723
12724 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12725
12726         _Noreturn, stdnoreturn, and related modules.
12727
12728         * top/maint.mk: Adjust to new noreturn support.
12729         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12730         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12731
12732         xalloc: use stdnoreturn.h
12733         * lib/xalloc.h: Include <stdnoreturn.h>.
12734         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12735         * modules/xalloc (Depends-on): Add stdnoreturn.
12736
12737         xstrtol: use stdnoreturn.h
12738         * lib/xstrtol.h: Include <stdnoreturn.h>.
12739         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12740         * modules/xstrtol (Depends-on): Add stdnoreturn.
12741
12742         xmemdup0: use stdnoreturn.h
12743         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12744         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12745         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12746
12747         sigpipe-die: use stdnoreturn.h
12748         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12749         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12750         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12751
12752         openat: use stdnoreturn.h
12753         * lib/openat.h: Include <stdnoreturn.h>.
12754         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12755         * modules/openat (Depends-on): Add stdnoreturn.
12756
12757         * lib/openat-die.c (openat_save_fail): Modernize comment.
12758
12759         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12760
12761         * lib/glthread/thread.h: Modernize comment.
12762
12763         obstack: use _Noreturn
12764         * lib/obstack.c (__attribute__): Remove macro.
12765         (print_and_abort): Use _Noreturn.
12766
12767         c-stack: use _Noreturn
12768         * lib/c-stack.c (die, overflow_handler, segv_handler):
12769         Use _Noreturn rather than __attribute__((noreturn)).
12770
12771         argmatch-tests, exclude_tests: use _Noreturn
12772         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12773         Remove.
12774         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12775
12776         stdlib: use _Noreturn
12777         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12778         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12779         * modules/stdlib (Depends-on): Add _Noreturn.
12780         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12781
12782         stdnoreturn-tests: new module
12783         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12784
12785         stdnoreturn: new module
12786         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12787         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12788
12789         _Noreturn-tests: new module
12790         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12791
12792         _Noreturn: new module
12793         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12794         New section, mentioning it.
12795         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12796
12797         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12798
12799 2011-07-11  Eric Blake  <eblake@redhat.com>
12800
12801         ffs: new module
12802         * modules/ffs: New file.
12803         * m4/ffs.m4: Likewise.
12804         * lib/ffs.c: Likewise.
12805         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12806         * modules/strings (Makefile.am): Substitute witness.
12807         (Depends-on): Add c++defs.
12808         * lib/strings.in.h (ffs): Declare.
12809         * modules/ffs-tests: New test file.
12810         * tests/test-ffs.c: Test new module.
12811         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12812         * doc/posix-functions/ffs.texi (ffs): Likewise.
12813
12814         regex: avoid compiler warning
12815         * lib/regex.c (includes): Include <strings.h>, for use of
12816         strcasecmp in regcomp.c.
12817         Reported by Joachim Schmitz.
12818
12819 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12820
12821         stdint: respect system's intmax_t if INTMAX_MAX
12822         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12823         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12824         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12825         long but int64_t is long long, and where we will clash with the
12826         system intmax_t if we override it.  See
12827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12828         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12829         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12830         similarly for UINTMAX_C.
12831
12832 2011-07-08  Bruno Haible  <bruno@clisp.org>
12833
12834         pthread_sigmask tests: Avoid a compiler warning.
12835         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12836         non-zero.
12837
12838         sigprocmask tests: A better way to avoid a compiler warning.
12839         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12840         (main): Complain if system() returns non-zero.
12841         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12842
12843 2011-07-08  Bruno Haible  <bruno@clisp.org>
12844
12845         pthread_sigmask: Work around IRIX bug.
12846         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12847         bug.
12848         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12849         there may be unblocked pending signals.
12850         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12851
12852 2011-07-08  Bruno Haible  <bruno@clisp.org>
12853
12854         pthread_sigmask: Work around Cygwin bug.
12855         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12856         bug.
12857         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12858         the system's pthread_sigmask function.
12859         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12860
12861 2011-07-08  Bruno Haible  <bruno@clisp.org>
12862
12863         pthread_sigmask: Work around bug in single-threaded implementation.
12864         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12865         FreeBSD, HP-UX, Solaris bug.
12866         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12867         * lib/pthread_sigmask.c: Include <stddef.h>.
12868         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12869         the system's pthread_sigmask function.
12870         * modules/pthread_sigmask (configure.ac): Invoke
12871         gl_PREREQ_PTHREAD_SIGMASK.
12872         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12873         HP-UX, Solaris.
12874
12875 2011-07-08  Eric Blake  <eblake@redhat.com>
12876
12877         test-sigprocmask: avoid compiler warning
12878         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12879         * tests/test-sigprocmask.c (main): Use it to silence warning.
12880         Reported by Jim Meyering.
12881
12882         test-snprintf: avoid compiler warning
12883         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12884         * tests/test-vsnprintf.c (main): Likewise.
12885         Reported by Jim Meyering.
12886
12887 2011-07-08  Bruno Haible  <bruno@clisp.org>
12888
12889         Tests for module 'pthread_sigmask'.
12890         * modules/pthread_sigmask-tests: New file.
12891         * tests/test-pthread_sigmask1.c: New file, based on
12892         tests/test-sigprocmask.c.
12893         * tests/test-pthread_sigmask2.c: New file.
12894
12895 2011-07-08  Jim Meyering  <meyering@redhat.com>
12896
12897         test-getopt.h: avoid warning about an unused variable
12898         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12899
12900 2011-07-07  Jim Meyering  <meyering@redhat.com>
12901
12902         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12903         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12904         now that it no longer contains leading TABs.
12905         Remove unused "url=FIXME" statement.
12906
12907 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12908
12909         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12910         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12911         When gl_THREADLIB is not in use, assume that the POSIX sematics
12912         are desired.  This is better for Emacs, which uses POSIX semantics
12913         on GNUish and/or POSIXish platforms, and does not use threads at
12914         all otherwise.
12915
12916         pthread_sigmask: fix typo when testing for libraries
12917         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12918         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12919
12920 2011-07-08  Eric Blake  <eblake@redhat.com>
12921
12922         fts: introduce FTS_NOATIME
12923         * lib/fts_.h (FTS_NOATIME): New bit flag.
12924         (FTS_OPTIONMASK): Adjust.
12925         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12926         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12927
12928 2011-07-08  Bruno Haible  <bruno@clisp.org>
12929
12930         Tests for module 'thread'.
12931         * modules/thread-tests: New file.
12932         * tests/test-thread_self.c: New file.
12933         * tests/test-thread_create.cc: New file.
12934
12935 2011-07-08  Bruno Haible  <bruno@clisp.org>
12936
12937         thread: Avoid gcc warnings when using gl_thread_self().
12938         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12939         'void *'.
12940         (gl_thread_self_pointer): Update.
12941
12942 2011-07-07  Bruno Haible  <bruno@clisp.org>
12943
12944         signal-c++-tests: Check declaration of pthread_sigmask.
12945         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12946         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12947         $(LIB_PTHREAD_SIGMASK).
12948
12949 2011-07-07  Bruno Haible  <bruno@clisp.org>
12950
12951         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12952         * lib/signal.in.h (pthread_sigmask): Override if
12953         REPLACE_PTHREAD_SIGMASK is 1.
12954         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12955         REPLACE_PTHREAD_SIGMASK.
12956         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12957         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12958         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12959         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12960         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12961
12962 2011-07-07  Bruno Haible  <bruno@clisp.org>
12963
12964         pthread_sigmask: Ensure declaration in <signal.h>.
12965         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12966         include <pthread.h>.
12967         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12968         problem.
12969
12970 2011-07-07  Bruno Haible  <bruno@clisp.org>
12971
12972         pthread_sigmask: Document the module.
12973         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12974
12975 2011-07-07  Bruno Haible  <bruno@clisp.org>
12976
12977         pthread_sigmask: Follow gnulib conventions.
12978         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12979         gl_PTHREAD_SIGMASK.
12980         * modules/pthread_sigmask (configure.ac): Update.
12981
12982 2011-07-07  Bruno Haible  <bruno@clisp.org>
12983
12984         pthread_sigmask: Make declaration C++ safe.
12985         * lib/signal.in.h: In two special conditions, just do an #include_next.
12986         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12987         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12988         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12989         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12990         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12991         not REPLACE_PTHREAD_MASK.
12992         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12993         not REPLACE_PTHREAD_MASK.
12994         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12995
12996 2011-07-07  Bruno Haible  <bruno@clisp.org>
12997
12998         pthread_sigmask: Fix return value.
12999         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13000         * lib/pthread_sigmask.c: New file.
13001         * modules/pthread_sigmask (Files): Add it.
13002         (configure.ac): Invoke AC_LIBOBJ.
13003
13004 2011-07-07  Eric Blake  <eblake@redhat.com>
13005
13006         getopt: more portable argv creation
13007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13008         const, use char arrays rather than strings.
13009         Suggested by Paul Eggert.
13010
13011 2011-07-07  Bruno Haible  <bruno@clisp.org>
13012
13013         Tests for module 'sigprocmask'.
13014         * modules/sigprocmask-tests: New file.
13015         * tests/test-sigprocmask.c: New file.
13016
13017 2011-07-07  Bruno Haible  <bruno@clisp.org>
13018
13019         float tests: Tweak.
13020         * tests/test-float.c (main): Tweak skip message.
13021
13022 2011-07-07  Eric Blake  <eblake@redhat.com>
13023
13024         getopt: avoid compiler warning during configure
13025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13026         assigning string literals to non-const pointer.
13027
13028         getopt-gnu: avoid crash in glibc getopt
13029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13030         * tests/test-getopt.h (test_getopt): Enhance test.
13031         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13032         * doc/posix-functions/getopt.texi (getopt): Document it.
13033         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13034         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13035         Likewise.
13036
13037 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13038
13039         getopt: handle W; without long options in getopt [BZ #12922]
13040         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13041         but no long options are defined, just return 'W'.
13042
13043 2011-07-07  Bruno Haible  <bruno@clisp.org>
13044
13045         Avoid literal tabs.
13046         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13047         variable containing a tab instead of a literal tab.
13048         Reported by Jim Meyering.
13049
13050 2011-07-07  Bruno Haible  <bruno@clisp.org>
13051
13052         Comments.
13053         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13054
13055 2011-07-06  Bruno Haible  <bruno@clisp.org>
13056
13057         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13058         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13059         <winsock2.h>.
13060         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13061         lib/sys_socket.in.h.
13062         (close, gethostname): Hide declarations from <winsock2.h>.
13063         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13064         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13065         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13066         (select): Don't override if gnulib's <sys/select.h> was already
13067         included.
13068         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13069         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13070         setsockopt, shutdown, select): Tweak indentation.
13071
13072 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13073
13074         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13075         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13076         in an application that does not use the sys_select module.
13077
13078 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13079
13080         poll: do not return 0 on timeout=-1
13081         * lib/poll.c: Loop with yield if no events occured
13082
13083 2011-07-06  Eric Blake  <eblake@redhat.com>
13084
13085         pthread_sigmask: always replace when not using pthread
13086         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13087         replacement when using some threading other than pthread.  Fix
13088         logic bug.
13089
13090 2011-07-06  Bruno Haible  <bruno@clisp.org>
13091
13092         Comments.
13093         * m4/printf.m4: Update comments about mingw.
13094
13095 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13096
13097         sys_select: define sigset_t more portably
13098         * lib/sys_select.in.h: Always include <sys/types.h>, since
13099         we now need sigset_t and mingw defines it there.
13100         Include <signal.h> before split inclusion guard, to avoid
13101         mishaps on Solaris, whose <signal.h> eventually includes us.
13102         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13103         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13104         which come from ...
13105         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13106         gl_CHECK_TYPE_SIGSET_T.
13107         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13108         does the real work.
13109         * modules/sys_select (Depends-on): Add 'signal'.
13110
13111         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13112         Suggested by Bruno Haible.
13113
13114         pselect: Use pthread_sigmask, not sigprocmask.
13115         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13116         multithreaded apps better than sigprocmask does.
13117         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13118         sigprocmask directly.
13119
13120 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13121
13122         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13123         Don't #undef,  since we don't need any underlying pselect.
13124         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13125         (Depends-on): Add select.
13126         (Link): Add $(LIBSOCKET).
13127         These changes suggested by Bruno Haible.
13128
13129         pselect: document better
13130         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13131         * doc/posix-functions/pselect.texi (pselect): Document new module.
13132
13133         pthread_sigmask: new module
13134         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13135         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13136         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13137         This is done only as a macro; I don't know how well that'll
13138         work for C++.  Move <sys/types.h> include before the include_next,
13139         to avoid mishap on Solaris.
13140         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13141         * modules/signal (Makefile.am): Substitute the check's results.
13142         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13143
13144         test-pselect: new module
13145         * modules/pselect-tests, tests/test-pselect.c: New files.
13146         * tests/test-select.c, tests/test-sys_select-c++.cc:
13147         If TEST_PSELECT is defined, test pselect instead of testing select.
13148
13149         * tests/test-sys_select.c (sigset_t): Test for it, too.
13150         Suggested by Bruno Haible.
13151
13152 2011-07-05  Eric Blake  <eblake@redhat.com>
13153
13154         snprintf: guarantee %1$d, for libintl
13155         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13156         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13157         * doc/posix-functions/snprintf.texi (snprintf): Update.
13158         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13159         * tests/test-snprintf.c (main): Enhance test.
13160         * tests/test-vsnprintf.c (main): Likewise.
13161
13162 2011-07-05  Jim Meyering  <meyering@redhat.com>
13163
13164         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13165         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13166         per Bruno's request, to accommodate this idiom (no space after "#")
13167         even when the function is inside an #if block:
13168         char *
13169         gets (char *s)
13170         #undef gets
13171         {
13172           ...
13173         }
13174
13175 2011-07-04  Jim Meyering  <meyering@redhat.com>
13176
13177         maint: indent with spaces, not TABs, and add a rule to check this
13178         * tests/test-userspec.c: Indent with spaces, not TABs.
13179         * tests/test-argp.c: Likewise.
13180         * tests/test-c-stack2.sh: Likewise.
13181         * tests/test-parse-duration.sh: Likewise
13182         * m4/strtod.m4: Likewise.
13183         * m4/alloca.m4: Likewise.
13184         * m4/pselect.m4: Likewise.
13185         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13186
13187 2011-07-03  Jim Meyering  <meyering@redhat.com>
13188
13189         maint.mk: correct omissions in prohibit_argmatch_without_use check
13190         This rule would mistakenly report that argmatch.h is included without
13191         use even when both the argmatch and invalid_arg macro were used.
13192         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13193         of argmatch and invalid_arg.
13194
13195 2011-07-03  Bruno Haible  <bruno@clisp.org>
13196
13197         Comments about EINTR.
13198         * lib/safe-read.h: Explain the purpose of this module.
13199         * lib/safe-write.h: Likewise.
13200         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13201         module.
13202         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13203         module.
13204         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13205
13206 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13207
13208         xnanosleep: Rewrite to use new dtotimespec module.
13209         It has the conversion code that used to be in xnanosleep.
13210         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13211         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13212         (TIME_T_MAX): Remove.
13213         (xnanosleep): Rewrite in terms of dtotimespec.
13214         * modules/xnanosleep (Depends-on): Add dtotimespec.
13215         Remove intprops, stdbool.
13216
13217         timespec-add, timespec-sub: new modules
13218         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13219         * lib/timespec-add.c, lib/timespec-sub.c:
13220         * modules/timespec-add, modules/timespec-sub: New files.
13221
13222         dtotimespec: new module
13223         * lib/timespec.h (dtotimespec): New decl.
13224         * lib/dtotimespec.c, modules/dtotimespec: New files.
13225
13226         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13227
13228         pselect: new module
13229         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13230         (pselect): New decls.
13231         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13232         since the standard pselect decl uses 'restrict'.
13233         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13234         HAVE_PSELECT, REPLACE_PSELECT.
13235         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13236         HAVE_PSELECT, REPLACE_PSELECT.
13237         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13238
13239         sys_select: don't depend on sys_socket
13240         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13242         This fix works on GNU and GNU-like platforms, but has not been tested
13243         on native Windows.
13244         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13246         gl_HEADER_SYS_SOCKET.
13247         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13248         gl_PREREQ_SYS_H_WINSOCK2.
13249
13250 2011-06-29  Eric Blake  <eblake@redhat.com>
13251
13252         pipe2: fix C89 compile problem
13253         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13254         Reported by Bruno Haible.
13255
13256         pipe, pipe2: don't corrupt fd on error
13257         * lib/pipe.c (pipe): Leave fd unchanged on error.
13258         * lib/pipe2.c (pipe2): Likewise.
13259         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13260         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13261
13262 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13263
13264         mmap-anon: do not use regular expressions inadvertently
13265         * m4/mmap-anon.m4: Remove trailing period from strings sought
13266         in the output.
13267
13268 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13269
13270         nanosleep: fix integer overflow problem
13271         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13272         arithmetic wraps around on overflow.
13273
13274         nanosleep: simplify carrying
13275         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13276         first call to the underyling nanosleep, not for the last one.
13277         This doesn't fix any bugs, but it simplifies the computation of
13278         the remaining delay.  Found while auditing integer overflow issues.
13279
13280         dup2: remove test for existence of fcntl
13281         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13282         "#if HAVE_FCNTL", in the configure-time test program.
13283         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13284         and therefore speeds up "configure" a bit.  Found while
13285         adding the dup2 module to Emacs.
13286
13287 2011-06-24  Eric Blake  <eblake@redhat.com>
13288
13289         maint.mk: enhance useless header checks
13290         * top/maint.mk (_sc_header_without_use): Check both include
13291         styles.
13292         (sc_prohibit_assert_without_use)
13293         (sc_prohibit_close_stream_without_use)
13294         (sc_prohibit_getopt_without_use)
13295         (sc_prohibit_quotearg_without_use)
13296         (sc_prohibit_quote_without_use)
13297         (sc_prohibit_long_options_without_use)
13298         (sc_prohibit_inttostr_without_use)
13299         (sc_prohibit_ignore_value_without_use)
13300         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13301         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13302         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13303         (sc_prohibit_hash_pjw_without_use)
13304         (sc_prohibit_safe_read_without_use)
13305         (sc_prohibit_argmatch_without_use)
13306         (sc_prohibit_canonicalize_without_use)
13307         (sc_prohibit_root_dev_ino_without_use)
13308         (sc_prohibit_openat_without_use)
13309         (sc_prohibit_c_ctype_without_use)
13310         (sc_prohibit_signal_without_use)
13311         (sc_prohibit_stdio--_without_use)
13312         (sc_prohibit_stdio-safer_without_use)
13313         (sc_prohibit_strings_without_use)
13314         (sc_prohibit_intprops_without_use)
13315         (sc_prohibit_stddef_without_use)
13316         (sc_prohibit_xfreopen_without_use): Update clients.
13317
13318 2011-06-24  Jim Meyering  <meyering@redhat.com>
13319
13320         syntax-check: keep one maint.mk rule in sync with its header
13321         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13322         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13323         I prefer to avoid temporary files here, so use <(...), but that
13324         is not supported by /bin/sh, so...
13325         (SHELL): Define to /bin/bash.
13326
13327 2011-06-24  Eric Blake  <eblake@redhat.com>
13328
13329         maint.mk: update sc_prohibit_intprops_without_use
13330         * top/maint.mk (_intprops_names): Match recent changes.
13331
13332 2011-06-24  Bruno Haible  <bruno@clisp.org>
13333
13334         strerror-override: No-op tweak.
13335         * lib/strerror-override.h (strerror_override): Reorder conditions,
13336         for consistency with lib/strerror-override.c.
13337
13338 2011-06-23  Eric Blake  <eblake@redhat.com>
13339
13340         maint.mk: test further PATH_MAX issues
13341         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13342         (sc_prohibit_path_max_allocation): ...and also test alloca.
13343         Suggested by Jim Meyering.
13344
13345 2011-06-22  Eric Blake  <eblake@redhat.com>
13346
13347         maint.mk: add syntax-check to avoid char[PATH_MAX]
13348         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13349
13350         stat: be robust to PATH_MAX definition
13351         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13352         * modules/stat (Depends-on): Add verify.
13353
13354         link: work around IRIX bug
13355         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13356         * lib/link.c (rpl_link): Work around it.
13357         * tests/test-link.h (test_link): Enhance test.
13358         * doc/posix-functions/link.texi (link): Document the bug.
13359
13360         getopt: silence clang warning
13361         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13362         dereference.
13363         Reported by Gustavo Martin Domato.
13364
13365 2011-06-22  Jim Meyering  <meyering@redhat.com>
13366
13367         bootstrap: do not insert a blank line into each .gitignore file
13368         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13369
13370 2011-06-21  Eric Blake  <eblake@redhat.com>
13371
13372         perror: test for output mismatch
13373         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13374         perror on IRIX.
13375
13376         strerror_r: fix OpenBSD behavior on out-of-range
13377         * lib/strerror_r.c (strerror_r): Always use maximal string.
13378         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13379
13380         strerror_r: fix OpenBSD behavior on 0
13381         * lib/strerror-override.c (strerror_override): Also override 0
13382         when needed.
13383         * lib/strerror-override.h (strerror_override): Likewise.
13384         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13385         earlier.
13386         * lib/strerror_r.c (strerror_r): Likewise.
13387         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13388         behavior...
13389         (gl_FUNC_STRERROR_0): ...into new macro.
13390         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13391         is overridden.
13392         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13393         * modules/strerror-override (Files): Add strerror.m4.
13394         (configure.ac): Also provide override for 0 when needed.
13395         * doc/posix-functions/strerror.texi (strerror): Document this.
13396         * doc/posix-functions/perror.texi (perror): Likewise.
13397
13398         perror: adjust array size
13399         * modules/perror (Depends-on): Add strerror-override.
13400         * lib/perror.c (perror): Use it to avoid magic number.
13401
13402         strerror-override: reduce size
13403         * lib/strerror-override.c (strerror_override): Use fewer lines.
13404
13405 2011-06-20  Bruno Haible  <bruno@clisp.org>
13406
13407         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13408         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13409
13410 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13411
13412         alloca: port to compilers that can optimize like GCC 4.6.0
13413         * lib/alloca.c (find_stack_direction): New signature, taken from
13414         Autoconf git.  This works with GCC 4.6.0.  This code should never
13415         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13416         be used with other compilers that optimize as well as GCC 4.6.0 does.
13417         (alloca): Adjust to new signature.
13418         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13419         New macro, which patches Autoconf in a similar way.
13420
13421         c-stack: stop worrying about stack direction
13422         * lib/c-stack.c (find_stack_direction): Remove.
13423         (segv_handler): Don't worry about stack direction growth, as it's
13424         too much of a pain to configure this correctly, given how compilers
13425         are optimizing-away our stack-growth detection code.  Instead, assume
13426         that any access to just before or just after the stack is OK.
13427         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13428         Don't require AC_FUNC_ALLOCA; no longer needed.
13429
13430 2011-06-20  Eric Blake  <eblake@redhat.com>
13431
13432         test-stat: don't allocate PATH_MAX bytes
13433         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13434         PATH_MAX-sized buffer.
13435         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13436         * modules/stat-tests (Depends-on): Likewise.
13437         * tests/test-fstatat.c (includes): Drop pathmax.h.
13438         * tests/test-stat.c (includes): Likewise.
13439         Reported by Bruno Haible.
13440
13441 2011-06-20  Bruno Haible  <bruno@clisp.org>
13442
13443         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13444         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13445         * lib/float.c: New file.
13446         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13447         REPLACE_FLOAT_LDBL.
13448         * modules/float (Files): Add lib/float.c.
13449         (configure.ac): Invoke AC_LIBOBJ.
13450         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13451
13452 2011-06-20  Bruno Haible  <bruno@clisp.org>
13453
13454         Tests for module 'float'.
13455         * modules/float-tests: New file.
13456         * tests/test-float.c: New file.
13457
13458 2011-06-19  Bruno Haible  <bruno@clisp.org>
13459
13460         isinf: Coding style.
13461         * lib/isinf.c: Use GNU coding style.
13462
13463 2011-06-19  Bruno Haible  <bruno@clisp.org>
13464
13465         linkat test: Avoid test failure on AIX 7.1.
13466         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13467         * tests/test-link.h (test_link): Likewise.
13468
13469 2011-06-19  Bruno Haible  <bruno@clisp.org>
13470
13471         pread test: Avoid test failure on OpenBSD 4.9.
13472         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13473
13474 2011-06-19  Bruno Haible  <bruno@clisp.org>
13475
13476         sprintf-posix: Fix test failure on AIX 7.1.
13477         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13478         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13479         on AIX.
13480         * doc/posix-functions/fprintf.texi: Likewise.
13481         * doc/posix-functions/printf.texi: Likewise.
13482         * doc/posix-functions/snprintf.texi: Likewise.
13483         * doc/posix-functions/sprintf.texi: Likewise.
13484         * doc/posix-functions/vdprintf.texi: Likewise.
13485         * doc/posix-functions/vfprintf.texi: Likewise.
13486         * doc/posix-functions/vprintf.texi: Likewise.
13487         * doc/posix-functions/vsnprintf.texi: Likewise.
13488         * doc/posix-functions/vsprintf.texi: Likewise.
13489
13490 2011-06-19  Bruno Haible  <bruno@clisp.org>
13491
13492         roundl-ieee: Fix test failure on AIX 7.1.
13493         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13494         * doc/posix-functions/roundl.texi: Mention problem with negative
13495         arguments.
13496
13497 2011-06-19  Bruno Haible  <bruno@clisp.org>
13498
13499         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13500         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13501         * doc/posix-functions/round.texi: Mention problem with negative
13502         arguments.
13503         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13504
13505 2011-06-19  Bruno Haible  <bruno@clisp.org>
13506
13507         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13508         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13509         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13510         * doc/posix-functions/roundf.texi: Mention problem with negative
13511         arguments.
13512         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13513
13514 2011-06-19  Bruno Haible  <bruno@clisp.org>
13515
13516         ceilf-ieee: Work around bug on MacOS X 10.5.
13517         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13518
13519         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13520         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13521         IEEE compliant, avoid compiler optimizations.
13522         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13523         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13524         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13525         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13526         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13527         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13528         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13529         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13530         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13531         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13532
13533 2011-06-19  Bruno Haible  <bruno@clisp.org>
13534
13535         ceilf-ieee: Work around bug on AIX 7.1.
13536         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13537         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13538
13539 2011-06-19  Bruno Haible  <bruno@clisp.org>
13540
13541         ceil-ieee: Work around bug on AIX 7.1.
13542         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13543         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13544
13545 2011-06-18  Bruno Haible  <bruno@clisp.org>
13546
13547         fsync test: Avoid test failure on MacOS X and AIX.
13548         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13549         EINVAL.
13550
13551 2011-06-18  Bruno Haible  <bruno@clisp.org>
13552
13553         openat, fdopendir tests: Fix link errors.
13554         * modules/openat-tests (Depends-on): Add progname.
13555         * modules/fdopendir-tests (Depends-on): Likewise.
13556         * tests/test-fchownat.c: Include progname.h.
13557         (main): Call set_program_name.
13558         * tests/test-fstatat.c: Include progname.h.
13559         (main): Call set_program_name.
13560         * tests/test-mkdirat.c: Include progname.h.
13561         (main): Call set_program_name.
13562         * tests/test-openat.c: Include progname.h.
13563         (main): Call set_program_name.
13564         * tests/test-unlinkat.c: Include progname.h.
13565         (main): Call set_program_name.
13566         * tests/test-fdopendir.c: Include progname.h.
13567         (main): Call set_program_name.
13568
13569 2011-06-18  Bruno Haible  <bruno@clisp.org>
13570
13571         Doc update.
13572         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13573         HP-UX.
13574         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13575
13576 2011-06-18  Bruno Haible  <bruno@clisp.org>
13577
13578         getcwd tests: Avoid compilation error on HP-UX 11.31.
13579         * modules/getcwd-tests (Depends-on): Add pathmax.
13580         * tests/test-getcwd.c: Include pathmax.h.
13581
13582 2011-06-18  Bruno Haible  <bruno@clisp.org>
13583
13584         isfinite, isinf: Fix link error on AIX 6 and 7.
13585         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13586         needed, also test the macro with a 'float' argument.
13587         * m4/isinf.m4 (gl_ISINF): Likewise.
13588
13589 2011-06-18  Bruno Haible  <bruno@clisp.org>
13590
13591         getloadavg: Don't clobber LIBS. Regression from previous commit.
13592         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13593         AC_CHECK_LIB from here...
13594         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13595         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13596         gl_func_getloadavg_done.
13597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13598
13599 2011-06-18  Bruno Haible  <bruno@clisp.org>
13600
13601         clean-temp: Improve documentation.
13602         * lib/clean-temp.h: Explain better how to use this module.
13603         Reported by John Darrington <john@darrington.wattle.id.au>.
13604
13605 2011-06-17  Bruno Haible  <bruno@clisp.org>
13606
13607         pread, pwrite: Avoid cc warning on AIX.
13608         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13609         (pwrite): Likewise.
13610
13611 2011-06-17  Bruno Haible  <bruno@clisp.org>
13612
13613         spawn-pipe tests: Fix link error.
13614         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13616
13617 2011-06-17  Bruno Haible  <bruno@clisp.org>
13618
13619         Tests: Remove unnecessary dependency.
13620         * modules/canonicalize-tests (Depends-on): Remove progname.
13621         * modules/chown-tests (Depends-on): Likewise.
13622         * modules/dirname-tests (Depends-on): Likewise.
13623         * modules/fdopendir-tests (Depends-on): Likewise.
13624         * modules/fdutimensat-tests (Depends-on): Likewise.
13625         * modules/hash-tests (Depends-on): Likewise.
13626         * modules/lchown-tests (Depends-on): Likewise.
13627         * modules/linkat-tests (Depends-on): Likewise.
13628         * modules/renameat-tests (Depends-on): Likewise.
13629         * modules/spawn-pipe-tests (Depends-on): Likewise.
13630         * modules/utimensat-tests (Depends-on): Likewise.
13631
13632 2011-06-17  Bruno Haible  <bruno@clisp.org>
13633
13634         spawn-pipe tests: Fix link error.
13635         * tests/test-spawn-pipe-child.c: Undefine fflush.
13636
13637 2011-06-17  Bruno Haible  <bruno@clisp.org>
13638
13639         Fix tests link errors.
13640         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13641         * modules/chown-tests (Makefile.am): Don't link test-chown with
13642         LIBINTL.
13643         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13644         LIBINTL.
13645         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13646         LIBINTL.
13647         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13648         LIBINTL.
13649
13650 2011-06-16  Bruno Haible  <bruno@clisp.org>
13651
13652         crypto/gc-sha1: Fix recent regression.
13653         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13654         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13655
13656         crypto/gc-md5: Fix recent regression.
13657         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13658
13659         crypto/gc-md4: Fix recent regression.
13660         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13661         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13662
13663         crypto/gc-arctwo: Fix recent regression.
13664         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13665         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13666
13667         crypto/gc-rijndael: Fix recent regression.
13668         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13669         (configure.ac): Invoke AC_LIBOBJ here.
13670         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13672
13673         crypto/gc-hmac-sha1: Fix recent regression.
13674         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13675         (configure.ac): Invoke AC_LIBOBJ here.
13676         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13678
13679         crypto/gc-hmac-md5: Fix recent regression.
13680         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13681         (configure.ac): Invoke AC_LIBOBJ here.
13682         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13683         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13684
13685         crypto/gc-des: Fix recent regression.
13686         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13687         (configure.ac): Invoke AC_LIBOBJ here.
13688         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13690
13691         crypto/gc-arcfour: Fix recent regression.
13692         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13693         (configure.ac): Invoke AC_LIBOBJ here.
13694         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13696
13697 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13698
13699         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13700         After the 2011-05-21 change, this macro requires
13701         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13702         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13703
13704 2011-06-16  Bruno Haible  <bruno@clisp.org>
13705
13706         fprintftime: Move AC_LIBOBJ invocations to module description.
13707         * m4/fprintftime.m4: Remove file.
13708         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13709         (configure.ac): Remove gl_FPRINTFTIME call.
13710         (Makefile.am): Augment lib_SOURCES.
13711         Reported by Jim Meyering.
13712
13713 2011-06-16  Bruno Haible  <bruno@clisp.org>
13714
13715         tmpfile-safer: Finish 2011-05-23 commit.
13716         * m4/stdio-safer.m4: Really remove file.
13717         Reported by Jim Meyering.
13718
13719 2011-06-16  Bruno Haible  <bruno@clisp.org>
13720
13721         syntax-check: Fix typo.
13722         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13723         printf-posix.m4.
13724         Reported by Jim Meyering.
13725
13726 2011-06-13  Jim Meyering  <meyering@redhat.com>
13727
13728         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13729         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13730
13731 2011-05-23  Bruno Haible  <bruno@clisp.org>
13732
13733         yesno: Move AC_LIBOBJ invocations to module description.
13734         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13735         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13736
13737 2011-05-23  Bruno Haible  <bruno@clisp.org>
13738
13739         xstrtol: Move AC_LIBOBJ invocations to module description.
13740         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13741         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13742
13743 2011-05-23  Bruno Haible  <bruno@clisp.org>
13744
13745         xstrtold: Move AC_LIBOBJ invocations to module description.
13746         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13747         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13748
13749 2011-05-23  Bruno Haible  <bruno@clisp.org>
13750
13751         xstrtod: Move AC_LIBOBJ invocations to module description.
13752         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13753         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13754
13755 2011-05-23  Bruno Haible  <bruno@clisp.org>
13756
13757         xnanosleep: Move AC_LIBOBJ invocations to module description.
13758         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13759         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13760
13761 2011-05-23  Bruno Haible  <bruno@clisp.org>
13762
13763         xgetcwd: Move AC_LIBOBJ invocations to module description.
13764         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13765         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13766
13767 2011-05-23  Bruno Haible  <bruno@clisp.org>
13768
13769         xalloc: Move AC_LIBOBJ invocations to module description.
13770         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13771         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13772
13773 2011-05-23  Bruno Haible  <bruno@clisp.org>
13774
13775         write-any-file: Move AC_LIBOBJ invocations to module description.
13776         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13777         invocation.
13778         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13779
13780 2011-05-23  Bruno Haible  <bruno@clisp.org>
13781
13782         utimens: Move AC_LIBOBJ invocations to module description.
13783         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13784         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13785
13786 2011-05-23  Bruno Haible  <bruno@clisp.org>
13787
13788         utimecmp: Move AC_LIBOBJ invocations to module description.
13789         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13790         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13791
13792 2011-05-23  Bruno Haible  <bruno@clisp.org>
13793
13794         userspec: Move AC_LIBOBJ invocations to module description.
13795         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13796         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13797
13798 2011-05-23  Bruno Haible  <bruno@clisp.org>
13799
13800         unlinkdir: Move AC_LIBOBJ invocations to module description.
13801         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13802         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13803
13804 2011-05-23  Bruno Haible  <bruno@clisp.org>
13805
13806         unistd-safer: Move AC_LIBOBJ invocations to module description.
13807         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13808         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13809
13810 2011-05-23  Bruno Haible  <bruno@clisp.org>
13811
13812         tempname: Move AC_LIBOBJ invocations to module description.
13813         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13814         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13815
13816 2011-05-23  Bruno Haible  <bruno@clisp.org>
13817
13818         strftime: Move AC_LIBOBJ invocations to module description.
13819         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13820         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13821
13822 2011-05-23  Bruno Haible  <bruno@clisp.org>
13823
13824         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13825         * m4/stdlib-safer.m4: Remove file.
13826         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13827         (configure.ac): Remove gl_STDLIB_SAFER call.
13828         (Makefile.am): Augment lib_SOURCES.
13829
13830 2011-05-23  Bruno Haible  <bruno@clisp.org>
13831
13832         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13833         * m4/stdio-safer.m4: Remove file.
13834         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13835         (configure.ac): Remove gl_TMPFILE_SAFER call.
13836         (Makefile.am): Augment lib_SOURCES.
13837
13838 2011-05-23  Bruno Haible  <bruno@clisp.org>
13839
13840         popen-safer: Move AC_LIBOBJ invocations to module description.
13841         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13842         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13843         (configure.ac): Remove gl_POPEN_SAFER call.
13844         (Makefile.am): Augment lib_SOURCES.
13845
13846 2011-05-23  Bruno Haible  <bruno@clisp.org>
13847
13848         freopen-safer: Move AC_LIBOBJ invocations to module description.
13849         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13850         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13851         (configure.ac): Remove gl_FREOPEN_SAFER call.
13852         (Makefile.am): Augment lib_SOURCES.
13853
13854 2011-05-23  Bruno Haible  <bruno@clisp.org>
13855
13856         fopen-safer: Move AC_LIBOBJ invocations to module description.
13857         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13858         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13859         (configure.ac): Remove gl_FOPEN_SAFER call.
13860         (Makefile.am): Augment lib_SOURCES.
13861
13862 2011-05-23  Bruno Haible  <bruno@clisp.org>
13863
13864         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13865         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13866         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13867
13868 2011-05-23  Bruno Haible  <bruno@clisp.org>
13869
13870         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13871         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13872         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13873
13874 2011-05-23  Bruno Haible  <bruno@clisp.org>
13875
13876         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13877         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13878         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13879
13880 2011-05-23  Bruno Haible  <bruno@clisp.org>
13881
13882         settime: Move AC_LIBOBJ invocations to module description.
13883         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13884         * modules/settime (Makefile.am): Augment lib_SOURCES.
13885
13886 2011-05-23  Bruno Haible  <bruno@clisp.org>
13887
13888         savedir: Move AC_LIBOBJ invocations to module description.
13889         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13890         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13891
13892 2011-05-23  Bruno Haible  <bruno@clisp.org>
13893
13894         save-cwd: Move AC_LIBOBJ invocations to module description.
13895         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13896         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13897
13898 2011-05-23  Bruno Haible  <bruno@clisp.org>
13899
13900         same: Move AC_LIBOBJ invocations to module description.
13901         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13902         * modules/same (Makefile.am): Augment lib_SOURCES.
13903
13904 2011-05-23  Bruno Haible  <bruno@clisp.org>
13905
13906         safe-write: Move AC_LIBOBJ invocations to module description.
13907         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13908         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13909         instead of gl_SAFE_WRITE.
13910         (Makefile.am): Augment lib_SOURCES.
13911
13912 2011-05-23  Bruno Haible  <bruno@clisp.org>
13913
13914         safe-read: Move AC_LIBOBJ invocations to module description.
13915         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13916         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13917         of gl_SAFE_READ.
13918         (Makefile.am): Augment lib_SOURCES.
13919
13920 2011-05-23  Bruno Haible  <bruno@clisp.org>
13921
13922         safe-alloc: Move AC_LIBOBJ invocations to module description.
13923         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13924         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13925
13926 2011-05-23  Bruno Haible  <bruno@clisp.org>
13927
13928         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13929         * m4/rijndael.m4: Remove file.
13930         * modules/crypto/rijndael (Files): Remove it.
13931         (configure.ac): Remove gl_RIJNDAEL call.
13932         (Makefile.am): Augment lib_SOURCES.
13933
13934 2011-05-23  Bruno Haible  <bruno@clisp.org>
13935
13936         readtokens: Move AC_LIBOBJ invocations to module description.
13937         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13938         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13939
13940 2011-05-23  Bruno Haible  <bruno@clisp.org>
13941
13942         read-file: Move AC_LIBOBJ invocations to module description.
13943         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13944         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13945         of gl_FUNC_READ_FILE.
13946         (Makefile.am): Augment lib_SOURCES.
13947
13948 2011-05-23  Bruno Haible  <bruno@clisp.org>
13949
13950         quotearg: Move AC_LIBOBJ invocations to module description.
13951         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13952         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13953
13954 2011-05-23  Bruno Haible  <bruno@clisp.org>
13955
13956         quote: Move AC_LIBOBJ invocations to module description.
13957         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13958         * modules/quote (Makefile.am): Augment lib_SOURCES.
13959
13960 2011-05-23  Bruno Haible  <bruno@clisp.org>
13961
13962         posixver: Move AC_LIBOBJ invocations to module description.
13963         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13964         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13965
13966 2011-05-23  Bruno Haible  <bruno@clisp.org>
13967
13968         posixtm: Move AC_LIBOBJ invocations to module description.
13969         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13970         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13971
13972 2011-05-23  Bruno Haible  <bruno@clisp.org>
13973
13974         physmem: Move AC_LIBOBJ invocations to module description.
13975         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13976         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13977
13978 2011-05-23  Bruno Haible  <bruno@clisp.org>
13979
13980         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13981         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13982         invocation.
13983         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13984
13985 2011-05-23  Bruno Haible  <bruno@clisp.org>
13986
13987         mpsort: Move AC_LIBOBJ invocations to module description.
13988         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13989         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13990
13991 2011-05-23  Bruno Haible  <bruno@clisp.org>
13992
13993         modechange: Move AC_LIBOBJ invocations to module description.
13994         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13995         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13996
13997 2011-05-23  Bruno Haible  <bruno@clisp.org>
13998
13999         mkdir-p: Move AC_LIBOBJ invocations to module description.
14000         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14001         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14002
14003 2011-05-23  Bruno Haible  <bruno@clisp.org>
14004
14005         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14006         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14007         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14008
14009 2011-05-23  Bruno Haible  <bruno@clisp.org>
14010
14011         mgetgroups: Move AC_LIBOBJ invocations to module description.
14012         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14013         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14014
14015 2011-05-23  Bruno Haible  <bruno@clisp.org>
14016
14017         memxor: Move AC_LIBOBJ invocations to module description.
14018         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14019         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14020
14021 2011-05-23  Bruno Haible  <bruno@clisp.org>
14022
14023         memcoll: Move AC_LIBOBJ invocations to module description.
14024         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14025         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14026
14027 2011-05-23  Bruno Haible  <bruno@clisp.org>
14028
14029         memcasecmp: Move AC_LIBOBJ invocations to module description.
14030         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14031         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14032
14033 2011-05-23  Bruno Haible  <bruno@clisp.org>
14034
14035         crypto/md5: Move AC_LIBOBJ invocations to module description.
14036         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14037         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14038
14039 2011-05-23  Bruno Haible  <bruno@clisp.org>
14040
14041         crypto/md4: Move AC_LIBOBJ invocations to module description.
14042         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14043         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14044
14045 2011-05-23  Bruno Haible  <bruno@clisp.org>
14046
14047         crypto/md2: Move AC_LIBOBJ invocations to module description.
14048         * m4/md2.m4: Remove file.
14049         * modules/crypto/md2 (Files): Remove it.
14050         (configure.ac): Remove gl_MD2 call.
14051         (Makefile.am): Augment lib_SOURCES.
14052
14053 2011-05-23  Bruno Haible  <bruno@clisp.org>
14054
14055         long-options: Move AC_LIBOBJ invocations to module description.
14056         * m4/long-options.m4: Remove file.
14057         * modules/long-options (Files): Remove it.
14058         (configure.ac): Remove gl_LONG_OPTIONS call.
14059         (Makefile.am): Augment lib_SOURCES.
14060
14061 2011-05-23  Bruno Haible  <bruno@clisp.org>
14062
14063         i-ring: Move AC_LIBOBJ invocations to module description.
14064         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14065         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14066
14067 2011-05-23  Bruno Haible  <bruno@clisp.org>
14068
14069         idcache: Move AC_LIBOBJ invocations to module description.
14070         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14071         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14072
14073 2011-05-23  Bruno Haible  <bruno@clisp.org>
14074
14075         human: Move AC_LIBOBJ invocations to module description.
14076         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14077         * modules/human (Makefile.am): Augment lib_SOURCES.
14078
14079 2011-05-23  Bruno Haible  <bruno@clisp.org>
14080
14081         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14082         * m4/hmac-sha1.m4: Remove file.
14083         * modules/crypto/hmac-sha1 (Files): Remove it.
14084         (configure.ac): Remove gl_HMAC_SHA1 call.
14085         (Makefile.am): Augment lib_SOURCES.
14086
14087 2011-05-23  Bruno Haible  <bruno@clisp.org>
14088
14089         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14090         * m4/hmac-md5.m4: Remove file.
14091         * modules/crypto/hmac-md5 (Files): Remove it.
14092         (configure.ac): Remove gl_HMAC_MD5 call.
14093         (Makefile.am): Augment lib_SOURCES.
14094
14095 2011-05-23  Bruno Haible  <bruno@clisp.org>
14096
14097         hash: Move AC_LIBOBJ invocations to module description.
14098         * m4/hash.m4: Remove file.
14099         * modules/hash (Files): Remove it.
14100         (configure.ac): Remove gl_HASH call.
14101         (Makefile.am): Augment lib_SOURCES.
14102
14103 2011-05-23  Bruno Haible  <bruno@clisp.org>
14104
14105         hard-locale: Move AC_LIBOBJ invocations to module description.
14106         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14107         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14108
14109 2011-05-23  Bruno Haible  <bruno@clisp.org>
14110
14111         getugroups: Move AC_LIBOBJ invocations to module description.
14112         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14113         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14114
14115 2011-05-23  Bruno Haible  <bruno@clisp.org>
14116
14117         gettime: Move AC_LIBOBJ invocations to module description.
14118         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14119         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14120
14121 2011-05-23  Bruno Haible  <bruno@clisp.org>
14122
14123         getndelim2: Move AC_LIBOBJ invocations to module description.
14124         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14125         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14126
14127 2011-05-23  Bruno Haible  <bruno@clisp.org>
14128
14129         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14130         * m4/gc-pbkdf2-sha1.m4: Remove file.
14131         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14132         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14133         (Makefile.am): Augment lib_SOURCES.
14134
14135 2011-05-23  Bruno Haible  <bruno@clisp.org>
14136
14137         fts: Move AC_LIBOBJ invocations to module description.
14138         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14139         * modules/fts (configure.ac): ... to here.
14140
14141 2011-05-23  Bruno Haible  <bruno@clisp.org>
14142
14143         file-type: Move AC_LIBOBJ invocations to module description.
14144         * m4/file-type.m4: Remove file.
14145         * modules/file-type (Files): Remove it.
14146         (configure.ac): Remove gl_FILE_TYPE call.
14147         (Makefile.am): Augment lib_SOURCES.
14148
14149 2011-05-23  Bruno Haible  <bruno@clisp.org>
14150
14151         filenamecat*: Respect rules for use of AC_LIBOBJ.
14152         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14153         Remove AC_LIBOBJ invocation.
14154         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14155         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14156
14157 2011-05-23  Bruno Haible  <bruno@clisp.org>
14158
14159         filemode: Move AC_LIBOBJ invocations to module description.
14160         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14161         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14162
14163 2011-05-23  Bruno Haible  <bruno@clisp.org>
14164
14165         openat-safer: Move AC_LIBOBJ invocations to module description.
14166         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14167         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14168
14169 2011-05-23  Bruno Haible  <bruno@clisp.org>
14170
14171         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14172         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14173         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14174
14175 2011-05-23  Bruno Haible  <bruno@clisp.org>
14176
14177         exclude: Move AC_LIBOBJ invocations to module description.
14178         * m4/exclude.m4: Remove file.
14179         * modules/exclude (Files): Remove it.
14180         (configure.ac): Remove gl_EXCLUDE call.
14181         (Makefile.am): Augment lib_SOURCES.
14182
14183 2011-05-23  Bruno Haible  <bruno@clisp.org>
14184
14185         dirname*: Respect rules for use of AC_LIBOBJ.
14186         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14187         invocations.
14188         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14189         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14190
14191 2011-05-23  Bruno Haible  <bruno@clisp.org>
14192
14193         dirent-safer: Move AC_LIBOBJ invocations to module description.
14194         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14195         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14196
14197 2011-05-23  Bruno Haible  <bruno@clisp.org>
14198
14199         crypto/des: Move AC_LIBOBJ invocations to module description.
14200         * m4/des.m4: Remove file.
14201         * modules/crypto/des (Files): Remove it.
14202         (configure.ac): Remove gl_DES call.
14203         (Makefile.am): Augment lib_SOURCES.
14204
14205 2011-05-23  Bruno Haible  <bruno@clisp.org>
14206
14207         cycle-check: Move AC_LIBOBJ invocations to module description.
14208         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14209         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14210
14211 2011-05-23  Bruno Haible  <bruno@clisp.org>
14212
14213         c-strtold: Move AC_LIBOBJ invocations to module description.
14214         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14215         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14216
14217 2011-05-23  Bruno Haible  <bruno@clisp.org>
14218
14219         c-strtod: Move AC_LIBOBJ invocations to module description.
14220         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14221         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14222
14223 2011-05-23  Bruno Haible  <bruno@clisp.org>
14224
14225         crc: Move AC_LIBOBJ invocations to module description.
14226         * m4/crc.m4: Remove file.
14227         * modules/crc (Files): Remove it.
14228         (configure.ac): Remove gl_CRC call.
14229         (Makefile.am): Augment lib_SOURCES.
14230
14231 2011-05-23  Bruno Haible  <bruno@clisp.org>
14232
14233         close-stream: Move AC_LIBOBJ invocations to module description.
14234         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14235         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14236
14237 2011-05-23  Bruno Haible  <bruno@clisp.org>
14238
14239         closeout: Move AC_LIBOBJ invocations to module description.
14240         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14241         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14242
14243 2011-05-23  Bruno Haible  <bruno@clisp.org>
14244
14245         closein: Move AC_LIBOBJ invocations to module description.
14246         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14247         * modules/closein (Makefile.am): Augment lib_SOURCES.
14248
14249 2011-05-23  Bruno Haible  <bruno@clisp.org>
14250
14251         cloexec: Move AC_LIBOBJ invocations to module description.
14252         * m4/cloexec.m4: Remove file.
14253         * modules/cloexec (Files): Remove it.
14254         (configure.ac): Remove gl_CLOEXEC call.
14255         (Makefile.am): Augment lib_SOURCES.
14256
14257 2011-05-23  Bruno Haible  <bruno@clisp.org>
14258
14259         check-version: Move AC_LIBOBJ invocations to module description.
14260         * m4/check-version.m4: Remove file.
14261         * modules/check-version (Files): Remove it.
14262         (configure.ac): Remove gl_CHECK_VERSION call.
14263         (Makefile.am): Augment lib_SOURCES.
14264
14265 2011-05-23  Bruno Haible  <bruno@clisp.org>
14266
14267         chdir-safer: Move AC_LIBOBJ invocations to module description.
14268         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14269         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14270
14271 2011-05-23  Bruno Haible  <bruno@clisp.org>
14272
14273         canonicalize: Move AC_LIBOBJ invocations to module description.
14274         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14275         AC_LIBOBJ invocation.
14276         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14277
14278 2011-05-23  Bruno Haible  <bruno@clisp.org>
14279
14280         canon-host: Move AC_LIBOBJ invocations to module description.
14281         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14282         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14283         instead of gl_CANON_HOST.
14284         (Makefile.am): Augment lib_SOURCES.
14285
14286 2011-05-23  Bruno Haible  <bruno@clisp.org>
14287
14288         backupfile: Move AC_LIBOBJ invocations to module description.
14289         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14290         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14291
14292 2011-05-23  Bruno Haible  <bruno@clisp.org>
14293
14294         argmatch: Move AC_LIBOBJ invocations to module description.
14295         * m4/argmatch.m4: Remove file.
14296         * modules/argmatch (Files): Remove it.
14297         (configure.ac): Remove gl_ARGMATCH call.
14298         (Makefile.am): Augment lib_SOURCES.
14299
14300 2011-05-23  Bruno Haible  <bruno@clisp.org>
14301
14302         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14303         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14304         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14305
14306 2011-05-23  Bruno Haible  <bruno@clisp.org>
14307
14308         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14309         * m4/arcfour.m4: Remove file.
14310         * modules/crypto/arcfour (Files): Remove it.
14311         (configure.ac): Remove gl_ARCFOUR call.
14312         (Makefile.am): Augment lib_SOURCES.
14313
14314 2011-05-22  Bruno Haible  <bruno@clisp.org>
14315
14316         write: Move AC_LIBOBJ invocations to module description.
14317         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14318         * modules/write (configure.ac): ... to here.
14319
14320 2011-05-22  Bruno Haible  <bruno@clisp.org>
14321
14322         wmemset: Move AC_LIBOBJ invocations to module description.
14323         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14324         here...
14325         * modules/wmemset (configure.ac): ... to here.
14326
14327 2011-05-22  Bruno Haible  <bruno@clisp.org>
14328
14329         wmemmove: Move AC_LIBOBJ invocations to module description.
14330         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14331         here...
14332         * modules/wmemmove (configure.ac): ... to here.
14333
14334 2011-05-22  Bruno Haible  <bruno@clisp.org>
14335
14336         wmemcpy: Move AC_LIBOBJ invocations to module description.
14337         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14338         here...
14339         * modules/wmemcpy (configure.ac): ... to here.
14340
14341 2011-05-22  Bruno Haible  <bruno@clisp.org>
14342
14343         wmemcmp: Move AC_LIBOBJ invocations to module description.
14344         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14345         here...
14346         * modules/wmemcmp (configure.ac): ... to here.
14347
14348 2011-05-22  Bruno Haible  <bruno@clisp.org>
14349
14350         wmemchr: Move AC_LIBOBJ invocations to module description.
14351         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14352         here...
14353         * modules/wmemchr (configure.ac): ... to here.
14354
14355 2011-05-22  Bruno Haible  <bruno@clisp.org>
14356
14357         wcswidth: Move AC_LIBOBJ invocations to module description.
14358         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14359         here...
14360         * modules/wcswidth (configure.ac): ... to here.
14361
14362 2011-05-22  Bruno Haible  <bruno@clisp.org>
14363
14364         wcwidth: Respect rules for use of AC_LIBOBJ.
14365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14366         invocation from here...
14367         * modules/wcwidth (configure.ac): ... to here.
14368         (Depends-on): Update conditions.
14369
14370 2011-05-22  Bruno Haible  <bruno@clisp.org>
14371
14372         wctype: Move AC_LIBOBJ invocations to module description.
14373         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14374         invocation from here...
14375         * modules/wctype (configure.ac): ... to here.
14376         (Depends-on): Update conditions.
14377
14378 2011-05-22  Bruno Haible  <bruno@clisp.org>
14379
14380         wctrans: Move AC_LIBOBJ invocations to module description.
14381         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14382         invocation from here...
14383         * modules/wctrans (configure.ac): ... to here.
14384
14385 2011-05-22  Bruno Haible  <bruno@clisp.org>
14386
14387         wctomb: Move AC_LIBOBJ invocations to module description.
14388         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14389         invocations from here...
14390         * modules/wctomb (configure.ac): ... to here.
14391
14392 2011-05-22  Bruno Haible  <bruno@clisp.org>
14393
14394         wctob: Move AC_LIBOBJ invocations to module description.
14395         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14396         gl_PREREQ_WCTOB invocations from here...
14397         * modules/wctob (configure.ac): ... to here.
14398         (Depends-on): Update conditions.
14399
14400 2011-05-22  Bruno Haible  <bruno@clisp.org>
14401
14402         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14403         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14404         here...
14405         * modules/wcsxfrm (configure.ac): ... to here.
14406
14407 2011-05-22  Bruno Haible  <bruno@clisp.org>
14408
14409         wcstok: Move AC_LIBOBJ invocations to module description.
14410         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14411         * modules/wcstok (configure.ac): ... to here.
14412
14413 2011-05-22  Bruno Haible  <bruno@clisp.org>
14414
14415         wcsstr: Move AC_LIBOBJ invocations to module description.
14416         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14417         * modules/wcsstr (configure.ac): ... to here.
14418
14419 2011-05-22  Bruno Haible  <bruno@clisp.org>
14420
14421         wcsspn: Move AC_LIBOBJ invocations to module description.
14422         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14423         * modules/wcsspn (configure.ac): ... to here.
14424
14425 2011-05-22  Bruno Haible  <bruno@clisp.org>
14426
14427         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14428         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14429         gl_PREREQ_WCSRTOMBS invocations from here...
14430         * modules/wcsrtombs (configure.ac): ... to here.
14431
14432 2011-05-22  Bruno Haible  <bruno@clisp.org>
14433
14434         wcsrchr: Move AC_LIBOBJ invocations to module description.
14435         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14436         here...
14437         * modules/wcsrchr (configure.ac): ... to here.
14438
14439 2011-05-22  Bruno Haible  <bruno@clisp.org>
14440
14441         wcspbrk: Move AC_LIBOBJ invocations to module description.
14442         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14443         here...
14444         * modules/wcspbrk (configure.ac): ... to here.
14445
14446 2011-05-22  Bruno Haible  <bruno@clisp.org>
14447
14448         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14449         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14450         gl_PREREQ_WCSNRTOMBS invocations from here...
14451         * modules/wcsnrtombs (configure.ac): ... to here.
14452
14453 2011-05-22  Bruno Haible  <bruno@clisp.org>
14454
14455         wcsnlen: Move AC_LIBOBJ invocations to module description.
14456         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14457         here...
14458         * modules/wcsnlen (configure.ac): ... to here.
14459
14460 2011-05-22  Bruno Haible  <bruno@clisp.org>
14461
14462         wcsncpy: Move AC_LIBOBJ invocations to module description.
14463         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14464         here...
14465         * modules/wcsncpy (configure.ac): ... to here.
14466
14467 2011-05-22  Bruno Haible  <bruno@clisp.org>
14468
14469         wcsncmp: Move AC_LIBOBJ invocations to module description.
14470         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14471         here...
14472         * modules/wcsncmp (configure.ac): ... to here.
14473
14474 2011-05-22  Bruno Haible  <bruno@clisp.org>
14475
14476         wcsncat: Move AC_LIBOBJ invocations to module description.
14477         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14478         here...
14479         * modules/wcsncat (configure.ac): ... to here.
14480
14481 2011-05-22  Bruno Haible  <bruno@clisp.org>
14482
14483         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14484         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14485         from here...
14486         * modules/wcsncasecmp (configure.ac): ... to here.
14487
14488 2011-05-22  Bruno Haible  <bruno@clisp.org>
14489
14490         wcslen: Move AC_LIBOBJ invocations to module description.
14491         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14492         * modules/wcslen (configure.ac): ... to here.
14493
14494 2011-05-22  Bruno Haible  <bruno@clisp.org>
14495
14496         wcsdup: Move AC_LIBOBJ invocations to module description.
14497         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14498         * modules/wcsdup (configure.ac): ... to here.
14499
14500 2011-05-22  Bruno Haible  <bruno@clisp.org>
14501
14502         wcscspn: Move AC_LIBOBJ invocations to module description.
14503         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14504         here...
14505         * modules/wcscspn (configure.ac): ... to here.
14506
14507 2011-05-22  Bruno Haible  <bruno@clisp.org>
14508
14509         wcscpy: Move AC_LIBOBJ invocations to module description.
14510         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14511         * modules/wcscpy (configure.ac): ... to here.
14512
14513 2011-05-22  Bruno Haible  <bruno@clisp.org>
14514
14515         wcscoll: Move AC_LIBOBJ invocations to module description.
14516         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14517         here...
14518         * modules/wcscoll (configure.ac): ... to here.
14519
14520 2011-05-22  Bruno Haible  <bruno@clisp.org>
14521
14522         wcscmp: Move AC_LIBOBJ invocations to module description.
14523         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14524         * modules/wcscmp (configure.ac): ... to here.
14525
14526 2011-05-22  Bruno Haible  <bruno@clisp.org>
14527
14528         wcschr: Move AC_LIBOBJ invocations to module description.
14529         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14530         * modules/wcschr (configure.ac): ... to here.
14531
14532 2011-05-22  Bruno Haible  <bruno@clisp.org>
14533
14534         wcscat: Move AC_LIBOBJ invocations to module description.
14535         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14536         * modules/wcscat (configure.ac): ... to here.
14537
14538 2011-05-22  Bruno Haible  <bruno@clisp.org>
14539
14540         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14541         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14542         here...
14543         * modules/wcscasecmp (configure.ac): ... to here.
14544
14545 2011-05-22  Bruno Haible  <bruno@clisp.org>
14546
14547         wcrtomb: Move AC_LIBOBJ invocations to module description.
14548         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14549         invocations from here...
14550         * modules/wcrtomb (configure.ac): ... to here.
14551
14552 2011-05-22  Bruno Haible  <bruno@clisp.org>
14553
14554         wcpncpy: Move AC_LIBOBJ invocations to module description.
14555         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14556         here...
14557         * modules/wcpncpy (configure.ac): ... to here.
14558
14559 2011-05-22  Bruno Haible  <bruno@clisp.org>
14560
14561         wcpcpy: Move AC_LIBOBJ invocations to module description.
14562         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14563         * modules/wcpcpy (configure.ac): ... to here.
14564
14565 2011-05-22  Bruno Haible  <bruno@clisp.org>
14566
14567         waitpid: Move AC_LIBOBJ invocations to module description.
14568         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14569         invocation from here...
14570         * modules/waitpid (configure.ac): ... to here.
14571
14572 2011-05-22  Bruno Haible  <bruno@clisp.org>
14573
14574         utimensat: Move AC_LIBOBJ invocations to module description.
14575         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14576         here...
14577         * modules/utimensat (configure.ac): ... to here.
14578
14579 2011-05-22  Bruno Haible  <bruno@clisp.org>
14580
14581         usleep: Move AC_LIBOBJ invocations to module description.
14582         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14583         here...
14584         * modules/usleep (configure.ac): ... to here.
14585
14586 2011-05-22  Bruno Haible  <bruno@clisp.org>
14587
14588         unlockpt: Move AC_LIBOBJ invocations to module description.
14589         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14590         gl_PREREQ_UNLOCKPT invocations from here...
14591         * modules/unlockpt (configure.ac): ... to here.
14592
14593 2011-05-22  Bruno Haible  <bruno@clisp.org>
14594
14595         unlink: Respect rules for use of AC_LIBOBJ.
14596         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14597         * modules/unlink (configure.ac): ... to here.
14598
14599 2011-05-22  Bruno Haible  <bruno@clisp.org>
14600
14601         uname: Move AC_LIBOBJ invocations to module description.
14602         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14603         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14604         here...
14605         * modules/uname (configure.ac): ... to here.
14606
14607 2011-05-22  Bruno Haible  <bruno@clisp.org>
14608
14609         ttyname_r: Move AC_LIBOBJ invocations to module description.
14610         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14611         gl_PREREQ_TTYNAME_R invocations from here...
14612         * modules/ttyname_r (configure.ac): ... to here.
14613
14614 2011-05-22  Bruno Haible  <bruno@clisp.org>
14615
14616         tsearch: Move AC_LIBOBJ invocations to module description.
14617         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14618         invocations from here...
14619         * modules/tsearch (configure.ac): ... to here.
14620
14621 2011-05-22  Bruno Haible  <bruno@clisp.org>
14622
14623         towctrans: Move AC_LIBOBJ invocations to module description.
14624         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14625         AC_LIBOBJ invocation from here...
14626         * modules/towctrans (configure.ac): ... to here.
14627
14628 2011-05-22  Bruno Haible  <bruno@clisp.org>
14629
14630         tmpfile: Move AC_LIBOBJ invocations to module description.
14631         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14632         invocations from here...
14633         * modules/tmpfile (configure.ac): ... to here.
14634
14635 2011-05-22  Bruno Haible  <bruno@clisp.org>
14636
14637         times: Move AC_LIBOBJ invocations to module description.
14638         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14639         * modules/times (configure.ac): ... to here.
14640
14641 2011-05-22  Bruno Haible  <bruno@clisp.org>
14642
14643         time_r: Move AC_LIBOBJ invocations to module description.
14644         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14645         invocations from here...
14646         * modules/time_r (configure.ac): ... to here.
14647
14648 2011-05-22  Bruno Haible  <bruno@clisp.org>
14649
14650         timegm: Move AC_LIBOBJ invocations to module description.
14651         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14652         invocations from here...
14653         * modules/timegm (configure.ac): ... to here.
14654
14655 2011-05-22  Bruno Haible  <bruno@clisp.org>
14656
14657         tcgetsid: Move AC_LIBOBJ invocations to module description.
14658         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14659         and gl_PREREQ_TCGETSID invocations from here...
14660         * modules/tcgetsid (configure.ac): ... to here.
14661         (Depends-on): Update conditions.
14662
14663 2011-05-22  Bruno Haible  <bruno@clisp.org>
14664
14665         symlinkat: Move AC_LIBOBJ invocations to module description.
14666         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14667         here...
14668         * modules/symlinkat (configure.ac): ... to here.
14669
14670 2011-05-22  Bruno Haible  <bruno@clisp.org>
14671
14672         symlink: Move AC_LIBOBJ invocations to module description.
14673         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14674         here...
14675         * modules/symlink (configure.ac): ... to here.
14676
14677 2011-05-22  Bruno Haible  <bruno@clisp.org>
14678
14679         strverscmp: Move AC_LIBOBJ invocations to module description.
14680         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14681         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14682         from here...
14683         * modules/strverscmp (configure.ac): ... to here.
14684
14685 2011-05-22  Bruno Haible  <bruno@clisp.org>
14686
14687         strtok_r: Move AC_LIBOBJ invocations to module description.
14688         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14689         and gl_PREREQ_STRTOK_R invocations from here...
14690         * modules/strtok_r (configure.ac): ... to here.
14691         (Depends-on): Update conditions.
14692
14693 2011-05-22  Bruno Haible  <bruno@clisp.org>
14694
14695         strtoumax: Move AC_LIBOBJ invocations to module description.
14696         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14697         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14698         from here...
14699         * modules/strtoumax (configure.ac): ... to here.
14700
14701 2011-05-22  Bruno Haible  <bruno@clisp.org>
14702
14703         strtoimax: Move AC_LIBOBJ invocations to module description.
14704         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14705         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14706         from here...
14707         * modules/strtoimax (configure.ac): ... to here.
14708
14709 2011-05-22  Bruno Haible  <bruno@clisp.org>
14710
14711         strtoull: Move AC_LIBOBJ invocations to module description.
14712         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14713         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14714         from here...
14715         * modules/strtoull (configure.ac): ... to here.
14716
14717 2011-05-22  Bruno Haible  <bruno@clisp.org>
14718
14719         strtoll: Move AC_LIBOBJ invocations to module description.
14720         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14721         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14722         here...
14723         * modules/strtoll (configure.ac): ... to here.
14724
14725 2011-05-22  Bruno Haible  <bruno@clisp.org>
14726
14727         strtoul: Move AC_LIBOBJ invocations to module description.
14728         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14729         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14730         * modules/strtoul (configure.ac): ... to here.
14731
14732 2011-05-22  Bruno Haible  <bruno@clisp.org>
14733
14734         strtol: Move AC_LIBOBJ invocations to module description.
14735         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14736         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14737         * modules/strtol (configure.ac): ... to here.
14738
14739 2011-05-22  Bruno Haible  <bruno@clisp.org>
14740
14741         strtod: Move AC_LIBOBJ invocations to module description.
14742         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14743         invocations from here...
14744         * modules/strtod (configure.ac): ... to here.
14745
14746 2011-05-22  Bruno Haible  <bruno@clisp.org>
14747
14748         strstr*: Move AC_LIBOBJ invocations to module description.
14749         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14750         invocations from here...
14751         * modules/strstr-simple (configure.ac): ... to here.
14752         * modules/strstr (configure.ac): ... and here.
14753
14754 2011-05-22  Bruno Haible  <bruno@clisp.org>
14755
14756         strsignal: Move AC_LIBOBJ invocations to module description.
14757         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14758         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14759         * modules/strsignal (configure.ac): ... to here.
14760         (Depends-on): Update conditions.
14761
14762 2011-05-22  Bruno Haible  <bruno@clisp.org>
14763
14764         strsep: Move AC_LIBOBJ invocations to module description.
14765         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14766         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14767         here...
14768         * modules/strsep (configure.ac): ... to here.
14769
14770 2011-05-22  Bruno Haible  <bruno@clisp.org>
14771
14772         strptime: Move AC_LIBOBJ invocations to module description.
14773         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14774         gl_PREREQ_STRPTIME invocations from here...
14775         * modules/strptime (configure.ac): ... to here.
14776
14777 2011-05-22  Bruno Haible  <bruno@clisp.org>
14778
14779         strpbrk: Move AC_LIBOBJ invocations to module description.
14780         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14781         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14782         here...
14783         * modules/strpbrk (configure.ac): ... to here.
14784
14785 2011-05-22  Bruno Haible  <bruno@clisp.org>
14786
14787         strnlen: Move AC_LIBOBJ invocations to module description.
14788         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14789         invocations from here...
14790         * modules/strnlen (configure.ac): ... to here.
14791
14792 2011-05-22  Bruno Haible  <bruno@clisp.org>
14793
14794         strndup: Move AC_LIBOBJ invocations to module description.
14795         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14796         invocations from here...
14797         * modules/strndup (configure.ac): ... to here.
14798         (Depends-on): Update conditions.
14799
14800 2011-05-22  Bruno Haible  <bruno@clisp.org>
14801
14802         strncat: Move AC_LIBOBJ invocations to module description.
14803         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14804         invocations from here...
14805         * modules/strncat (configure.ac): ... to here.
14806
14807 2011-05-22  Bruno Haible  <bruno@clisp.org>
14808
14809         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14810         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14811         invocations from here...
14812         * modules/strdup (configure.ac): ... to here.
14813         * modules/strdup-posix (configure.ac): ... and here.
14814
14815 2011-05-22  Bruno Haible  <bruno@clisp.org>
14816
14817         strcspn: Move AC_LIBOBJ invocations to module description.
14818         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14820         here...
14821         * modules/strcspn (configure.ac): ... to here.
14822
14823 2011-05-22  Bruno Haible  <bruno@clisp.org>
14824
14825         strchrnul: Move AC_LIBOBJ invocations to module description.
14826         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14827         gl_PREREQ_STRCHRNUL invocations from here...
14828         * modules/strchrnul (configure.ac): ... to here.
14829
14830 2011-05-22  Bruno Haible  <bruno@clisp.org>
14831
14832         strcasestr*: Move AC_LIBOBJ invocations to module description.
14833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14834         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14835         * modules/strcasestr-simple (configure.ac): ... to here.
14836         * modules/strcasestr (configure.ac): ... and here.
14837
14838 2011-05-22  Bruno Haible  <bruno@clisp.org>
14839
14840         strcase: Move AC_LIBOBJ invocations to module description.
14841         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14842         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14843         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14844         gl_PREREQ_STRNCASECMP invocations from here...
14845         * modules/strcase (configure.ac): ... to here.
14846
14847 2011-05-22  Bruno Haible  <bruno@clisp.org>
14848
14849         stpncpy: Move AC_LIBOBJ invocations to module description.
14850         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14851         here...
14852         * modules/stpncpy (configure.ac): ... to here.
14853
14854 2011-05-22  Bruno Haible  <bruno@clisp.org>
14855
14856         stpcpy: Move AC_LIBOBJ invocations to module description.
14857         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14858         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14859         here...
14860         * modules/stpcpy (configure.ac): ... to here.
14861
14862 2011-05-21  Bruno Haible  <bruno@clisp.org>
14863
14864         stat: Move AC_LIBOBJ invocations to module description.
14865         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14866         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14867         here...
14868         * modules/stat (configure.ac): ... to here.
14869
14870 2011-05-21  Bruno Haible  <bruno@clisp.org>
14871
14872         sleep: Move AC_LIBOBJ invocations to module description.
14873         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14874         * modules/sleep (configure.ac): ... to here.
14875
14876 2011-05-21  Bruno Haible  <bruno@clisp.org>
14877
14878         signbit: Move AC_LIBOBJ invocations to module description.
14879         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14880         * modules/signbit (configure.ac): ... to here.
14881
14882 2011-05-21  Bruno Haible  <bruno@clisp.org>
14883
14884         sigprocmask: Move AC_LIBOBJ invocations to module description.
14885         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14886         gl_PREREQ_SIGPROMASK invocations from here...
14887         * modules/sigprocmask (configure.ac): ... to here.
14888
14889 2011-05-21  Bruno Haible  <bruno@clisp.org>
14890
14891         sigaction: Move AC_LIBOBJ invocations to module description.
14892         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14893         gl_PREREQ_SIGACTION invocations from here...
14894         * modules/sigaction (configure.ac): ... to here.
14895
14896 2011-05-21  Bruno Haible  <bruno@clisp.org>
14897
14898         sig2str: Move AC_LIBOBJ invocations to module description.
14899         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14900         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14901         here...
14902         * modules/sig2str (configure.ac): ... to here.
14903
14904 2011-05-21  Bruno Haible  <bruno@clisp.org>
14905
14906         setlocale: Move AC_LIBOBJ invocations to module description.
14907         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14908         gl_PREREQ_SETLOCALE invocations from here...
14909         * modules/setlocale (configure.ac): ... to here.
14910
14911 2011-05-21  Bruno Haible  <bruno@clisp.org>
14912
14913         unsetenv: Move AC_LIBOBJ invocations to module description.
14914         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14915         and gl_PREREQ_UNSETENV invocations from here...
14916         * modules/unsetenv (configure.ac): ... to here.
14917         (Depends-on): Update.
14918
14919 2011-05-21  Bruno Haible  <bruno@clisp.org>
14920
14921         setenv: Move AC_LIBOBJ invocations to module description.
14922         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14923         here...
14924         * modules/setenv (configure.ac): ... to here.
14925
14926 2011-05-21  Bruno Haible  <bruno@clisp.org>
14927
14928         selinux-h: Move AC_LIBOBJ invocations to module description.
14929         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14930         AC_LIBOBJ invocation from here...
14931         * modules/selinux-h (configure.ac): ... to here.
14932
14933 2011-05-21  Bruno Haible  <bruno@clisp.org>
14934
14935         select: Respect rules for use of AC_LIBOBJ.
14936         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14937         here...
14938         * modules/select (configure.ac): ... to here.
14939
14940 2011-05-21  Bruno Haible  <bruno@clisp.org>
14941
14942         scandir: Move AC_LIBOBJ invocations to module description.
14943         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14944         invocations from here...
14945         * modules/scandir (configure.ac): ... to here.
14946
14947 2011-05-21  Bruno Haible  <bruno@clisp.org>
14948
14949         rpmatch: Move AC_LIBOBJ invocations to module description.
14950         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14951         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14952         here...
14953         * modules/rpmatch (configure.ac): ... to here.
14954
14955 2011-05-21  Bruno Haible  <bruno@clisp.org>
14956
14957         rmdir: Respect rules for use of AC_LIBOBJ.
14958         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14959         * modules/rmdir (configure.ac): ... to here.
14960
14961 2011-05-21  Bruno Haible  <bruno@clisp.org>
14962
14963         renameat: Move AC_LIBOBJ invocations to module description.
14964         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14965         here...
14966         * modules/renameat (configure.ac): ... to here.
14967
14968 2011-05-21  Bruno Haible  <bruno@clisp.org>
14969
14970         rename: Respect rules for use of AC_LIBOBJ.
14971         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14972         here...
14973         * modules/rename (configure.ac): ... to here.
14974
14975 2011-05-21  Bruno Haible  <bruno@clisp.org>
14976
14977         remove: Move AC_LIBOBJ invocations to module description.
14978         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14979         here...
14980         * modules/remove (configure.ac): ... to here.
14981
14982 2011-05-21  Bruno Haible  <bruno@clisp.org>
14983
14984         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14985         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14986         macro.
14987         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14988         * modules/relocatable-lib (configure.ac): ... to here.
14989         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14990         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14991
14992 2011-05-21  Bruno Haible  <bruno@clisp.org>
14993
14994         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14995         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14996         here...
14997         * modules/relocatable-prog (configure.ac): ... to here.
14998
14999 2011-05-21  Bruno Haible  <bruno@clisp.org>
15000
15001         regex: Move AC_LIBOBJ invocations to module description.
15002         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15003         invocations from here...
15004         * modules/regex (configure.ac): ... to here.
15005
15006 2011-05-21  Bruno Haible  <bruno@clisp.org>
15007
15008         realloc-*: Move AC_LIBOBJ invocations to module description.
15009         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15010         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15011         AC_LIBOBJ invocations from here...
15012         * modules/realloc-gnu (configure.ac): ... to here.
15013         * modules/realloc-posix (configure.ac): ... and here.
15014
15015 2011-05-21  Bruno Haible  <bruno@clisp.org>
15016
15017         readutmp: Move AC_LIBOBJ invocations to module description.
15018         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15019         * modules/readutmp (configure.ac): ... to here.
15020
15021 2011-05-21  Bruno Haible  <bruno@clisp.org>
15022
15023         readlinkat: Move AC_LIBOBJ invocations to module description.
15024         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15025         here...
15026         * modules/readlinkat (configure.ac): ... to here.
15027
15028 2011-05-21  Bruno Haible  <bruno@clisp.org>
15029
15030         readlink: Move AC_LIBOBJ invocations to module description.
15031         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15032         gl_PREREQ_READLINK invocations from here...
15033         * modules/readlink (configure.ac): ... to here.
15034
15035 2011-05-21  Bruno Haible  <bruno@clisp.org>
15036
15037         readline: Move AC_LIBOBJ invocations to module description.
15038         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15039         gl_PREREQ_READLINE invocations from here...
15040         * modules/readline (configure.ac): ... to here.
15041
15042 2011-05-21  Bruno Haible  <bruno@clisp.org>
15043
15044         read: Move AC_LIBOBJ invocations to module description.
15045         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15046         * modules/read (configure.ac): ... to here.
15047
15048 2011-05-21  Bruno Haible  <bruno@clisp.org>
15049
15050         rawmemchr: Move AC_LIBOBJ invocations to module description.
15051         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15052         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15053         from here...
15054         * modules/rawmemchr (configure.ac): ... to here.
15055
15056 2011-05-21  Bruno Haible  <bruno@clisp.org>
15057
15058         random_r: Move AC_LIBOBJ invocations to module description.
15059         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15060         gl_PREREQ_RANDOM_R invocations from here...
15061         * modules/random_r (configure.ac): ... to here.
15062
15063 2011-05-21  Bruno Haible  <bruno@clisp.org>
15064
15065         pwrite: Move AC_LIBOBJ invocations to module description.
15066         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15067         * modules/pwrite (configure.ac): ... to here.
15068
15069 2011-05-21  Bruno Haible  <bruno@clisp.org>
15070
15071         putenv: Move AC_LIBOBJ invocations to module description.
15072         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15073         * modules/putenv (configure.ac): ... to here.
15074
15075 2011-05-21  Bruno Haible  <bruno@clisp.org>
15076
15077         login_tty: Move AC_LIBOBJ invocations to module description.
15078         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15079         * modules/login_tty (configure.ac): ... to here.
15080
15081 2011-05-21  Bruno Haible  <bruno@clisp.org>
15082
15083         openpty: Move AC_LIBOBJ invocations to module description.
15084         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15085         * modules/openpty (configure.ac): ... to here.
15086
15087 2011-05-21  Bruno Haible  <bruno@clisp.org>
15088
15089         forkpty: Move AC_LIBOBJ invocations to module description.
15090         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15091         * modules/forkpty (configure.ac): ... to here.
15092
15093 2011-05-21  Bruno Haible  <bruno@clisp.org>
15094
15095         ptsname: Move AC_LIBOBJ invocations to module description.
15096         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15097         invocations from here...
15098         * modules/ptsname (configure.ac): ... to here.
15099
15100 2011-05-21  Bruno Haible  <bruno@clisp.org>
15101
15102         pread: Move AC_LIBOBJ invocations to module description.
15103         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15104         * modules/pread (configure.ac): ... to here.
15105
15106 2011-05-21  Bruno Haible  <bruno@clisp.org>
15107
15108         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15109         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15110         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15111         * modules/posix_spawn (configure.ac): ... to here.
15112         * modules/posix_spawnp (configure.ac): ... and here.
15113
15114 2011-05-21  Bruno Haible  <bruno@clisp.org>
15115
15116         popen: Move AC_LIBOBJ invocations to module description.
15117         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15118         invocations from here...
15119         * modules/popen (configure.ac): ... to here.
15120
15121 2011-05-21  Bruno Haible  <bruno@clisp.org>
15122
15123         poll: Move AC_LIBOBJ invocations to module description.
15124         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15125         invocations from here...
15126         * modules/poll (configure.ac): ... to here.
15127
15128 2011-05-21  Bruno Haible  <bruno@clisp.org>
15129
15130         pipe-posix: Move AC_LIBOBJ invocations to module description.
15131         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15132         * modules/pipe-posix (configure.ac): ... to here.
15133
15134 2011-05-21  Bruno Haible  <bruno@clisp.org>
15135
15136         openat: Respect rules for use of AC_LIBOBJ.
15137         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15138         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15139         * modules/openat (configure.ac): ... to here.
15140
15141 2011-05-21  Bruno Haible  <bruno@clisp.org>
15142
15143         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15144         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15145         invocation from here...
15146         * modules/obstack-printf (configure.ac): ... to here.
15147         * modules/obstack-printf-posix (configure.ac): ... and here.
15148
15149 2011-05-21  Bruno Haible  <bruno@clisp.org>
15150
15151         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15152         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15153         from here...
15154         * modules/nl_langinfo (configure.ac): ... to here.
15155
15156 2011-05-21  Bruno Haible  <bruno@clisp.org>
15157
15158         nanosleep: Move AC_LIBOBJ invocations to module description.
15159         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15160         gl_PREREQ_NANOSLEEP invocations from here...
15161         * modules/nanosleep (configure.ac): ... to here.
15162
15163 2011-05-21  Bruno Haible  <bruno@clisp.org>
15164
15165         mountlist: Move AC_LIBOBJ invocations to module description.
15166         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15167         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15168         * modules/mountlist (configure.ac): ... to here.
15169
15170 2011-05-21  Bruno Haible  <bruno@clisp.org>
15171
15172         mktime: Respect rules for use of AC_LIBOBJ.
15173         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15174         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15175         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15176         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15177         * modules/mktime (configure.ac): ... to here.
15178         * modules/mktime-internal (configure.ac): ... and here.
15179         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15180
15181 2011-05-21  Bruno Haible  <bruno@clisp.org>
15182
15183         mkstemps: Move AC_LIBOBJ invocations to module description.
15184         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15185         here...
15186         * modules/mkstemps (configure.ac): ... to here.
15187
15188 2011-05-21  Bruno Haible  <bruno@clisp.org>
15189
15190         mkstemp: Move AC_LIBOBJ invocations to module description.
15191         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15192         gl_PREREQ_MKSTEMP invocations from here...
15193         * modules/mkstemp (configure.ac): ... to here.
15194
15195 2011-05-21  Bruno Haible  <bruno@clisp.org>
15196
15197         mkostemps: Move AC_LIBOBJ invocations to module description.
15198         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15199         here...
15200         * modules/mkostemps (configure.ac): ... to here.
15201
15202 2011-05-21  Bruno Haible  <bruno@clisp.org>
15203
15204         mkostemp: Move AC_LIBOBJ invocations to module description.
15205         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15206         gl_PREREQ_MKOSTEMP invocations from here...
15207         * modules/mkostemp (configure.ac): ... to here.
15208
15209 2011-05-21  Bruno Haible  <bruno@clisp.org>
15210
15211         mknod: Move AC_LIBOBJ invocations to module description.
15212         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15213         * modules/mknod (configure.ac): ... to here.
15214
15215 2011-05-21  Bruno Haible  <bruno@clisp.org>
15216
15217         mkfifoat: Move AC_LIBOBJ invocations to module description.
15218         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15219         here...
15220         * modules/mkfifoat (configure.ac): ... to here.
15221
15222 2011-05-21  Bruno Haible  <bruno@clisp.org>
15223
15224         mkfifo: Respect rules for use of AC_LIBOBJ.
15225         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15226         here...
15227         * modules/mkfifo (configure.ac): ... to here.
15228
15229 2011-05-21  Bruno Haible  <bruno@clisp.org>
15230
15231         mkdtemp: Move AC_LIBOBJ invocations to module description.
15232         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15233         invocations from here...
15234         * modules/mkdtemp (configure.ac): ... to here.
15235
15236 2011-05-21  Bruno Haible  <bruno@clisp.org>
15237
15238         mkdir: Move AC_LIBOBJ invocations to module description.
15239         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15240         * modules/mkdir (configure.ac): ... to here.
15241
15242 2011-05-21  Bruno Haible  <bruno@clisp.org>
15243
15244         memset: Move AC_LIBOBJ invocations to module description.
15245         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15246         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15247         here...
15248         * modules/memset (configure.ac): ... to here.
15249
15250 2011-05-21  Bruno Haible  <bruno@clisp.org>
15251
15252         memrchr: Move AC_LIBOBJ invocations to module description.
15253         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15254         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15255         here...
15256         * modules/memrchr (configure.ac): ... to here.
15257
15258 2011-05-21  Bruno Haible  <bruno@clisp.org>
15259
15260         mempcpy: Move AC_LIBOBJ invocations to module description.
15261         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15262         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15263         here...
15264         * modules/mempcpy (configure.ac): ... to here.
15265
15266 2011-05-21  Bruno Haible  <bruno@clisp.org>
15267
15268         memmove: Move AC_LIBOBJ invocations to module description.
15269         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15270         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15271         here...
15272         * modules/memmove (configure.ac): ... to here.
15273
15274 2011-05-21  Bruno Haible  <bruno@clisp.org>
15275
15276         memmem*: Move AC_LIBOBJ invocations to module description.
15277         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15278         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15279         here...
15280         (gl_FUNC_MEMMEM): ... and here...
15281         * modules/memmem-simple (configure.ac): ... to here.
15282         * modules/memmem (configure.ac): ... and here.
15283
15284 2011-05-21  Bruno Haible  <bruno@clisp.org>
15285
15286         memcpy: Move AC_LIBOBJ invocations to module description.
15287         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15288         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15289         here...
15290         * modules/memcpy (configure.ac): ... to here.
15291
15292 2011-05-21  Bruno Haible  <bruno@clisp.org>
15293
15294         memcmp: Simplify autoconf macro.
15295         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15296         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15297         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15298
15299 2011-05-21  Bruno Haible  <bruno@clisp.org>
15300
15301         memcmp: Move AC_LIBOBJ invocations to module description.
15302         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15303         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15304         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15305         * modules/memcmp (configure.ac): ... to here.
15306         (Depends-on): Update conditions.
15307
15308 2011-05-21  Bruno Haible  <bruno@clisp.org>
15309
15310         memchr: Respect rules for use of AC_LIBOBJ.
15311         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15312         invocations from here...
15313         * modules/memchr (configure.ac): ... to here.
15314
15315 2011-05-21  Bruno Haible  <bruno@clisp.org>
15316
15317         mbtowc: Move AC_LIBOBJ invocations to module description.
15318         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15319         invocations from here...
15320         * modules/mbtowc (configure.ac): ... to here.
15321
15322 2011-05-21  Bruno Haible  <bruno@clisp.org>
15323
15324         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15325         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15326         gl_PREREQ_MBSRTOWCS invocations from here...
15327         * modules/mbsrtowcs (configure.ac): ... to here.
15328
15329 2011-05-21  Bruno Haible  <bruno@clisp.org>
15330
15331         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15332         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15333         gl_PREREQ_MBSNRTOWCS invocations from here...
15334         * modules/mbsnrtowcs (configure.ac): ... to here.
15335
15336 2011-05-21  Bruno Haible  <bruno@clisp.org>
15337
15338         mbsinit: Move AC_LIBOBJ invocations to module description.
15339         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15340         invocations from here...
15341         * modules/mbsinit (configure.ac): ... to here.
15342
15343 2011-05-21  Bruno Haible  <bruno@clisp.org>
15344
15345         mbrlen: Move AC_LIBOBJ invocations to module description.
15346         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15347         invocations from here...
15348         * modules/mbrlen (configure.ac): ... to here.
15349
15350 2011-05-21  Bruno Haible  <bruno@clisp.org>
15351
15352         mbrtowc: Respect rules for use of AC_LIBOBJ.
15353         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15354         invocations from here...
15355         * modules/mbrtowc (configure.ac): ... to here.
15356
15357 2011-05-21  Bruno Haible  <bruno@clisp.org>
15358
15359         malloc-*: Move AC_LIBOBJ invocations to module description.
15360         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15361         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15362         AC_LIBOBJ invocations from here...
15363         * modules/malloc-gnu (configure.ac): ... to here.
15364         * modules/malloc-posix (configure.ac): ... and here.
15365
15366 2011-05-21  Bruno Haible  <bruno@clisp.org>
15367
15368         lstat, openat: Respect rules for use of AC_LIBOBJ.
15369         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15370         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15371         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15372         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15373         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15374         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15375         here.
15376         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15377
15378 2011-05-21  Bruno Haible  <bruno@clisp.org>
15379
15380         lseek: Move AC_LIBOBJ invocations to module description.
15381         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15382         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15383         * modules/lseek (configure.ac): ... to here.
15384
15385 2011-05-21  Bruno Haible  <bruno@clisp.org>
15386
15387         linkat: Move AC_LIBOBJ invocations to module description.
15388         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15389         here...
15390         * modules/linkat (configure.ac): ... to here.
15391
15392 2011-05-21  Bruno Haible  <bruno@clisp.org>
15393
15394         link: Respect rules for use of AC_LIBOBJ.
15395         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15396         * modules/link (configure.ac): ... to here.
15397
15398 2011-05-21  Bruno Haible  <bruno@clisp.org>
15399
15400         lchown: Move AC_LIBOBJ invocations to module description.
15401         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15402         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15403         * modules/lchown (configure.ac): ... to here.
15404
15405 2011-05-21  Bruno Haible  <bruno@clisp.org>
15406
15407         iswctype: Move AC_LIBOBJ invocations to module description.
15408         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15409         here...
15410         * modules/iswctype (configure.ac): ... to here.
15411
15412 2011-05-21  Bruno Haible  <bruno@clisp.org>
15413
15414         iswblank: Move AC_LIBOBJ invocations to module description.
15415         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15416         here...
15417         * modules/iswblank (configure.ac): ... to here.
15418
15419 2011-05-21  Bruno Haible  <bruno@clisp.org>
15420
15421         atanl: Move AC_LIBOBJ invocations to module description.
15422         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15423         * modules/atanl (configure.ac): ... to here.
15424
15425 2011-05-21  Bruno Haible  <bruno@clisp.org>
15426
15427         acosl: Move AC_LIBOBJ invocations to module description.
15428         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15429         * modules/acosl (configure.ac): ... to here.
15430
15431 2011-05-21  Bruno Haible  <bruno@clisp.org>
15432
15433         asinl: Respect rules for use of AC_LIBOBJ.
15434         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15435         * modules/asinl (configure.ac): ... to here.
15436
15437 2011-05-21  Bruno Haible  <bruno@clisp.org>
15438
15439         tanl: Move AC_LIBOBJ invocations to module description.
15440         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15441         * modules/tanl (configure.ac): ... to here.
15442
15443 2011-05-21  Bruno Haible  <bruno@clisp.org>
15444
15445         cosl: Move AC_LIBOBJ invocations to module description.
15446         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15447         * modules/cosl (configure.ac): ... to here.
15448
15449 2011-05-21  Bruno Haible  <bruno@clisp.org>
15450
15451         sinl: Move AC_LIBOBJ invocations to module description.
15452         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15453         * modules/sinl (configure.ac): ... to here.
15454
15455 2011-05-21  Bruno Haible  <bruno@clisp.org>
15456
15457         logl: Move AC_LIBOBJ invocations to module description.
15458         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15459         * modules/logl (configure.ac): ... to here.
15460
15461 2011-05-21  Bruno Haible  <bruno@clisp.org>
15462
15463         expl: Move AC_LIBOBJ invocations to module description.
15464         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15465         * modules/expl (configure.ac): ... to here.
15466
15467 2011-05-21  Bruno Haible  <bruno@clisp.org>
15468
15469         roundl: Move AC_LIBOBJ invocations to module description.
15470         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15471         * modules/roundl (configure.ac): ... to here.
15472
15473 2011-05-21  Bruno Haible  <bruno@clisp.org>
15474
15475         round: Move AC_LIBOBJ invocations to module description.
15476         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15477         * modules/round (configure.ac): ... to here.
15478
15479 2011-05-21  Bruno Haible  <bruno@clisp.org>
15480
15481         roundf: Move AC_LIBOBJ invocations to module description.
15482         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15483         * modules/roundf (configure.ac): ... to here.
15484
15485 2011-05-21  Bruno Haible  <bruno@clisp.org>
15486
15487         truncl: Move AC_LIBOBJ invocations to module description.
15488         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15489         * modules/truncl (configure.ac): ... to here.
15490
15491 2011-05-21  Bruno Haible  <bruno@clisp.org>
15492
15493         trunc: Move AC_LIBOBJ invocations to module description.
15494         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15495         * modules/trunc (configure.ac): ... to here.
15496
15497 2011-05-21  Bruno Haible  <bruno@clisp.org>
15498
15499         truncf: Move AC_LIBOBJ invocations to module description.
15500         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15501         * modules/truncf (configure.ac): ... to here.
15502
15503 2011-05-21  Bruno Haible  <bruno@clisp.org>
15504
15505         ceill: Move AC_LIBOBJ invocations to module description.
15506         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15507         * modules/ceill (configure.ac): ... to here.
15508
15509 2011-05-21  Bruno Haible  <bruno@clisp.org>
15510
15511         ceil: Move AC_LIBOBJ invocations to module description.
15512         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15513         * modules/ceil (configure.ac): ... to here.
15514
15515 2011-05-21  Bruno Haible  <bruno@clisp.org>
15516
15517         ceilf: Move AC_LIBOBJ invocations to module description.
15518         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15519         * modules/ceilf (configure.ac): ... to here.
15520
15521 2011-05-21  Bruno Haible  <bruno@clisp.org>
15522
15523         floorl: Respect rules for use of AC_LIBOBJ.
15524         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15525         * modules/floorl (configure.ac): ... to here.
15526
15527 2011-05-21  Bruno Haible  <bruno@clisp.org>
15528
15529         floor: Respect rules for use of AC_LIBOBJ.
15530         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15531         * modules/floor (configure.ac): ... to here.
15532
15533 2011-05-21  Bruno Haible  <bruno@clisp.org>
15534
15535         floorf: Move AC_LIBOBJ invocations to module description.
15536         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15537         * modules/floorf (configure.ac): ... to here.
15538
15539 2011-05-20  Bruno Haible  <bruno@clisp.org>
15540
15541         sqrtl: Respect rules for use of AC_LIBOBJ.
15542         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15543         * modules/sqrtl (configure.ac): ... to here.
15544
15545 2011-05-20  Bruno Haible  <bruno@clisp.org>
15546
15547         ldexpl: Respect rules for use of AC_LIBOBJ.
15548         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15549         * modules/ldexpl (configure.ac): ... to here.
15550
15551 2011-05-20  Bruno Haible  <bruno@clisp.org>
15552
15553         frexpl*: Respect rules for use of AC_LIBOBJ.
15554         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15555         invocation from here...
15556         * modules/frexpl (configure.ac): ... to here.
15557         * modules/frexpl-nolibm (configure.ac): ... and here.
15558
15559 2011-05-20  Bruno Haible  <bruno@clisp.org>
15560
15561         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15562         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15563         invocation from here...
15564         * modules/frexp (configure.ac): ... to here.
15565         * modules/frexp-nolibm (configure.ac): ... and here.
15566
15567 2011-05-20  Bruno Haible  <bruno@clisp.org>
15568
15569         isnan: Respect rules for use of AC_LIBOBJ.
15570         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15571         invocations here.
15572         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15573         REPLACE_ISNAN.
15574         * modules/isnand (configure.ac): Likewise.
15575         * modules/isnanl (configure.ac): Likewise.
15576
15577 2011-05-20  Bruno Haible  <bruno@clisp.org>
15578
15579         isnanl*: Respect rules for use of AC_LIBOBJ.
15580         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15581         invocation from here...
15582         * modules/isnanl (configure.ac): ... to here.
15583         * modules/isnanl-nolibm (configure.ac): ... and here.
15584
15585 2011-05-20  Bruno Haible  <bruno@clisp.org>
15586
15587         isnand*: Move AC_LIBOBJ invocations to module description.
15588         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15589         invocation from here...
15590         * modules/isnand (configure.ac): ... to here.
15591         * modules/isnand-nolibm (configure.ac): ... and here.
15592
15593 2011-05-20  Bruno Haible  <bruno@clisp.org>
15594
15595         isnanf*: Move AC_LIBOBJ invocations to module description.
15596         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15597         invocation from here...
15598         * modules/isnanf (configure.ac): ... to here.
15599         * modules/isnanf-nolibm (configure.ac): ... and here.
15600
15601 2011-05-20  Bruno Haible  <bruno@clisp.org>
15602
15603         isnan*: Separate the AC_LIBOBJ invocations.
15604         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15605         AC_LIBOBJ invocation.
15606         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15607         here.
15608         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15609         AC_LIBOBJ invocation.
15610         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15611         here.
15612         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15613         AC_LIBOBJ invocation.
15614         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15615         here.
15616         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15617
15618 2011-05-08  Bruno Haible  <bruno@clisp.org>
15619
15620         isinf: Move AC_LIBOBJ invocations to module description.
15621         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15622         * modules/isinf (configure.ac): ... to here.
15623
15624 2011-05-08  Bruno Haible  <bruno@clisp.org>
15625
15626         isfinite: Move AC_LIBOBJ invocations to module description.
15627         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15628         * modules/isfinite (configure.ac): ... to here.
15629
15630 2011-05-08  Bruno Haible  <bruno@clisp.org>
15631
15632         isblank: Move AC_LIBOBJ invocations to module description.
15633         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15634         here...
15635         * modules/isblank (configure.ac): ... to here.
15636
15637 2011-05-08  Bruno Haible  <bruno@clisp.org>
15638
15639         isapipe: Move AC_LIBOBJ invocations to module description.
15640         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15641         gl_PREREQ_ISAPIPE invocations from here...
15642         * modules/isapipe (configure.ac): ... to here.
15643         (Depends-on): Update condition.
15644
15645 2011-05-08  Bruno Haible  <bruno@clisp.org>
15646
15647         ioctl: Move AC_LIBOBJ invocations to module description.
15648         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15649         invocations from here...
15650         * modules/ioctl (configure.ac): ... to here.
15651         (Depends-on): Update condition.
15652
15653 2011-05-08  Bruno Haible  <bruno@clisp.org>
15654
15655         imaxdiv: Move AC_LIBOBJ invocations to module description.
15656         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15657         invocations from here...
15658         * modules/imaxdiv (configure.ac): ... to here.
15659
15660 2011-05-08  Bruno Haible  <bruno@clisp.org>
15661
15662         imaxabs: Move AC_LIBOBJ invocations to module description.
15663         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15664         invocations from here...
15665         * modules/imaxabs (configure.ac): ... to here.
15666
15667 2011-05-08  Bruno Haible  <bruno@clisp.org>
15668
15669         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15671         AC_LIBOBJ invocations from here...
15672         * modules/getaddrinfo (configure.ac): ... to here.
15673         (Depends-on): Add conditions.
15674
15675 2011-05-08  Bruno Haible  <bruno@clisp.org>
15676
15677         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15678         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15679         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15680         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15681         (gl_PREREQ_INET_PTON): ... from here.
15682         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15683         gl_PREREQ_INET_PTON here.
15684         (Depends-on): Update condition.
15685
15686 2011-05-08  Bruno Haible  <bruno@clisp.org>
15687
15688         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15689         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15690         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15691         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15692         (gl_PREREQ_INET_NTOP): ... from here.
15693         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15694         gl_PREREQ_INET_NTOP here.
15695         (Depends-on): Update condition.
15696
15697 2011-05-08  Bruno Haible  <bruno@clisp.org>
15698
15699         iconv_open: Move AC_LIBOBJ invocations to module description.
15700         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15701         AC_LIBOBJ invocations from here...
15702         * modules/iconv_open (configure.ac): ... to here.
15703
15704 2011-05-08  Bruno Haible  <bruno@clisp.org>
15705
15706         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15707         If module 'iconv_open' is among the main modules and module
15708         'iconv_open-utf' is among the tests dependencies, then
15709         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15710         return the special iconv_t values. Therefore iconv() and iconv_close()
15711         must support these special iconv_t values, already in lib, not only in
15712         tests.
15713         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15714         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15715         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15716         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15717         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15718         (Depends-on): Add the dependencies of iconv_open-utf.
15719         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15720         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15721         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15722
15723 2011-05-08  Bruno Haible  <bruno@clisp.org>
15724
15725         group-member: Move AC_LIBOBJ invocations to module description.
15726         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15727         gl_PREREQ_GROUP_MEMBER invocations from here...
15728         * modules/group-member (configure.ac): ... to here.
15729
15730 2011-05-08  Bruno Haible  <bruno@clisp.org>
15731
15732         grantpt: Move AC_LIBOBJ invocations to module description.
15733         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15734         invocations from here...
15735         * modules/grantpt (configure.ac): ... to here.
15736
15737 2011-05-08  Bruno Haible  <bruno@clisp.org>
15738
15739         glob: Move AC_LIBOBJ invocations to module description.
15740         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15741         from here...
15742         * modules/glob (configure.ac): ... to here.
15743
15744 2011-05-08  Bruno Haible  <bruno@clisp.org>
15745
15746         getusershell: Move AC_LIBOBJ invocations to module description.
15747         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15748         Move AC_LIBOBJ invocation from here...
15749         * modules/getusershell (configure.ac): ... to here.
15750         (Depends-on): Update condition.
15751
15752 2011-05-08  Bruno Haible  <bruno@clisp.org>
15753
15754         gettimeofday: Move AC_LIBOBJ invocations to module description.
15755         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15756         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15757         gl_PREREQ_GETTIMEOFDAY invocations from here...
15758         * modules/gettimeofday (configure.ac): ... to here.
15759
15760 2011-05-08  Bruno Haible  <bruno@clisp.org>
15761
15762         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15763         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15764         just gl_FUNC_TZSET.
15765         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15766         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15768         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15769
15770 2011-05-08  Bruno Haible  <bruno@clisp.org>
15771
15772         getsubopt: Move AC_LIBOBJ invocations to module description.
15773         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15774         gl_PREREQ_GETSUBOPT invocations from here...
15775         * modules/getsubopt (configure.ac): ... to here.
15776
15777 2011-05-08  Bruno Haible  <bruno@clisp.org>
15778
15779         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15780         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15781         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15782         * modules/getpass-gnu (configure.ac): ... to here.
15783
15784 2011-05-08  Bruno Haible  <bruno@clisp.org>
15785
15786         getpass: Move AC_LIBOBJ invocations to module description.
15787         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15788         gl_PREREQ_GETPASS invocations from here...
15789         * modules/getpass (configure.ac): ... to here.
15790
15791 2011-05-08  Bruno Haible  <bruno@clisp.org>
15792
15793         getpagesize: Move AC_LIBOBJ invocations to module description.
15794         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15795         from here...
15796         * modules/getpagesize (configure.ac): ... to here.
15797
15798 2011-05-08  Bruno Haible  <bruno@clisp.org>
15799
15800         getopt: Move AC_LIBOBJ invocations to module description.
15801         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15802         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15803         invocations from here...
15804         * modules/getopt-gnu (configure.ac): ... to here.
15805         * modules/getopt-posix (configure.ac): ... and here.
15806         (Depends-on): Update condition.
15807
15808 2011-05-08  Bruno Haible  <bruno@clisp.org>
15809
15810         getopt, argp: Respect rules for use of AC_LIBOBJ.
15811         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15812         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15813         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15814         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15815
15816 2011-05-08  Bruno Haible  <bruno@clisp.org>
15817
15818         getlogin_r: Move AC_LIBOBJ invocations to module description.
15819         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15820         gl_PREREQ_GETLOGIN_R invocations from here...
15821         * modules/getlogin_r (configure.ac): ... to here.
15822
15823 2011-05-08  Bruno Haible  <bruno@clisp.org>
15824
15825         getlogin: Move AC_LIBOBJ invocations to module description.
15826         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15827         here...
15828         * modules/getlogin (configure.ac): ... to here.
15829
15830 2011-05-08  Bruno Haible  <bruno@clisp.org>
15831
15832         getloadavg: Move AC_LIBOBJ invocations to module description.
15833         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15834         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15835         * modules/getloadavg (configure.ac): ... to here.
15836
15837 2011-05-08  Bruno Haible  <bruno@clisp.org>
15838
15839         gethrxtime: Move AC_LIBOBJ invocations to module description.
15840         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15841         LIB_GETHRXTIME from here...
15842         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15843         invocations from here...
15844         * modules/gethrxtime (configure.ac): ... to here.
15845
15846 2011-05-08  Bruno Haible  <bruno@clisp.org>
15847
15848         gethostname: Move AC_LIBOBJ invocations to module description.
15849         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15850         gl_PREREQ_GETHOSTNAME invocations from here...
15851         * modules/gethostname (configure.ac): ... to here.
15852
15853 2011-05-08  Bruno Haible  <bruno@clisp.org>
15854
15855         getgroups: Move AC_LIBOBJ invocations to module description.
15856         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15857         here...
15858         * modules/getgroups (configure.ac): ... to here.
15859
15860 2011-05-08  Bruno Haible  <bruno@clisp.org>
15861
15862         getdtablesize: Move AC_LIBOBJ invocations to module description.
15863         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15864         invocation from here...
15865         * modules/getdtablesize (configure.ac): ... to here.
15866
15867 2011-05-08  Bruno Haible  <bruno@clisp.org>
15868
15869         getdomainname: Move AC_LIBOBJ invocations to module description.
15870         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15871         gl_PREREQ_GETDOMAINNAME invocations from here...
15872         * modules/getdomainname (configure.ac): ... to here.
15873
15874 2011-05-08  Bruno Haible  <bruno@clisp.org>
15875
15876         getline: Move AC_LIBOBJ invocations to module description.
15877         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15878         invocations from here...
15879         * modules/getline (configure.ac): ... to here.
15880
15881 2011-05-08  Bruno Haible  <bruno@clisp.org>
15882
15883         getline: Simplify.
15884         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15885         It's already handled through the module dependency.
15886
15887 2011-05-08  Bruno Haible  <bruno@clisp.org>
15888
15889         getdelim: Move AC_LIBOBJ invocations to module description.
15890         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15891         and gl_PREREQ_GETDELIM invocations from here...
15892         * modules/getdelim (configure.ac): ... to here.
15893         (Depends-on): Fix condition.
15894
15895 2011-05-08  Bruno Haible  <bruno@clisp.org>
15896
15897         getcwd: Move AC_LIBOBJ invocations to module description.
15898         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15899         invocations from here...
15900         * modules/getcwd (configure.ac): ... to here.
15901
15902 2011-05-08  Bruno Haible  <bruno@clisp.org>
15903
15904         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15905         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15906         here...
15907         * modules/getcwd-lgpl (configure.ac): ... to here.
15908
15909 2011-05-07  Bruno Haible  <bruno@clisp.org>
15910
15911         crypto/gc: Move AC_LIBOBJ invocations to module description.
15912         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15913         * modules/crypto/gc (configure.ac): ... to here.
15914
15915 2011-05-07  Bruno Haible  <bruno@clisp.org>
15916
15917         fwriting: Move AC_LIBOBJ invocations to module description.
15918         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15919         here...
15920         * modules/fwriting (configure.ac): ... to here.
15921
15922 2011-05-07  Bruno Haible  <bruno@clisp.org>
15923
15924         fwritable: Move AC_LIBOBJ invocations to module description.
15925         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15926         here...
15927         * modules/fwritable (configure.ac): ... to here.
15928
15929 2011-05-07  Bruno Haible  <bruno@clisp.org>
15930
15931         futimens: Move AC_LIBOBJ invocations to module description.
15932         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15933         here...
15934         * modules/futimens (configure.ac): ... to here.
15935
15936 2011-05-07  Bruno Haible  <bruno@clisp.org>
15937
15938         ftruncate: Move AC_LIBOBJ invocations to module description.
15939         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15940         gl_PREREQ_FTRUNCATE invocations from here...
15941         * modules/ftruncate (configure.ac): ... to here.
15942
15943 2011-05-07  Bruno Haible  <bruno@clisp.org>
15944
15945         fsync: Move AC_LIBOBJ invocations to module description.
15946         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15947         invocations from here...
15948         * modules/fsync (configure.ac): ... to here.
15949
15950 2011-05-07  Bruno Haible  <bruno@clisp.org>
15951
15952         fsusage: Move AC_LIBOBJ invocations to module description.
15953         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15954         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15955         * modules/fsusage (configure.ac): ... to here.
15956
15957 2011-05-07  Bruno Haible  <bruno@clisp.org>
15958
15959         freopen: Move AC_LIBOBJ invocations to module description.
15960         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15961         invocations from here...
15962         * modules/freopen (configure.ac): ... to here.
15963
15964 2011-05-07  Bruno Haible  <bruno@clisp.org>
15965
15966         free: Move AC_LIBOBJ invocations to module description.
15967         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15968         invocations from here...
15969         * modules/free (configure.ac): ... to here.
15970
15971 2011-05-07  Bruno Haible  <bruno@clisp.org>
15972
15973         freadable: Move AC_LIBOBJ invocations to module description.
15974         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15975         here...
15976         * modules/freadable (configure.ac): ... to here.
15977
15978 2011-05-07  Bruno Haible  <bruno@clisp.org>
15979
15980         fpurge: Move AC_LIBOBJ invocations to module description.
15981         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15982         invocations from here...
15983         * modules/fpurge (configure.ac): ... to here.
15984
15985 2011-05-07  Bruno Haible  <bruno@clisp.org>
15986
15987         fpending: Move AC_LIBOBJ invocations to module description.
15988         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15989         gl_FUNC_FPENDING.
15990         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15991         invocations from here...
15992         * modules/fpending (configure.ac): ... to here.
15993
15994 2011-05-07  Bruno Haible  <bruno@clisp.org>
15995
15996         fopen: Move AC_LIBOBJ invocations to module description.
15997         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15998         invocations from here...
15999         * modules/fopen (configure.ac): ... to here.
16000
16001 2011-05-07  Bruno Haible  <bruno@clisp.org>
16002
16003         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16004         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16005         gl_FUNC_FNMATCH_POSIX.
16006         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16007         invocations from here...
16008         * modules/fnmatch (configure.ac): ... to here.
16009         * modules/fnmatch-gnu (configure.ac): ... and here.
16010
16011 2011-05-07  Bruno Haible  <bruno@clisp.org>
16012
16013         flock: Move AC_LIBOBJ invocations to module description.
16014         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16015         invocations from here...
16016         * modules/flock (configure.ac): ... to here.
16017
16018 2011-05-07  Bruno Haible  <bruno@clisp.org>
16019
16020         fileblocks: Move AC_LIBOBJ invocations to module description.
16021         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16022         gl_PREREQ_FILEBLOCKS invocations from here...
16023         * modules/fileblocks (configure.ac): ... to here.
16024
16025 2011-05-06  Bruno Haible  <bruno@clisp.org>
16026
16027         fflush: Move AC_LIBOBJ invocations to module description.
16028         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16029         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16030         invocations from here...
16031         * modules/fflush (configure.ac): ... to here.
16032
16033 2011-05-06  Bruno Haible  <bruno@clisp.org>
16034
16035         fdopendir: Move AC_LIBOBJ invocations to module description.
16036         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16037         here...
16038         * modules/fdopendir (configure.ac): ... to here.
16039         (Depends-on): Improve conditions.
16040
16041 2011-05-06  Bruno Haible  <bruno@clisp.org>
16042
16043         _Exit: Move AC_LIBOBJ invocations to module description.
16044         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16045         invocations from here...
16046         * modules/_Exit (configure.ac): ... to here.
16047
16048 2011-05-21  Bruno Haible  <bruno@clisp.org>
16049
16050         euidaccess: Respect rules for use of AC_LIBOBJ.
16051         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16052         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16053         from here...
16054         * modules/euidaccess (configure.ac): ... to here.
16055
16056 2011-05-06  Bruno Haible  <bruno@clisp.org>
16057
16058         error: Move AC_LIBOBJ invocations to module description.
16059         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16060         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16061         invocations from here...
16062         * modules/error (configure.ac): ... to here.
16063
16064 2011-05-06  Bruno Haible  <bruno@clisp.org>
16065
16066         duplocale: Move AC_LIBOBJ invocations to module description.
16067         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16068         gl_PREREQ_DUPLOCALE invocations from here...
16069         * modules/duplocale (configure.ac): ... to here.
16070
16071 2011-05-05  Bruno Haible  <bruno@clisp.org>
16072
16073         dirfd: Move AC_LIBOBJ invocations to module description.
16074         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16075         gl_FUNC_DIRFD.
16076         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16077         here...
16078         * modules/dirfd (configure.ac): ... to here.
16079         (Depends-on): Fix condition.
16080
16081 2011-05-05  Bruno Haible  <bruno@clisp.org>
16082
16083         chown: Respect rules for use of AC_LIBOBJ.
16084         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16085         * modules/chown (configure.ac): ... to here.
16086
16087 2011-05-05  Bruno Haible  <bruno@clisp.org>
16088
16089         chdir-long: Move AC_LIBOBJ invocations to module description.
16090         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16091         gl_PREREQ_CHDIR_LONG invocations from here...
16092         * modules/chdir-long (configure.ac): ... to here.
16093
16094 2011-05-05  Bruno Haible  <bruno@clisp.org>
16095
16096         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16097         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16098         from here...
16099         * modules/canonicalize-lgpl (configure.ac): ... to here.
16100
16101 2011-05-05  Bruno Haible  <bruno@clisp.org>
16102
16103         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16104         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16105         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16106         REPLACE_CALLOC.
16107         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16108         * modules/calloc-gnu (configure.ac): Likewise.
16109
16110 2011-05-05  Bruno Haible  <bruno@clisp.org>
16111
16112         btowc: Move AC_LIBOBJ invocations to module description.
16113         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16114         invocations from here...
16115         * modules/btowc (configure.ac): ... to here.
16116
16117 2011-05-21  Bruno Haible  <bruno@clisp.org>
16118
16119         atexit: Move AC_LIBOBJ invocations to module description.
16120         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16121         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16122         here...
16123         * modules/atexit (configure.ac): ... to here.
16124
16125 2011-05-05  Bruno Haible  <bruno@clisp.org>
16126
16127         atoll: Move AC_LIBOBJ invocations to module description.
16128         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16129         invocations from here...
16130         * modules/atoll (configure.ac): ... to here.
16131
16132 2011-05-05  Bruno Haible  <bruno@clisp.org>
16133
16134         argz: Move AC_LIBOBJ invocations to module description.
16135         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16136         * modules/argz (configure.ac): ... to here.
16137
16138 2011-05-05  Bruno Haible  <bruno@clisp.org>
16139
16140         alphasort: Move AC_LIBOBJ invocations to module description.
16141         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16142         gl_PREREQ_ALPHASORT invocations from here...
16143         * modules/alphasort (configure.ac): ... to here.
16144
16145 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16146
16147         verify: new macro verify_expr; verify_true deprecated
16148         * NEWS: Mention this.
16149         * doc/verify.texi (Compile-time Assertions): Document this.
16150         * lib/verify.h (verify_true): Deprecate.
16151         (verify_expr): New macro.
16152         * tests/test-verify.c (function): Test verify_expr.
16153
16154 2011-06-14  Jim Meyering  <meyering@redhat.com>
16155
16156         init.sh: give more portable redirection-related advice in a comment
16157         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16158         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16159         for lots of discussion.  Stefano Lattarini suggested the solution
16160         of putting "9>&2" after the command.  Reported by Bruno Haible.
16161
16162 2011-06-13  Bruno Haible  <bruno@clisp.org>
16163
16164         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16165         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16166         'none'.
16167
16168 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16169
16170         ftoastr: use strtof only if HAVE_STRTOF
16171         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16173         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16174         * modules/ftoastr (configure.ac): Check for strtof.
16175
16176 2011-06-13  Bruno Haible  <bruno@clisp.org>
16177
16178         gnulib-tool: Addendum to 2011-06-08 commit.
16179         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16180         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16181
16182 2011-06-13  Bruno Haible  <bruno@clisp.org>
16183
16184         fseeko: Provide a non-inline replacement of fseek().
16185         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16186         * modules/fseeko (Depends-on): Add fseek.
16187         * modules/fseek (License): Change to LGPLv2+.
16188
16189 2011-06-13  Bruno Haible  <bruno@clisp.org>
16190
16191         ftello: Provide a non-inline replacement of ftell().
16192         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16193         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16194         not have ftello() (such as on mingw).
16195         * modules/ftello (Depends-on): Add ftell.
16196         * modules/ftell (License): Change to LGPLv2+.
16197
16198 2011-05-07  Bruno Haible  <bruno@clisp.org>
16199
16200         ftell: Move AC_LIBOBJ invocations to module description.
16201         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16202         * modules/ftell (configure.ac): ... to here.
16203
16204 2011-05-07  Bruno Haible  <bruno@clisp.org>
16205
16206         ftello: Respect rules for use of AC_LIBOBJ.
16207         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16208         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16209         here...
16210         * modules/ftello (configure.ac): ... to here.
16211
16212 2011-05-07  Bruno Haible  <bruno@clisp.org>
16213
16214         fseeko: Simplify.
16215         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16216         (gl_FUNC_FSEEKO): Inline it here.
16217
16218 2011-05-07  Bruno Haible  <bruno@clisp.org>
16219
16220         fseek: Move AC_LIBOBJ invocations to module description.
16221         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16222         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16223         * modules/fseek (configure.ac): ... to here.
16224
16225 2011-05-07  Bruno Haible  <bruno@clisp.org>
16226
16227         fseek: Respect rules for use of AC_LIBOBJ.
16228         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16229         here...
16230         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16231
16232 2011-05-07  Bruno Haible  <bruno@clisp.org>
16233
16234         fseeko: Respect rules for use of AC_LIBOBJ.
16235         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16236         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16237         here...
16238         * modules/fseeko (configure.ac): ... to here.
16239
16240 2011-06-13  Bruno Haible  <bruno@clisp.org>
16241
16242         gnulib-tool: Allow comments in the 'Depends-on' section.
16243         * doc/gnulib.texi (Module description): Mention comment syntax in the
16244         Depends-on section.
16245         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16246
16247 2011-06-13  Bruno Haible  <bruno@clisp.org>
16248
16249         file-set.h: guard __attibute__ use, now that it's not always defined
16250         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16251         versions that support it.  This fixes a coreutils build failure with
16252         the vendor cc on HP-UX 11.31.
16253
16254 2011-06-12  Bruno Haible  <bruno@clisp.org>
16255
16256         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16257         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16258         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16259         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16260         (acl, aclsort): New declarations.
16261         (aclv_nontrivial): New declaration.
16262         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16263         (file_has_acl): Read also the second kind of HP-UX ACLs.
16264         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16265         kind of HP-UX ACLs if the first kind fails.
16266         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16267         second kind of HP-UX ACLs.
16268         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16269         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16270         agree.
16271         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16272         hpuxjfs.
16273         Handle hpuxjfs.
16274         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16275         hpuxjfs.
16276         Handle hpuxjfs.
16277         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16278         (func_test_same_acls): Use both lsacl and getacl.
16279         Handle hpuxjfs.
16280         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16281         (func_test_same_acls): Use both lsacl and getacl.
16282         Handle hpuxjfs.
16283
16284 2011-06-12  Bruno Haible  <bruno@clisp.org>
16285
16286         acl: Complete the 2010-08-10 fix.
16287         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16288         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16289         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16290         explicitly.
16291         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16292         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16293
16294 2011-06-12  Bruno Haible  <bruno@clisp.org>
16295
16296         spawn-pipe tests: Comments.
16297         * tests/test-spawn-pipe-child.c (main): Update comment.
16298         Reported by James Youngman <jay@gnu.org>.
16299
16300 2011-06-11  James Youngman  <jay@gnu.org>
16301
16302         New module 'stat-size'.
16303         * modules/stat-size: New module.  Provides macros for accessing
16304         file size information in instances of struct stat.  Depends on the
16305         fileblocks module because it calls st_blocks.
16306         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16307         * doc/gnulib.texi: Include stat-size.texi.
16308         * doc/stat-size.texi: Documentation for this module.
16309         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16310         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16311         AC_STRUCT_ST_BLOCKS.
16312
16313 2011-06-09  Bruno Haible  <bruno@clisp.org>
16314
16315         thread: Support pthreads-win32.
16316         * lib/glthread/thread.h (gl_thread_self): Define differently on
16317         pthreads-win32.
16318         (gl_null_thread): New declaration.
16319         (gl_thread_self_pointer): New macro.
16320         * lib/glthread/thread.c (gl_null_thread): New constant.
16321         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16322         gl_thread_self.
16323         * tests/test-tls.c: Likewise.
16324         Suggested by Paul Eggert. Reported by Eric Blake.
16325
16326 2011-06-09  Bruno Haible  <bruno@clisp.org>
16327
16328         thread: Fix confusion between NULL and 0.
16329         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16330         Reported by Paul Eggert.
16331
16332 2011-06-09  Bruno Haible  <bruno@clisp.org>
16333
16334         spawn-pipe tests: Avoid test failure on HP-UX 11.
16335         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16336         is closed.
16337
16338 2011-06-09  Bruno Haible  <bruno@clisp.org>
16339
16340         acl tests: Fix compilation error on HP-UX 11.
16341         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16342
16343 2011-06-09  Bruno Haible  <bruno@clisp.org>
16344
16345         rmdir: Avoid test failure on HP-UX 10.20.
16346         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16347         EEXIST.
16348
16349 2011-06-08  Eric Blake  <eblake@redhat.com>
16350
16351         perror: fix test on mingw
16352         * modules/perror-tests (Depends-on): Add dup2.
16353
16354         strerror_r-posix: fix on MacOS
16355         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16356         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16357         logic bug.
16358         * lib/strerror_r.c (strerror_r): Fix the bug.
16359         * lib/strerror.c (strerror): Likewise.
16360         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16361         problem.
16362         * doc/posix-functions/strerror.texi (strerror): Likewise.
16363         * doc/posix-functions/perror.texi (perror): Likewise.
16364         * tests/test-strerror.c (main): Enhance test.
16365         * tests/test-strerror_r.c (main): Likewise.
16366
16367 2011-06-08  Bruno Haible  <bruno@clisp.org>
16368
16369         gnulib-tool: Better isolation between different gnulib-tool invocations.
16370         * gnulib-tool: New option --witness-c-macro.
16371         (witness_c_macro): New variable.
16372         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16373         AM_CPPFLAGS define it as a C macro.
16374         (func_emit_tests_Makefile_am): Likewise.
16375         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16376         read it from there.
16377         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16378         m4_define, not AC_DEFUN.
16379         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16380         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16381         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16382         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16383         s|...|...|, to substitute the values of the GNULIB_* module indicator
16384         variables.
16385         * modules/dirent (Makefile.am): Likewise.
16386         * modules/fcntl-h (Makefile.am): Likewise.
16387         * modules/iconv-h (Makefile.am): Likewise.
16388         * modules/langinfo (Makefile.am): Likewise.
16389         * modules/locale (Makefile.am): Likewise.
16390         * modules/math (Makefile.am): Likewise.
16391         * modules/netdb (Makefile.am): Likewise.
16392         * modules/poll-h (Makefile.am): Likewise.
16393         * modules/pty (Makefile.am): Likewise.
16394         * modules/search (Makefile.am): Likewise.
16395         * modules/signal (Makefile.am): Likewise.
16396         * modules/spawn (Makefile.am): Likewise.
16397         * modules/stdio (Makefile.am): Likewise.
16398         * modules/stdlib (Makefile.am): Likewise.
16399         * modules/string (Makefile.am): Likewise.
16400         * modules/sys_ioctl (Makefile.am): Likewise.
16401         * modules/sys_select (Makefile.am): Likewise.
16402         * modules/sys_socket (Makefile.am): Likewise.
16403         * modules/sys_stat (Makefile.am): Likewise.
16404         * modules/sys_times (Makefile.am): Likewise.
16405         * modules/sys_utsname (Makefile.am): Likewise.
16406         * modules/sys_wait (Makefile.am): Likewise.
16407         * modules/termios (Makefile.am): Likewise.
16408         * modules/time (Makefile.am): Likewise.
16409         * modules/unistd (Makefile.am): Likewise.
16410         * modules/wchar (Makefile.am): Likewise.
16411
16412 2011-06-08  Eric Blake  <eblake@redhat.com>
16413
16414         strerror: simplify replacement
16415         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16416         * modules/strerror (configure.ac): No prereqs needed here...
16417         * modules/strerror-override (configure.ac): ...but this needs it.
16418         (Files): Add file for needed prereq macro.
16419
16420 2011-06-08  Bruno Haible  <bruno@clisp.org>
16421
16422         strerror_r-posix: Tweaks.
16423         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16424         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16425         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16426         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16427         (gl_FUNC_STRERROR_R): ... to here.
16428         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16429
16430 2011-06-07  Eric Blake  <eblake@redhat.com>
16431
16432         perror: document fixed bugs
16433         * doc/posix-functions/perror.texi (perror): Document recent
16434         patches.
16435
16436 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16437
16438         stat-time: get_stat_birthtime failure is better-defined
16439         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16440         return a timestamp whose tv_sec and tv_nsec values are both -1.
16441         Previously, the spec said only that the tv_nsec value was negative.
16442         This upward-compatible change simplifies GNU tar a bit.
16443
16444 2011-06-07  Eric Blake  <eblake@redhat.com>
16445
16446         strerror_r-posix: work around cygwin 1.7.9
16447         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16448         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16449         bug without replacing strerror_r.
16450         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16451         strerror_r is buggy, but without requiring strerror_r compilation.
16452         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16453
16454         test-perror: relax test to ignore cygwin bug
16455         * tests/test-perror2.c (main): Relax test on requiring detection
16456         of stream errors, and use unbuffered stream.
16457         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16458         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16459         * doc/posix-functions/fputc.texi (fputc): Likewise.
16460         * doc/posix-functions/fputs.texi (fputs): Likewise.
16461         * doc/posix-functions/fputws.texi (fputws): Likewise.
16462         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16463         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16464         * doc/posix-functions/getopt.texi (getopt): Likewise.
16465         * doc/posix-functions/perror.texi (perror): Likewise.
16466         * doc/posix-functions/printf.texi (printf): Likewise.
16467         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16468         * doc/posix-functions/psignal.texi (psignal): Likewise.
16469         * doc/posix-functions/putc.texi (putc): Likewise.
16470         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16471         Likewise.
16472         * doc/posix-functions/putchar.texi (putchar): Likewise.
16473         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16474         Likewise.
16475         * doc/posix-functions/puts.texi (puts): Likewise.
16476         * doc/posix-functions/putwc.texi (putwc): Likewise.
16477         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16478         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16479         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16480         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16481         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16482         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16483         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16484         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16485
16486 2011-05-22  Bruno Haible  <bruno@clisp.org>
16487
16488         strerror: Move AC_LIBOBJ invocations to module description.
16489         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16490         gl_PREREQ_STRERROR invocations from here...
16491         * modules/strerror (configure.ac): ... to here.
16492
16493 2011-05-21  Bruno Haible  <bruno@clisp.org>
16494
16495         perror: Use common idiom.
16496         * modules/perror (configure.ac): Reorder statements.
16497
16498 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16499
16500         tests: fix usage message in 'mktempd_'
16501         * tests/init.sh (mktempd_): In the usage message, use literal
16502         'mktempd_', not '$ME' (which is even undefined), as the name of
16503         the subroutine.
16504
16505 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16506
16507         tests init: new function 'fatal_', for hard errors
16508         Before this patch, the only way offered by tests/init.sh to
16509         properly signal a hard error was the `framework_failure_'
16510         function.  But the error message issued by that function,
16511         as its name would suggest, refers to a set-up failure in the
16512         testsuite, while hard errors can obviously also be due to
16513         other reasons.  The best way to fix this inconsistency is to
16514         introduce a new function with a more general error message.
16515         * tests/init.sh (fatal_): New function.
16516
16517 2011-06-06  Eric Blake  <eblake@redhat.com>
16518
16519         canonicalize-lgpl: use common idiom
16520         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16521         over newer POSIX -Rf.
16522         Reported by Bruno Haible.
16523
16524         canonicalize-lgpl: work around AIX realpath bug
16525         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16526         * doc/posix-functions/realpath.texi (realpath): Document it.
16527         Reported by Bruno Haible.
16528
16529         strerror: work around FreeBSD bug
16530         * lib/strerror.c (strerror): Special case 0.
16531         Reported by Bruno Haible.
16532
16533         strerror-override: avoid bloating errno module
16534         * modules/errno (Files, configure.ac): Move replacement strings...
16535         * modules/strerror-override: ...to new module.
16536         * modules/strerror (Depends-on): Add strerror-override.
16537         * modules/strerror_r-posix (Depends-on): Likewise.
16538         * MODULES.html.sh: Document new module.
16539         Reported by Bruno Haible.
16540
16541 2011-06-06  Bruno Haible  <bruno@clisp.org>
16542
16543         spawn-pipe tests: Rename program.
16544         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16545         * tests/test-spawn-pipe-child.c: Update comment.
16546         * tests/test-spawn-pipe.sh: Update.
16547         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16548
16549         spawn-pipe tests: Link the child program only against libc.
16550         * tests/test-spawn-pipe-child.c: New file, extracted from
16551         tests/test-spawn-pipe.c.
16552         (main): Expect only one argument.
16553         (is_open): New function, copied from tests/test-pipe.c.
16554         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16555         (child_main): Remove function.
16556         (test_pipe): Pass only one argument to the child program.
16557         (main): Remove child process code. Expect the child program's name as
16558         first argument.
16559         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16560         argument.
16561         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16562         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16563         test-spawn-pipe-child against no libraries.
16564
16565 2011-06-06  Bruno Haible  <bruno@clisp.org>
16566
16567         careadlinkat: Avoid mismatch between ssize_t and int.
16568         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16569         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16570
16571 2011-06-06  Jim Meyering  <meyering@redhat.com>
16572
16573         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16574         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16575         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16576
16577 2011-06-05  Bruno Haible  <bruno@clisp.org>
16578
16579         ansi-c++-opt: Interoperability with libtool.
16580         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16581         set the variable to "no", not to ":".
16582         * NEWS: Mention the change.
16583
16584 2011-06-05  Bruno Haible  <bruno@clisp.org>
16585
16586         acl: Fix test failure on AIX 7.
16587         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16588         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16589
16590 2011-06-05  Bruno Haible  <bruno@clisp.org>
16591
16592         pipe-filter-ii: Fix test failure on AIX and IRIX.
16593         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16594         with EAGAIN, retry with a smaller buffer size.
16595
16596 2011-06-05  Bruno Haible  <bruno@clisp.org>
16597
16598         localename: Fix link dependencies.
16599         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16600         * modules/localename-tests (Makefile.am): Link test-localename with
16601         $(LIBTHREAD).
16602
16603 2011-06-05  Bruno Haible  <bruno@clisp.org>
16604
16605         error: Avoid gcc warning.
16606         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16607
16608 2011-06-05  Bruno Haible  <bruno@clisp.org>
16609
16610         unsetenv: Avoid gcc warning.
16611         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16612
16613 2011-06-05  Bruno Haible  <bruno@clisp.org>
16614
16615         setenv: Avoid gcc warning.
16616         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16617
16618 2011-06-05  Bruno Haible  <bruno@clisp.org>
16619
16620         sys_select: Ensure memset is declared also on AIX 7.
16621         * lib/sys_select.in.h: Include <string.h> also on AIX.
16622         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16623         self-contained also on AIX 7.1.
16624
16625 2011-06-04  Jim Meyering  <meyering@redhat.com>
16626
16627         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16628         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16629         function name, "error".
16630         (_gl_translatable_diag_func_re): New configurable variable.
16631
16632 2011-06-04  Bruno Haible  <bruno@clisp.org>
16633
16634         getopt: Avoid gcc warning.
16635         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16636
16637 2011-06-04  Bruno Haible  <bruno@clisp.org>
16638
16639         strerror_r: Fix comments.
16640         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16641         commit.
16642
16643 2011-06-04  Bruno Haible  <bruno@clisp.org>
16644
16645         perror: Fix compilation error.
16646         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16647         Undefine fprintf, not sprintf.
16648         * modules/perror (Depends-on): Remove intprops, verify.
16649
16650 2011-06-04  Bruno Haible  <bruno@clisp.org>
16651
16652         setlocale: Enable replacement on Cygwin 1.5.
16653         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16654         Cygwin 1.5.x.
16655         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16656         LC_CTYPE category also exists on Cygwin 1.5.x.
16657
16658 2011-06-04  Bruno Haible  <bruno@clisp.org>
16659
16660         strerror-override: Don't disable symbol renamings.
16661         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16662         * lib/strerror-override.c: Include config.h.
16663         (strerror_override): Don't undefine.
16664
16665 2011-06-03  Bruno Haible  <bruno@clisp.org>
16666
16667         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16668         * lib/localename.h: Update copyright header.
16669         * lib/localename.c: Likewise.
16670         * lib/relocatable.h: Likewise.
16671         * lib/relocatable.c: Likewise.
16672
16673 2011-06-02  Bruno Haible  <bruno@clisp.org>
16674
16675         doc: Fix a module name.
16676         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16677
16678 2011-06-02  Bruno Haible  <bruno@clisp.org>
16679
16680         pipe2: Remove dependency on 'nonblocking' module.
16681         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16682         O_NONBLOCK is defined by gnulib.
16683         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16684         is zero.
16685         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16686         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16687         defined by gnulib.
16688         (get_nonblocking_flag): New function.
16689         (main): Test O_NONBLOCK flag only if it is nonzero.
16690         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16691
16692 2011-06-03  Jim Meyering  <meyering@redhat.com>
16693
16694         maint: three new prohibit-header-without-use rules
16695         Prohibit use of cloexec.h, posixver.h, same.h without use.
16696         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16697         (sc_prohibit_posixver_without_use): Likewise.
16698         (sc_prohibit_same_without_use): Likewise.
16699
16700 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16701
16702         allocator: 'die' routine is now given requested size
16703         * lib/allocator.h (struct allocator.die): New size arg.
16704         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16705         If the actual problem is an ssize_t limitation, not a size_t or
16706         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16707
16708 2011-06-01  Eric Blake  <eblake@redhat.com>
16709
16710         strerror: drop strerror_r dependency
16711         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16712         * lib/strerror-override.c (strerror_override): ...to new file.
16713         * lib/strerror-override.h: Add prototype.
16714         * lib/strerror-impl.h: Delete.
16715         * lib/strerror.c (strerror): New implementation.
16716         * modules/errno (Files): Add new files.
16717         (configure.ac): Compile new file as appropriate.
16718         * modules/strerror (Files): Drop unused file.
16719         (Depends-on): Drop strerror_r-posix.
16720         * MODULES.html.sh: Document strerror_r-posix.
16721         Requested by Sam Steingold.
16722
16723         perror: call strerror_r directly
16724         * modules/perror (Files): Drop strerror-impl.h.
16725         * lib/perror.c (perror): Use our own stack buffer, rather than
16726         calling a wrapper that uses static storage.
16727         * doc/posix-functions/perror.texi (perror): Document a limitation
16728         of our replacement.
16729
16730         strerror_r: fix includes for FreeBSD
16731         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16732         since we use abort on some platforms.
16733         Reported by Matthias Bolte.
16734
16735 2011-05-31  Bruno Haible  <bruno@clisp.org>
16736
16737         Fix link errors in tests: openat-die uses gettext-h.
16738         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16739         against $(LIBINTL).
16740         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16741         against $(LIBINTL).
16742         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16743         $(LIBINTL).
16744         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16745         against $(LIBINTL).
16746         * modules/linkat-tests (Makefile.am): Link test-linkat against
16747         $(LIBINTL).
16748         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16749         $(LIBINTL).
16750         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16751         against $(LIBINTL).
16752         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16753         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16754         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16755         $(LIBINTL).
16756         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16757         $(LIBINTL).
16758         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16759         $(LIBINTL).
16760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16761
16762 2011-05-31  Bruno Haible  <bruno@clisp.org>
16763
16764         Fix link errors in tests: wait-process uses gettext-h.
16765         * modules/nonblocking-pipe-tests (Makefile.am): Set
16766         test_nonblocking_pipe_main_LDADD.
16767         * modules/nonblocking-socket-tests (Makefile.am): Link
16768         test-nonblocking-socket-main against $(LIBINTL).
16769         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16770
16771 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16772
16773         assert-h: work around 'verify' incompatibility
16774         * lib/verify.h: Use @...@ directives, not ifdef.
16775         * modules/assert-h (assert.h): Implement the directives.
16776         (assert.h): Substitute the symbol-prefix more consistently.
16777
16778 2011-05-29  Jim Meyering  <meyering@redhat.com>
16779
16780         trim: remove three superfluous assignments
16781         * lib/trim.c (trim2): Remove three superfluous assignments
16782         and correct brace positioning.
16783
16784 2011-05-29  Bruno Haible  <bruno@clisp.org>
16785
16786         wctype-h: Avoid namespace pollution on Solaris 2.6.
16787         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16788         identifiers.
16789         * doc/posix-headers/wctype.texi: Mention the problem.
16790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16791
16792 2011-05-28  Jim Meyering  <meyering@redhat.com>
16793
16794         parse-datetime.y: accommodate -Wstrict-overflow
16795         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16796         placate -Wstrict-overflow.
16797
16798         trim: avoid a warning from -O2 -Wstrict-overflow
16799         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16800
16801 2011-05-29  Bruno Haible  <bruno@clisp.org>
16802
16803         gnulib-tool: Fix bug in yesterday's commit.
16804         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16805         twice.
16806
16807 2011-05-29  Bruno Haible  <bruno@clisp.org>
16808
16809         Allow multiple gnulib generated include files to be combined.
16810         * gnulib-tool (func_compute_include_guard_prefix): New function.
16811         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16812         ${gl_include_guard_prefix} references.
16813         (func_import, func_create_testdir): Invoke
16814         func_compute_include_guard_prefix.
16815         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16816         * lib/ctype.in.h: Likewise.
16817         * lib/dirent.in.h: Likewise.
16818         * lib/errno.in.h: Likewise.
16819         * lib/fcntl.in.h: Likewise.
16820         * lib/float.in.h: Likewise.
16821         * lib/getopt.in.h: Likewise.
16822         * lib/iconv.in.h: Likewise.
16823         * lib/langinfo.in.h: Likewise.
16824         * lib/locale.in.h: Likewise.
16825         * lib/math.in.h: Likewise.
16826         * lib/netdb.in.h: Likewise.
16827         * lib/netinet_in.in.h: Likewise.
16828         * lib/poll.in.h: Likewise.
16829         * lib/pthread.in.h: Likewise.
16830         * lib/pty.in.h: Likewise.
16831         * lib/sched.in.h: Likewise.
16832         * lib/se-selinux.in.h: Likewise.
16833         * lib/search.in.h: Likewise.
16834         * lib/signal.in.h: Likewise.
16835         * lib/spawn.in.h: Likewise.
16836         * lib/stdarg.in.h: Likewise.
16837         * lib/stddef.in.h: Likewise.
16838         * lib/stdint.in.h: Likewise.
16839         * lib/stdio.in.h: Likewise.
16840         * lib/stdlib.in.h: Likewise.
16841         * lib/string.in.h: Likewise.
16842         * lib/strings.in.h: Likewise.
16843         * lib/sys_file.in.h: Likewise.
16844         * lib/sys_ioctl.in.h: Likewise.
16845         * lib/sys_select.in.h: Likewise.
16846         * lib/sys_socket.in.h: Likewise.
16847         * lib/sys_stat.in.h: Likewise.
16848         * lib/sys_time.in.h: Likewise.
16849         * lib/sys_times.in.h: Likewise.
16850         * lib/sys_uio.in.h: Likewise.
16851         * lib/sys_utsname.in.h: Likewise.
16852         * lib/sys_wait.in.h: Likewise.
16853         * lib/sysexits.in.h: Likewise.
16854         * lib/termios.in.h: Likewise.
16855         * lib/time.in.h: Likewise.
16856         * lib/unistd.in.h: Likewise.
16857         * lib/wchar.in.h: Likewise.
16858         * lib/wctype.in.h: Likewise.
16859         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16860         * modules/ctype (Makefile.am): Likewise.
16861         * modules/dirent (Makefile.am): Likewise.
16862         * modules/errno (Makefile.am): Likewise.
16863         * modules/fcntl-h (Makefile.am): Likewise.
16864         * modules/float (Makefile.am): Likewise.
16865         * modules/getopt-posix (Makefile.am): Likewise.
16866         * modules/iconv-h (Makefile.am): Likewise.
16867         * modules/langinfo (Makefile.am): Likewise.
16868         * modules/locale (Makefile.am): Likewise.
16869         * modules/math (Makefile.am): Likewise.
16870         * modules/netdb (Makefile.am): Likewise.
16871         * modules/netinet_in (Makefile.am): Likewise.
16872         * modules/poll-h (Makefile.am): Likewise.
16873         * modules/pthread (Makefile.am): Likewise.
16874         * modules/pty (Makefile.am): Likewise.
16875         * modules/sched (Makefile.am): Likewise.
16876         * modules/search (Makefile.am): Likewise.
16877         * modules/selinux-h (Makefile.am): Likewise.
16878         * modules/signal (Makefile.am): Likewise.
16879         * modules/spawn (Makefile.am): Likewise.
16880         * modules/stdarg (Makefile.am): Likewise.
16881         * modules/stddef (Makefile.am): Likewise.
16882         * modules/stdint (Makefile.am): Likewise.
16883         * modules/stdio (Makefile.am): Likewise.
16884         * modules/stdlib (Makefile.am): Likewise.
16885         * modules/string (Makefile.am): Likewise.
16886         * modules/strings (Makefile.am): Likewise.
16887         * modules/sys_file (Makefile.am): Likewise.
16888         * modules/sys_ioctl (Makefile.am): Likewise.
16889         * modules/sys_select (Makefile.am): Likewise.
16890         * modules/sys_socket (Makefile.am): Likewise.
16891         * modules/sys_stat (Makefile.am): Likewise.
16892         * modules/sys_time (Makefile.am): Likewise.
16893         * modules/sys_times (Makefile.am): Likewise.
16894         * modules/sys_uio (Makefile.am): Likewise.
16895         * modules/sys_utsname (Makefile.am): Likewise.
16896         * modules/sys_wait (Makefile.am): Likewise.
16897         * modules/sysexits (Makefile.am): Likewise.
16898         * modules/termios (Makefile.am): Likewise.
16899         * modules/time (Makefile.am): Likewise.
16900         * modules/unistd (Makefile.am): Likewise.
16901         * modules/wchar (Makefile.am): Likewise.
16902         * modules/wctype-h (Makefile.am): Likewise.
16903         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16904
16905 2011-05-29  Bruno Haible  <bruno@clisp.org>
16906
16907         assert-h: Allow multiple gnulib generated replacements to coexist.
16908         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16909
16910 2011-05-29  Bruno Haible  <bruno@clisp.org>
16911
16912         argp: Allow coexistence with strerror_r-posix module.
16913         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16914         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16915         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16916         not the glibc signature.
16917
16918 2011-05-28  Bruno Haible  <bruno@clisp.org>
16919
16920         gnulib-tool: Alternative structure of testdirs, similar to --import.
16921         * gnulib-tool: New option --single-configure.
16922         (func_usage): Document it.
16923         (single_configure): New variable.
16924         (func_modules_transitive_closure_separately,
16925         func_modules_transitive_closure_separately,
16926         func_determine_use_libtests, func_modules_add_dummy_separately,
16927         func_modules_to_filelist_separately): New functions, extracted from
16928         func_import.
16929         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16930         (func_import): Use the new functions.
16931         (func_create_testdir): Set final_modules. Handle $single_configure =
16932         true case.
16933
16934 2011-05-28  Bruno Haible  <bruno@clisp.org>
16935
16936         getloadavg: Remove an unreliable safety check.
16937         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16938         getloadavg.c is in place.
16939         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16940         Reported by Sam Steingold <sds@gnu.org>.
16941
16942 2011-05-28  Bruno Haible  <bruno@clisp.org>
16943
16944         doc: Cleanup yet another file produced by texinfo.tex.
16945         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16946
16947 2011-05-28  Bruno Haible  <bruno@clisp.org>
16948
16949         Finish the conditional dependencies mechanism.
16950         * gnulib-tool: New option --no-conditional-dependencies.
16951         (func_usage): Document it. Don't mark --conditional-dependencies as
16952         experimental.
16953         (cond_dependencies): The possible values can now be true, false, empty.
16954         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16955         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16956         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16957
16958 2011-05-28  Bruno Haible  <bruno@clisp.org>
16959
16960         doc: Use a recent texinfo.tex.
16961         * doc/Makefile (tex_opts): New variable.
16962         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16963
16964 2011-05-28  Jim Meyering  <meyering@redhat.com>
16965
16966         intprops.h: adjust comment to match code change
16967         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16968         only once, it *may* have side effects.  Also fix an unrelated typo.
16969         (_GL_INT_SIGNED): Likewise.
16970
16971 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16972
16973         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16974
16975 2011-05-26  Bruno Haible  <bruno@clisp.org>
16976
16977         mbsrchr: Avoid collision with system function on Interix.
16978         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16979         Reported by Markus Duft <mduft@gentoo.org>.
16980
16981 2011-05-15  James Youngman  <jay@gnu.org>
16982
16983         getopt: for ambiguous options, enumerate the possibilities.
16984         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16985         the ambiguous options when an ambiguous prefix is given. This was
16986         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16987         glibc change was
16988         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16989
16990 2011-05-25  Eric Blake  <eblake@redhat.com>
16991
16992         getcwd: work around mingw bug
16993         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16994         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16995         Reported by Matthias Bolte.
16996
16997 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16998
16999         test-intprops: disable -Wtype-limits diagnostics
17000         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17001         diagnostics.  Otherwise, the integer overflow macros generate many
17002         diagnostics.  Reported by Jim Meyering in
17003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17004
17005         intprops: shorten, to pacify gcc -Woverlength-strings
17006         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17007         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17008         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17009         likely to run afoul of C compiler limits for string constant lengths.
17010         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17011
17012 2011-05-24  Eric Blake  <eblake@redhat.com>
17013
17014         docs: document recently fixed glibc printf bug
17015         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17016         * doc/posix-functions/printf.texi (printf): Likewise.
17017         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17018         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17019
17020         closein-tests: convert to init.sh
17021         * modules/closein-tests (Files): Add init.sh
17022         * tests/test-closein.sh Use it.
17023
17024         yesno-tests: convert to init.sh
17025         * modules/yesno-tests (Files): Add init.sh.
17026         * tests/test-yesno.sh: Use it.
17027
17028         atexit-tests: ensure reliable exit status
17029         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17030         Reported by Bruno Haible.
17031
17032 2011-05-24  Bruno Haible  <bruno@clisp.org>
17033
17034         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17035         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17036         gl_PREREQ_STRERROR_R invocations from here...
17037         * modules/strerror_r-posix (configure.ac): ... to here.
17038
17039 2011-05-24  Eric Blake  <eblake@redhat.com>
17040
17041         strerror_r: fix missing header
17042         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17043
17044         strerror_r: fix AIX test failures
17045         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17046         ERANGE failure.
17047
17048         strerror_r: fix Solaris test failures
17049         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17050         failures.
17051         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17052
17053         strerror_r: enforce POSIX recommendations
17054         * lib/strerror_r.c (safe_copy): New helper method.
17055         (strerror_r): Guarantee a non-empty string.
17056         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17057         recent POSIX rulings and to match our strerror guarantees.
17058         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17059
17060 2011-05-24  Jim Meyering  <meyering@redhat.com>
17061
17062         test-perror2.c: avoid warning about unused variable
17063         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17064
17065 2011-05-24  Eric Blake  <eblake@redhat.com>
17066
17067         perror: avoid spurious test failure on HP-UX
17068         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17069
17070         tests: fix logic bug in init.sh
17071         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17072         shell.
17073
17074 2011-05-24  Jim Meyering  <meyering@redhat.com>
17075
17076         utimensat: do not reference an out-of-scope buffer
17077         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17078         declared in an inner scope, yet "times" would be dereferenced outside
17079         the scope in which "ts" was valid.
17080         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17081         of ts[2] "out/up", so that the use of aliased "times" (via
17082         "times = ts;") does not end up referencing an out-of-scope "ts"
17083
17084         opendir-safer.c: don't clobber errno; don't close negative FD
17085         * lib/opendir-safer.c (opendir_safer):
17086         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17087         file descriptor, and more importantly, don't clobber the
17088         offending errno value with EINVAL.  Before, upon failure
17089         of dup_safer, we would pass the negative file descriptor to
17090         fdopendir, which would clobber errno.
17091
17092 2011-05-23  Bruno Haible  <bruno@clisp.org>
17093
17094         idcache: Fix module description.
17095         * modules/idcache (Include): Set to "idcache.h".
17096
17097 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17098
17099         gnulib-tool: fix portability problem with MacOS sed
17100         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17101         before the "}".  Problem reported by Leo in
17102         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17103         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17104         sed_extract_condition1, sed_extract_condition2.
17105
17106 2011-05-23  Bruno Haible  <bruno@clisp.org>
17107
17108         hash: Simplify autoconf macro.
17109         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17110
17111 2011-05-23  Bruno Haible  <bruno@clisp.org>
17112
17113         getugroups: Fix module description.
17114         * modules/getugroups (Include): Set to "getugroups.h".
17115
17116 2011-05-23  Bruno Haible  <bruno@clisp.org>
17117
17118         linkat: Simplify autoconf macro.
17119         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17120
17121 2011-05-23  Bruno Haible  <bruno@clisp.org>
17122             Eric Blake  <eblake@redhat.com>
17123
17124         linkat, renameat: Update dependencies.
17125         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17126         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17127         symlinkat.
17128
17129 2011-05-23  Jim Meyering  <meyering@redhat.com>
17130
17131         maint.mk: more tight_scope improvements
17132         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17133         (_gl_TS_headers): Define only in if-0'd block.
17134         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17135         sometimes we must *not* use it.  Adjust uses accordingly.
17136         (sc_tight_scope): Use much simpler grep-based test to determine
17137         whether we skip this rule.
17138
17139         maint.mk: generalize/improve the tight-scope rule
17140         * top/maint.mk: Emit a warning when the test is skipped.
17141         (_gl_TS_dir): Add $(srcdir)/ prefix.
17142         (_gl_TS_function_match): Simplify, rather than trying
17143         to enumerate common types.  Otherwise, it would fail to match an
17144         "extern unsigned char const *" declaration in idutils.
17145         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17146         a way to support use of that type of macro.
17147         (_gl_TS_var_match): Simplify regexp.
17148         (_gl_TS_obj_files): New configurable variable.
17149         (_gl_TS_headers): Likewise.
17150
17151 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17152
17153         verify: fix bug when gnulib <assert.h> is also included
17154         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17155         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17156         Perhaps there's a better way, but this fixes the immediate problem.
17157         Problem reported by Bruno Haible in
17158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17159
17160 2011-05-22  Bruno Haible  <bruno@clisp.org>
17161
17162         xgetcwd: Simplify autoconf macro.
17163         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17164
17165 2011-05-22  Bruno Haible  <bruno@clisp.org>
17166
17167         New module 'mktime-internal'.
17168         * modules/mktime-internal: New file.
17169         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17170         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17171         mktime_internal as a C macro if libc has __mktime_internal.
17172         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17173         conditions.
17174         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17175
17176 2011-05-22  Bruno Haible  <bruno@clisp.org>
17177
17178         timegm: Correct mktime replacement statements.
17179         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17180         defining mktime as a C macro. This completes a 2009-07-28 commit.
17181
17182 2011-05-22  Bruno Haible  <bruno@clisp.org>
17183
17184         timegm: Simplify autoconf macro.
17185         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17186
17187 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17188
17189         clock-time: change to LGPLv2+.
17190         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17191         BSD-like but we have no mark for that; this is good enough for now.
17192
17193 2011-05-21  Bruno Haible  <bruno@clisp.org>
17194
17195         strerror_r: Fix comments.
17196         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17197
17198 2011-05-21  Bruno Haible  <bruno@clisp.org>
17199
17200         relocatable-prog-wrapper: Fix possible link error.
17201         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17202         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17203         (gl_FUNC_SETENV): ... to here.
17204         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17205         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17206
17207 2011-05-21  Bruno Haible  <bruno@clisp.org>
17208
17209         relocatable-prog-wrapper: Assume strerror() exists.
17210         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17211         m4/strerror.m4.
17212         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17213         * lib/relocwrapper.c: Remove mention of strerror module.
17214         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17215         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17216         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17217         C macro.
17218
17219 2011-05-21  Bruno Haible  <bruno@clisp.org>
17220
17221         select: Simplify replacement idiom.
17222         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17223         Win32 platforms.
17224         * lib/sys_select.in.h (select): Simplify accordingly.
17225         * modules/select (Depends-on): Likewise.
17226
17227 2011-05-21  Bruno Haible  <bruno@clisp.org>
17228
17229         mkdir-p: Simplify autoconf macro.
17230         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17231         gl_FUNC_LCHOWN.
17232
17233 2011-05-21  Eric Blake  <eblake@redhat.com>
17234
17235         strerror_r: avoid clobbering strerror on cygwin
17236         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17237         fall back instead to sys_errlist.
17238         * modules/strerror (configure.ac): Add witness.
17239         * tests/test-strerror_r.c (main): Enhance test.
17240         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17241         * tests/test-perror2.c (main): Free memory before exit.
17242
17243 2011-05-21  Bruno Haible  <bruno@clisp.org>
17244
17245         mkdtemp: Use gnulib naming conventions.
17246         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17247         * modules/mkdtemp (configure.ac): Update.
17248
17249 2011-05-20  Eric Blake  <eblake@redhat.com>
17250
17251         strerror_r: avoid corrupting errno on Solaris
17252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17253         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17254
17255         strerror_r: avoid compiler warning
17256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17257
17258         strerror_r: simplify AIX code
17259         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17260
17261         test-perror: avoid spurious failure on FreeBSD
17262         * modules/perror-tests (Depends-on): Add strerror, now that
17263         strerror_r no longer pulls it in.
17264
17265 2011-05-20  Bruno Haible  <bruno@clisp.org>
17266
17267         strerror_r-posix: Remove unused dependencies.
17268         * modules/strerror_r-posix (Depends-on): Remove strerror.
17269         Reported by Eric Blake.
17270
17271 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17272
17273         intprops: remove assumption about A|B representation
17274         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17275         is a valid integer if both A and B are.  Although this is true for
17276         all known practical hosts, the C standard doesn't guarantee it,
17277         and the code need not assume it.  Also, this change may work around
17278         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17280
17281 2011-05-20  Eric Blake  <eblake@redhat.com>
17282
17283         perror: work around FreeBSD bug
17284         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17285         is broken.  Move AC_LIBOBJ...
17286         * modules/perror (configure.ac): Here.
17287         * doc/posix-functions/perror.texi (perror): Document this.
17288         * tests/test-perror2.c (main): Enhance test.
17289
17290         test-perror: check for strerror interactions
17291         * tests/macros.h (STREQ): Add macro.
17292         * modules/perror-tests (Files): Add second test.
17293         * tests/test-perror2.c (main): New file.
17294         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17295
17296         test-perror: rewrite to use init script
17297         * modules/perror-tests (Files): Add init.sh.
17298         * tests/test-perror.sh: Use temporary directory.
17299
17300 2011-05-20  Jim Meyering  <meyering@redhat.com>
17301
17302         maint: replace misused "a" with "an"
17303         * doc/intprops.texi: "a integer"
17304         * doc/regex.texi: "a explanation"
17305         * lib/alignof.h: "a object"
17306         * lib/argmatch.h: "a explanation"
17307         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17308         * lib/stdint.in.h: "a integer"
17309         * lib/userspec.c: "a owner"
17310         * doc/gnulib.texi: Fix "a idea", and reword.
17311
17312 2011-05-19  Jim Meyering  <meyering@redhat.com>
17313
17314         maint: correct misuse of "a" and "an"
17315         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17316         * lib/argp-help.c: "an docum...": s/an/a/
17317         * lib/argp-parse.c: "An vector": s/An/A/
17318         * lib/execute.c: "an native": s/an/a/
17319         * lib/spawn-pipe.c: Likewise.
17320         * lib/gc.h: "an Gc_rc": s/an/a/
17321         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17322         * lib/fts.c: "an stat.st_dev": s/an/a/
17323
17324 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17325
17326         intprops-tests: work around HP-UX 11.23 cc bug with constants
17327         * tests/test-intprops.c (VERIFY): New macro.
17328         (main): Use it, instead of verify, to work around the compiler bug; see
17329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17330
17331         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17332         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17333         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17334         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17335         (_GL_REMAINDER_OVERFLOW): Use it.
17336
17337         intprops-tests: revert unsigned part of previous change
17338         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17339         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17340         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17342
17343 2011-05-19  Bruno Haible  <bruno@clisp.org>
17344
17345         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17346         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17347         strerror_r() returned without filling the buffer.
17348         Reported by Eric Blake.
17349
17350 2011-05-19  Eric Blake  <eblake@redhat.com>
17351
17352         strerror_r: guarantee unchanged errno
17353         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17354         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17355         failure.
17356         * tests/test-strerror_r.c (main): Enhance test.
17357
17358 2011-05-19  Bruno Haible  <bruno@clisp.org>
17359
17360         strerror_r: Reorder #if blocks.
17361         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17362         for consistency with the previous commit.
17363
17364 2011-05-19  Bruno Haible  <bruno@clisp.org>
17365
17366         perror: Avoid clobbering the strerror buffer when possible.
17367         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17368         * lib/strerror.c: Include it.
17369         * modules/strerror (Files): Add lib/strerror-impl.h.
17370         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17371         (my_strerror): New function, defined through lib/strerror-impl.h.
17372         (perror): Use it instead of strerror.
17373         * modules/perror (Files): Add lib/strerror-impl.h.
17374         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17375
17376 2011-05-19  Eric Blake  <eblake@redhat.com>
17377
17378         strerror_r: fix on newer cygwin
17379         * lib/strerror_r.c (strerror_r): Cygwin now has
17380         __xpg_strerror_r, use it.
17381
17382 2011-05-19  Bruno Haible  <bruno@clisp.org>
17383
17384         strerror_r: Avoid clobbering the strerror buffer when possible.
17385         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17386         (sys_nerr, sys_errlist): New declarations.
17387         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17388         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17389         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17390
17391 2011-05-19  Bruno Haible  <bruno@clisp.org>
17392
17393         strerror_r: Fix test failure on mingw.
17394         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17395         EXTEND_STRERROR_R.
17396         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17397         macros from errno.in.h instead.
17398
17399 2011-05-19  Eric Blake  <eblake@redhat.com>
17400
17401         strerror: relax test for Solaris
17402         * tests/test-strerror.c (main): Permit Solaris behavior.
17403         * tests/test-strerror_r.c (main): Likewise.
17404
17405         strerror: enforce POSIX ruling on strerror(0)
17406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17407         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17408         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17409         * doc/posix-functions/strerror.texi (strerror): Document it.
17410         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17411         * tests/test-strerror.c (main): Strengthen test.
17412         * tests/test-strerror_r.c (main): Likewise.
17413
17414 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17415
17416         intprop-tests: port to older and more-pedantic compilers
17417         * modules/intprops-tests (Files): Add tests/macros.h.
17418         * tests/test-intprops.c: Include macros.h.
17419         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17420         it's no longer documented to expand to an integer constant expression.
17421         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17422         argument is floating point, as it's no longer documented to expand
17423         to an integer constant expression in that case.
17424         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17425         compiler bugs reported by Bruno Haible.  See
17426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17427         (U0, U1): New constants, to work around the same bugs.  Also,
17428         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17429
17430         intprops: work around C compiler bugs
17431         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17432         bug in Sun C 5.11 2010/08/13 and other compilers; see
17433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17434
17435         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17436         * doc/intprops.texi (Integer Type Determination): Fix
17437         documentation for TYPE_IS_INTEGER: it returns an constant
17438         expression, not an integer constant expression.  Fix doc for
17439         TYPE_SIGNED: it returns an integer constant expression only if its
17440         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17441         hardly worth documented that way....)
17442
17443 2011-05-18  Bruno Haible  <bruno@clisp.org>
17444
17445         strerror_r: Avoid clobbering the strerror buffer when possible.
17446         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17447         Handle gnulib defined errno values here. When strerror() returns NULL
17448         or an empty string, return EINVAL.
17449         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17450         gnulib defined errno values here.
17451         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17452
17453 2011-05-18  Eric Blake  <eblake@redhat.com>
17454
17455         fnmatch: avoid compiler warning
17456         * lib/fnmatch_loop.c (FCT): Use correct type.
17457         Reported by Matthias Bolte.
17458
17459 2011-05-13  Jim Meyering  <meyering@redhat.com>
17460
17461         maint.mk: three new prohibit_<HDR>_without_use rules
17462         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17463         (sc_prohibit_stdio-safer_without_use): Likewise.
17464         (sc_prohibit_xfreopen_without_use): Likewise.
17465
17466 2011-05-17  Jim Meyering  <meyering@redhat.com>
17467
17468         announce-gen: fail if the NEWS delta is empty
17469         If there's nothing noteworthy in NEWS, then either you forgot
17470         or you shouldn't be releasing.
17471         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17472
17473 2011-05-17  Pádraig Brady <P@draigBrady.com>
17474
17475         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17476         reserved symbols starting with double underscore from the check.
17477
17478 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17479
17480         intprops: add doc
17481         * doc/intprops.texi: New file, documenting intprops.
17482         * doc/gnulib.texi (Particular Modules): Include it.
17483
17484         verify: add doc to gnulib manual and fix example
17485         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17486         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17487         (Compile-time Assertions): Fix example so it can't overflow.
17488
17489 2011-05-17  Jim Meyering  <meyering@redhat.com>
17490
17491         warnings.m4: don't usurp save_CPPFLAGS variable name
17492         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17493
17494         doc: fix typo
17495         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17496
17497 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17498             Bruno Haible  <bruno@clisp.org>
17499
17500         doc: Tweak recent change.
17501         * README (Portability guidelines): Tweak new text.
17502         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17503         Interix 6.1.
17504
17505 2011-05-16  Eric Blake  <eblake@redhat.com>
17506
17507         inttypes: avoid autoconf warning
17508         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17509         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17510
17511 2011-05-16  Sam Steingold <sds@gnu.org>
17512         and Eric Blake  <eblake@redhat.com>
17513
17514         vc-list-files: accept multiple directory operands
17515         * build-aux/vc-list-files: Iterate over all remaining operands.
17516
17517 2011-05-16  Bruno Haible  <bruno@clisp.org>
17518
17519         Fix confusion regarding deprecated modules.
17520         * modules/calloc (Status, Notice): Mark module as deprecated, not
17521         obsolete.
17522         * modules/fnmatch-posix (Status, Notice): Likewise.
17523         * modules/getdate (Status, Notice): Likewise.
17524         * modules/getopt (Status, Notice): Likewise.
17525         * modules/malloc (Status, Notice): Likewise.
17526         * modules/pipe (Status, Notice): Likewise.
17527         * modules/realloc (Status, Notice): Likewise.
17528         * modules/rename-dest-slash (Status, Notice): Likewise.
17529         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17530         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17531         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17532         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17533         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17534
17535 2011-05-16  Bruno Haible  <bruno@clisp.org>
17536
17537         doc: List the target platforms.
17538         * doc/gnulib-intro.texi (Target Platforms): New section.
17539         * doc/gnulib.texi (Introduction): Update menu.
17540         * README (Portability guidelines): Refer to the new section. Update
17541         statement about oldest supported environment. Remove rationale why
17542         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17543         unportable C89 function.
17544         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17545         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17546
17547 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17548
17549         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17550
17551 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17552
17553         intprops-tests: new module
17554         * modules/intprops-tests, tests/test-intprops.c: New files.
17555
17556         intprops: add safe, portable integer overflow checking
17557         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17558         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17559         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17560         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17561         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17562         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17563         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17564         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17565         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17566         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17567         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17568
17569 2011-05-12  James Youngman  <jay@gnu.org>
17570
17571         Add a test for glibc's Bugzilla bug #12378.
17572         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17573         doesn't allow the literal matching of a lone "[" (which is
17574         required by POSIX).
17575         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17576
17577 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17578
17579         Sync glibc change fixing Bugzilla bug #12378.
17580         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17581         beginning and fall back to matching as normal character if the
17582         string ends before the matching ']' is found.  This is what POSIX
17583         requires.
17584
17585 2011-05-13  Eric Blake  <eblake@redhat.com>
17586
17587         getcwd-lgpl: relax test for FreeBSD
17588         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17589         issue.
17590         * tests/test-getcwd-lgpl.c (main): Relax test.
17591         Reported by Matthias Bolte.
17592
17593 2011-05-11  Eric Blake  <eblake@redhat.com>
17594
17595         test-fflush: silence compiler warning
17596         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17597
17598 2011-05-11  Bruno Haible  <bruno@clisp.org>
17599
17600         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17601         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17602         * modules/canonicalize (Depends-on): Add 'nocrash'.
17603         * modules/canonicalize-lgpl (Depends-on): Likewise.
17604         * doc/posix-functions/realpath.texi: Update platforms list.
17605         Reported by Ryan Schmidt <ryandesign@macports.org>.
17606
17607 2011-05-11  Bruno Haible  <bruno@clisp.org>
17608
17609         group-member: Declare function in <unistd.h>.
17610         * lib/unistd.in.h (group_member): New declaration.
17611         * lib/group-member.h: Remove file.
17612         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17613         * tests/test-unistd-c++.cc: Check signature of group_member.
17614         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17615         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17616         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17617         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17618         HAVE_GROUP_MEMBER.
17619         * modules/group-member (Files): Remove lib/group-member.h.
17620         (Depends-on): Add unistd. Specify conditions.
17621         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17622         (Include): Change to <unistd.h>.
17623         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17624         HAVE_GROUP_MEMBER.
17625         * NEWS: Mention the change.
17626         * lib/euidaccess.c: Don't include group-member.h.
17627
17628 2011-05-11  Bruno Haible  <bruno@clisp.org>
17629
17630         group-member: Document module.
17631         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17632         module.
17633
17634 2011-05-11  Bruno Haible  <bruno@clisp.org>
17635
17636         fclose: Fix mistake earlier today.
17637         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17638
17639 2011-05-11  Eric Blake  <eblake@redhat.com>
17640
17641         fclose: preserve fflush errors
17642         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17643         Reported by Jim Meyering.
17644
17645         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17646         * build-aux/bootstrap (check_versions): When no specific version
17647         is required, merely check that the app produces an exit status
17648         that indicates its existence.
17649
17650         maint.mk: drop redundant check
17651         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17652         the same but better.
17653
17654 2011-05-11  Bruno Haible  <bruno@clisp.org>
17655
17656         fclose: Fix possible link error.
17657         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17658         unregister_shadow_fd. Improve comments.
17659         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17660         Eric Blake.
17661
17662 2011-05-11  Jim Meyering  <meyering@redhat.com>
17663
17664         maint.mk: improve "can not" detection and generalize rule name
17665         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17666         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17667         Use the same technique as in sc_prohibit_doubled_word, so that
17668         we recognize "can not" also when the words are separated by a newline.
17669         Suggested by Eric Blake.
17670         (perl_filename_lineno_text_): Define.  Factored out of...
17671         (prohibit_doubled_word_): ...here.  Use the new definition.
17672         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17673         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17674         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17675
17676 2011-05-10  Eric Blake  <eblake@redhat.com>
17677
17678         fclose: avoid double close race when possible
17679         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17680         all but WINDOWS_SOCKETS.
17681
17682 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17683
17684         openat: correct new comment
17685         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17686
17687 2011-05-10  Jim Meyering  <meyering@redhat.com>
17688
17689         openat: add comments
17690         * lib/openat-proc.c (openat_proc_name): Add comments,
17691         mostly from Eric Blake.
17692
17693 2011-05-09  Eric Blake  <eblake@redhat.com>
17694
17695         openat: reduce syscalls in first probe of /proc
17696         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17697         be a directory.  Simplify the probe for .. bugs.
17698         * modules/openat (Depends-on): Drop same-inode.
17699         Reported by Bastien ROUCARIES.
17700
17701 2011-05-09  Jim Meyering  <meyering@redhat.com>
17702
17703         maint.mk: change semantics/name of tight_scope variables
17704         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17705         Rename variables to align with semantics that make them more useful.
17706
17707         maint.mk: tweak new rule's name not to impinge
17708         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17709         (sc_tight_scope): Use new rule name rather than $@-0.
17710
17711         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17712         * top/maint.mk (sc_tight_scope): New rule.
17713         (sc_tight_scope-0): New rule, ifdef'd out.
17714         (_gl_TS_dir): Default.
17715         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17716         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17717
17718 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17719
17720         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17721         Haible <bruno@clisp.org>.
17722
17723 2011-05-08  Bruno Haible  <bruno@clisp.org>
17724
17725         Comments.
17726         * m4/isnanf.m4: Add comment.
17727         * m4/isnanl.m4: Likewise.
17728
17729 2011-05-08  Bruno Haible  <bruno@clisp.org>
17730
17731         glob: Remove obsolete macro.
17732         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17733
17734 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17735
17736         intprops: Sun C 5.11 supports __typeof__
17737         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17738         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17739         which is new.
17740         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17741
17742         intprops: switch to usual gnulib indenting and naming
17743         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17744         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17745
17746         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17747
17748 2011-05-08  Jim Meyering  <meyering@redhat.com>
17749
17750         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17751         * top/maint.mk (release-prep): Use make's --no-print-directory
17752         option when generating the announcement.  This eliminates the
17753         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17754         generated announcement template.
17755
17756 2011-05-08  Bruno Haible  <bruno@clisp.org>
17757
17758         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17759         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17760         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17761
17762 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17763
17764         ignore-value, verify: Omit include files from lib_SOURCES.
17765         * modules/ignore-value, modules/verify (Makefile.am):
17766         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17767         that leads Automake to duplicate use of am__objects_... variables
17768         in Makefile.in.  See
17769         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17770
17771 2011-05-07  Bruno Haible  <bruno@clisp.org>
17772
17773         fclose: Simplify autoconf macro.
17774         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17775         defined.
17776
17777 2011-05-07  Bruno Haible  <bruno@clisp.org>
17778
17779         canonicalize-lgpl: Fix autoconf macro ordering bug.
17780         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17781         gl_STDLIB_H_DEFAULTS.
17782
17783 2011-05-06  Eric Blake  <eblake@redhat.com>
17784
17785         maintainer-makefile: make sc_po_check easier to tune
17786         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17787         to probe for strings, such as an alternate location for gnulib.
17788
17789         fclose: guarantee behavior on seekable stdin
17790         * modules/fclose (Depends-on): Add fflush.
17791         * doc/posix-functions/fclose.texi (fclose): Document this.
17792         * tests/test-fclose.c (main): Make test for this unconditional.
17793
17794 2011-05-06  Bruno Haible  <bruno@clisp.org>
17795
17796         fflush, fpurge: Relicense under LGPLv2+.
17797         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17798         * modules/fpurge (License): Likewise.
17799         With permission from Eric Blake and Jim Meyering.
17800         Suggested by Eric Blake.
17801
17802 2011-05-06  Karl Berry  <karl@gnu.org>
17803
17804         * MODULES.html.sh (func_all_modules): remove exit.
17805
17806 2011-05-06  Jim Meyering  <meyering@redhat.com>
17807
17808         maint.mk: use info-gnu@ as the default only for a stable release
17809         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17810         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17811         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17812         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17813
17814 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17815
17816         assert-h: new module, which supports C1X-style static_assert
17817         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17818         * lib/verify.h: Revamp so that this can be copied into assert.h,
17819         while retaining the ability to use it standalone as before.
17820         Rename private identifiers so as not to encroach on the
17821         standard C namespace, since this is now used by assert.h.
17822         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17823         the old verify_true.
17824         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17825         the old verify_true.  Use _GL_VERIFY_TYPE.
17826         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17827         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17828         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17829         defined when this file is copied into the replacement assert.h.
17830         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17831         and _Static_assert is not built in.
17832         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17833         defined, and use the new macros mentioned above.
17834         * doc/posix-headers/assert.texi: Document this.
17835
17836 2011-05-05  Bruno Haible  <bruno@clisp.org>
17837
17838         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17839         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17840         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17841         gl_REPLACE_FCLOSE here.
17842         * modules/fflush (Depends-on): Remove fclose.
17843         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17844         combination with module 'fclose'.
17845
17846 2011-05-05  Bruno Haible  <bruno@clisp.org>
17847
17848         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17849         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17850         gl_FUNC_FFLUSH.
17851         (gl_FUNC_FFLUSH): Use it.
17852         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17853         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17854         gl_REPLACE_FSEEKO here.
17855
17856 2011-05-05  Bruno Haible  <bruno@clisp.org>
17857
17858         tzset: Relicense under LGPL.
17859         * modules/tzset (License): Change to LGPL.
17860         No agreement needed; it's a no-op.
17861
17862         strtoimax, strtoumax: Relicense under LGPL.
17863         * modules/strtoimax (License): Change to LGPL.
17864         * modules/strtoumax (License): Likewise.
17865         With permission from Jim Meyering, Paul Eggert:
17866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17868
17869         getgroups: Relicense under LGPL.
17870         * modules/getgroups (License): Change to LGPL.
17871         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17875
17876         nanosleep: Relicense under LGPL.
17877         * modules/nanosleep (License): Change to LGPL.
17878         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17879         Haible:
17880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17884
17885         futimens: Relicense under LGPL.
17886         * modules/futimens (License): Change to LGPL.
17887         With permission from Eric Blake:
17888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17889
17890         fflush: Relicense under LGPL.
17891         * modules/fflush (License): Change to LGPL.
17892         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17896
17897         tmpfile: Relicense under LGPL.
17898         * modules/tmpfile (License): Change to LGPL.
17899         With permission from Ben Pfaff:
17900         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17901
17902         isfinite: Relicense under LGPL.
17903         * modules/isfinite (License): Change to LGPL.
17904         With permission from Ben Pfaff, Bruno Haible:
17905         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17907
17908         acosl..tanl: Relicense under LGPL.
17909         * modules/acosl (License): Change to LGPL.
17910         * modules/asinl (License): Likewise.
17911         * modules/atanl (License): Likewise.
17912         * modules/cosl (License): Likewise.
17913         * modules/expl (License): Likewise.
17914         * modules/logl (License): Likewise.
17915         * modules/sinl (License): Likewise.
17916         * modules/sqrtl (License): Likewise.
17917         * modules/tanl (License): Likewise.
17918         Source code originally from glibc and Paolo Bonzini. Agreements:
17919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17921
17922 2011-05-05  Bruno Haible  <bruno@clisp.org>
17923
17924         signal: Define sighandler_t.
17925         * lib/signal.in.h (sighandler_t): New type.
17926         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17927         whether sighandler_t is defined.
17928         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17929         * modules/signal (Depends-on): Add extensions.
17930         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17931         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17932         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17933
17934 2011-05-05  Eric Blake  <eblake@redhat.com>
17935
17936         maint: remove useless REPLACE_*_H macros
17937         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17938         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17939         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17940         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17941         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17942         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17943         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17944         * m4/btowc.m4: Update callers.
17945         * m4/dirfd.m4: Likewise.
17946         * m4/duplocale.m4: Likewise.
17947         * m4/fchdir.m4: Likewise.
17948         * m4/fdopendir.m4: Likewise.
17949         * m4/inet_ntop.m4: Likewise.
17950         * m4/inet_pton.m4: Likewise.
17951         * m4/ioctl.m4: Likewise.
17952         * m4/mbrlen.m4: Likewise.
17953         * m4/mbrtowc.m4: Likewise.
17954         * m4/mbsinit.m4: Likewise.
17955         * m4/mbsnrtowcs.m4: Likewise.
17956         * m4/mbsrtowcs.m4: Likewise.
17957         * m4/poll.m4: Likewise.
17958         * m4/setlocale.m4: Likewise.
17959         * m4/wcrtomb.m4: Likewise.
17960         * m4/wcsnrtombs.m4: Likewise.
17961         * m4/wcsrtombs.m4: Likewise.
17962         * m4/wctob.m4: Likewise.
17963         * m4/wcwidth.m4: Likewise.
17964         * modules/posix_spawn: Likewise.
17965         * modules/posix_spawn_file_actions_addclose: Likewise.
17966         * modules/posix_spawn_file_actions_adddup2: Likewise.
17967         * modules/posix_spawn_file_actions_addopen: Likewise.
17968         * modules/posix_spawn_file_actions_destroy: Likewise.
17969         * modules/posix_spawn_file_actions_init: Likewise.
17970         * modules/posix_spawnattr_destroy: Likewise.
17971         * modules/posix_spawnattr_getflags: Likewise.
17972         * modules/posix_spawnattr_getpgroup: Likewise.
17973         * modules/posix_spawnattr_getschedparam: Likewise.
17974         * modules/posix_spawnattr_getschedpolicy: Likewise.
17975         * modules/posix_spawnattr_getsigdefault: Likewise.
17976         * modules/posix_spawnattr_getsigmask: Likewise.
17977         * modules/posix_spawnattr_init: Likewise.
17978         * modules/posix_spawnattr_setflags: Likewise.
17979         * modules/posix_spawnattr_setpgroup: Likewise.
17980         * modules/posix_spawnattr_setschedparam: Likewise.
17981         * modules/posix_spawnattr_setschedpolicy: Likewise.
17982         * modules/posix_spawnattr_setsigdefault: Likewise.
17983         * modules/posix_spawnattr_setsigmask: Likewise.
17984         * modules/posix_spawnp: Likewise.
17985
17986 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17987
17988         Add option to do-release-commit-and-tag to specify branch.
17989         * build-aux/do-release-commit-and-tag: Add --branch.
17990
17991 2011-05-03  Bruno Haible  <bruno@clisp.org>
17992
17993         Avoid unnecessary compilation units, through conditional dependencies.
17994         * modules/accept (Depends-on): Add conditions to the dependencies.
17995         * modules/acosl (Depends-on): Likewise.
17996         * modules/argz (Depends-on): Likewise.
17997         * modules/asinl (Depends-on): Likewise.
17998         * modules/atanl (Depends-on): Likewise.
17999         * modules/atoll (Depends-on): Likewise.
18000         * modules/bind (Depends-on): Likewise.
18001         * modules/btowc (Depends-on): Likewise.
18002         * modules/canonicalize-lgpl (Depends-on): Likewise.
18003         * modules/ceil (Depends-on): Likewise.
18004         * modules/ceilf (Depends-on): Likewise.
18005         * modules/ceill (Depends-on): Likewise.
18006         * modules/chdir-long (Depends-on): Likewise.
18007         * modules/chown (Depends-on): Likewise.
18008         * modules/close (Depends-on): Likewise.
18009         * modules/connect (Depends-on): Likewise.
18010         * modules/cosl (Depends-on): Likewise.
18011         * modules/dirfd (Depends-on): Likewise.
18012         * modules/dprintf (Depends-on): Likewise.
18013         * modules/dprintf-posix (Depends-on): Likewise.
18014         * modules/error (Depends-on): Likewise.
18015         * modules/euidaccess (Depends-on): Likewise.
18016         * modules/expl (Depends-on): Likewise.
18017         * modules/faccessat (Depends-on): Likewise.
18018         * modules/fchdir (Depends-on): Likewise.
18019         * modules/fclose (Depends-on): Likewise.
18020         * modules/fcntl (Depends-on): Likewise.
18021         * modules/fdopendir (Depends-on): Likewise.
18022         * modules/fflush (Depends-on): Likewise.
18023         * modules/floor (Depends-on): Likewise.
18024         * modules/floorf (Depends-on): Likewise.
18025         * modules/floorl (Depends-on): Likewise.
18026         * modules/fnmatch (Depends-on): Likewise.
18027         * modules/fopen (Depends-on): Likewise.
18028         * modules/fprintf-posix (Depends-on): Likewise.
18029         * modules/frexp (Depends-on): Likewise.
18030         * modules/frexp-nolibm (Depends-on): Likewise.
18031         * modules/frexpl (Depends-on): Likewise.
18032         * modules/frexpl-nolibm (Depends-on): Likewise.
18033         * modules/fseek (Depends-on): Likewise.
18034         * modules/fsusage (Depends-on): Likewise.
18035         * modules/ftell (Depends-on): Likewise.
18036         * modules/ftello (Depends-on): Likewise.
18037         * modules/futimens (Depends-on): Likewise.
18038         * modules/getcwd (Depends-on): Likewise.
18039         * modules/getcwd-lgpl (Depends-on): Likewise.
18040         * modules/getdelim (Depends-on): Likewise.
18041         * modules/getdomainname (Depends-on): Likewise.
18042         * modules/getgroups (Depends-on): Likewise.
18043         * modules/gethostname (Depends-on): Likewise.
18044         * modules/getline (Depends-on): Likewise.
18045         * modules/getlogin_r (Depends-on): Likewise.
18046         * modules/getopt-posix (Depends-on): Likewise.
18047         * modules/getpeername (Depends-on): Likewise.
18048         * modules/getsockname (Depends-on): Likewise.
18049         * modules/getsockopt (Depends-on): Likewise.
18050         * modules/getsubopt (Depends-on): Likewise.
18051         * modules/getusershell (Depends-on): Likewise.
18052         * modules/glob (Depends-on): Likewise.
18053         * modules/grantpt (Depends-on): Likewise.
18054         * modules/iconv_open (Depends-on): Likewise.
18055         * modules/iconv_open-utf (Depends-on): Likewise.
18056         * modules/inet_ntop (Depends-on): Likewise.
18057         * modules/inet_pton (Depends-on): Likewise.
18058         * modules/ioctl (Depends-on): Likewise.
18059         * modules/isapipe (Depends-on): Likewise.
18060         * modules/isfinite (Depends-on): Likewise.
18061         * modules/isinf (Depends-on): Likewise.
18062         * modules/lchown (Depends-on): Likewise.
18063         * modules/ldexpl (Depends-on): Likewise.
18064         * modules/link (Depends-on): Likewise.
18065         * modules/linkat (Depends-on): Likewise.
18066         * modules/listen (Depends-on): Likewise.
18067         * modules/logl (Depends-on): Likewise.
18068         * modules/lstat (Depends-on): Likewise.
18069         * modules/mbrlen (Depends-on): Likewise.
18070         * modules/mbrtowc (Depends-on): Likewise.
18071         * modules/mbsinit (Depends-on): Likewise.
18072         * modules/mbsnrtowcs (Depends-on): Likewise.
18073         * modules/mbsrtowcs (Depends-on): Likewise.
18074         * modules/mbtowc (Depends-on): Likewise.
18075         * modules/memcmp (Depends-on): Likewise.
18076         * modules/mkdir (Depends-on): Likewise.
18077         * modules/mkdtemp (Depends-on): Likewise.
18078         * modules/mkfifo (Depends-on): Likewise.
18079         * modules/mkfifoat (Depends-on): Likewise.
18080         * modules/mknod (Depends-on): Likewise.
18081         * modules/mkostemp (Depends-on): Likewise.
18082         * modules/mkostemps (Depends-on): Likewise.
18083         * modules/mkstemp (Depends-on): Likewise.
18084         * modules/mkstemps (Depends-on): Likewise.
18085         * modules/mktime (Depends-on): Likewise.
18086         * modules/nanosleep (Depends-on): Likewise.
18087         * modules/open (Depends-on): Likewise.
18088         * modules/openat (Depends-on): Likewise.
18089         * modules/perror (Depends-on): Likewise.
18090         * modules/poll (Depends-on): Likewise.
18091         * modules/popen (Depends-on): Likewise.
18092         * modules/posix_spawn (Depends-on): Likewise.
18093         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18094         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18095         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18096         * modules/posix_spawnp (Depends-on): Likewise.
18097         * modules/pread (Depends-on): Likewise.
18098         * modules/printf-posix (Depends-on): Likewise.
18099         * modules/ptsname (Depends-on): Likewise.
18100         * modules/putenv (Depends-on): Likewise.
18101         * modules/pwrite (Depends-on): Likewise.
18102         * modules/readline (Depends-on): Likewise.
18103         * modules/readlink (Depends-on): Likewise.
18104         * modules/readlinkat (Depends-on): Likewise.
18105         * modules/recv (Depends-on): Likewise.
18106         * modules/recvfrom (Depends-on): Likewise.
18107         * modules/regex (Depends-on): Likewise.
18108         * modules/remove (Depends-on): Likewise.
18109         * modules/rename (Depends-on): Likewise.
18110         * modules/renameat (Depends-on): Likewise.
18111         * modules/rmdir (Depends-on): Likewise.
18112         * modules/round (Depends-on): Likewise.
18113         * modules/roundf (Depends-on): Likewise.
18114         * modules/roundl (Depends-on): Likewise.
18115         * modules/rpmatch (Depends-on): Likewise.
18116         * modules/select (Depends-on): Likewise.
18117         * modules/send (Depends-on): Likewise.
18118         * modules/sendto (Depends-on): Likewise.
18119         * modules/setenv (Depends-on): Likewise.
18120         * modules/setlocale (Depends-on): Likewise.
18121         * modules/setsockopt (Depends-on): Likewise.
18122         * modules/shutdown (Depends-on): Likewise.
18123         * modules/sigaction (Depends-on): Likewise.
18124         * modules/signbit (Depends-on): Likewise.
18125         * modules/sigprocmask (Depends-on): Likewise.
18126         * modules/sinl (Depends-on): Likewise.
18127         * modules/sleep (Depends-on): Likewise.
18128         * modules/snprintf (Depends-on): Likewise.
18129         * modules/snprintf-posix (Depends-on): Likewise.
18130         * modules/socket (Depends-on): Likewise.
18131         * modules/sprintf-posix (Depends-on): Likewise.
18132         * modules/sqrtl (Depends-on): Likewise.
18133         * modules/stat (Depends-on): Likewise.
18134         * modules/strchrnul (Depends-on): Likewise.
18135         * modules/strdup-posix (Depends-on): Likewise.
18136         * modules/strerror (Depends-on): Likewise.
18137         * modules/strerror_r-posix (Depends-on): Likewise.
18138         * modules/strndup (Depends-on): Likewise.
18139         * modules/strnlen (Depends-on): Likewise.
18140         * modules/strptime (Depends-on): Likewise.
18141         * modules/strsep (Depends-on): Likewise.
18142         * modules/strsignal (Depends-on): Likewise.
18143         * modules/strstr-simple (Depends-on): Likewise.
18144         * modules/strtod (Depends-on): Likewise.
18145         * modules/strtoimax (Depends-on): Likewise.
18146         * modules/strtok_r (Depends-on): Likewise.
18147         * modules/strtoumax (Depends-on): Likewise.
18148         * modules/symlink (Depends-on): Likewise.
18149         * modules/symlinkat (Depends-on): Likewise.
18150         * modules/tanl (Depends-on): Likewise.
18151         * modules/tcgetsid (Depends-on): Likewise.
18152         * modules/tmpfile (Depends-on): Likewise.
18153         * modules/trunc (Depends-on): Likewise.
18154         * modules/truncf (Depends-on): Likewise.
18155         * modules/truncl (Depends-on): Likewise.
18156         * modules/uname (Depends-on): Likewise.
18157         * modules/unlink (Depends-on): Likewise.
18158         * modules/unlockpt (Depends-on): Likewise.
18159         * modules/unsetenv (Depends-on): Likewise.
18160         * modules/usleep (Depends-on): Likewise.
18161         * modules/utimensat (Depends-on): Likewise.
18162         * modules/vasprintf (Depends-on): Likewise.
18163         * modules/vdprintf (Depends-on): Likewise.
18164         * modules/vdprintf-posix (Depends-on): Likewise.
18165         * modules/vfprintf-posix (Depends-on): Likewise.
18166         * modules/vprintf-posix (Depends-on): Likewise.
18167         * modules/vsnprintf (Depends-on): Likewise.
18168         * modules/vsnprintf-posix (Depends-on): Likewise.
18169         * modules/vsprintf-posix (Depends-on): Likewise.
18170         * modules/wcrtomb (Depends-on): Likewise.
18171         * modules/wcscasecmp (Depends-on): Likewise.
18172         * modules/wcscspn (Depends-on): Likewise.
18173         * modules/wcsdup (Depends-on): Likewise.
18174         * modules/wcsncasecmp (Depends-on): Likewise.
18175         * modules/wcsnrtombs (Depends-on): Likewise.
18176         * modules/wcspbrk (Depends-on): Likewise.
18177         * modules/wcsrtombs (Depends-on): Likewise.
18178         * modules/wcsspn (Depends-on): Likewise.
18179         * modules/wcsstr (Depends-on): Likewise.
18180         * modules/wcstok (Depends-on): Likewise.
18181         * modules/wcswidth (Depends-on): Likewise.
18182         * modules/wctob (Depends-on): Likewise.
18183         * modules/wctomb (Depends-on): Likewise.
18184         * modules/wctype (Depends-on): Likewise.
18185         * modules/wcwidth (Depends-on): Likewise.
18186         * modules/write (Depends-on): Likewise.
18187
18188 2011-05-03  Bruno Haible  <bruno@clisp.org>
18189
18190         Support for conditional dependencies.
18191         * doc/gnulib.texi (Module description): Document the syntax of
18192         conditional dependencies.
18193         * gnulib-tool: New option --conditional-dependencies.
18194         (func_usage): Document it.
18195         (cond_dependencies): New variable.
18196         (func_get_automake_snippet_conditional,
18197         func_get_automake_snippet_unconditional): New functions, extracted from
18198         func_get_automake_snippet.
18199         (func_get_automake_snippet): Use them.
18200         (sed_first_32_chars): New variable.
18201         (func_module_shellfunc_name): New function.
18202         (func_module_shellvar_name): New function.
18203         (func_module_conditional_name): New function.
18204         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18205         func_cond_module_condition): New functions.
18206         (func_modules_transitive_closure): Add support for conditional
18207         dependencies.
18208         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18209         conditional automake snippet in an automake conditional.
18210         (func_emit_autoconf_snippets): Emit shell functions that contain the
18211         code for conditional modules.
18212         (func_import, func_create_testdir): Update specification.
18213
18214 2011-05-03  Eric Blake  <eblake@redhat.com>
18215
18216         test-getaddrinfo: report error information
18217         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18218
18219 2011-05-03  Jim Meyering  <meyering@redhat.com>
18220
18221         bootstrap: avoid build failure when $GZIP is set
18222         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18223         program name.  If defined at all, it is supposed to list gzip options.
18224         Reported by Alan Curry in http://debbugs.gnu.org/8609
18225
18226 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18227
18228         readme-release: new module with release instructions
18229         * modules/readme-release: New module.
18230         * top/README-release: New file, from coreutils, grep, diffutils.
18231         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18232
18233 2011-05-02  Eric Blake  <eblake@redhat.com>
18234
18235         fflush: also replace fclose when fixing fflush
18236         * modules/fflush (Depends-on): Add fclose.
18237         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18238         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18239         memstreams with no backing fd.
18240         * doc/posix-functions/fclose.texi (fclose): Document the use of
18241         fflush module to fix the bug.
18242         * tests/test-fclose.c (main): Relax test when fclose is used in
18243         isolation.
18244
18245         fclose: add some tests
18246         * modules/fclose-tests: New test module.
18247         * tests/test-fclose.c: New file.
18248         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18249
18250         fclose: reduced dependencies
18251         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18252         simpler lseek.
18253         * lib/fclose.c (rpl_fclose): Likewise.
18254         Reported by Simon Josefsson.
18255
18256         exit: drop remaining clients
18257         * modules/argmatch (Depends-on): Replace exit with stdlib.
18258         * modules/copy-file (Depends-on): Likewise.
18259         * modules/execute (Depends-on): Likewise.
18260         * modules/exitfail (Depends-on): Likewise.
18261         * modules/obstack (Depends-on): Likewise.
18262         * modules/pagealign_alloc (Depends-on): Likewise.
18263         * modules/pipe-filter-gi (Depends-on): Likewise.
18264         * modules/pipe-filter-ii (Depends-on): Likewise.
18265         * modules/savewd (Depends-on): Likewise.
18266         * modules/spawn-pipe (Depends-on): Likewise.
18267         * modules/wait-process (Depends-on): Likewise.
18268         * modules/xsetenv (Depends-on): Likewise.
18269         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18270         * modules/git-merge-changelog (Depends-on): Likewise.
18271         * modules/long-options (Depends-on): Likewise.
18272         * modules/pt_chown (Depends-on): Likewise.
18273         * modules/sysexits (Depends-on): Likewise.
18274
18275         freading: relax license from LGPLv3+ to LGPLv2+
18276         * modules/freading (License): Relax LGPL version.
18277
18278 2011-05-02  Bruno Haible  <bruno@clisp.org>
18279
18280         fchdir: Remove unused dependencies.
18281         * modules/fchdir (Depends-on): Remove include_next.
18282
18283 2011-05-02  Bruno Haible  <bruno@clisp.org>
18284
18285         gnulib-tool: Refactor.
18286         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18287         from func_emit_autoconf_snippets.
18288         (func_emit_autoconf_snippets): Use it.
18289
18290 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18291
18292         * NEWS: Document removal of 'exit'.
18293         * modules/exit: Remove file.
18294
18295 2011-05-01  Bruno Haible  <bruno@clisp.org>
18296
18297         Update DEPENDENCIES.
18298         * DEPENDENCIES (gettext): Recommend the newest release.
18299         Reported by Simon Josefsson.
18300
18301 2011-05-01  Bruno Haible  <bruno@clisp.org>
18302
18303         gnulib-tool: Reduce code duplication.
18304         * gnulib-tool (func_emit_autoconf_snippets): New function.
18305         (func_import, func_create_testdir): Use it.
18306
18307 2011-04-30  Eric Blake  <eblake@redhat.com>
18308
18309         fclose: don't fail on non-seekable input stream
18310         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18311         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18312         since fflush is allowed to fail in that case.
18313
18314 2011-04-30  Bruno Haible  <bruno@clisp.org>
18315
18316         dup3: cleanup
18317         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18318
18319 2011-04-30  Bruno Haible  <bruno@clisp.org>
18320
18321         netdb: Make it work in C++ mode.
18322         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18323         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18324         module.
18325         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18326         gl_MODULE_INDICATOR_FOR_TESTS.
18327         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18328         * modules/netdb-c++-tests: New file.
18329         * tests/test-netdb-c++.cc: New file.
18330
18331 2011-04-30  Bruno Haible  <bruno@clisp.org>
18332
18333         New modules 'vfscanf', 'vscanf'.
18334         * modules/vfscanf: New file.
18335         * modules/vscanf: New file.
18336         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18337         here.
18338         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18339         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18340
18341 2011-04-30  Bruno Haible  <bruno@clisp.org>
18342
18343         passfd: Add comments.
18344         * lib/passfd.c: Add comments about platforms.
18345
18346 2011-04-30  Bruno Haible  <bruno@clisp.org>
18347
18348         sys_uio: Make <sys/uio.h> self-contained.
18349         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18350         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18351
18352 2011-04-30  Bruno Haible  <bruno@clisp.org>
18353
18354         sys_socket: Ensure 'struct iovec' definition.
18355         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18356         <sys/socket.h>.
18357         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18358
18359 2011-04-30  Bruno Haible  <bruno@clisp.org>
18360
18361         sys_uio: Protect definition of 'struct iovec'.
18362         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18363         it as a C struct.
18364
18365 2011-04-30  Bruno Haible  <bruno@clisp.org>
18366
18367         manywarnings: fix indentation
18368         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18369
18370 2011-04-30  Pádraig Brady <P@draigBrady.com>
18371
18372         manywarnings: add -Wno-missing-field-initializers if needed.
18373         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18374         option if it's needed to allow initialization with { 0, }
18375
18376 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18377
18378         announce-gen: cosmetic improvement
18379         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18380
18381 2011-04-29  Jim Meyering  <meyering@redhat.com>
18382
18383         vc-list-files: indent with spaces, not TABs
18384         * build-aux/vc-list-files: Convert leading TABs to spaces,
18385         to match the style of most other files in gnulib.
18386
18387         announce-gen: indent with spaces, not TABs
18388         * build-aux/announce-gen: Convert all TABs to spaces, to match
18389         the style of most other files in gnulib.
18390
18391 2011-04-29  Eric Blake  <eblake@redhat.com>
18392
18393         quotearg: avoid uninitialized variable use
18394         * lib/quotearg.c (quoting_options_from_style): Initialize
18395         remaining fields, and ensure that custom styles are only used via
18396         quoting_options rather than quoting_style.
18397
18398 2011-04-29  Jim Meyering  <meyering@redhat.com>
18399
18400         maint.mk: remove unused VC-tag variable
18401         * top/maint.mk (VC-tag): Remove unused variable.
18402
18403 2011-04-29  Bruno Haible  <bruno@clisp.org>
18404
18405         netdb: fix gai_strerror replacements
18406         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18407         * modules/netdb: Substitute it.
18408
18409 2011-04-29  Jim Meyering  <meyering@redhat.com>
18410
18411         test-getcwd.c: avoid new set-but-not-used warning
18412         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18413         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18414         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18415         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18416
18417         test-hash.c: avoid a new shadowing warning
18418         * tests/test-hash.c (main): Don't shadow "dup".
18419
18420 2011-04-28  Eric Blake  <eblake@redhat.com>
18421
18422         getaddrinfo: fix gai_strerror signature
18423         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18424         and work around mingw with UNICODE defined.
18425         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18426         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18427         * modules/netdb (Makefile.am): Substitute it.
18428         * lib/netdb.in.h (gai_strerror): Declare replacement.
18429         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18430         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18431         the fix.
18432
18433         getsockopt: avoid compiler warning
18434         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18435         Reported by Matthias Bolte.
18436
18437         tests: drop unused link dependency
18438         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18439         * modules/dirent-safer-tests (Makefile.am): Likewise.
18440         * modules/fdopendir-tests (Makefile.am): Likewise.
18441         * modules/mkfifoat-tests (Makefile.am): Likewise.
18442         * modules/openat-safer-tests (Makefile.am): Likewise.
18443         * modules/openat-tests (Makefile.am): Likewise.
18444         * modules/readlinkat-tests (Makefile.am): Likewise.
18445         * modules/symlinkat-tests (Makefile.am): Likewise.
18446         * modules/linkat-tests (Makefile.am): Likewise.
18447         (Depends-on): Switch to filenamecat-lgpl.
18448         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18449         LIBINTL.
18450         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18451         * tests/test-linkat.c (main): Don't require xalloc.
18452
18453         hash, mgetgroups: drop xalloc dependency
18454         * lib/hash.c (includes): Adjust includes.
18455         * lib/mgetgroups.c (includes): Likewise.
18456         (xgetgroups): Move...
18457         * lib/xgetgroups.c: ...to new file.
18458         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18459         * modules/xgetgroups: New file, split from...
18460         * modules/mgetgroups: ...here.
18461         (Depends-on): Add xalloc-oversized.
18462         * modules/hash (Depends-on): Likewise.
18463         * modules/hash-tests (Depends-on): Drop xalloc.
18464         (test_hash_LDADD): Drop unused library.
18465         * tests/test-hash.c (main): Break xalloc dependency.
18466         (includes): Drop unused include.
18467
18468         xalloc-oversized: new module
18469         * modules/xalloc-oversized: New module.
18470         * modules/xalloc (Depends-on): Add it.
18471         * lib/xalloc.h (xalloc_oversized): Move...
18472         * lib/xalloc-oversized.h: ...into new file.
18473
18474         utimecmp: drop dependency on xmalloc
18475         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18476         due to memory pressure.
18477         * modules/utimecmp (Depends-on): Drop xalloc.
18478
18479 2011-04-27  Eric Blake  <eblake@redhat.com>
18480
18481         getcwd: fix mingw bugs
18482         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18483         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18484         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18485
18486 2011-04-27  Bruno Haible  <bruno@clisp.org>
18487
18488         mkstemps: Ensure declaration on MacOS X 10.5.
18489         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18490         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18491         MacOS X.
18492
18493 2011-04-27  Bruno Haible  <bruno@clisp.org>
18494
18495         mkstemp: More documentation.
18496         * doc/posix-functions/mkstemp.texi: Document header file problem on
18497         MacOS X.
18498
18499 2011-04-27  Bruno Haible  <bruno@clisp.org>
18500
18501         mkstemp: Tweak configure message when cross-compiling.
18502         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18503         result as a guess.
18504
18505 2011-04-27  Bruno Haible  <bruno@clisp.org>
18506
18507         clean-temp: Clarify what it does.
18508         * lib/clean-temp.h: Add more comments.
18509         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18510         module.
18511         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18512         * doc/glibc-functions/mkstemps.texi: Likewise.
18513         * doc/glibc-functions/mkostemps.texi: Likewise.
18514
18515 2011-04-27  Eric Blake  <eblake@redhat.com>
18516
18517         fchdir: avoid extra chdir and fix test
18518         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18519         getcwd-lgpl.
18520         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18521         have to be canonical.
18522         (canonicalize_file_name): Drop unused macro.
18523         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18524
18525         filenamecat-lgpl: fix licence
18526         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18527         when it was first created.
18528
18529         linkat, renameat: add missing dependency
18530         * modules/linkat (Depends-on): Require getcwd-lgpl.
18531         * modules/renameat (Depends-on): Likewise.
18532
18533         tests: reduce dependencies
18534         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18535         * tests/test-renameat.c (main): Likewise.
18536         * modules/linkat-tests (Depends-on): Relax dependency.
18537         * modules/renameat-tests (Depends-on): Likewise.
18538         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18539         dependency explicit.
18540
18541         save-cwd: reduce default dependency
18542         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18543         * lib/save-cwd.c: Update comments.
18544         * NEWS: Document the semantic change.
18545
18546         getcwd: enhance tests
18547         * tests/test-getcwd-lgpl.c: New file, taken from...
18548         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18549         repeat long path stress tests from m4 probe.
18550         * modules/getcwd-lgpl-tests: New module.
18551         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18552         * m4/getcwd-abort-bug.m4: Update comment.
18553         * m4/getcwd-path-max.m4: Likewise.
18554
18555         getcwd-lgpl: new module
18556         * modules/getcwd-lgpl: New module.
18557         * lib/getcwd-lgpl.c: New file.
18558         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18559         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18560         * modules/getcwd (configure.ac): Set C witness.
18561         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18562
18563         getcwd: tweak comments
18564         * m4/getcwd-abort-bug.m4: Fix comments.
18565         * m4/getcwd-path-max.m4: Likewise.
18566         * m4/getcwd.m4: Likewise.
18567
18568 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18569         and Eric Blake  <eblake@redhat.com>
18570
18571         mkstemp: replace if system version uses wrong permissions
18572         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18573         read/write mode bits set in file created by mkstemp.
18574         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18575
18576 2011-04-27  Eric Blake  <eblake@redhat.com>
18577
18578         passfd: avoid compiler warning
18579         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18580         Reported by Laine Stump.
18581
18582 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18583
18584         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18585         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18586
18587 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18588         and Eric Blake  <eblake@redhat.com>
18589
18590         mkstemp: mention clean-temp module
18591         * lib/mkstemp.c: Add comment.
18592         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18593
18594 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18595
18596         inttypes: also provide default values for 32-bit tests
18597         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18598         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18599
18600 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18601
18602         strtoumax: remove dependency on strtoimax
18603         This is like the strtoull change of yesterday.
18604         * modules/strtoumax (Files): Add lib/strtoimax.c.
18605         (Depends-on): Remove strtoimax and add verify.
18606
18607         inttypes-incomplete: new module
18608         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18609         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18610         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18611         of gl_INTTYPES_H.
18612         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18613         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18614         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18615         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18616         * modules/strtoumax, modules/xstrtol (Depends-on):
18617         Depend on inttypes-incomplete, not inttypes.
18618         * modules/inttypes-incomplete: New module, containing the contents
18619         of the old modules/inttypes module, except that the Files: section
18620         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18621         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18622         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18623         (Depends-on): Depend only on inttypes-incomplete.
18624         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18625
18626         inttypes: omit now-redundant strtoimax and strtoumax work
18627         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18628         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18629
18630         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18631         This supports apps that need pointers to strtoimax and strtoumax,
18632         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18633         nonexistent functions.  See
18634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18635         et seq.
18636         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18637         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18638         a macro.
18639         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18640
18641 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18642
18643         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18644
18645 2011-04-25  Bruno Haible  <bruno@clisp.org>
18646
18647         strtol, strtoul: Mark modules as obsolete.
18648         * modules/strtol (Status, Notice): New sections.
18649         * modules/strtoul (Status, Notice): New sections.
18650
18651 2011-04-25  Bruno Haible  <bruno@clisp.org>
18652
18653         strtod: Remove check for strtod, unless supporting old platforms.
18654         * modules/strtod-obsolete: New file.
18655         * m4/strtod-obsolete.m4: New file.
18656         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18657         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18658         * modules/strtod (Depends-on): Add strtod-obsolete.
18659         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18660
18661 2011-04-25  Bruno Haible  <bruno@clisp.org>
18662
18663         strcase: Make module obsolete.
18664         * modules/strcase (Status, Notice): New sections.
18665
18666 2011-04-25  Bruno Haible  <bruno@clisp.org>
18667
18668         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18669         * modules/dup2-obsolete: New file.
18670         * m4/dup2-obsolete.m4: New file.
18671         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18672         gl_FUNC_DUP2_OBSOLETE is not also defined.
18673         * modules/dup2 (Depends-on): Add dup2-obsolete.
18674         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18675
18676 2011-04-25  Bruno Haible  <bruno@clisp.org>
18677
18678         strnlen: Avoid memchr related link error on old obsolete platforms.
18679         * modules/memchr-obsolete: New file.
18680         * m4/memchr-obsolete.m4: New file.
18681         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18682         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18683         * modules/memchr (Depends-on): Add memchr-obsolete.
18684         * modules/strnlen (Depends-on): Likewise.
18685         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18686
18687 2011-04-25  Jim Meyering  <meyering@redhat.com>
18688
18689         maint.mk: makefile_at_at_check extend and clean up
18690         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18691         in addition to */Makefile.am.
18692         Exempt legitimate uses of @VAR@ notation, e.g.,
18693         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18694         Remove obsolete coreutils-specific comment.
18695         Prompted by discussion here:
18696         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18697
18698 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18699
18700         strtoul: remove dependency on strtol
18701         This is so that 'configure' need not check for strtol merely because
18702         the application needs strtoul.
18703         * modules/strtoul (Files): Add lib/strtol.c.
18704         (Depends-on): Remove strtol.
18705
18706         strtoull: remove dependency on strtoul
18707         This is like the strtoll change.
18708         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18709         (Depends-on): Remove strtoul.
18710
18711         strtoll: remove dependency on strtol
18712         This is so that 'configure' need not check for strtol merely because
18713         the application needs strtoll.
18714         * modules/strtoll (Files): Add lib/strtol.c.
18715         (Depends-on): Remove strtol.
18716
18717 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18718
18719         inttypes: Move some configure check to module 'imaxdiv'.
18720         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18721         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18722         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18723
18724 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18725
18726         inttypes: Move some configure check to module 'imaxabs'.
18727         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18728         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18729         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18730
18731 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18732
18733         inttypes: Remove configure tests that are not needed since 2009-12-31.
18734         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18735         gl_cv_header_working_inttypes_h.
18736
18737 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18738
18739         * modules/strnlen (Depends-on): Remove memchr.
18740         The strnlen implementation doesn't need the memchr module's fixes; see
18741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18742
18743         strtol: remove dependency on wchar
18744         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18745         * modules/strtol (Depends-on): Remove wchar.
18746
18747 2011-04-21  Eric Blake  <eblake@redhat.com>
18748
18749         passfd: fix test regression on Linux
18750         * modules/passfd-tests (configure.ac): Correct socketpair check.
18751
18752         passfd: speed up configure and drop unused code
18753         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18754         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18755         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18756         Instead of probing at configure for unix_scm_rights_bsd44_way,
18757         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18758         check to a struct member probe.
18759         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18760         (sendfd, recvfd): Update preprocessor checks.
18761         * modules/passfd (Files): Reflect rename, and drop unused file.
18762         (Depends-on): Drop unused dependency.
18763
18764         passfd: allow compilation on mingw
18765         * modules/sys_socket (Depends-on): Add sys_uio.
18766         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18767         iovec and a minimal struct msghdr.
18768         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18769         * tests/test-sys_socket.c (main): Enhance test.
18770         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18771         guaranteed to provide what we need.
18772         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18773         * modules/passfd-tests (Depends-on): Add sys_wait.
18774         * tests/test-passfd.c (main): Skip test on mingw, for now.
18775         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18776         partial 'struct msghdr' implementation.
18777
18778         sys_uio: new module
18779         * modules/sys_uio: New module.
18780         * modules/sys_uio-tests: Likewise.
18781         * lib/sys_uio.in.h: New file.
18782         * m4/sys_uio_h.m4: Likewise.
18783         * tests/test-sys_uio.c: Likewise.
18784         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18785         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18786
18787 2011-04-20  Jim Meyering  <meyering@redhat.com>
18788
18789         useless-if-before-free: avoid false-positive
18790         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18791         disjunct so that it too requires a terminating ";".  Without that,
18792         this script would identify as useless one statement from gcc that
18793         was not:
18794           if (aligned_ptr)
18795             free (((void **) aligned_ptr) [-1]);
18796
18797 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18798
18799         doc: update users.txt.
18800         * users.txt: Add barcode.
18801
18802 2011-04-19  Bruno Haible  <bruno@clisp.org>
18803
18804         ioctl: Remove link dependency on native Windows.
18805         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18806         (gl_close_fn, gl_ioctl_fn): New types.
18807         (struct fd_hook): Renamed from struct close_hook. Change type of
18808         private_close_fn field. Add private_ioctl_fn field.
18809         (close_hook_fn): Add parameter for primary close method.
18810         (execute_close_hooks, execute_all_close_hooks): Likewise.
18811         (ioctl_hook_fn): New type.
18812         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18813         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18814         argument.
18815         (unregister_fd_hook): Renamed from unregister_close_hook.
18816         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18817         Don't include <unistd.h>.
18818         (close): Remove undef.
18819         (anchor): Update.
18820         (execute_close_hooks): Add argument for primary close method.
18821         (execute_all_close_hooks): Likewise.
18822         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18823         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18824         argument. Allow each argument to be NULL.
18825         (unregister_fd_hook): Renamed from unregister_close_hook.
18826         * lib/close.c (rpl_close): Pass 'close' function pointer to
18827         execute_all_close_hooks.
18828         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18829         (primary_ioctl): New function.
18830         (ioctl): Don't call ioctlsocket here. Instead, call
18831         execute_all_ioctl_hooks.
18832         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18833         close method.
18834         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18835         (fd_sockets_hook): Renamed from close_sockets_hook.
18836         (gl_sockets_startup, gl_sockets_cleanup): Update.
18837         * modules/fd-hook: Renamed from modules/close-hook. Update.
18838         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18839         * modules/sockets (Depends-on): Likewise.
18840         * modules/ioctl (Depends-on): Add fd-hook.
18841         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18842         GNULIB_SOCKET.
18843
18844 2011-04-19  Bruno Haible  <bruno@clisp.org>
18845
18846         Move the support of O_NONBLOCK in open() to the 'open' module.
18847         * modules/nonblocking (Depends-on): Remove 'open'.
18848         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18849         gl_cv_have_open_O_NONBLOCK.
18850         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18851         O_NONBLOCK support.
18852         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18853
18854 2011-04-17  Bruno Haible  <bruno@clisp.org>
18855
18856         pipe2: Simplify code.
18857         * lib/pipe2.c (pipe2): Reduce code duplication.
18858
18859 2011-04-17  Bruno Haible  <bruno@clisp.org>
18860
18861         nonblocking: Add comment.
18862         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18863
18864 2011-04-17  Bruno Haible  <bruno@clisp.org>
18865
18866         nonblocking: Add tests for sockets.
18867         * tests/test-nonblocking-socket.sh: New file.
18868         * tests/test-nonblocking-socket-main.c: New file.
18869         * tests/test-nonblocking-socket-child.c: New file.
18870         * tests/test-nonblocking-socket.h: New file.
18871         * tests/socket-server.h: New file.
18872         * tests/socket-client.h: New file.
18873         * modules/nonblocking-socket-tests: New file.
18874         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18875
18876 2011-04-17  Bruno Haible  <bruno@clisp.org>
18877
18878         nonblocking: Add tests for pipes.
18879         * tests/test-nonblocking-pipe.sh: New file.
18880         * tests/test-nonblocking-pipe-main.c: New file.
18881         * tests/test-nonblocking-pipe-child.c: New file.
18882         * tests/test-nonblocking-pipe.h: New file.
18883         * tests/test-nonblocking-writer.h: New file.
18884         * tests/test-nonblocking-reader.h: New file.
18885         * tests/test-nonblocking-misc.h: New file.
18886         * modules/nonblocking-pipe-tests: New file.
18887         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18888
18889 2011-04-16  Bruno Haible  <bruno@clisp.org>
18890
18891         gettext: Clarify the needed programmer actions.
18892         * modules/gettext (Notice): New field.
18893         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18894
18895 2011-04-16  Bruno Haible  <bruno@clisp.org>
18896
18897         strchrnul: Tweak last commit.
18898         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18899         bug.
18900         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18901         as in _GL_FUNCDECL_SYS.
18902         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18903         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18904
18905 2011-04-15  Eric Blake  <eblake@redhat.com>
18906
18907         strchrnul: work around cygwin bug
18908         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18909         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18911         * modules/string (Makefile.am): Substitute it.
18912         * lib/string.in.h (strchrnul): Use it.
18913
18914 2011-04-15  Bruno Haible  <bruno@clisp.org>
18915
18916         Don't require lib/stdio-write.c when only module 'stdio' is used.
18917         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18918         invocation.
18919         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18920
18921 2011-04-14  Bruno Haible  <bruno@clisp.org>
18922
18923         Support non-blocking pipe I/O in read() on native Windows.
18924         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18925         (read): New declaration.
18926         * lib/read.c: New file.
18927         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18928         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18929         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18930         vscanf): New declarations.
18931         * lib/stdio-read.c: New file.
18932         * m4/read.m4: New file.
18933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18934         REPLACE_READ.
18935         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18936         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18937         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18938         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18939         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18940         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18941         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18942         * modules/read: New file.
18943         * modules/nonblocking (Files): Add lib/stdio-read.c.
18944         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18945         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18946         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18947         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18948         * modules/pread (Depends-on): Add read.
18949         * modules/safe-read (Depends-on): Likewise.
18950         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18951         gets, scanf, vfscanf, vscanf): Verify signatures.
18952         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18953         problem with non-blocking pipes.
18954         * doc/posix-functions/fgetc.texi: Likewise.
18955         * doc/posix-functions/fgets.texi: Likewise.
18956         * doc/posix-functions/fread.texi: Likewise.
18957         * doc/posix-functions/fscanf.texi: Likewise.
18958         * doc/posix-functions/getc.texi: Likewise.
18959         * doc/posix-functions/getchar.texi: Likewise.
18960         * doc/posix-functions/gets.texi: Likewise.
18961         * doc/posix-functions/scanf.texi: Likewise.
18962         * doc/posix-functions/vfscanf.texi: Likewise.
18963         * doc/posix-functions/vscanf.texi: Likewise.
18964
18965 2011-04-14  Bruno Haible  <bruno@clisp.org>
18966
18967         Support non-blocking pipe I/O in write() on native Windows.
18968         * lib/write.c (rpl_write): Split a write request that failed merely
18969         because the byte count was larger than the pipe buffer's size.
18970         * doc/posix-functions/write.texi: Mention the problem with large byte
18971         counts.
18972
18973 2011-04-14  Bruno Haible  <bruno@clisp.org>
18974
18975         wchar: Ensure that wchar_t gets defined on uClibc.
18976         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18977         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18978
18979 2011-04-13  Bruno Haible  <bruno@clisp.org>
18980
18981         safe-write, full-read: Avoid unnecessary compilation units.
18982         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18983         (Depends-on): Remove safe-read. Add ssize_t.
18984         * modules/full-read (Files): Add lib/full-write.c.
18985         (Depends-on): Add full-write.
18986
18987 2011-04-13  Bruno Haible  <bruno@clisp.org>
18988
18989         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18990         * modules/pwrite (Depends-on): Add 'write'.
18991
18992 2011-04-13  Bruno Haible  <bruno@clisp.org>
18993
18994         Support non-blocking pipe I/O in write() on native Windows.
18995         * lib/unistd.in.h (write): Enable replacement also if
18996         GNULIB_UNISTD_H_NONBLOCKING is 1.
18997         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18998         (rpl_write): When failing to write on a non-blocking pipe, change
18999         errno from ENOSPC to EAGAIN.
19000         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19001         putchar, puts, vfprintf, vprintf): Enable replacement also if
19002         GNULIB_STDIO_H_NONBLOCKING is 1.
19003         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19004         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19005         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19006         CALL_WITH_SIGPIPE_EMULATION.
19007         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19008         * m4/nonblocking.m4: New file.
19009         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19010         for non-blocking I/O support.
19011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19012         GNULIB_UNISTD_H_NONBLOCKING.
19013         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19014         required for non-blocking I/O support.
19015         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19016         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19017         lib/stdio-write.c, m4/asm-underscore.m4.
19018         (Depends-on): Add stdio, unistd.
19019         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19020         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19021         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19022         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19023         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19024         problem with non-blocking pipes.
19025         * doc/posix-functions/fputc.texi: Likewise.
19026         * doc/posix-functions/fputs.texi: Likewise.
19027         * doc/posix-functions/fwrite.texi: Likewise.
19028         * doc/posix-functions/printf.texi: Likewise.
19029         * doc/posix-functions/putc.texi: Likewise.
19030         * doc/posix-functions/putchar.texi: Likewise.
19031         * doc/posix-functions/puts.texi: Likewise.
19032         * doc/posix-functions/vfprintf.texi: Likewise.
19033         * doc/posix-functions/vprintf.texi: Likewise.
19034         * doc/posix-functions/write.texi: Likewise.
19035
19036 2011-04-10  Jim Meyering  <meyering@redhat.com>
19037
19038         maint.mk: prohibit doubled words
19039         Detect them also when they're separated by a newline.
19040         There are 3 ways to customize it:
19041           - disable the test on a per file basis, as usual with rules using
19042             $(VC_LIST_EXCEPT)
19043           - replace the default doubled-word-selecting regexp (affects all files)
19044           - ignore a particular file-vs-doubled-word match
19045         I nearly used that last one to ignore the "is is" match in
19046         coreutils' NEWS file, since the text was "ls -is is ..."
19047         To do that, I would have added this line to cfg.mk:
19048           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19049         but it would have ignored any "is is" match in NEWS.
19050         Low probability, but still...
19051         Instead, I changed the text, slightly:
19052           -  ls -is is now consistent with ls -lis in ignoring values returned
19053           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19054         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19055         (prohibit_doubled_word_): Define.
19056         (sc_prohibit_doubled_word): New rule.
19057         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19058
19059 2011-04-10  Jim Meyering  <meyering@redhat.com>
19060
19061         maint: fix doubled-word typo in comment
19062         * m4/gethostname.m4: s/is is/it is/
19063         * m4/getdomainname.m4: Likewise.
19064
19065 2011-04-10  Jim Meyering  <meyering@redhat.com>
19066
19067         maint: remove doubled word: s/it it/it/
19068         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19069
19070 2011-04-10  Jim Meyering  <meyering@redhat.com>
19071
19072         maint.mk: remove useless semicolon and backslash
19073         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19074         semicolon and backslash.
19075
19076 2011-04-10  Bruno Haible  <bruno@clisp.org>
19077
19078         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19079         * modules/stdint-tests (Depends-on): Add wchar.
19080
19081 2011-04-10  Jim Meyering  <meyering@redhat.com>
19082
19083         maint: remove doubled words in comments, e.g., s/a a/a/
19084         * lib/strptime.c (day_of_the_week): s/the the/the/
19085         * tests/test-chown.h (test_chown): s/a a/a/
19086
19087         test-chown.h: correct a cast
19088         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19089         when the destination is a stat.st_gid.
19090
19091 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19092
19093         getaddrinfo: Fix test for sa_len member.
19094         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19095         include <sys/types.h> before <sys/socket.h>.
19096
19097 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19098
19099         maint: change "can not" to "cannot"
19100         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19101         boundaries.
19102
19103 2011-04-09  Jim Meyering  <meyering@redhat.com>
19104
19105         maint: change "a a" to "a"
19106         * tests/test-lchown.h (test_lchown): s/a a/a/
19107
19108         maint.mk: prohibit \<the the\>
19109         * top/maint.mk (sc_prohibit_the_the): New rule.
19110
19111         maint: fix "the the" in comment
19112         * lib/count-one-bits.h: s/the the/the/
19113
19114         maint: change "can not" to "cannot"
19115         But do not change the occurrences in maintain.texi or in
19116         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19117         * doc/gnulib-tool.texi: s/can not/cannot/
19118         * doc/posix-functions/accept.texi (accept): Likewise.
19119         * doc/posix-functions/socket.texi (socket): Likewise.
19120         * lib/mbrtowc.c: Likewise.
19121
19122         maint.mk: prohibit use of "can not"
19123         * top/maint.mk (sc_prohibit_can_not): New rule.
19124         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19125
19126 2011-04-09  Bruno Haible  <bruno@clisp.org>
19127
19128         careadlinkat: Guard against misuse of careadlinkatcwd.
19129         * lib/careadlinkat.c: Include <stdlib.h>.
19130         (careadlinkatcwd): Check that the fd argument is as expected.
19131
19132 2011-04-09  Bruno Haible  <bruno@clisp.org>
19133
19134         careadlinkat: Use common coding style.
19135         * lib/careadlinkat.c: Move gnulib includes after system includes.
19136
19137 2011-04-09  Bruno Haible  <bruno@clisp.org>
19138
19139         careadlinkat: Clarify specification.
19140         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19141         (careadlinkatcwd): Add comment.
19142         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19143
19144 2011-04-09  Bruno Haible  <bruno@clisp.org>
19145
19146         areadlinkat: Avoid link error on many platforms.
19147         * modules/areadlinkat (Depends-on): Add areadlink.
19148
19149 2011-04-09  Bruno Haible  <bruno@clisp.org>
19150
19151         allocator, careadlinkat: Fix double-inclusion guard.
19152         * lib/allocator.h: Fix double-inclusion guard.
19153         * lib/careadlinkat.h: Likewise.
19154
19155 2011-04-09  Bruno Haible  <bruno@clisp.org>
19156
19157         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19158         * lib/relocwrapper.c: Update dependencies hierarchy.
19159         * build-aux/install-reloc: Update list of files to be compiled.
19160         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19161         lib/allocator.[hc].
19162
19163 2011-04-08  Eric Blake  <eblake@redhat.com>
19164
19165         strftime: silence gnulib-tool warning
19166         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19167
19168 2011-04-08  Bruno Haible  <bruno@clisp.org>
19169
19170         verify: Fix syntax error with GCC 4.6 in C++ mode.
19171         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19172         (HAVE_STATIC_ASSERT): New macro.
19173         (verify_true, verify): Use 'static_assert' if it is supported and
19174         '_Static_assert' is not supported.
19175
19176 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19177
19178         allocator: New module.
19179         * modules/allocator, lib/allocator.c: New files.
19180         * lib/allocator.h (stdlib_allocator): New decl.
19181         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19182         Remove.  Do not include <stdlib.h>.
19183         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19184         * modules/careadlinkat (Files): Remove lib/allocator.h.
19185         (Depends-on): Add allocator.
19186
19187         stdlib: let modules use system malloc, realloc
19188         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19189         if !_GL_USE_STDLIB_ALLOC.
19190         (malloc, realloc): Limit this change to a smaller scope.
19191
19192         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19193         (malloc, realloc): Don't #undef; no longer needed.
19194         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19195         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19196         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19197         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19198         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19199         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19200         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19201         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19202
19203         careadlinkat: rename members to avoid problem
19204         * lib/allocator.h (struct allocator): Rename members from
19205         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19206         and realloc are #define'd.  Reported by Eric Blake in
19207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19208         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19209
19210 2011-04-08  Eric Blake  <eblake@redhat.com>
19211
19212         nonblocking: reduce dependency
19213         * tests/test-nonblocking.c: Only test sockets when in use.
19214         * modules/nonblocking-tests (Depends-on): Drop socket.
19215         (Makefile.am): Link even if sockets are not present.
19216         * modules/pipe2-tests (Makefile.am): Likewise.
19217         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19218
19219         pipe2: fix O_NONBLOCK support on mingw
19220         * modules/pipe2 (Depends-on): Add nonblocking.
19221         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19222         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19223         * tests/test-nonblocking.c (main): Likewise.
19224         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19225
19226         fcntl-h: fix O_ACCMODE on cygwin
19227         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19228         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19229
19230         pipe-filter: drop O_NONBLOCK workarounds
19231         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19232         * modules/pipe-filter-ii (Depends-on): Likewise.
19233         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19234
19235         nonblocking: provide O_NONBLOCK for mingw
19236         * modules/nonblocking (Depends-on): Add open.
19237         (configure.ac): Set new witness macro.
19238         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19239         * modules/fcntl-h (Makefile.am): Substitute it.
19240         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19241         nonblocking module is in use.
19242         * lib/nonblocking.c: Adjust portability test.
19243         * lib/open.c (open): Don't let native open see gnulib flag.
19244         * tests/test-fcntl-h.c (main): Enhance test.
19245         * tests/test-open.h (test_open): Likewise.
19246         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19247
19248         careadlinkat: fix compilation error on mingw
19249         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19250         within struct allocator.
19251
19252 2011-04-06  Eric Blake  <eblake@redhat.com>
19253
19254         binary-io: relicense under LGPLv2+
19255         * modules/binary-io (License): Relax to LGPLv2+.
19256         Requested for libvirt, and required by pipe2.
19257
19258 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19259
19260         verify: use _Static_assert if available
19261         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19262         (verify_true, verify): Use it if available.  This generates better
19263         diagnostics with GCC 4.6.0 and later.
19264
19265 2011-04-05  Bruno Haible  <bruno@clisp.org>
19266
19267         Remove leftover generated .h files after config.status changed.
19268
19269         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19270         GL_GENERATE_ALLOCA_H.
19271         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19272         GL_GENERATE_ALLOCA_H evaluates to false.
19273
19274         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19275         GL_GENERATE_ARGZ_H.
19276         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19277         evaluates to false.
19278
19279         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19280         GL_GENERATE_BYTESWAP_H.
19281         * modules/byteswap (Makefile.am): Remove byteswap.h if
19282         GL_GENERATE_BYTESWAP_H evaluates to false.
19283
19284         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19285         GL_GENERATE_ERRNO_H.
19286         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19287         evaluates to false.
19288
19289         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19290         GL_GENERATE_FLOAT_H.
19291         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19292         evaluates to false.
19293
19294         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19295         GL_GENERATE_FNMATCH_H.
19296         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19297         GL_GENERATE_FNMATCH_H evaluates to false.
19298
19299         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19300         GL_GENERATE_GLOB_H.
19301         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19302         evaluates to false.
19303
19304         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19305         automake conditional GL_GENERATE_ICONV_H.
19306         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19307         evaluates to false.
19308
19309         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19310         GL_GENERATE_NETINET_IN_H.
19311         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19312         GL_GENERATE_NETINET_IN_H evaluates to false.
19313
19314         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19315         conditional GL_GENERATE_PTHREAD_H.
19316         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19317         * modules/pthread (Makefile.am): Remove pthread.h if
19318         GL_GENERATE_PTHREAD_H evaluates to false.
19319
19320         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19321         GL_GENERATE_SCHED_H.
19322         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19323         evaluates to false.
19324
19325         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19326         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19327         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19328         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19329
19330         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19331         GL_GENERATE_STDARG_H.
19332         * modules/stdarg (Makefile.am): Remove stdarg.h if
19333         GL_GENERATE_STDARG_H evaluates to false.
19334
19335         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19336         GL_GENERATE_STDBOOL_H.
19337         * modules/stdbool (Makefile.am): Remove stdbool.h if
19338         GL_GENERATE_STDBOOL_H evaluates to false.
19339
19340         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19341         conditional GL_GENERATE_STDDEF_H.
19342         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19343         * modules/stddef (Makefile.am): Remove stddef.h if
19344         GL_GENERATE_STDDEF_H evaluates to false.
19345
19346         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19347         GL_GENERATE_STDINT_H.
19348         * modules/stdint (Makefile.am): Remove stdint.h if
19349         GL_GENERATE_STDINT_H evaluates to false.
19350
19351         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19352         GL_GENERATE_SYSEXITS_H.
19353         * modules/sysexits (Makefile.am): Remove sysexits.h if
19354         GL_GENERATE_SYSEXITS_H evaluates to false.
19355
19356         Reported by Karl Berry and Ralf Wildenhues.
19357
19358 2011-04-05  Bruno Haible  <bruno@clisp.org>
19359
19360         Ensure to rebuild generated .h files when config.status has changed.
19361         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19362         config.status.
19363         * modules/ctype (Makefile.am): Likewise.
19364         * modules/dirent (Makefile.am): Likewise.
19365         * modules/errno (Makefile.am): Likewise.
19366         * modules/fcntl-h (Makefile.am): Likewise.
19367         * modules/float (Makefile.am): Likewise.
19368         * modules/getopt-posix (Makefile.am): Likewise.
19369         * modules/glob (Makefile.am): Likewise.
19370         * modules/iconv-h (Makefile.am): Likewise.
19371         * modules/inttypes (Makefile.am): Likewise.
19372         * modules/langinfo (Makefile.am): Likewise.
19373         * modules/locale (Makefile.am): Likewise.
19374         * modules/math (Makefile.am): Likewise.
19375         * modules/netdb (Makefile.am): Likewise.
19376         * modules/netinet_in (Makefile.am): Likewise.
19377         * modules/poll-h (Makefile.am): Likewise.
19378         * modules/pthread (Makefile.am): Likewise.
19379         * modules/pty (Makefile.am): Likewise.
19380         * modules/sched (Makefile.am): Likewise.
19381         * modules/search (Makefile.am): Likewise.
19382         * modules/selinux-h (Makefile.am): Likewise.
19383         * modules/signal (Makefile.am): Likewise.
19384         * modules/spawn (Makefile.am): Likewise.
19385         * modules/stdarg (Makefile.am): Likewise.
19386         * modules/stdbool (Makefile.am): Likewise.
19387         * modules/stddef (Makefile.am): Likewise.
19388         * modules/stdint (Makefile.am): Likewise.
19389         * modules/stdio (Makefile.am): Likewise.
19390         * modules/stdlib (Makefile.am): Likewise.
19391         * modules/string (Makefile.am): Likewise.
19392         * modules/strings (Makefile.am): Likewise.
19393         * modules/sys_file (Makefile.am): Likewise.
19394         * modules/sys_ioctl (Makefile.am): Likewise.
19395         * modules/sys_select (Makefile.am): Likewise.
19396         * modules/sys_socket (Makefile.am): Likewise.
19397         * modules/sys_stat (Makefile.am): Likewise.
19398         * modules/sys_time (Makefile.am): Likewise.
19399         * modules/sys_times (Makefile.am): Likewise.
19400         * modules/sys_utsname (Makefile.am): Likewise.
19401         * modules/sys_wait (Makefile.am): Likewise.
19402         * modules/sysexits (Makefile.am): Likewise.
19403         * modules/termios (Makefile.am): Likewise.
19404         * modules/time (Makefile.am): Likewise.
19405         * modules/unistd (Makefile.am): Likewise.
19406         * modules/wchar (Makefile.am): Likewise.
19407         * modules/wctype-h (Makefile.am): Likewise.
19408         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19409
19410 2011-04-05  Bruno Haible  <bruno@clisp.org>
19411
19412         pipe2: Relicense under LGPLv2+.
19413         * modules/pipe2 (License): Change to LGPLv2+.
19414         Requested by Eric Blake, for libvirt.
19415
19416 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19417
19418         bootstrap: compute gnulib_extra_files after updating build_aux
19419         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19420         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19421
19422 2011-04-05  Eric Blake  <eblake@redhat.com>
19423
19424         bootstrap: preserve git whitelist item sorting
19425         * build-aux/bootstrap (sort_patterns): New function.
19426         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19427
19428 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19429
19430         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19431         sc_space_tab check.
19432
19433 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19434
19435         areadlink, areadlinkat: rewrite in terms of careadlinkat
19436         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19437         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19438         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19439         (malloc, realloc): Remove #undefs.
19440         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19441         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19442         readlink, ssize_t, stdint, unistd.
19443         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19444         areadlink, stdint.
19445
19446         careadlinkat: new module
19447         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19448         * modules/careadlinkat: New files, written by me with
19449         a review and feedback from Ben Pfaff in
19450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19451
19452 2011-04-01  Bruno Haible  <bruno@clisp.org>
19453
19454         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19455         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19456         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19457         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19458         Reported by Bruce Korb <bruce.korb@gmail.com>.
19459
19460 2011-04-01  Bruno Haible  <bruno@clisp.org>
19461
19462         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19463         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19464         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19465         * modules/wcpcpy (Depends-on): Add extensions.
19466         * modules/wcpncpy (Depends-on): Likewise.
19467         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19468         systems.
19469         * doc/posix-functions/wcpncpy.texi: Likewise.
19470         * doc/posix-functions/wcwidth.texi: Likewise.
19471
19472 2011-03-31  Eric Blake  <eblake@redhat.com>
19473
19474         nonblocking: fix mingw test failures
19475         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19476         non-blocking flag on regular file.
19477         (get_nonblocking_flag): Set errno on invalid fd.
19478         * tests/test-nonblocking.c (main): Avoid test failure on
19479         directories if fchdir is not active.
19480         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19481
19482 2011-03-31  Bruno Haible  <bruno@clisp.org>
19483
19484         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19485         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19486         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19487         Reported by Simon Josefsson <simon@josefsson.org>.
19488
19489 2011-03-31  Bruno Haible  <bruno@clisp.org>
19490         and Eric Blake  <eblake@redhat.com>
19491
19492         nonblocking: new module
19493         * modules/nonblocking: New module.
19494         * modules/nonblocking-tests: Likewise.
19495         * lib/nonblocking.h: New file.
19496         * lib/nonblocking.c: Likewise.
19497         * tests/test-nonblocking.c: New test.
19498         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19499
19500 2011-03-30  Bruno Haible  <bruno@clisp.org>
19501
19502         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19503         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19504         instead of 'printf' format for GCC >= 4.4.
19505         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19506         (fprintf, printf, vfprintf, vprintf): Declare with
19507         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19508         the system's vfprintf() function.
19509         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19510
19511 2011-03-30  Eric Blake  <eblake@redhat.com>
19512
19513         passfd: fix scoping bug
19514         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19515         before sendmsg/recvmsg.
19516
19517         passfd: standardize coding conventions
19518         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19519         can be learned at compile time.
19520         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19521         ifdefs.
19522         (sendfd, recvfd): Follow gnulib code conventions.
19523
19524         passfd: fix incorrect sendmsg arguments
19525         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19526         incorrect msg_controllen value.
19527         * modules/passfd-tests (Depends-on): Check for alarm.
19528         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19529         Reported by Bastien ROUCARIES.
19530
19531 2011-03-30  Bruno Haible  <bruno@clisp.org>
19532
19533         c-strcasestr: Relicense under LGPLv2+.
19534         * modules/c-strcasestr (License): Change to LGPLv2+.
19535         Requested by Eric Blake, for libvirt.
19536
19537 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19538
19539         * users.txt: Add libidn2.  Fix libtasn1 link.
19540
19541 2011-03-30  Jim Meyering  <meyering@redhat.com>
19542
19543         tests: readlink* ("",... fails with EINVAL on newer kernels
19544         readlink and readlinkat have typically failed with ENOENT for
19545         the invalid, empty file name,  "".  However, with the advent
19546         of linux-2.6.39, they fail with EINVAL.
19547         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19548         when operating on the empty file name.
19549         * tests/test-readlink.h (test_readlink): Likewise.
19550
19551 2011-03-29  Bruno Haible  <bruno@clisp.org>
19552
19553         Relicense some modules under LGPLv2+, for libidn2.
19554         * modules/array-mergesort (License): Change to LGPLv2+.
19555         * modules/c-strcaseeq (License): Likewise.
19556         * modules/striconveh (License): Likewise.
19557         * modules/striconveha (License): Likewise.
19558         * modules/uniconv/base (License): Likewise.
19559         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19560         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19561         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19562         * modules/unictype/base (License): Likewise.
19563         * modules/unictype/bidiclass-of (License): Likewise.
19564         * modules/unictype/category-M (License): Likewise.
19565         * modules/unictype/category-none (License): Likewise.
19566         * modules/unictype/category-of (License): Likewise.
19567         * modules/unictype/category-test (License): Likewise.
19568         * modules/unictype/category-test-withtable (License): Likewise.
19569         * modules/unictype/combining-class (License): Likewise.
19570         * modules/unictype/joiningtype-of (License): Likewise.
19571         * modules/unictype/scripts (License): Likewise.
19572         * modules/uninorm/base (License): Likewise.
19573         * modules/uninorm/canonical-decomposition (License): Likewise.
19574         * modules/uninorm/composition (License): Likewise.
19575         * modules/uninorm/decompose-internal (License): Likewise.
19576         * modules/uninorm/decomposition-table (License): Likewise.
19577         * modules/uninorm/nfc (License): Likewise.
19578         * modules/uninorm/nfd (License): Likewise.
19579         * modules/uninorm/u32-normalize (License): Likewise.
19580         * modules/unistr/base (License): Likewise.
19581         * modules/unistr/u32-cpy (License): Likewise.
19582         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19583         * modules/unistr/u32-to-u8 (License): Likewise.
19584         * modules/unistr/u32-uctomb (License): Likewise.
19585         * modules/unistr/u8-check (License): Likewise.
19586         * modules/unistr/u8-mblen (License): Likewise.
19587         * modules/unistr/u8-mbtouc (License): Likewise.
19588         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19589         * modules/unistr/u8-mbtoucr (License): Likewise.
19590         * modules/unistr/u8-prev (License): Likewise.
19591         * modules/unistr/u8-strlen (License): Likewise.
19592         * modules/unistr/u8-to-u32 (License): Likewise.
19593         * modules/unistr/u8-uctomb (License): Likewise.
19594         * modules/unitypes (License): Likewise.
19595         Requested by Simon Josefsson.
19596
19597 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19598
19599         lib-symbol-visibility: Add a notice.
19600         * modules/lib-symbol-visibility (Notice): New field.
19601
19602 2011-03-29  Bruno Haible  <bruno@clisp.org>
19603
19604         getaddrinfo: Doc fix.
19605         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19606         section "fixed in Gnulib".
19607
19608 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19609
19610         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19611         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19612
19613 2011-03-26  Bruno Haible  <bruno@clisp.org>
19614
19615         unictype/property-byname: Reduce the number of load-time relocations.
19616         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19617         (UC_PROPERTY_INDEX_*): New enumeration values.
19618         (uc_property_byname): Convert an index from the lookup table to an
19619         uc_property_t.
19620         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19621         values.
19622
19623 2011-03-26  Bruno Haible  <bruno@clisp.org>
19624
19625         unictype/property-byname: Allow omitted word separators and aliases.
19626         * lib/unictype/pr_byname.gperf: Add property names without word
19627         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19628         for 'space'.
19629
19630 2011-03-26  Bruno Haible  <bruno@clisp.org>
19631
19632         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19633         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19634         also hyphens to space.
19635         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19636         without spaces.
19637         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19638
19639 2011-03-26  Bruno Haible  <bruno@clisp.org>
19640
19641         unictype/joiningtype-byname: Recognize long names as well.
19642         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19643         a long name.
19644         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19645         unictype/joiningtype_byname.h.
19646         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19647         * lib/unictype/joiningtype_byname.gperf: New file.
19648         * modules/unictype/joiningtype-byname (Files): Add
19649         lib/unictype/joiningtype_byname.gperf.
19650         (Depends-on): Add gperf.
19651         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19652         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19653         long names.
19654
19655         Tests for module 'unictype/joiningtype-longname'.
19656         * modules/unictype/joiningtype-longname-tests: New file.
19657         * tests/unictype/test-joiningtype_longname.c: New file.
19658
19659         New module 'unictype/joiningtype-longname'.
19660         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19661         * lib/unictype/joiningtype_longname.c: New file.
19662         * modules/unictype/joiningtype-longname: New file.
19663         * modules/unictype/joiningtype-all (Depends-on): Add
19664         unictype/joiningtype-longname.
19665
19666 2011-03-26  Bruno Haible  <bruno@clisp.org>
19667
19668         unictype/bidiclass-byname: Recognize long names as well.
19669         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19670         name.
19671         * lib/unictype/bidi_byname.c: Include <string.h>,
19672         unictype/bidi_byname.h.
19673         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19674         * lib/unictype/bidi_byname.gperf: New file.
19675         * modules/unictype/bidiclass-byname (Files): Add
19676         lib/unictype/bidi_byname.gperf.
19677         (Depends-on): Add gperf.
19678         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19679         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19680         long names.
19681
19682         Tests for module 'unictype/bidiclass-longname'.
19683         * modules/unictype/bidiclass-longname-tests: New file.
19684         * tests/unictype/test-bidi_longname.c: New file.
19685
19686         New module 'unictype/bidiclass-longname'.
19687         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19688         * lib/unictype/bidi_longname.c: New file.
19689         * modules/unictype/bidiclass-longname: New file.
19690         * modules/unictype/bidiclass-all (Depends-on): Add
19691         unictype/bidiclass-longname.
19692
19693 2011-03-26  Bruno Haible  <bruno@clisp.org>
19694
19695         unictype/bidi*: Rename modules.
19696         * modules/unictype/bidiclass-all: Renamed from
19697         modules/unictype/bidicategory-all.
19698         * modules/unictype/bidiclass-name: Renamed from
19699         modules/unictype/bidiclass-name.
19700         (Description): Update.
19701         * modules/unictype/bidiclass-name-tests: Renamed from
19702         modules/unictype/bidicategory-name-tests.
19703         * modules/unictype/bidiclass-byname: Renamed from
19704         modules/unictype/bidicategory-byname.
19705         (Description): Update.
19706         * modules/unictype/bidiclass-byname-tests: Renamed from
19707         modules/unictype/bidicategory-byname-tests.
19708         * modules/unictype/bidiclass-of: Renamed from
19709         modules/unictype/bidicategory-of.
19710         (Description): Update.
19711         * modules/unictype/bidiclass-of-tests: Renamed from
19712         modules/unictype/bidicategory-of-tests.
19713         * modules/unictype/bidiclass-test: Renamed from
19714         modules/unictype/bidicategory-test.
19715         (Description): Update.
19716         * modules/unictype/bidiclass-test-tests: Renamed from
19717         modules/unictype/bidicategory-test-tests.
19718         * modules/unictype/bidicategory-all: New file, a simple redirection.
19719         * modules/unictype/bidicategory-name: Likewise.
19720         * modules/unictype/bidicategory-byname: Likewise.
19721         * modules/unictype/bidicategory-of: Likewise.
19722         * modules/unictype/bidicategory-test: Likewise.
19723         * modules/unictype/property-bidi-* (Dependencies): Update.
19724         * lib/unictype/bidi_*.c: Update comment.
19725
19726 2011-03-26  Bruno Haible  <bruno@clisp.org>
19727
19728         unictype/bidi*: Rename functions, part 2.
19729         * modules/unictype/bidicategory-name (configure.ac): Update required
19730         libunistring version.
19731         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19732
19733 2011-03-25  Bruno Haible  <bruno@clisp.org>
19734
19735         New module 'unictype/combining-class-all'.
19736         * modules/unictype/combining-class-all: New file.
19737
19738         Tests for module 'unictype/combining-class-byname'.
19739         * modules/unictype/combining-class-byname-tests: New file.
19740         * tests/unictype/test-combiningclass_byname.c: New file.
19741
19742         New module 'unictype/combining-class-byname'.
19743         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19744         * lib/unictype/combiningclass_byname.c: New file.
19745         * lib/unictype/combiningclass_byname.gperf: New file.
19746         * modules/unictype/combining-class-byname: New file.
19747
19748         Tests for module 'unictype/combining-class-longname'.
19749         * modules/unictype/combining-class-longname-tests: New file.
19750         * tests/unictype/test-combiningclass_longname.c: New file.
19751
19752         New module 'unictype/combining-class-longname'.
19753         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19754         * lib/unictype/combiningclass_longname.c: New file.
19755         * modules/unictype/combining-class-longname: New file.
19756
19757         Tests for module 'unictype/combining-class-name'.
19758         * modules/unictype/combining-class-name-tests: New file.
19759         * tests/unictype/test-combiningclass_name.c: New file.
19760
19761         New module 'unictype/combining-class-name'.
19762         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19763         * lib/unictype/combiningclass_name.c: New file.
19764         * modules/unictype/combining-class-name: New file.
19765
19766 2011-03-25  Bruno Haible  <bruno@clisp.org>
19767
19768         unictype/combining-class: Rename source files.
19769         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19770         of unictype/combining.h.
19771         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19772         Update.
19773         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19774         * modules/unictype/combining-class (Description): Fix.
19775         (Files, Makefile.am): Update.
19776         * tests/unictype/test-combiningclass.c: Renamed from
19777         tests/unictype/test-combining.c.
19778         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19779
19780 2011-03-25  Bruno Haible  <bruno@clisp.org>
19781
19782         unictype: Update list of canonical combining classes.
19783         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19784
19785 2011-03-25  Bruno Haible  <bruno@clisp.org>
19786
19787         unictype/category-byname: Recognize long names as well.
19788         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19789         a long name.
19790         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19791         unictype/categ_byname.h.
19792         (UC_CATEGORY_INDEX_*): New enumeration values.
19793         (uc_general_category_byname): Use uc_general_category_lookup and
19794         convert from index to value.
19795         * lib/unictype/categ_byname.gperf: New file.
19796         * modules/unictype/category-byname (Files): Add
19797         lib/unictype/categ_byname.gperf.
19798         (Depends-on): Add gperf.
19799         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19800         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19801         long names.
19802
19803         Tests for module 'unictype/category-longname'.
19804         * modules/unictype/category-longname-tests: New file.
19805         * tests/unictype/test-categ_longname.c: New file.
19806
19807         New module 'unictype/category-longname'.
19808         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19809         * lib/unictype/categ_longname.c: New file.
19810         * modules/unictype/category-longname: New file.
19811         * modules/unictype/category-all (Depends-on): Add it.
19812
19813 2011-03-25  Bruno Haible  <bruno@clisp.org>
19814
19815         Tests for module 'unictype/category-LC'.
19816         * modules/unictype/category-LC-tests: New file.
19817         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19818
19819         New module 'unictype/category-LC'.
19820         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19821         (UC_CATEGORY_LC): New declaration.
19822         (UC_CASED_LETTER): New macro.
19823         * lib/gen-uni-tables.c (is_category_LC): New function.
19824         (output_categories): Also handle category LC.
19825         (UC_CATEGORY_MASK_LC): New enumeration value.
19826         (general_category_byname): Also handle category LC.
19827         * lib/unictype/categ_LC.c: New file.
19828         * lib/unictype/categ_LC.h: New file, automatically generated.
19829         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19830         category LC.
19831         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19832         * modules/unictype/category-LC: New file.
19833         * modules/unictype/category-byname (Depends-on): Add
19834         unictype/category-LC.
19835         * modules/unictype/category-all (Depends-on): Likewise.
19836
19837 2011-03-25  Eric Blake  <eblake@redhat.com>
19838
19839         xmalloc: revert yesterday's regression
19840         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19841         realloc's underlying behavior (allowing allocation of zero-size
19842         objects, especially if malloc-gnu is also in use).
19843
19844 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19845
19846         maint.mk: add missing version to VC-tag
19847         * top/maint.mk: git tag was missing actual tag name; add it.
19848
19849         valgrind: do leak checking, and exit with code 1 on error (not 0)
19850         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19851         to VALGRIND.
19852
19853 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19854
19855         posix-modules: say what it does.
19856         * posix-modules: Add a line to the --help output saying what it does.
19857
19858 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19859
19860         xmalloc: Do not leak if underlying realloc is C99 compatible.
19861         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19862         This avoids a leak on C99-based systems.  See
19863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19864
19865 2011-03-24  Eric Blake  <eblake@redhat.com>
19866
19867         realloc: document portability problem
19868         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19869         passing 0 size to realloc.
19870
19871 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19872
19873         doc: update users.txt
19874         * users.txt: Add cvsps, tmpwatch
19875
19876 2011-03-23  Matt Rice  <ratmice@gmail.com>
19877
19878         doc: update users.txt
19879         * users.txt: Add gdb.
19880
19881 2011-03-23  Jim Meyering  <meyering@redhat.com>
19882
19883         doc: update users.txt
19884         Looking through matches up to the following URL (there are still
19885         several more pages), I found several projects that use gnulib:
19886         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19887         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19888         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19889
19890 2011-03-22  Bruno Haible  <bruno@clisp.org>
19891
19892         unictype/bidi*: Rename functions.
19893         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19894         uc_bidi_class, uc_is_bidi_class): New declarations.
19895         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19896         uc_bidi_category_byname.
19897         (uc_bidi_category_byname): New function.
19898         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19899         u_bidi_category_name.
19900         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19901         (uc_bidi_category_name): New function.
19902         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19903         uc_bidi_category.
19904         (uc_bidi_category): New function.
19905         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19906         uc_is_bidi_category. Invoke uc_bidi_class.
19907         (uc_is_bidi_category): New function.
19908         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19909         instead of uc_bidi_category_byname.
19910         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19911         instead of uc_bidi_category_name.
19912         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19913         uc_bidi_category.
19914         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19915         instead of uc_is_bidi_category.
19916
19917 2011-03-21  Bruno Haible  <bruno@clisp.org>
19918
19919         New module 'unictype/joininggroup-all'.
19920         * modules/unictype/joininggroup-all: New file.
19921
19922         Tests for module 'unictype/joininggroup-of'.
19923         * modules/unictype/joininggroup-of-tests: New file.
19924         * tests/unictype/test-joininggroup_of.c: New file.
19925         * tests/unictype/test-joininggroup_of.h: New file, automatically
19926         generated by gen-uni-tables.
19927
19928         New module 'unictype/joininggroup-of'.
19929         * modules/unictype/joininggroup-of: New file.
19930         * lib/unictype/joininggroup_of.c: New file.
19931         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19932         gen-uni-tables.
19933
19934         Tests for module 'unictype/joininggroup-byname'.
19935         * modules/unictype/joininggroup-byname-tests: New file.
19936         * tests/unictype/test-joininggroup_byname.c: New file.
19937
19938         New module 'unictype/joininggroup-byname'.
19939         * modules/unictype/joininggroup-byname: New file.
19940         * lib/unictype/joininggroup_byname.c: New file.
19941         * lib/unictype/joininggroup_byname.gperf: New file.
19942
19943         Tests for module 'unictype/joininggroup-name'.
19944         * modules/unictype/joininggroup-name-tests: New file.
19945         * tests/unictype/test-joininggroup_name.c: New file.
19946
19947         New module 'unictype/joininggroup-name'.
19948         * modules/unictype/joininggroup-name: New file.
19949         * lib/unictype/joininggroup_name.c: New file.
19950         * lib/unictype/joininggroup_name.h: New file.
19951
19952         New module 'unictype/joiningtype-all'.
19953         * modules/unictype/joiningtype-all: New file.
19954
19955         Tests for module 'unictype/joiningtype-of'.
19956         * modules/unictype/joiningtype-of-tests: New file.
19957         * tests/unictype/test-joiningtype_of.c: New file.
19958         * tests/unictype/test-joiningtype_of.h: New file, automatically
19959         generated by gen-uni-tables.
19960
19961         New module 'unictype/joiningtype-of'.
19962         * modules/unictype/joiningtype-of: New file.
19963         * lib/unictype/joiningtype_of.c: New file.
19964         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19965         gen-uni-tables.
19966
19967         Tests for module 'unictype/joiningtype-byname'.
19968         * modules/unictype/joiningtype-byname-tests: New file.
19969         * tests/unictype/test-joiningtype_byname.c: New file.
19970
19971         New module 'unictype/joiningtype-byname'.
19972         * modules/unictype/joiningtype-byname: New file.
19973         * lib/unictype/joiningtype_byname.c: New file.
19974
19975         Tests for module 'unictype/joiningtype-name'.
19976         * modules/unictype/joiningtype-name-tests: New file.
19977         * tests/unictype/test-joiningtype_name.c: New file.
19978
19979         New module 'unictype/joiningtype-name'.
19980         * modules/unictype/joiningtype-name: New file.
19981         * lib/unictype/joiningtype_name.c: New file.
19982
19983         unictype: Add support for Arabic shaping properties.
19984         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19985         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19986         declarations.
19987         (UC_JOINING_GROUP_*): New enumeration values.
19988         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19989         declarations.
19990         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19991         (unicode_joining_type): New variable.
19992         (UC_JOINING_GROUP_*): New enumeration values.
19993         (unicode_joining_group): New variable.
19994         (fill_arabicshaping, joining_type_as_c_identifier,
19995         output_joining_type_test, output_joining_type,
19996         joining_group_as_c_identifier, output_joining_group_test,
19997         output_joining_group): New functions.
19998         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19999         fill_arabicshaping and output_joining_type_test, output_joining_type,
20000         output_joining_group_test, output_joining_group.
20001         Reported by Simon Josefsson.
20002
20003 2011-03-21  Jim Meyering  <meyering@redhat.com>
20004
20005         strftime: fix a bug in yesterday's change
20006         * lib/strftime.c (add): Accommodate width's initial value of -1.
20007         Otherwise, nstrftime would copy uninitialized data into
20008         the result buffer.
20009
20010 2011-03-21  Jim Meyering  <meyering@redhat.com>
20011
20012         tests: add strftime-tests module
20013         * tests/test-strftime.c: New file.
20014         * modules/strftime-tests: New module.
20015
20016 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20017
20018         strftime: don't assume a byte count fits in 'int'
20019         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20020         found this problem by static analysis, using gcc -Wstrict-overflow
20021         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20022         on an integer overflow having undefined behavior, but it turns out
20023         that the argument is a size, which might not fit in 'int' anyway,
20024
20025 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20026
20027         stdio: don't require ignore_value around fwrite
20028
20029         This patch works around libc bug 11959
20030         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20031         Without this patch, applications must often write
20032         ignore_value (fwrite (...)) even though the ignore_value is
20033         not helpful here.  It's common to write many objects, using
20034         fwrite/printf/etc., and then use ferror to detect output error.
20035
20036         I considered making this patch optional, but decided against it,
20037         because libc is obviously being inconsistent here: there is no
20038         reason libc should insist that user code must inspect fwrite
20039         return's value without also insisting that it inspect printf's,
20040         putchar's, etc.  If user code wants to have a strict style where
20041         all these functions' values are checked (so that ferror need not
20042         be checked), we could add support for that style in a new gnulib
20043         module, but in the meantime it's better to be consistent and to
20044         support common usage.
20045
20046         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20047         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20048         that we are compiling in checking mode, and if not C++, and
20049         if not already wrapping fwrite for some other reason.
20050         (fwrite): #define to rpl_fwrite if the latter is defined.
20051
20052 2011-03-20  Bruno Haible  <bruno@clisp.org>
20053
20054         verror: Fix compilation error introduced on 2011-02-13.
20055         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20056         instead of __attribute__.
20057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20058
20059 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20060             Bruno Haible  <bruno@clisp.org>
20061
20062         socklen: do not depend on sys_socket
20063         While trying to modify Emacs to use gnulib's socklen module,
20064         I discovered a circular dependency: socklen depends on sys_socket
20065         and vice versa.  Emacs can use socklen, but it does not need
20066         sys_socket because it has its own substitute for sys/socket.h.
20067         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20068         gl_TYPE_SOCKLEN_T.
20069         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20070         gl_PREREQ_SYS_H_SOCKET.
20071         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20072         gl_PREREQ_SYS_H_SOCKET.
20073         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20074         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20075         * modules/socklen (Depends-on): Do not depend on sys_socket.
20076         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20077
20078 2011-03-20  Jim Meyering  <meyering@redhat.com>
20079
20080         maint.mk: sort file names *after* new transformation
20081         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20082         prefix would have led to an unwarranted failure in GNU parted.
20083         Sort after that transformation.
20084
20085 2011-03-19  Jim Meyering  <meyering@redhat.com>
20086
20087         maint.mk: fix po-file syntax-check rule
20088         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20089         Patch by Bruno Haible.
20090
20091 2011-03-19  Bruno Haible  <bruno@clisp.org>
20092
20093         socklen: Update comment.
20094         * m4/socklen.m4: Update comment about platforms.
20095
20096 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20097             Bruno Haible  <bruno@clisp.org>
20098
20099         inet_ntop, inet_pton: Simplify.
20100         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20101         documented to provide socklen_t and we already depend on sys_socket.
20102         * modules/inet_pton (Depends-on): Likewise.
20103         * lib/arpa_inet.in.h: Adjust comment.
20104
20105 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20106             Bruno Haible  <bruno@clisp.org>
20107
20108         netdb: Simplify.
20109         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20110         documented to provide socklen_t and we already depend on sys_socket.
20111         * lib/netdb.in.h: Adjust comment.
20112
20113 2011-03-19  Bruno Haible  <bruno@clisp.org>
20114
20115         sys_socket, netdb: Document problem with socklen_t.
20116         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20117         platforms.
20118         * doc/posix-headers/netdb.texi: Likewise.
20119
20120 2011-03-18  Eric Blake  <eblake@redhat.com>
20121
20122         maint.mk: let po check work in VPATH build
20123         * top/maint.mk (po_file): Allow cfg.mk override.
20124         (sc_po_check): Allow VPATH use.
20125         Reported by Jiri Denemark.
20126
20127 2011-03-16  Jim Meyering  <meyering@redhat.com>
20128
20129         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20130         Before, you would have had to create one .x-sc_ file per rule in order
20131         to exempt offending files.  Now, you may instead use a Make variable --
20132         usually defined in cfg.mk -- whose name identifies the affected rule.
20133         * top/maint.mk (_sc_excl): Define.
20134         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20135         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20136
20137 2011-03-13  Bruno Haible  <bruno@clisp.org>
20138
20139         ignore-value tests: Avoid warnings.
20140         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20141         empty for gcc < 3.4.
20142
20143 2011-03-13  Bruno Haible  <bruno@clisp.org>
20144
20145         passfd: Fix link error on Solaris.
20146         * modules/passfd (Description): Correct.
20147         (Depends-on): Add socketlib.
20148         (Link): New section.
20149         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20150
20151 2011-03-13  Bruno Haible  <bruno@clisp.org>
20152
20153         passfd: Fix link error on AIX 5.2.
20154         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20155
20156 2011-03-13  Bruno Haible  <bruno@clisp.org>
20157
20158         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20159         * lib/sys_socket.in.h: Include <stddef.h>.
20160         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20161         CMSG_FIRSTHDR. Remove unused variable.
20162
20163 2011-03-13  Bruno Haible  <bruno@clisp.org>
20164
20165         passfd: Fix compilation error on OpenBSD.
20166         * lib/passfd.c: Include <sys/uio.h>.
20167
20168 2011-03-13  Bruno Haible  <bruno@clisp.org>
20169
20170         passfd test: Fix warnings.
20171         * tests/test-passfd.c: Include <sys/wait.h>.
20172         (main): Fix typo.
20173
20174 2011-03-13  Bruno Haible  <bruno@clisp.org>
20175
20176         passfd module, part 4, tweaks.
20177         * tests/test-passfd.c: Reorder includes.
20178         (main): Fix perror and printf calls.
20179
20180 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20181
20182         passfd module, part 4.
20183         * modules/passfd-tests: New file.
20184         * tests/test-passfd.c: New file.
20185
20186 2011-03-13  Jim Meyering  <meyering@redhat.com>
20187
20188         Makefile: rely on GNU make; derive syntax-check rule names
20189         Rather than requiring that each sc_ rule be listed as a dependent
20190         of "check", use features of GNU make to derive the list.
20191         * Makefile (syntax-check-rules): Define.
20192         (check): Depend on the new variable, not the hard-coded list.
20193
20194 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20195             Bruno Haible  <bruno@clisp.org>
20196
20197         passfd module, part 3.
20198         * lib/passfd.h (recvfd): Add a flags argument.
20199         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20200         (recvfd): Add a flags argument.
20201         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20202         exists.
20203         * modules/passfd (Depends-on): Add cloexec.
20204         Suggested by Eric Blake.
20205
20206 2011-03-13  Bruno Haible  <bruno@clisp.org>
20207
20208         passfd module, part 2, tweaks.
20209         * modules/passfd (Files): Reorder.
20210         (Depends-on): Remove errno.
20211         (Include): Remove <sys/socket.h>, <sys/un.h>.
20212         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20213         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20214         specification header. Include <sys/socket.h> always. Don't include
20215         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20216         (sendfd): Clarify that it sets errno when it fails.
20217         (recvfd): Fix specification.
20218
20219 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20220
20221         passfd module, part 2.
20222         * modules/passfd: New file.
20223         * lib/passfd.h: New file.
20224         * lib/passfd.c: New file.
20225
20226 2011-03-12  Bruno Haible  <bruno@clisp.org>
20227
20228         wcswidth, mbswidth: Avoid integer overflow.
20229         * lib/wcswidth.c: Include <limits.h>.
20230         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20231         * lib/mbswidth.c: Include <limits.h>.
20232         (mbsnwidth): Avoid 'int' overflow.
20233         Reported by Jim Meyering.
20234
20235 2011-03-12  Bruno Haible  <bruno@clisp.org>
20236
20237         futimens, utimensat: Avoid endless recursion on Solaris 10.
20238         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20239         Solaris.
20240         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20241         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20242
20243 2011-03-11  Jim Meyering  <meyering@redhat.com>
20244
20245         maint.mk: relax a regexp to accommodate other formatting styles
20246         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20247         between "ngettext" and the following "(".
20248
20249 2011-03-11  Pádraig Brady <P@draigBrady.com>
20250
20251         maint.mk: suppress a false positive warning
20252         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20253         diagnostics are marked with ngettext.
20254
20255 2011-03-10  Eric Blake  <eblake@redhat.com>
20256
20257         wchar: add explicit dependencies, for Tru64
20258         * modules/mbmemcasecoll (Depends-on): Add wchar.
20259         * modules/mbtowc (Depends-on): Likewise.
20260         * modules/vasnprintf (Depends-on): Likewise.
20261         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20262         * modules/wctomb (Depends-on): Likewise.
20263         Reported by Peter O'Gorman.
20264
20265 2011-03-08  Bruno Haible  <bruno@clisp.org>
20266
20267         passfd module, part 1, tweaks.
20268         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20269         Improve indentation. Improve AC_MSG_CHECKING messages.
20270         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20271         gl_SOCKET_FAMILIES.
20272
20273 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20274
20275         passfd module, part 1.
20276         * m4/afunix.m4: New file.
20277         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20278         sockets.
20279
20280 2011-03-08  Bruno Haible  <bruno@clisp.org>
20281
20282         regex-quote: New API.
20283         * lib/regex-quote.h: Include <stdbool.h>.
20284         (struct regex_quote_spec): New type.
20285         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20286         New declarations.
20287         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20288         'const struct regex_quote_spec *' argument.
20289         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20290         (pcre_special): New constant.
20291         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20292         New functions.
20293         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20294         'const struct regex_quote_spec *' argument.
20295         * modules/regex-quote (Depends-on): Add stdbool.
20296         * tests/test-regex-quote.c (check): Update for new API. Add test for
20297         anchored results.
20298         * NEWS: Mention the API change.
20299         Reported by Reuben Thomas and Eric Blake.
20300
20301 2011-03-06  Bruno Haible  <bruno@clisp.org>
20302
20303         regex-quote: Fix creation of POSIX extended regular expressions.
20304         * lib/regex-quote.c (ere_special): Add grouping and alternation
20305         operators.
20306
20307 2011-03-05  Bruno Haible  <bruno@clisp.org>
20308
20309         doc: Improve doc regarding autopoint vs. gnulib.
20310         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20311         disable autopoint while running autoreconf.
20312         Suggested by Ralf Wildenhues.
20313
20314 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20315
20316         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20317         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20318
20319 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20320
20321         parse-duration: remove xalloc.h dependency
20322         * lib/parse-duration.c (parse_period): handle NULL return from
20323         strdup instead of calling xstrdup().
20324         * modules/parse-duration: remove "xalloc" dependency
20325
20326 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20327
20328         bootstrap: honor m4_base when running aclocal
20329         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20330
20331 2011-03-02  Jim Meyering  <meyering@redhat.com>
20332
20333         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20334         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20335         on request from Matt Booth.
20336
20337 2011-03-01  Eric Blake  <eblake@redhat.com>
20338
20339         test-link: work on Hurd
20340         * tests/test-link.h (test_link): Hurd rejects linking directories
20341         with EISDIR instead of the POSIX-mandated EPERM.
20342
20343 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20344
20345         stdio: simplify by moving files to printf-posix, sigpipe
20346         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20347         since this symbol is needed only if printf is replaced.
20348         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20349         Require gl_ASM_SYMBOL_PREFIX.
20350         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20351         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20352         (Depends-on): Add 'raise'.
20353         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20354         * modules/stdio (Files): Remove lib/stdio-write.c,
20355         m4/asm-underscore.m4.
20356         (Depends-on): Remove 'raise'.
20357
20358         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20359         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20360         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20361         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20362
20363 2011-02-28  Bruno Haible  <bruno@clisp.org>
20364
20365         localcharset: Assume ANSI C behaviour of free().
20366         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20367         calling free().
20368         Suggested by Simon Josefsson <simon@josefsson.org>.
20369
20370 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20371             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20372             Bruno Haible  <bruno@clisp.org>  (tiny change)
20373
20374         On Cygwin, use /proc file system instead of win32 API.
20375         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20376         Win32 file names.
20377         (DllMain): Simplify by removing Cygwin specific code.
20378         (find_shared_library_fullname): Use Linux specific implementation also
20379         for Cygwin.
20380         (get_shared_library_fullname): Update accordingly.
20381         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20382         Win32 file names.
20383         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20384         Cygwin specific code.
20385
20386 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20387             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20388
20389         Fix OpenMP flag detection for various Fortran compilers.
20390         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20391         OpenMP-conditional compilation construct, to force compile
20392         failure with missing OpenMP flag.
20393         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20394
20395 2011-02-25  Eric Blake  <eblake@redhat.com>
20396
20397         strstr: expand test coverage
20398         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20399         compilation.
20400         * tests/test-memmem.c (main): Duplicate tests.
20401         * tests/test-strcasestr.c (main): Likewise.
20402         * tests/test-c-strcasestr.c (main): Likewise.
20403
20404 2011-02-25  Jim Meyering  <meyering@redhat.com>
20405
20406         maint.mk: detect missing-NL-at-EOF, too
20407         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20408         it also detects when a file lacks a newline at EOF.
20409         (require_exactly_one_NL_at_EOF_): Renamed from
20410         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20411         since people may well have .x-sc_... file names tied to the
20412         existing name.  Suggested by Eric Blake.
20413
20414 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20415
20416         dirname: move m4/dos.m4 functionality into lib/dosname.h
20417
20418         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20419         extracts symbols from it, puts them into config.h; but it's much
20420         easier to use the symbols directly.  filename.h already does this,
20421         but it disagrees with dos.m4 in some respects.  This patch
20422         introduces a different include file dosname.h that packages up
20423         dos.m4, and then later we can work on merging filename.h and
20424         dosname.h.  Applications that need only the easy-to-configure
20425         symbols should consider including dosname.h rather than dirname.h.
20426         * NEWS: Mention incompatible changes.
20427         * m4/dos.m4: Remove.
20428         * lib/dosname.h, modules/dosname: New files.
20429         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20430         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20431         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20432         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20433         Include dosname.h, not dirname.h.
20434         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20435         Include dosname.h, for definitions of symbols like ISSLASH
20436         that used to be in config.h.
20437         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20438         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20439         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20440         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20441         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20442         * modules/rmdir (Files): Likewise.
20443         * modules/stat (Files): Likewise.
20444         * modules/unlink (Files): Likewise.
20445         * modules/dirname-lgpl (Depends-on): Add dosname.
20446         * modules/lstat (Depends-on): Likewise.
20447         * modules/openat (Depends-on): Likewise.
20448         * modules/rmdir (Depends-on): Likewise.
20449         * modules/savewd (Depends-on): Likewise.
20450         * modules/stat (Depends-on): Likewise.
20451         * modules/unlink (Depends-on): Likewise.
20452         * modules/openat (Depends-on): Remove dirname-lgpl.
20453         * modules/savewd (Depends-on): Likewise.
20454         * tests/test-dirname.c: Do not use removed symbols like
20455         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20456         the remaining symbols, e.g., ISSLASH ('\\').
20457
20458 2011-02-25  Eric Blake  <eblake@redhat.com>
20459
20460         strstr: revert patches that introduced bug and pessimization
20461         * lib/str-two-way.h: Add another reference.
20462         (two_way_short_needle, two_way_long_needle): Revert changes from
20463         2011-02-24; they pessimize search speed.
20464         (critical_factorization): Partially revert changes from
20465         2010-06-22; they violate the requirement that the left half of the
20466         needle be smaller than the period of the needle.
20467
20468 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20469
20470         filenamecat: remove unnecessary dependency on dirname-lgpl
20471         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20472         is no direct dependency, just an indirect one via filenamecat-lgpl.
20473
20474         remove: remove unnecessary use of m4/dos.m4
20475         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20476         * modules/remove (FILES): Remove m4/dos.m4.
20477
20478         * lib/openat-proc.c: Don't include dirname.h; not needed.
20479
20480         backupfile: remove unnecessary use of m4/dos.m4
20481         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20482         of its symbols are used by the backupfile code.  backupfile.c does
20483         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20484         for the rare case of programs that want all their backup file
20485         names to live within 8+3 limits, and dos.m4 doesn't address that.
20486         * modules/backupfile (Files): Remove m4/dos.m4.
20487
20488 2011-02-24  Jim Meyering  <meyering@redhat.com>
20489
20490         strstr: fix a bug whereby strstr would mistakenly return NULL
20491         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20492         in period calculation.
20493         (two_way_long_needle): Likewise.
20494         The original problem was reported by Mike Stump in
20495         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20496         Ralf Wildenhues provided the short needle and haystack.
20497         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20498         Add a more involved test to trigger the bug in two_way_long_needle.
20499
20500 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20501
20502         gnulib-tool: remove use of bold display in help screen
20503         * gnulib-tool (func_usage): Do not use bold display anymore in the
20504         help screen.  That was just meant to be a temporary emphasis for a
20505         backward-incompatible change.
20506
20507 2011-02-23  Bruno Haible  <bruno@clisp.org>
20508
20509         Fix misindentation of preprocessor directives.
20510         * lib/argp-namefrob.h: Reindent preprocessor directives.
20511         * lib/getopt_int.h (struct _getopt_data): Likewise.
20512         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20513         * lib/vasnprintf.c (decode_long_double): Likewise.
20514         * tests/test-argmatch.c: Insert blank lines, for clarity.
20515         * tests/test-exclude.c: Likewise.
20516
20517 2011-02-22  Bruno Haible  <bruno@clisp.org>
20518
20519         ioctl: Fix for MacOS X in 64-bit mode.
20520         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20521         value.
20522         Suggested by Eric Blake.
20523         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20524
20525 2011-02-22  Jim Meyering  <meyering@redhat.com>
20526
20527         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20528         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20529         in lib/.
20530
20531 2011-02-22  Eric Blake  <eblake@redhat.com>
20532
20533         maint: avoid any CDPATH issue
20534         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20535
20536         maint: adjust cpp indentation for my modules, as well
20537         * Makefile (sc_cpp_indent_check): Add my name.
20538         * lib/fbufmode.c: Filter through cppi.
20539         * lib/fpurge.c: Likewise.
20540         * lib/freadable.c: Likewise.
20541         * lib/freading.c: Likewise.
20542         * lib/fwritable.c: Likewise.
20543         * lib/fwriting.c: Likewise.
20544         * lib/sigaction.c: Likewise.
20545
20546 2011-02-22  Jim Meyering  <meyering@redhat.com>
20547
20548         maint: adjust cpp indentation to reflect nesting depth
20549         I.e., in a block of code that begins with an unnested "#if",
20550         put one space between the "#" in column 1 and following token.
20551         For example,
20552         -#include <sys/vfs.h>
20553         +# include <sys/vfs.h>
20554         Do this only in .c files that are part of a module I maintain.
20555         * lib/linkat.c: Filter through cppi.
20556         * lib/nanosleep.c: Likewise.
20557         * lib/openat.c: Likewise.
20558         * lib/openat-die.c: Likewise.
20559         * lib/dup3.c: Likewise.
20560         * lib/fchownat.c: Likewise.
20561         * lib/flock.c: Likewise.
20562         * lib/fsync.c: Likewise.
20563         * lib/fts.c: Likewise.
20564         * lib/getpass.c: Likewise.
20565         * lib/gettimeofday.c: Likewise.
20566         * lib/userspec.c: Likewise.
20567         * Makefile (sc_cpp_indent_check): New rule, to check this.
20568
20569 2011-02-22  Bruno Haible  <bruno@clisp.org>
20570
20571         New module 'wctomb'.
20572         * lib/stdlib.in.h (wctomb): New declaration.
20573         * lib/wctomb.c: New file.
20574         * lib/wctomb-impl.h: New file.
20575         * m4/wctomb.m4: New file.
20576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20577         REPLACE_WCTOMB.
20578         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20579         REPLACE_WCTOMB.
20580         * modules/wctomb: New file.
20581         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20582         * doc/posix-functions/wctomb.texi: Mention the new module.
20583         * modules/wctob (Depends-on): Add wctomb.
20584
20585 2011-02-22  Bruno Haible  <bruno@clisp.org>
20586
20587         New module 'mbtowc'.
20588         * lib/stdlib.in.h (mbtowc): New declaration.
20589         * lib/mbtowc.c: New file.
20590         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20591         * m4/mbtowc.m4: New file.
20592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20593         REPLACE_MBTOWC.
20594         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20595         REPLACE_MBTOWC.
20596         * modules/mbtowc: New file.
20597         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20598         * doc/posix-functions/mbtowc.texi: Mention the new module.
20599         * modules/btowc (Depends-on): Add mbtowc.
20600
20601 2011-02-22  Bruno Haible  <bruno@clisp.org>
20602
20603         wcrtomb: Add more tests for native Windows platforms.
20604         * tests/test-wcrtomb-w32-1.sh: New file.
20605         * tests/test-wcrtomb-w32-2.sh: New file.
20606         * tests/test-wcrtomb-w32-3.sh: New file.
20607         * tests/test-wcrtomb-w32-4.sh: New file.
20608         * tests/test-wcrtomb-w32-5.sh: New file.
20609         * tests/test-wcrtomb-w32.c: New file.
20610         * modules/wcrtomb-tests (Files): Add them.
20611         (Makefile.am): Arrange to run these tests.
20612         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20613         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20614
20615 2011-02-20  Bruno Haible  <bruno@clisp.org>
20616
20617         wcrtomb: Enhance test.
20618         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20619
20620 2011-02-20  Bruno Haible  <bruno@clisp.org>
20621
20622         mbrtowc: Tiny optimization.
20623         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20624
20625 2011-02-20  Jim Meyering  <meyering@redhat.com>
20626
20627         test-exclude.c: remove unmatched #endif
20628         * tests/test-exclude.c: Remove stray #endif, left over from
20629         the change of a week ago.
20630
20631 2011-02-19  Jim Meyering  <meyering@redhat.com>
20632
20633         git-version-gen: skip "-dirty" check when appropriate
20634         * build-aux/git-version-gen: Don't run any git commands when the
20635         version string comes from .tarball-version.  Prior to this, we
20636         would run git update-index --refresh even from a just-unpacked
20637         tarball directory, and that could affect a .git/ directory in a
20638         parent of the build directory.  Reported by Mike Frysinger.
20639
20640 2011-02-19  Bruno Haible  <bruno@clisp.org>
20641
20642         unictype/property-byname: Reduce the size of the 'data' segment.
20643         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20644
20645 2011-02-19  Bruno Haible  <bruno@clisp.org>
20646
20647         unictype/scripts: Reduce the size of the 'data' segment.
20648         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20649         '%pic'.
20650         * lib/unictype/scripts_byname.gperf: Regenerated.
20651
20652 2011-02-19  Bruno Haible  <bruno@clisp.org>
20653
20654         stdint: Update documentation.
20655         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20656
20657 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20658
20659         stdint: omit redundant check for wchar.h
20660         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20661         always tests whether wchar.h exists, so remove the now-redundant test.
20662
20663 2011-02-18  Bruno Haible  <bruno@clisp.org>
20664
20665         stdint: Cut dependency to module 'wchar'.
20666         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20667         include the necessary prerequisites.
20668         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20669         * modules/stdint (Depends-on): Remove wchar.
20670         (Makefile.am): Substitute HAVE_WCHAR_H.
20671         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20672
20673 2011-02-18  Eric Blake  <eblake@redhat.com>
20674
20675         longlong: skip, rather than fail, on cross-compilation
20676         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20677         when cross-compiling; regression from 2011-02-16.
20678
20679 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20680
20681         * NEWS: Mention 2011-02-08 change to stdlib.
20682
20683 2011-02-17  Bruno Haible  <bruno@clisp.org>
20684
20685         getloadavg: Add comments about platforms.
20686         * m4/getloadavg.m4: Add comment.
20687         * lib/getloadavg.c: Likewise.
20688
20689 2011-02-17  Bruno Haible  <bruno@clisp.org>
20690
20691         getloadavg: Fix link error on Solaris 2.6.
20692         * modules/getloadavg (Link): New section.
20693         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20694         linking test-getloadavg.
20695         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20696         getloadavg.
20697
20698 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20699
20700         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20701         It was 'int', but this doesn't match the IRIX 6.5 manual.
20702         Suggested by Bruno Haible in
20703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20704
20705 2011-02-17  Bruno Haible  <bruno@clisp.org>
20706
20707         havelib: Fix comments.
20708         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20709         change.
20710
20711 2011-02-17  Bruno Haible  <bruno@clisp.org>
20712
20713         havelib: Update config.rpath.
20714         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20715
20716 2011-02-17  Bruno Haible  <bruno@clisp.org>
20717
20718         getloadavg test: Add some plausibility checks.
20719         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20720         is improbable.
20721
20722 2011-02-16  Eric Blake  <eblake@redhat.com>
20723
20724         maintainer-makefile: make syntax-check a no-op from tarballs
20725         * top/maint.mk (no-vc-detected): New rule.
20726         (local-checks-available): Use it to avoid hanging if someone tries
20727         'make syntax-check' from a tarball.  Also append to any non-syntax
20728         checks already defined in cfg.mk.
20729
20730 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20731
20732         longlong: tune, particularly for common case of c99
20733
20734         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20735         or running anything if c99, or if unsigned long long int does not
20736         work.  In either case, we know the answer without further tests.
20737         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20738         it at most once, and use its results for both long long int and
20739         unsigned long long int.  This is more likely to be efficient in
20740         the common case where the program wants to check for both long
20741         long int and unsigned long long int.
20742         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20743         since the answer is already known.
20744
20745 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20746
20747         getloadavg: set errno
20748         * lib/getloadavg.c: Set errno when returning -1.  If no other
20749         error number looks appropriate, set it to ENOSYS if the getloadavg
20750         looks like it can't possibly ever work, ENOTSUP otherwise.
20751         Suggested by Bruno Haible in
20752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20753
20754         getloadavg: trim unused parts and speed up 'configure'
20755         * NEWS: Document this.
20756         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20757         always compiled if getloadavg is absent.
20758         Move test code to ...
20759         * tests/test-getloadavg.c: New file, containing previous
20760         contents of test from lib/getloadavg.c.  It also contains
20761         suggestions by Bruno Haible in
20762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20763         * modules/getloadavg-tests: New file.
20764         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20765         Do tests in the same order as they're needed for getloadavg.c.
20766         Omit setgid-related tests that generate symbols KMEM_GROUP,
20767         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20768         Do only the tests that are needed to see whether the system has
20769         getloadavg, moving the other tests into ...
20770         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20771         NLIST_NAME_UNION; nobody should be using it.  Do not define
20772         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20773         relevant, as the user of this module shouldn't care how getloadavg
20774         is implemented.
20775
20776         getloadavg: omit unused var
20777         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20778
20779 2011-02-15  Jim Meyering  <meyering@redhat.com>
20780
20781         doc: update users.txt
20782         * users.txt: Update iwhd's URL.
20783
20784 2011-02-13  Bruno Haible  <bruno@clisp.org>
20785
20786         Consistent macro naming for macros that use GCC __attribute__.
20787         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20788         _ATTRIBUTE_NONNULL_.
20789         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20790         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20791         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20792         ATTRIBUTE_DEPRECATED.
20793         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20794         ATTRIBUTE_NORETURN.
20795         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20796         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20797         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20798         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20799         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20800         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20801         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20802         ATTRIBUTE_SENTINEL.
20803         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20804         ATTRIBUTE_RETURN_CHECK.
20805         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20806         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20807         ATTRIBUTE_NORETURN.
20808         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20809         Reported by Paul Eggert.
20810
20811 2011-02-13  Bruno Haible  <bruno@clisp.org>
20812
20813         Don't interfere with a program's definition of __attribute__.
20814         * lib/argp.h (__attribute__): Remove definition.
20815         (_GL_ATTRIBUTE_FORMAT): New macro.
20816         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20817         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20818         (_GL_ATTRIBUTE_FORMAT): New macro.
20819         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20820         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20821         GCC 3 or newer.
20822         * lib/error.h (__attribute__): Remove definition.
20823         (_GL_ATTRIBUTE_FORMAT): New macro.
20824         (error, error_at_line): Use it.
20825         * lib/hash.h (__attribute__): Remove definition.
20826         (ATTRIBUTE_WUR): Update definition. Define always.
20827         * lib/openat.h (__attribute__): Remove definition.
20828         (ATTRIBUTE_NORETURN): Update definition. Define always.
20829         * lib/sigpipe-die.h (__attribute__): Remove definition.
20830         (ATTRIBUTE_NORETURN): Update definition. Define always.
20831         * lib/vasnprintf.h (__attribute__): Remove definition.
20832         (_GL_ATTRIBUTE_FORMAT): New macro.
20833         (asnprintf, vasnprintf): Use it.
20834         * lib/xalloc.h (__attribute__): Remove definition.
20835         (ATTRIBUTE_NORETURN): Update definition. Define always.
20836         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20837         * lib/xmemdup0.h (__attribute__): Remove definition.
20838         (ATTRIBUTE_NORETURN): Update definition. Define always.
20839         * lib/xprintf.h (__attribute__): Remove definition.
20840         (_GL_ATTRIBUTE_FORMAT): New macro.
20841         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20842         * lib/xstrtol.h (__attribute__): Remove definition.
20843         (ATTRIBUTE_NORETURN): Update definition. Define always.
20844         * lib/xvasprintf.h (__attribute__): Remove definition.
20845         (_GL_ATTRIBUTE_FORMAT): New macro.
20846         (xasprintf, xvasprintf): Use it.
20847         * tests/test-argmatch.c (__attribute__): Remove definition.
20848         (ATTRIBUTE_NORETURN): Update definition. Define always.
20849         * tests/test-exclude.c (__attribute__): Remove definition.
20850         (ATTRIBUTE_NORETURN): Update definition. Define always.
20851         Reported by Paul Eggert.
20852
20853 2011-02-13  Bruno Haible  <bruno@clisp.org>
20854
20855         mbrtowc: Add more tests for native Windows platforms.
20856         * tests/test-mbrtowc-w32-1.sh: New file.
20857         * tests/test-mbrtowc-w32-2.sh: New file.
20858         * tests/test-mbrtowc-w32-3.sh: New file.
20859         * tests/test-mbrtowc-w32-4.sh: New file.
20860         * tests/test-mbrtowc-w32-5.sh: New file.
20861         * tests/test-mbrtowc-w32.c: New file.
20862         * modules/mbrtowc-tests (Files): Add them.
20863         (Makefile.am): Arrange to run these tests.
20864         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20865         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20866
20867 2011-02-13  Bruno Haible  <bruno@clisp.org>
20868
20869         mbrtowc: Work around native Windows bug.
20870         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20871         guess when no suitable locale for testing was found.
20872         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20873
20874 2011-02-13  Bruno Haible  <bruno@clisp.org>
20875
20876         mbsinit: Work around mingw bug.
20877         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20878         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20879         Windows.
20880         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20881
20882 2011-02-13  Bruno Haible  <bruno@clisp.org>
20883
20884         mbsinit: Don't crash for a NULL argument.
20885         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20886         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20887
20888 2011-02-13  Bruno Haible  <bruno@clisp.org>
20889
20890         Don't interfere with a program's definition of __attribute__.
20891         * lib/stdio.in.h (__attribute__): Remove definition.
20892         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20893         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20894         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20895         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20896         * lib/string.in.h (__attribute__): Remove definition.
20897         Reported by Paul Eggert.
20898
20899 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20900
20901         stdlib: don't get in the way of non-GCC __attribute__
20902         See thread starting at
20903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20904         Revert previous stdlib change, installing the following instead:
20905         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20906         to get in the way of a non-GCC compiler that supports __attribute__.
20907         (_GL_ATTRIBUTE_RETURN): New macro.
20908         (_Exit): Use it instead of __attribute__.
20909
20910 2011-02-12  Bruno Haible  <bruno@clisp.org>
20911
20912         quotearg test: Avoid test failure on mingw.
20913         * tests/test-quotearg.sh: Convert the locale identifier from native
20914         Windows syntax to Unix syntax.
20915
20916 2011-02-12  Bruno Haible  <bruno@clisp.org>
20917
20918         setlocale: Prefer gnulib's override over libintl's override.
20919         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20920         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20921         GNULIB_defined_setlocale is set.
20922
20923 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20924
20925         stdlib: support non-GCC __attribute__
20926
20927         Fix a serious and tricky problem encountered when attempting to
20928         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20929         5.5, but it crashed due to memory corruption on Solaris 10 with
20930         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20931         bits that are otherwise zero.  This tagging is optional inside
20932         Emacs but is preferred and is used when __attribute__ ((__aligned
20933         (8))) works, as it does with both recent-enough GCC and with Sun C
20934         5.11.  However, Sun C 5.11 is not GCC and does not #define
20935         __GNUC__ and __GNUC_MINOR__.
20936
20937         When I added the getloadavg module to Emacs, it brought in
20938         stdlib.in.h, which contained this fragment:
20939
20940            #ifndef __attribute__
20941            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20942            #  define __attribute__(Spec)   /* empty */
20943            # endif
20944            #endif
20945
20946         When files that include <stdlib.h> were compiled with Sun C 5.11,
20947         the above code disabled __attribute__ ((__aligned (8))), which
20948         caused variables to not be properly aligned, which eventually led
20949         to the pointer corruption mentioned above.  (This was a bit hard
20950         to diagnose, unfortunately.)
20951
20952         Several "#define __attribute__(X) /* empty */" code snippets need
20953         to be eradicated from Gnulib to work with non-GCC compilers that
20954         support __attribute__.  The Autoconf way to do this is to test for
20955         each kind of attribute that we want support for, and selectively
20956         enable that in source code.
20957
20958         Fix this problem just for stdlib.h, by adding a test for the
20959         __noreturn__ attribute, and change stdlib.in.h to use that test
20960         when needed.  This technique can be easily generalized to the
20961         other *.in.h files and attributes, and a similar technique can be
20962         used for *.h and *.c files.  This patch is enough to solve the
20963         problem for Emacs + getloadavg, and I thought I'd publish it for
20964         feedback before undertaking further, similar fixes in other
20965         modules.
20966
20967         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20968         because it's not needed for stdlib.h.  It merely substitutes the
20969         value directly into stdlib.h.  We may well need to #define it, or
20970         similar symbols, for other modules, but it's nice to also have an
20971         option to not #define it for applications like Emacs that do not
20972         need it.
20973
20974         * lib/stdlib.in.h (__attribute__): Do not #define.
20975         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20976         be defined only if the _Exit module is also used.
20977         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20979         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20980         platforms.
20981         * modules/_Exit (Files): Add m4/attribute.m4.
20982         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20983         * m4/attribute.m4: New file.
20984
20985 2011-02-12  Bruno Haible  <bruno@clisp.org>
20986
20987         wcsrtombs: Work around bug on native Windows.
20988         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20989         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20990         instead of len.
20991         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20992
20993 2011-02-12  Bruno Haible  <bruno@clisp.org>
20994
20995         mbsrtowcs: Work around bug on native Windows.
20996         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20997         against mingw bug.
20998         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20999
21000 2011-02-12  Bruno Haible  <bruno@clisp.org>
21001
21002         Avoid setlocale bugs in tests.
21003         * modules/btowc (Dependencies): Add setlocale.
21004         * modules/c-strcase (Dependencies): Likewise.
21005         * modules/mbmemcasecmp (Dependencies): Likewise.
21006         * modules/mbmemcasecoll (Dependencies): Likewise.
21007         * modules/mbrtowc (Dependencies): Likewise.
21008         * modules/mbscasecmp (Dependencies): Likewise.
21009         * modules/mbscasestr (Dependencies): Likewise.
21010         * modules/mbschr (Dependencies): Likewise.
21011         * modules/mbscspn (Dependencies): Likewise.
21012         * modules/mbsinit (Dependencies): Likewise.
21013         * modules/mbsncasecmp (Dependencies): Likewise.
21014         * modules/mbsnrtowcs (Dependencies): Likewise.
21015         * modules/mbspbrk (Dependencies): Likewise.
21016         * modules/mbspcasecmp (Dependencies): Likewise.
21017         * modules/mbsrchr (Dependencies): Likewise.
21018         * modules/mbsrtowcs (Dependencies): Likewise.
21019         * modules/mbsspn (Dependencies): Likewise.
21020         * modules/mbsstr (Dependencies): Likewise.
21021         * modules/nl_langinfo (Dependencies): Likewise.
21022         * modules/quotearg (Dependencies): Likewise.
21023         * modules/unicase/locale-language (Dependencies): Likewise.
21024         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21025         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21026         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21027         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21028         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21029         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21030         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21031         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21032         * modules/vasnprintf-posix (Dependencies): Likewise.
21033         * modules/wcrtomb (Dependencies): Likewise.
21034         * modules/wcsnrtombs (Dependencies): Likewise.
21035         * modules/wcsrtombs (Dependencies): Likewise.
21036
21037 2011-02-12  Bruno Haible  <bruno@clisp.org>
21038
21039         setlocale: Workaround native Windows bug.
21040         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21041         succeeds but sets LC_CTYPE to "C", report a failure.
21042         * tests/test-setlocale2.sh: New file.
21043         * tests/test-setlocale2.c: New file.
21044         * modules/setlocale-tests (Files): Add the new files.
21045         (Makefile.am): Enable test-setlocale2.sh test.
21046         * doc/posix-functions/setlocale.texi: Mention workaround.
21047
21048 2011-02-11  Bruno Haible  <bruno@clisp.org>
21049
21050         Tests for module 'setlocale'.
21051         * modules/setlocale-tests: New file.
21052         * tests/test-setlocale1.sh: New file.
21053         * tests/test-setlocale1.c: New file.
21054
21055         New module 'setlocale'.
21056         * lib/locale.in.h (setlocale): New declaration.
21057         * lib/setlocale.c: New file, based on
21058         gettext/gettext-runtime/intl/setlocale.c.
21059         * m4/setlocale.m4: New file.
21060         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21061         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21062         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21063         REPLACE_SETLOCALE.
21064         * modules/setlocale: New file.
21065         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21066         * doc/posix-functions/setlocale.texi: Mention the new module.
21067
21068 2011-02-11  Bruno Haible  <bruno@clisp.org>
21069
21070         Prepare for locale dependent tests on mingw.
21071         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21072         because it has the wrong locale encoding.
21073         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21074         French_France.1252 instead of "fr".
21075         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21076         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21077         because it has the wrong locale encoding.
21078         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21079         native Windows, try Turkish_Turkey.65001.
21080         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21081         Chinese_China.54936.
21082
21083         Prepare for locale dependent tests on mingw.
21084         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21085         differently.
21086         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21087         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21088         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21089         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21090
21091 2011-02-11  Eric Blake  <eblake@redhat.com>
21092
21093         strptime: avoid compiler warnings
21094         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21095         compiler warnings about dead code.
21096         Reported by Daniel P. Berrange.
21097
21098 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21099
21100         doc: update users.txt
21101         * users.txt: Add rcs.
21102
21103 2011-02-10  John W. Eaton  <jwe@gnu.org>
21104
21105         doc: update users.txt
21106         * users.txt: Add octave.
21107
21108 2011-02-10  Jim Meyering  <meyering@redhat.com>
21109
21110         doc: update users.txt
21111         * users.txt: Add iwhd.
21112
21113 2011-02-09  Bruno Haible  <bruno@clisp.org>
21114
21115         gnulib-tool: Make copyright notice adjustment more robust.
21116         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21117         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21118         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21119         License".
21120         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21121
21122 2011-02-06  Bruno Haible  <bruno@clisp.org>
21123
21124         New module 'towctrans'.
21125         * modules/towctrans: New file.
21126         * lib/wctype.in.h (towctrans): New declaration.
21127         * lib/towctrans.c: New file.
21128         * lib/towctrans-impl.h: New file.
21129         * m4/towctrans.m4: New file.
21130         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21131         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21132         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21133         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21134         * doc/posix-functions/towctrans.texi: Mention the new module.
21135
21136 2011-02-06  Bruno Haible  <bruno@clisp.org>
21137
21138         New module 'wctrans'.
21139         * modules/wctrans: New file.
21140         * lib/wctype.in.h (wctrans): New declaration.
21141         * lib/wctrans.c: New file.
21142         * lib/wctrans-impl.h: New file.
21143         * m4/wctrans.m4: New file.
21144         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21145         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21146         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21147         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21148         * doc/posix-functions/wctrans.texi: Mention the new module.
21149
21150 2011-02-06  Bruno Haible  <bruno@clisp.org>
21151
21152         New module 'iswctype'.
21153         * modules/iswctype: New file.
21154         * lib/wctype.in.h (iswctype): New declaration.
21155         * lib/iswctype.c: New file.
21156         * lib/iswctype-impl.h: New file.
21157         * m4/iswctype.m4: New file.
21158         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21159         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21160         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21161         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21162         * doc/posix-functions/iswctype.texi: Mention the new module and the
21163         HP-UX 11.00 problem.
21164
21165 2011-02-06  Bruno Haible  <bruno@clisp.org>
21166
21167         New module 'wctype'.
21168         * modules/wctype: Change to represent the wctype() substitute.
21169         * lib/wctype.in.h (wctype): New declaration.
21170         * lib/wctype.c: New file.
21171         * lib/wctype-impl.h: New file.
21172         * m4/wctype.m4: New file.
21173         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21174         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21175         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21176         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21177         * doc/posix-functions/wctype.texi: Mention the new module and the
21178         HP-UX 11.00 problem.
21179
21180 2011-02-06  Bruno Haible  <bruno@clisp.org>
21181
21182         wctype-h: Ensure wctype_t and wctrans_t are defined.
21183         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21184         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21185         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21186         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21187         HAVE_WCTRANS_T.
21188         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21189
21190 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21191
21192         flock: fix license typo
21193
21194         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21195         omitted.
21196
21197 2011-02-08  Bruno Haible  <bruno@clisp.org>
21198
21199         Split large sed scripts, for HP-UX sed.
21200         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21201         to avoid HP-UX limit of 99 commands, in the near future.
21202         * modules/stdlib (Makefile.am): Likewise.
21203         * modules/unistd (Makefile.am): Likewise.
21204         * modules/wchar (Makefile.am): Likewise.
21205         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21206         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21207         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21208
21209 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21210             Bruno Haible  <bruno@clisp.org>
21211
21212         stdlib: improve random_r modularization
21213         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21214         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21215         you also need the random_r module to get this material right.
21216         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21217         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21218         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21219
21220 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21221
21222         stdlib: don't depend on stdint
21223         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21224         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21225         be independent of whether stdint.h is needed.
21226         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21227         here, instead of ...
21228         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21229         struct random_data should be using the random_r module, not just
21230         the stdlib module (which wouldn't make sense: what package needs
21231         just struct random_data without also needing random_r?).
21232         * modules/stdlib (Depends-on): Remove stdint.
21233
21234         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21235         See the thread rooted at
21236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21237         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21238         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21239         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21240         __VMS)); previously it was always included (via fcntl--.h).
21241         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21242         hand; this is good enough for load averages.  Also, do not use
21243         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21244         flags directly if available and don't bother otherwise.  (Packages
21245         that need the extra reliability should use the modules that define
21246         these flags on older platforms that lack them.)
21247         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21248         fcntl-safer.
21249
21250 2011-02-08  Jim Meyering  <meyering@redhat.com>
21251
21252         di-set.h, ino-map.h: add multiple-inclusion guard
21253         Technically, the guard is required only for ino-map.h, due to its
21254         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21255         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21256         * lib/ino-map.h: Likewise.
21257
21258 2011-02-06  Bruno Haible  <bruno@clisp.org>
21259
21260         iswblank: Ensure declaration on glibc systems.
21261         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21262         * modules/iswblank (Dependencies): Add 'extensions'.
21263         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21264
21265 2011-02-06  Bruno Haible  <bruno@clisp.org>
21266
21267         New module 'iswblank'.
21268         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21269         * modules/iswblank: New file.
21270         * modules/wctype-h (Files): Remove lib/iswblank.c.
21271         (Makefile.am): Substitute GNULIB_ISWBLANK.
21272         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21273         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21274         (gl_WCTYPE_H_DEFAULTS): New macro.
21275         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21276         * modules/iswblank-tests: New file.
21277         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21278         * tests/test-wctype-h.c (main): Remove iswblank tests.
21279         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21280         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21281         of 'wctype-h'.
21282         * NEWS: Mention the change.
21283         * modules/mbchar (Depends-on): Add iswblank.
21284
21285 2011-02-08  Bruno Haible  <bruno@clisp.org>
21286
21287         di-set tests: Refactor.
21288         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21289         unnecessary includes.
21290         (ASSERT): Remove macro.
21291         (main): Make C90 compliant by avoiding variable declaration after
21292         statement.
21293         * modules/di-set-tests (Files): Add tests/macros.h.
21294
21295 2011-02-08  Bruno Haible  <bruno@clisp.org>
21296
21297         ino-map tests: Refactor.
21298         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21299         unnecessary includes.
21300         (ASSERT): Remove macro.
21301         (main): Make C90 compliant by avoiding variable declaration after
21302         statement.
21303         * modules/ino-map-tests (Files): Add tests/macros.h.
21304
21305 2011-02-08  Jim Meyering  <meyering@redhat.com>
21306
21307         di-set: add "const" to a cast
21308         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21309         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21310
21311 2011-02-06  Bruno Haible  <bruno@clisp.org>
21312
21313         Rename module 'wctype' to 'wctype-h'.
21314         * modules/wctype-h: Renamed from modules/wctype.
21315         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21316         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21317         (Files, Depends-on, Makefile.am): Update.
21318         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21319         (Files, Makefile.am): Update.
21320         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21321         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21322         * doc/posix-headers/wctype.texi: Update.
21323         * doc/posix-functions/iswalnum.texi: Update.
21324         * doc/posix-functions/iswalpha.texi: Update.
21325         * doc/posix-functions/iswblank.texi: Update.
21326         * doc/posix-functions/iswcntrl.texi: Update.
21327         * doc/posix-functions/iswdigit.texi: Update.
21328         * doc/posix-functions/iswgraph.texi: Update.
21329         * doc/posix-functions/iswlower.texi: Update.
21330         * doc/posix-functions/iswprint.texi: Update.
21331         * doc/posix-functions/iswpunct.texi: Update.
21332         * doc/posix-functions/iswspace.texi: Update.
21333         * doc/posix-functions/iswupper.texi: Update.
21334         * doc/posix-functions/iswxdigit.texi: Update.
21335         * doc/posix-functions/towlower.texi: Update.
21336         * doc/posix-functions/towupper.texi: Update.
21337         * NEWS: Mention the change.
21338         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21339         * modules/mbchar (Dependencies): Likewise.
21340         * modules/mbswidth (Dependencies): Likewise.
21341         * modules/quotearg (Dependencies): Likewise.
21342         * modules/regex (Dependencies): Likewise.
21343         * modules/wcscasecmp (Dependencies): Likewise.
21344         * modules/wcsncasecmp (Dependencies): Likewise.
21345         * modules/wcwidth (Dependencies): Likewise.
21346
21347 2011-02-06  Bruno Haible  <bruno@clisp.org>
21348
21349         New module 'wcswidth'.
21350         * modules/wcswidth: New file.
21351         * lib/wchar.in.h (wcswidth): New declaration.
21352         * lib/wcswidth.c: New file.
21353         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21354         * m4/wcswidth.m4: New file.
21355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21357         REPLACE_WCSWIDTH.
21358         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21359         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21360         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21361         * doc/posix-functions/wcswidth.texi: Mention the new module.
21362
21363 2011-02-06  Bruno Haible  <bruno@clisp.org>
21364
21365         New module 'wcstok'.
21366         * modules/wcstok: New file.
21367         * lib/wchar.in.h (wcstok): New declaration.
21368         * lib/wcstok.c: New file.
21369         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21370         * m4/wcstok.m4: New file.
21371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21374         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21375         * doc/posix-functions/wcstok.texi: Mention the new module.
21376
21377 2011-02-06  Bruno Haible  <bruno@clisp.org>
21378
21379         New module 'wcsstr'.
21380         * modules/wcsstr: New file.
21381         * lib/wchar.in.h (wcsstr): New declaration.
21382         * lib/wcsstr.c: New file.
21383         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21384         * m4/wcsstr.m4: New file.
21385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21388         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21389         * doc/posix-functions/wcsstr.texi: Mention the new module.
21390
21391 2011-02-06  Bruno Haible  <bruno@clisp.org>
21392
21393         New module 'wcspbrk'.
21394         * modules/wcspbrk: New file.
21395         * lib/wchar.in.h (wcspbrk): New declaration.
21396         * lib/wcspbrk.c: New file.
21397         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21398         * m4/wcspbrk.m4: New file.
21399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21402         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21403         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21404
21405 2011-02-06  Bruno Haible  <bruno@clisp.org>
21406
21407         New module 'wcsspn'.
21408         * modules/wcsspn: New file.
21409         * lib/wchar.in.h (wcsspn): New declaration.
21410         * lib/wcsspn.c: New file.
21411         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21412         * m4/wcsspn.m4: New file.
21413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21416         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21417         * doc/posix-functions/wcsspn.texi: Mention the new module.
21418
21419 2011-02-06  Bruno Haible  <bruno@clisp.org>
21420
21421         New module 'wcscspn'.
21422         * modules/wcscspn: New file.
21423         * lib/wchar.in.h (wcscspn): New declaration.
21424         * lib/wcscspn.c: New file.
21425         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21426         * m4/wcscspn.m4: New file.
21427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21430         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21431         * doc/posix-functions/wcscspn.texi: Mention the new module.
21432
21433 2011-02-06  Bruno Haible  <bruno@clisp.org>
21434
21435         New module 'wcsrchr'.
21436         * modules/wcsrchr: New file.
21437         * lib/wchar.in.h (wcsrchr): New declaration.
21438         * lib/wcsrchr.c: New file.
21439         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21440         * m4/wcsrchr.m4: New file.
21441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21444         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21445         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21446
21447 2011-02-06  Bruno Haible  <bruno@clisp.org>
21448
21449         New module 'wcschr'.
21450         * modules/wcschr: New file.
21451         * lib/wchar.in.h (wcschr): New declaration.
21452         * lib/wcschr.c: New file.
21453         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21454         * m4/wcschr.m4: New file.
21455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21458         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21459         * doc/posix-functions/wcschr.texi: Mention the new module.
21460
21461 2011-02-06  Bruno Haible  <bruno@clisp.org>
21462
21463         New module 'wcsdup'.
21464         * modules/wcsdup: New file.
21465         * lib/wchar.in.h (wcsdup): New declaration.
21466         * lib/wcsdup.c: New file.
21467         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21468         * m4/wcsdup.m4: New file.
21469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21472         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21473         * doc/posix-functions/wcsdup.texi: Mention the new module.
21474
21475 2011-02-06  Bruno Haible  <bruno@clisp.org>
21476
21477         New module 'wcsxfrm'.
21478         * modules/wcsxfrm: New file.
21479         * lib/wchar.in.h (wcsxfrm): New declaration.
21480         * lib/wcsxfrm.c: New file.
21481         * lib/wcsxfrm-impl.h: New file.
21482         * m4/wcsxfrm.m4: New file.
21483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21486         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21487         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21488
21489 2011-02-06  Bruno Haible  <bruno@clisp.org>
21490
21491         New module 'wcscoll'.
21492         * modules/wcscoll: New file.
21493         * lib/wchar.in.h (wcscoll): New declaration.
21494         * lib/wcscoll.c: New file.
21495         * lib/wcscoll-impl.h: New file.
21496         * m4/wcscoll.m4: New file.
21497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21500         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21501         * doc/posix-functions/wcscoll.texi: Mention the new module.
21502
21503 2011-02-06  Bruno Haible  <bruno@clisp.org>
21504
21505         New module 'wcsncasecmp'.
21506         * modules/wcsncasecmp: New file.
21507         * lib/wchar.in.h (wcsncasecmp): New declaration.
21508         * lib/wcsncasecmp.c: New file.
21509         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21510         * m4/wcsncasecmp.m4: New file.
21511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21514         HAVE_WCSNCASECMP.
21515         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21516         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21517
21518 2011-02-06  Bruno Haible  <bruno@clisp.org>
21519
21520         New module 'wcscasecmp'.
21521         * modules/wcscasecmp: New file.
21522         * lib/wchar.in.h (wcscasecmp): New declaration.
21523         * lib/wcscasecmp.c: New file.
21524         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21525         * m4/wcscasecmp.m4: New file.
21526         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21527         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21529         HAVE_WCSCASECMP.
21530         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21531         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21532
21533 2011-02-05  Bruno Haible  <bruno@clisp.org>
21534
21535         New module 'wcsncmp'.
21536         * modules/wcsncmp: New file.
21537         * lib/wchar.in.h (wcsncmp): New declaration.
21538         * lib/wcsncmp.c: New file.
21539         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21540         * m4/wcsncmp.m4: New file.
21541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21544         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21545         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21546
21547 2011-02-05  Bruno Haible  <bruno@clisp.org>
21548
21549         New module 'wcscmp'.
21550         * modules/wcscmp: New file.
21551         * lib/wchar.in.h (wcscmp): New declaration.
21552         * lib/wcscmp.c: New file.
21553         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21554         * m4/wcscmp.m4: New file.
21555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21558         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21559         * doc/posix-functions/wcscmp.texi: Mention the new module.
21560
21561 2011-02-05  Bruno Haible  <bruno@clisp.org>
21562
21563         New module 'wcsncat'.
21564         * modules/wcsncat: New file.
21565         * lib/wchar.in.h (wcsncat): New declaration.
21566         * lib/wcsncat.c: New file.
21567         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21568         * m4/wcsncat.m4: New file.
21569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21572         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21573         * doc/posix-functions/wcsncat.texi: Mention the new module.
21574
21575 2011-02-05  Bruno Haible  <bruno@clisp.org>
21576
21577         New module 'wcscat'.
21578         * modules/wcscat: New file.
21579         * lib/wchar.in.h (wcscat): New declaration.
21580         * lib/wcscat.c: New file.
21581         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21582         * m4/wcscat.m4: New file.
21583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21586         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21587         * doc/posix-functions/wcscat.texi: Mention the new module.
21588
21589 2011-02-05  Bruno Haible  <bruno@clisp.org>
21590
21591         New module 'wcpncpy'.
21592         * modules/wcpncpy: New file.
21593         * lib/wchar.in.h (wcpncpy): New declaration.
21594         * lib/wcpncpy.c: New file.
21595         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21596         * m4/wcpncpy.m4: New file.
21597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21599         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21600         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21601         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21602
21603 2011-02-05  Bruno Haible  <bruno@clisp.org>
21604
21605         New module 'wcsncpy'.
21606         * modules/wcsncpy: New file.
21607         * lib/wchar.in.h (wcsncpy): New declaration.
21608         * lib/wcsncpy.c: New file.
21609         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21610         * m4/wcsncpy.m4: New file.
21611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21614         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21615         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21616
21617 2011-02-05  Bruno Haible  <bruno@clisp.org>
21618
21619         New module 'wcpcpy'.
21620         * modules/wcpcpy: New file.
21621         * lib/wchar.in.h (wcpcpy): New declaration.
21622         * lib/wcpcpy.c: New file.
21623         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21624         * m4/wcpcpy.m4: New file.
21625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21627         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21628         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21629         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21630
21631 2011-02-05  Bruno Haible  <bruno@clisp.org>
21632
21633         New module 'wcscpy'.
21634         * modules/wcscpy: New file.
21635         * lib/wchar.in.h (wcscpy): New declaration.
21636         * lib/wcscpy.c: New file.
21637         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21638         * m4/wcscpy.m4: New file.
21639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21642         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21643         * doc/posix-functions/wcscpy.texi: Mention the new module.
21644
21645 2011-02-05  Bruno Haible  <bruno@clisp.org>
21646
21647         New module 'wcsnlen'.
21648         * modules/wcsnlen: New file.
21649         * lib/wchar.in.h (wcsnlen): New declaration.
21650         * lib/wcsnlen.c: New file.
21651         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21652         * m4/wcsnlen.m4: New file.
21653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21656         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21657         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21658
21659 2011-02-05  Bruno Haible  <bruno@clisp.org>
21660
21661         New module 'wcslen'.
21662         * modules/wcslen: New file.
21663         * lib/wchar.in.h (wcslen): New declaration.
21664         * lib/wcslen.c: New file.
21665         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21666         * m4/wcslen.m4: New file.
21667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21670         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21671         * doc/posix-functions/wcslen.texi: Mention the new module.
21672
21673 2011-02-05  Bruno Haible  <bruno@clisp.org>
21674
21675         New module 'wmemset'.
21676         * modules/wmemset: New file.
21677         * lib/wchar.in.h (wmemset): New declaration.
21678         * lib/wmemset.c: New file.
21679         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21680         * m4/wmemset.m4: New file.
21681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21683         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21684         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21685         * doc/posix-functions/wmemset.texi: Mention the new module.
21686
21687 2011-02-05  Bruno Haible  <bruno@clisp.org>
21688
21689         New module 'wmemmove'.
21690         * modules/wmemmove: New file.
21691         * lib/wchar.in.h (wmemmove): New declaration.
21692         * lib/wmemmove.c: New file.
21693         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21694         * m4/wmemmove.m4: New file.
21695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21697         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21698         HAVE_WMEMMOVE.
21699         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21700         * doc/posix-functions/wmemmove.texi: Mention the new module.
21701
21702 2011-02-05  Bruno Haible  <bruno@clisp.org>
21703
21704         New module 'wmemcpy'.
21705         * modules/wmemcpy: New file.
21706         * lib/wchar.in.h (wmemcpy): New declaration.
21707         * lib/wmemcpy.c: New file.
21708         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21709         * m4/wmemcpy.m4: New file.
21710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21712         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21713         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21714         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21715
21716 2011-02-05  Bruno Haible  <bruno@clisp.org>
21717
21718         New module 'wmemcmp'.
21719         * modules/wmemcmp: New file.
21720         * lib/wchar.in.h (wmemcmp): New declaration.
21721         * lib/wmemcmp.c: New file.
21722         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21723         * m4/wmemcmp.m4: New file.
21724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21726         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21727         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21728         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21729
21730 2011-02-07  Jim Meyering  <meyering@redhat.com>
21731
21732         di-set, ino-map: new modules, from coreutils
21733         * lib/di-set.c: New file.
21734         * lib/di-set.h: Likewise.
21735         * lib/ino-map.c: Likewise.
21736         * lib/ino-map.h: Likewise.
21737         * modules/di-set: Likewise.
21738         * modules/di-set-tests: Likewise.
21739         * modules/ino-map: Likewise.
21740         * modules/ino-map-tests: Likewise.
21741         * tests/test-di-set.c: Likewise.
21742         * tests/test-ino-map.c: Likewise.
21743
21744 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21745
21746         getloadavg: merge minor changes from Emacs
21747
21748         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21749         (getloadavg): Use memset, not bzero.
21750
21751         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21752         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21753         clash (bug#86).
21754
21755 2010-11-14  Bruno Haible  <bruno@clisp.org>
21756
21757         Allow multiple gnulib generated replacements to coexist.
21758         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21759         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21760         * lib/langinfo.in.h (nl_item): Likewise.
21761         * lib/math.in.h (_NaN, NAN): Likewise.
21762         * lib/netdb.in.h (struct addrinfo): Likewise.
21763         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21764         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21765         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21766         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21767         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21768         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21769         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21770         pthread_mutexattr_init, pthread_mutexattr_settype,
21771         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21772         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21773         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21774         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21775         * lib/sched.in.h (struct sched_param): Likewise.
21776         * lib/se-selinux.in.h (security_class_t, security_context_t,
21777         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21778         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21779         lsetfilecon, fsetfilecon, security_check_context,
21780         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21781         Likewise.
21782         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21783         Likewise.
21784         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21785         _gl_function_taking_int_returning_void_t, union sigval,
21786         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21787         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21788         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21789         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21790         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21791         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21792         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21793         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21794         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21795         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21796         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21797         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21798         socklen_t, rpl_fd_isset): Likewise.
21799         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21800         * lib/sys_time.in.h (struct timeval): Likewise.
21801         * lib/sys_times.in.h (struct tms): Likewise.
21802         * lib/sys_utsname.in.h (struct utsname):
21803         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21804         * lib/unistd.in.h (getpagesize): Likewise.
21805         * lib/wchar.in.h (mbstate_t): Likewise.
21806         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21807         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21808         towlower, towupper): Likewise.
21809         Reported by Sam Steingold <sds@gnu.org>.
21810
21811 2011-02-05  Eric Blake  <eblake@redhat.com>
21812
21813         unsetenv: work around Haiku issues
21814         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21815         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21816
21817 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21818
21819         libposix: avoid calling error() within libposix
21820         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21821         is defined.
21822
21823 2011-02-05  Eric Blake  <eblake@redhat.com>
21824
21825         strerror_r-posix: port to cygwin
21826         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21827         implementation.
21828         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21829         * tests/test-strerror_r.c (main): Fix test.
21830         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21831         issue.
21832
21833 2011-02-05  Bruno Haible  <bruno@clisp.org>
21834
21835         New module 'wmemchr'.
21836         * modules/wmemchr: New file.
21837         * lib/wchar.in.h (wmemchr): New declaration.
21838         * lib/wmemchr.c: New file.
21839         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21840         * m4/wmemchr.m4: New file.
21841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21843         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21844         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21845         * doc/posix-functions/wmemchr.texi: Mention the new module.
21846
21847 2011-02-04  Eric Blake  <eblake@redhat.com>
21848
21849         fdopendir: detect FreeBSD bug
21850         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21851         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21852
21853 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21854
21855         stdbool: do not define HAVE_STDBOOL_H
21856         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21857         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21858         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21859         imported from the latest Autoconf git.  It was motivated by Emacs,
21860         which uses gnulib but does not need HAVE_STDBOOL_H.
21861
21862 2011-02-04  Bruno Haible  <bruno@clisp.org>
21863
21864         wcsnrtombs: Prepare for new module wwcsnrtombs.
21865         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21866         * lib/wcsnrtombs.c: Include it.
21867         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21868
21869         wcsrtombs: Prepare for new module wwcsrtombs.
21870         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21871         * lib/wcsrtombs.c: Include it.
21872         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21873
21874         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21875         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21876         * lib/mbsnrtowcs.c: Include it.
21877         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21878
21879         mbsrtowcs: Prepare for new module mbsrtowwcs.
21880         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21881         * lib/mbsrtowcs.c: Include it.
21882         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21883
21884 2011-02-04  Bruno Haible  <bruno@clisp.org>
21885
21886         vasnprintf: Reduce use of malloc for small format strings.
21887         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21888         (arguments): Add room for the first 7 arguments.
21889         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21890         (char_directives, u8_directives, u16_directives, u32_directives): Add
21891         room for the first 7 directives.
21892         * lib/printf-parse.c: Include <string.h>.
21893         (PRINTF_PARSE): Change memory handling code so that it uses the first
21894         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21895         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21896         Reported by Pádraig Brady <P@draigbrady.com>.
21897
21898 2011-01-31  Eric Blake  <eblake@redhat.com>
21899
21900         dup2: work around Haiku bug
21901         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21902         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21903         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21904         * tests/test-dup2.c (main): Enhance test.
21905
21906 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21907
21908         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21909         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21910         declared by eglibc 2.11.2.
21911         * lib/stdio.in.h: Likewise.
21912
21913 2011-01-31  Eric Blake  <eblake@redhat.com>
21914
21915         ignore-value: add missing test dependency
21916         * tests/test-ignore-value.c: Revert previous change; stdio.h
21917         provides off_t.
21918         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21919
21920 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21921
21922         mktime: clarify long_int width checking
21923         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21924         the top level, to make it clearer that the assumption about
21925         long_int width is being checked.  See
21926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21927
21928 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21929
21930         ignore-value: Fix self-test.
21931         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21932
21933 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21934
21935         TYPE_MAXIMUM: avoid theoretically undefined behavior
21936         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21937         negative number, which the C Standard says has undefined behavior.
21938         In practice this is not a problem, but might as well do it by the book.
21939         Reported by Rich Felker and Eric Blake; see
21940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21941         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21942         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21944         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21945         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21946         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21947
21948         mktime: #undef mktime before #defining it
21949         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21950
21951         mktime: systematically normalize tm_isdst comparisons
21952         * lib/mktime.c (isdst_differ): New function.
21953         (__mktime_internal): Use it systematically for all isdst comparisons.
21954         This completes the fix for libc BZ #6723, and removes the need for
21955         normalizing tm_isdst.  See
21956         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21957         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21958
21959         mktime: fix some integer overflow issues and sidestep the rest
21960
21961         This was prompted by a bug report by Benjamin Lindner for MinGW
21962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21963         His bug is due to signed integer overflow (0 - INT_MIN), and I
21964         I scanned through mktime.c looking for other integer overflow
21965         problems, fixing all the bugs I found.
21966
21967         Although the C Standard says the resulting code is still not safe
21968         in the presence of integer overflow, in practice it should be good
21969         enough for all real-world two's-complement implementations, except
21970         for debugging environments that deliberately trap on integer
21971         overflow (e.g., gcc -ftrapv).
21972
21973         * lib/mktime.c (WRAPV): New macro.
21974         (SHR): Also check that long_int and time_t shift right in the
21975         usual way, before using the fast-but-unportable method.
21976         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21977         used.  The code already assumed two's complement, so there's
21978         no need to test for alternatives.  All uses removed.
21979         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21980         the C standard.  Problem reported by Rich Felker in
21981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21982         (twos_complement_arithmetic): Also check long_int and time_t.
21983         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21984         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21985         (__mktime_internal): Avoid integer overflow with unary subtraction
21986         in two instances where -1 - X is an adequate replacement for -X,
21987         since the calculations are approximate.
21988
21989 2011-01-29  Eric Blake  <eblake@redhat.com>
21990
21991         mktime: avoid infinite loop
21992         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21993         type; behavior is still undefined but portable to all known targets.
21994         Reported by Rich Felker.
21995
21996 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21997
21998         rename, unlink, same-inode: Relicense.
21999         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22000         * modules/unlink (License): Likewise.
22001         * modules/same-inode (License): Likewise.
22002
22003 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22004
22005         mktime: avoid problems on NetBSD 5 / i386
22006         * lib/mktime.c (long_int): New type.  This works around a problem
22007         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22008         but time_t is 64 bits, and where I expect the existing code is
22009         wrong in some cases.
22010         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22011         (ydhms_diff): Bring back the compile-time check for wide-enough
22012         year and yday.
22013
22014         mktime: fix misspelling in comment
22015         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22016         This merges all recent glibc changes of importance.
22017
22018 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22019
22020         move-if-change: cope with concurrent mv of identical file.
22021         * build-aux/move-if-change (CMPPROG): Accept environment
22022         variable as an override for `cmp'.
22023         (usage): Document CMPPROG.
22024         Adjust comparison to drop stdout.  Cope with failure of mv if
22025         the target file exists and is identical to the source, for
22026         parallel builds.
22027         Report from H.J. Lu against binutils in PR binutils/12283.
22028
22029 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22030
22031         * users.txt: Mention sharutils.
22032
22033 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22034
22035         * users.txt: Mention OATH Toolkit.
22036
22037 2011-01-27  Bruno Haible  <bruno@clisp.org>
22038
22039         Prepare for supporting FreeBSD 10.
22040         * build-aux/config.libpath: Remove handling of freebsd1*.
22041
22042 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22043
22044         Prepare for supporting FreeBSD 10.
22045         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22046         match FreeBSD 10.0.
22047
22048 2011-01-27  Bruno Haible  <bruno@clisp.org>
22049
22050         vma-iter, get-rusage-as: Add OpenBSD support.
22051         * modules/vma-iter (configure.ac): Test for mquery.
22052         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22053         * lib/vma-iter.c: Include <sys/mman.h>.
22054         (vma_iterate): Add an implementation based on mquery().
22055         * lib/resource-ext.h (get_rusage_as): Update comments.
22056         * lib/get-rusage-as.c: Likewise.
22057         * lib/get-rusage-data.c: Likewise.
22058
22059 2011-01-26  Karl Berry  <karl@gnu.org>
22060
22061         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22062         variables to make it easier to override the makeinfo program used.
22063
22064 2011-01-26  Eric Blake  <eblake@redhat.com>
22065
22066         fcntl: work around Haiku F_DUPFD bugs
22067         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22068         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22069         cloexec bit on duplication.
22070         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22071
22072 2011-01-26  Bruno Haible  <bruno@clisp.org>
22073
22074         Enable memory leak tests on AIX.
22075         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22076         * tests/test-fprintf-posix3.c (main): Likewise.
22077
22078 2011-01-26  Bruno Haible  <bruno@clisp.org>
22079
22080         Tests for module 'get-rusage-data'.
22081         * modules/get-rusage-data-tests: New file.
22082         * tests/test-get-rusage-data.c: New file.
22083
22084         New module 'get-rusage-data'.
22085         * lib/resource-ext.h (get_rusage_data): New declaration.
22086         * lib/get-rusage-data.c: New file.
22087         * modules/get-rusage-data: New file.
22088
22089 2011-01-25  Bruno Haible  <bruno@clisp.org>
22090
22091         get-rusage-as: Allow for easier testing.
22092         * lib/resource-ext.h (get_rusage_as): Add comment.
22093         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22094         (main): New function for interactive testing.
22095
22096 2011-01-25  Bruno Haible  <bruno@clisp.org>
22097
22098         vma-iter: Treat Haiku like BeOS.
22099         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22100         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22101
22102 2011-01-25  Eric Blake  <eblake@redhat.com>
22103
22104         c-stack: fix regression on cygwin when libsigsegv is present
22105         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22106
22107 2011-01-24  Bruno Haible  <bruno@clisp.org>
22108
22109         vma-iter: Avoid empty intervals.
22110         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22111         on an empty interval.
22112
22113 2011-01-24  Jim Meyering  <meyering@redhat.com>
22114
22115         u64: remove unnecessary #include
22116         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22117
22118 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22119
22120         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22121         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22122
22123 2011-01-23  Bruno Haible  <bruno@clisp.org>
22124
22125         New module 'vma-iter'.
22126         * lib/vma-iter.h: New file.
22127         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22128         * modules/vma-iter: New file.
22129         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22130         for get_rusage_as_via_iterator.
22131         (vma_iterate_callback): New function.
22132         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22133         * modules/get-rusage-as (Depends-on): Add vma-iter.
22134
22135 2011-01-23  Bruno Haible  <bruno@clisp.org>
22136
22137         uninorm: Tweak includes.
22138         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22139         Reported by Jim Meyering.
22140
22141 2011-01-23  Bruno Haible  <bruno@clisp.org>
22142
22143         get-rusage-as: Improve on NetBSD.
22144         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22145         /proc, like on FreeBSD.
22146
22147 2011-01-23  Jim Meyering  <meyering@redhat.com>
22148
22149         xreadlink.h: remove unnecessary #include
22150         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22151
22152         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22153         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22154
22155 2011-01-23  Bruno Haible  <bruno@clisp.org>
22156
22157         get-rusage-as: Fix bug.
22158         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22159         original limit when aborting the first loop.
22160
22161 2011-01-23  Bruno Haible  <bruno@clisp.org>
22162
22163         wctype: Ensure valid C syntax.
22164         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22165         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22166
22167 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22168
22169         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22171         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22172         as they are needed only for configure's test case.
22173         This removes two unnecessary symbols from config.h.
22174
22175         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22176         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22178         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22179         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22180         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22181         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22182         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22183         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22184         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22185         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22187         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22188         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22189         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22190         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22191         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22192         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22193
22194 2011-01-21  Eric Blake  <eblake@redhat.com>
22195
22196         maintainer-makefile: work with older git for submodule check
22197         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22198         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22199         Reported by Matthias Bolte.
22200
22201         bootstrap: minor portability fixes
22202         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22203         (usage): Omit leading capital and trailing . on help phrases, per
22204         GNU Coding Standards.
22205         (check_versions, top level): Prefix messages with script name.
22206
22207 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22208
22209         bootstrap: support --no-git option
22210         * build-aux/bootstrap: Add --no-git option, to be used when
22211         --gnulib-srcdir points to the exact desired checkout.
22212
22213 2011-01-21  Eric Blake  <eblake@redhat.com>
22214
22215         strerror_r-posix: work with glibc 2.13
22216         * lib/strerror_r.c (strerror_r): Fix return type.
22217
22218 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22219             Bruno Haible  <bruno@clisp.org>
22220
22221         uN_strstr: New unit tests.
22222         * modules/unistr/u8-strstr-tests: New file.
22223         * modules/unistr/u16-strstr-tests: New file.
22224         * modules/unistr/u32-strstr-tests: New file.
22225         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22226         * tests/unistr/test-u8-strstr.c: New file.
22227         * tests/unistr/test-u16-strstr.c: New file.
22228         * tests/unistr/test-u32-strstr.c: New file.
22229
22230 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22231             Bruno Haible  <bruno@clisp.org>
22232
22233         Make uN_strstr functions O(n) worst-case.
22234         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22235         16-bit and 32-bit unit cases, use the unibyte algorithm from
22236         lib/mbsstr.c.
22237         * lib/unistr/u8-strstr.c: Include <string.h>.
22238         (UNIT_IS_UINT8_T): New macro.
22239         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22240         (U_STRLEN, U_STRNLEN): New macros.
22241         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22242         (U_STRLEN, U_STRNLEN): New macros.
22243         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22244         (configure.ac): Update required libunistring version.
22245         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22246         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22247         malloca.
22248         (configure.ac): Update required libunistring version.
22249         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22250         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22251         malloca.
22252         (configure.ac): Update required libunistring version.
22253
22254 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22255             Bruno Haible  <bruno@clisp.org>
22256
22257         Prepare for faster uN_strstr functions.
22258         * lib/str-kmp.h: Support definable UNITs.
22259         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22260         needle_len argument.
22261         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22262         * lib/mbscasestr.c (mbscasestr): Likewise.
22263
22264 2011-01-21  Pádraig Brady <P@draigBrady.com>
22265
22266         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22267         * tests/test-malloca.c (main): Unset the environment variable
22268         to greatly speed up the test.
22269         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22270         * modules/malloca-tests: Depend on unsetenv.
22271
22272 2011-01-21  Pádraig Brady <P@draigBrady.com>
22273
22274         ignore-value: remove stdint dependency
22275         * lib/ignore-value.h: Remove <stdint.h>
22276         * modules/ignore-value: Remove stdint dependency.
22277
22278 2011-01-21  Jim Meyering  <meyering@redhat.com>
22279
22280         maint.mk: adjust variable name to be consistent with other gl_ vars
22281         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22282         to be lower case.
22283
22284 2011-01-20  Jim Meyering  <meyering@redhat.com>
22285
22286         maint.mk: make "check" depend on public-submodule-commit by default
22287         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22288
22289 2011-01-20  Bruno Haible  <bruno@clisp.org>
22290
22291         mbfile, mbiter: Complete change from 2008-12-21.
22292         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22293         * m4/mbiter.m4 (gl_MBITER): Likewise.
22294
22295 2011-01-20  Jim Meyering  <meyering@redhat.com>
22296
22297         init.sh: insert space between each function name and "()"
22298         * tests/init.sh: Make it a little easier to see that a function's
22299         name is "warn_", and not "warn" when looking at the first part of
22300         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22301
22302 2011-01-20  Jim Meyering  <meyering@redhat.com>
22303
22304         mountlist: clean up code formatting
22305         * lib/mountlist.c (read_file_system_list): Split a long line,
22306         correct bracing style, use NULL in place of "(struct statfs *)0",
22307         don't parenthesize return value, add spaces around "=" and after
22308         ";-in-for-stmt".
22309
22310 2011-01-14  Markus Duft <mduft@gentoo.org>
22311
22312         mountlist: add support for Interix
22313         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22314         Apply statvfs to all entries of /dev/fs.
22315         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22316         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22317
22318 2011-01-20  Jim Meyering  <meyering@redhat.com>
22319
22320         maint.mk: improve the public-submodule-commit rule
22321         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22322         to suppress printing of its commands... unless V=1.
22323         Add git submodule's --quiet option to suppress printing of e.g.,
22324         "Entering gnulib" output.
22325         "cd" into $(srcdir) before running git submodule.
22326
22327 2011-01-20  Bruno Haible  <bruno@clisp.org>
22328
22329         include_next: Fix bug introduced on 2011-01-18.
22330         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22331         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22332         ac_cv_header_... variable if the second argument is not 'check'.
22333         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22334         gl_NEXT_HEADERS_INTERNAL.
22335
22336 2011-01-20  Bruno Haible  <bruno@clisp.org>
22337
22338         Allow the user to avoid the GNULIB_TEST_* macros.
22339         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22340         Suggested by Paul Eggert.
22341
22342 2011-01-14  Jim Meyering  <meyering@redhat.com>
22343
22344         bootstrap: avoid failure when there is no .gitmodules file
22345         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22346         has been assigned to, even when its value is the empty string.
22347         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22348         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22349         Reported by John W. Eaton <jwe@gnu.org>.
22350
22351 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22352
22353         assume <ctype.h>, ..., <time.h> exist
22354         For years gnulib has been assuming the existence of the headers
22355         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22356         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22357         them, since they don't appear to be needed.
22358         * README (Portability guidelines): Document this.
22359         * lib/flock.c: Assume <fcntl.h> exists.
22360         * lib/regex_internal.h: Assume <locale.h> exists.
22361         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22362         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22363         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22364         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22365         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22366         * m4/regex.m4 (gl_REGEX): Likewise.
22367         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22368         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22369         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22370         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22371         * tests/test-argp.c: Likewise.
22372         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22373
22374         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22375         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22376         AA_APPLE_UNIVERSAL_BUILD.  See
22377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22378         * NEWS: Document this.
22379
22380 2011-01-19  Eric Blake  <eblake@redhat.com>
22381
22382         c-stack: assume stack overflow if SA_SIGINFO unsupported
22383         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22384         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22385         sigaction will work.
22386         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22387         behavior match Linux.
22388         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22389
22390         stdbool-tests: accommodate Haiku
22391         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22392
22393         binary-io: fix O_TEXT on Haiku
22394         * modules/binary-io (Depends-on): Add fcntl-h.
22395         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22396         than blindly undefining O_TEXT.
22397         Reported by Scott McCreary.
22398
22399 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22400
22401         include_next: do not check for standard headers like stddef.h
22402
22403         I found this problem when modifying Emacs to use gnulib.
22404         I noticed that it added HAVE_STDDEF_H to config.h, even though
22405         gnulib always assumes <stddef.h> exists as per README and this
22406         symbol is unnecessary.
22407         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22408         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22409         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22410         faster for headers like stddef.h that are known to exist.
22411         (gl_CHECK_NEXT_HEADERS): Use it.
22412         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22413         rather than gl_CHECK_NEXT_HEADERS.
22414         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22415         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22416
22417 2011-01-18  Eric Blake  <eblake@redhat.com>
22418
22419         ansi-c++-opt: skip C++ dependency style if C++ is unused
22420         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22421         tests when we know C++ compilation is not desired.
22422         Reported by Scott McCreary.
22423
22424 2011-01-18  Bruno Haible  <bruno@clisp.org>
22425
22426         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22427         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22428         (main): Perform test also when getrlimit and setrlimit don't exist or
22429         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22430         limiting the address space size using setrlimit, compare the address
22431         space size before and after the the test.
22432         * tests/test-dprintf-posix2.c: Likewise.
22433         * tests/test-fprintf-posix3.sh: Update skip messages.
22434         * tests/test-dprintf-posix2.sh: Likewise.
22435         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22436         * modules/dprintf-posix-tests (Depends-on): Likewise.
22437         Reported by Bruce Korb <bkorb@gnu.org> and
22438         Gary V. Vaughan <gary@gnu.org>.
22439
22440 2011-01-18  Bruno Haible  <bruno@clisp.org>
22441
22442         get-rusage-as: Improvement for Cygwin.
22443         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22444         areas that are merely reserved.
22445
22446 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22447
22448         strftime: remove dependencies on multibyte modules
22449
22450         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22451         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22452         only if __osf__ is defined, and I suspect OSF doesn't need these
22453         other modules.  If my guess is wrong, we'll need to come up with a
22454         variant of strftime that doesn't need the multibyte modules.
22455
22456         I discovered this problem when attempting modify Emacs to use the
22457         strftime module.  With the previous gnulib, this caused Emacs to
22458         need 31 new files, ranging from lib/config.charset to
22459         m4/wint_t.m4.  This was overkill and I expect would be offputting
22460         to the Emacs maintainers.  After this change, only 6 new files are
22461         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22462         stdbool.m4, and tm_gmtoff.m4.
22463
22464         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22465         Suggested by Bruno Haible in
22466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22467         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22468         and do not check for wchar.h.
22469         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22470         (Depends-on): Remove mbrlen, mbsinit, wchar.
22471
22472 2011-01-18  Bruno Haible  <bruno@clisp.org>
22473
22474         Tests for module 'get-rusage-as'.
22475         * modules/get-rusage-as-tests: New file.
22476         * tests/test-get-rusage-as.c: New file.
22477
22478         New module 'get-rusage-as'.
22479         * modules/get-rusage-as: New file.
22480         * lib/resource-ext.h: New file.
22481         * lib/get-rusage-as.c: New file.
22482
22483 2011-01-17  Eric Blake  <eblake@redhat.com>
22484
22485         sigaction: relax license from LGPLv3+ to LGPLv2+
22486         * modules/sigaction (License): Relax to LGPLv2+.
22487
22488 2011-01-14  Bruno Haible  <bruno@clisp.org>
22489
22490         filemode: Make function declarations usable in C++ mode.
22491         * lib/filemode.h: Enclose function declarations in extern "C" block.
22492         Reported by John W. Eaton <jwe@gnu.org>.
22493
22494 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22495
22496         save-cwd: no longer include "xgetcwd.h"
22497         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22498         This avoids a compilation failure in projects that use save-cwd
22499         without also using the xgetcwd module.
22500
22501 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22502
22503         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22504         This is so that a program like Emacs, which needs only dtoastr,
22505         does not have to bother with distributing and compiling ftoastr
22506         and ldtoastr.
22507         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22508         * modules/dtoastr, modules/ldtoastr: New files.
22509         * modules/ftoastr: Now works just for 'float'.
22510         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22511         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22512         dtoastr.c, ldtoastr.c.
22513
22514 2011-01-11  Jim Meyering  <meyering@redhat.com>
22515
22516         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22517         There is no need to work around the lack of the fchdir function,
22518         since gnulib can now provide a replacement when required.
22519         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22520         * modules/save-cwd (Depends-on): Add fchdir.
22521
22522 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22523
22524         openat, save-cwd: avoid xmalloc
22525
22526         This removes a direct (but undocumented) dependency of openat on
22527         xalloc, along with an indirect dependency via save-cwd.  It also
22528         removes a dependency of save-cwd on xgetcwd, and thereby
22529         indirectly on xalloc.  This change causes the openat substitute
22530         to fall back on save_cwd when memory is tight, and for save_cwd to
22531         fail instead of dying when memory is tight, but that's good enough.
22532         Problem and initial idea for fix reported by Bastien Roucaries in
22533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22534
22535         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22536         xalloc.h (for xmalloc).
22537         (openat_proc_name): Use malloc, not xmalloc.
22538         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22539         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22540
22541         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22542         This avoids heap allocation for file names whose lengths are in
22543         the range 512..1023, with the upper bound increasing to at most
22544         4031 depending on the platform's PATH_MAX.  (We do not want
22545         pathmax.h here as it might supply a non-constant PATH_MAX.)
22546         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22547         Perhaps they should be moved to malloca.h?
22548         (OPENAT_BUFFER_SIZE): Use them.
22549
22550 2011-01-10  Bruno Haible  <bruno@clisp.org>
22551
22552         doc: Update users.txt.
22553         * users.txt: Add recutils.
22554
22555 2011-01-09  Karl Berry  <karl@gnu.org>
22556
22557         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22558
22559         * doc/configmake.texi: New file.
22560         * doc/gnulib.texi: Include it.
22561         * modules/configmake: Move documentation from here.
22562
22563 2011-01-09  Bruno Haible  <bruno@clisp.org>
22564
22565         Update to Unicode 6.0.0.
22566         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22567         (get_lbp): Update for Unicode 6.0.0.
22568         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22569         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22570         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22571         U+11001, U+11038..U+11046. Remove U+06DE.
22572         (uc_width): Fix bounds of planes.
22573         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22574         lib/uniwidth/width.c.
22575         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22576         trailing whitespace removed.
22577         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22578         without comments, but with the original copyright notice.
22579         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22580         * lib/unicase/ignorable.h: Likewise.
22581         * lib/unicase/tocasefold.h: Likewise.
22582         * lib/unicase/tolower.h: Likewise.
22583         * lib/unicase/totitle.h: Likewise.
22584         * lib/unicase/toupper.h: Likewise.
22585         * lib/unictype/bidi_of.h: Likewise.
22586         * lib/unictype/blocks.h: Likewise.
22587         * lib/unictype/categ_C.h: Likewise.
22588         * lib/unictype/categ_Cn.h: Likewise.
22589         * lib/unictype/categ_L.h: Likewise.
22590         * lib/unictype/categ_Ll.h: Likewise.
22591         * lib/unictype/categ_Lm.h: Likewise.
22592         * lib/unictype/categ_Lo.h: Likewise.
22593         * lib/unictype/categ_Lu.h: Likewise.
22594         * lib/unictype/categ_M.h: Likewise.
22595         * lib/unictype/categ_Mc.h: Likewise.
22596         * lib/unictype/categ_Me.h: Likewise.
22597         * lib/unictype/categ_Mn.h: Likewise.
22598         * lib/unictype/categ_N.h: Likewise.
22599         * lib/unictype/categ_Nd.h: Likewise.
22600         * lib/unictype/categ_No.h: Likewise.
22601         * lib/unictype/categ_P.h: Likewise.
22602         * lib/unictype/categ_Po.h: Likewise.
22603         * lib/unictype/categ_S.h: Likewise.
22604         * lib/unictype/categ_Sc.h: Likewise.
22605         * lib/unictype/categ_Sk.h: Likewise.
22606         * lib/unictype/categ_Sm.h: Likewise.
22607         * lib/unictype/categ_So.h: Likewise.
22608         * lib/unictype/categ_of.h: Likewise.
22609         * lib/unictype/combining.h: Likewise.
22610         * lib/unictype/ctype_alnum.h: Likewise.
22611         * lib/unictype/ctype_alpha.h: Likewise.
22612         * lib/unictype/ctype_graph.h: Likewise.
22613         * lib/unictype/ctype_lower.h: Likewise.
22614         * lib/unictype/ctype_print.h: Likewise.
22615         * lib/unictype/ctype_punct.h: Likewise.
22616         * lib/unictype/ctype_upper.h: Likewise.
22617         * lib/unictype/decdigit.h: Likewise.
22618         * lib/unictype/digit.h: Likewise.
22619         * lib/unictype/numeric.h: Likewise.
22620         * lib/unictype/pr_alphabetic.h: Likewise.
22621         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22622         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22623         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22624         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22625         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22626         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22627         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22628         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22629         * lib/unictype/pr_case_ignorable.h: Likewise.
22630         * lib/unictype/pr_cased.h: Likewise.
22631         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22632         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22633         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22634         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22635         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22636         * lib/unictype/pr_combining.h: Likewise.
22637         * lib/unictype/pr_composite.h: Likewise.
22638         * lib/unictype/pr_currency_symbol.h: Likewise.
22639         * lib/unictype/pr_decimal_digit.h: Likewise.
22640         * lib/unictype/pr_deprecated.h: Likewise.
22641         * lib/unictype/pr_format_control.h: Likewise.
22642         * lib/unictype/pr_grapheme_base.h: Likewise.
22643         * lib/unictype/pr_grapheme_extend.h: Likewise.
22644         * lib/unictype/pr_grapheme_link.h: Likewise.
22645         * lib/unictype/pr_id_continue.h: Likewise.
22646         * lib/unictype/pr_id_start.h: Likewise.
22647         * lib/unictype/pr_ideographic.h: Likewise.
22648         * lib/unictype/pr_lowercase.h: Likewise.
22649         * lib/unictype/pr_math.h: Likewise.
22650         * lib/unictype/pr_numeric.h: Likewise.
22651         * lib/unictype/pr_other_alphabetic.h: Likewise.
22652         * lib/unictype/pr_other_id_continue.h: Likewise.
22653         * lib/unictype/pr_other_math.h: Likewise.
22654         * lib/unictype/pr_punctuation.h: Likewise.
22655         * lib/unictype/pr_sentence_terminal.h: Likewise.
22656         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22657         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22658         * lib/unictype/pr_unified_ideograph.h: Likewise.
22659         * lib/unictype/pr_uppercase.h: Likewise.
22660         * lib/unictype/pr_xid_continue.h: Likewise.
22661         * lib/unictype/pr_xid_start.h: Likewise.
22662         * lib/unictype/scripts.h: Likewise.
22663         * lib/unictype/scripts_byname.gperf: Likewise.
22664         * lib/unictype/sy_java_ident.h: Likewise.
22665         * lib/unigbrk/gbrkprop.h: Likewise.
22666         * lib/unilbrk/lbrkprop1.h: Likewise.
22667         * lib/unilbrk/lbrkprop2.h: Likewise.
22668         * lib/uninorm/decomposition-table2.h: Likewise.
22669         * lib/uniwbrk/wbrkprop.h: Likewise.
22670         * tests/unicase/test-cased.c: Likewise.
22671         * tests/unicase/test-ignorable.c: Likewise.
22672         * tests/unicase/test-uc_tolower.c: Likewise.
22673         * tests/unicase/test-uc_totitle.c: Likewise.
22674         * tests/unicase/test-uc_toupper.c: Likewise.
22675         * tests/unictype/test-categ_C.c: Likewise.
22676         * tests/unictype/test-categ_Cn.c: Likewise.
22677         * tests/unictype/test-categ_L.c: Likewise.
22678         * tests/unictype/test-categ_Ll.c: Likewise.
22679         * tests/unictype/test-categ_Lm.c: Likewise.
22680         * tests/unictype/test-categ_Lo.c: Likewise.
22681         * tests/unictype/test-categ_Lu.c: Likewise.
22682         * tests/unictype/test-categ_M.c: Likewise.
22683         * tests/unictype/test-categ_Mc.c: Likewise.
22684         * tests/unictype/test-categ_Me.c: Likewise.
22685         * tests/unictype/test-categ_Mn.c: Likewise.
22686         * tests/unictype/test-categ_N.c: Likewise.
22687         * tests/unictype/test-categ_Nd.c: Likewise.
22688         * tests/unictype/test-categ_No.c: Likewise.
22689         * tests/unictype/test-categ_P.c: Likewise.
22690         * tests/unictype/test-categ_Po.c: Likewise.
22691         * tests/unictype/test-categ_S.c: Likewise.
22692         * tests/unictype/test-categ_Sc.c: Likewise.
22693         * tests/unictype/test-categ_Sk.c: Likewise.
22694         * tests/unictype/test-categ_Sm.c: Likewise.
22695         * tests/unictype/test-categ_So.c: Likewise.
22696         * tests/unictype/test-ctype_alnum.c: Likewise.
22697         * tests/unictype/test-ctype_alpha.c: Likewise.
22698         * tests/unictype/test-ctype_graph.c: Likewise.
22699         * tests/unictype/test-ctype_lower.c: Likewise.
22700         * tests/unictype/test-ctype_print.c: Likewise.
22701         * tests/unictype/test-ctype_punct.c: Likewise.
22702         * tests/unictype/test-ctype_upper.c: Likewise.
22703         * tests/unictype/test-decdigit.h: Likewise.
22704         * tests/unictype/test-digit.h: Likewise.
22705         * tests/unictype/test-numeric.h: Likewise.
22706         * tests/unictype/test-pr_alphabetic.c: Likewise.
22707         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22708         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22709         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22710         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22711         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22712         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22713         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22714         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22715         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22716         * tests/unictype/test-pr_cased.c: Likewise.
22717         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22718         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22719         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22720         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22721         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22722         * tests/unictype/test-pr_combining.c: Likewise.
22723         * tests/unictype/test-pr_composite.c: Likewise.
22724         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22725         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22726         * tests/unictype/test-pr_deprecated.c: Likewise.
22727         * tests/unictype/test-pr_format_control.c: Likewise.
22728         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22729         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22730         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22731         * tests/unictype/test-pr_id_continue.c: Likewise.
22732         * tests/unictype/test-pr_id_start.c: Likewise.
22733         * tests/unictype/test-pr_ideographic.c: Likewise.
22734         * tests/unictype/test-pr_lowercase.c: Likewise.
22735         * tests/unictype/test-pr_math.c: Likewise.
22736         * tests/unictype/test-pr_numeric.c: Likewise.
22737         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22738         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22739         * tests/unictype/test-pr_other_math.c: Likewise.
22740         * tests/unictype/test-pr_punctuation.c: Likewise.
22741         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22742         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22743         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22744         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22745         * tests/unictype/test-pr_uppercase.c: Likewise.
22746         * tests/unictype/test-pr_xid_continue.c: Likewise.
22747         * tests/unictype/test-pr_xid_start.c: Likewise.
22748         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22749         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22750         changes.
22751         * lib/unictype/categ_Cc.h: Likewise.
22752         * lib/unictype/categ_Cf.h: Likewise.
22753         * lib/unictype/categ_Co.h: Likewise.
22754         * lib/unictype/categ_Cs.h: Likewise.
22755         * lib/unictype/categ_Lt.h: Likewise.
22756         * lib/unictype/categ_Nl.h: Likewise.
22757         * lib/unictype/categ_Pc.h: Likewise.
22758         * lib/unictype/categ_Pd.h: Likewise.
22759         * lib/unictype/categ_Pe.h: Likewise.
22760         * lib/unictype/categ_Pf.h: Likewise.
22761         * lib/unictype/categ_Pi.h: Likewise.
22762         * lib/unictype/categ_Ps.h: Likewise.
22763         * lib/unictype/categ_Z.h: Likewise.
22764         * lib/unictype/categ_Zl.h: Likewise.
22765         * lib/unictype/categ_Zp.h: Likewise.
22766         * lib/unictype/categ_Zs.h: Likewise.
22767         * lib/unictype/ctype_blank.h: Likewise.
22768         * lib/unictype/ctype_cntrl.h: Likewise.
22769         * lib/unictype/ctype_digit.h: Likewise.
22770         * lib/unictype/ctype_space.h: Likewise.
22771         * lib/unictype/ctype_xdigit.h: Likewise.
22772         * lib/unictype/mirror.h: Likewise.
22773         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22774         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22775         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22776         * lib/unictype/pr_bidi_control.h: Likewise.
22777         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22778         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22779         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22780         * lib/unictype/pr_bidi_pdf.h: Likewise.
22781         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22782         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22783         * lib/unictype/pr_dash.h: Likewise.
22784         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22785         * lib/unictype/pr_diacritic.h: Likewise.
22786         * lib/unictype/pr_extender.h: Likewise.
22787         * lib/unictype/pr_hex_digit.h: Likewise.
22788         * lib/unictype/pr_hyphen.h: Likewise.
22789         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22790         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22791         * lib/unictype/pr_ignorable_control.h: Likewise.
22792         * lib/unictype/pr_iso_control.h: Likewise.
22793         * lib/unictype/pr_join_control.h: Likewise.
22794         * lib/unictype/pr_left_of_pair.h: Likewise.
22795         * lib/unictype/pr_line_separator.h: Likewise.
22796         * lib/unictype/pr_logical_order_exception.h: Likewise.
22797         * lib/unictype/pr_non_break.h: Likewise.
22798         * lib/unictype/pr_not_a_character.h: Likewise.
22799         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22800         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22801         * lib/unictype/pr_other_id_start.h: Likewise.
22802         * lib/unictype/pr_other_lowercase.h: Likewise.
22803         * lib/unictype/pr_other_uppercase.h: Likewise.
22804         * lib/unictype/pr_paired_punctuation.h: Likewise.
22805         * lib/unictype/pr_paragraph_separator.h: Likewise.
22806         * lib/unictype/pr_pattern_syntax.h: Likewise.
22807         * lib/unictype/pr_pattern_white_space.h: Likewise.
22808         * lib/unictype/pr_private_use.h: Likewise.
22809         * lib/unictype/pr_quotation_mark.h: Likewise.
22810         * lib/unictype/pr_radical.h: Likewise.
22811         * lib/unictype/pr_soft_dotted.h: Likewise.
22812         * lib/unictype/pr_space.h: Likewise.
22813         * lib/unictype/pr_titlecase.h: Likewise.
22814         * lib/unictype/pr_variation_selector.h: Likewise.
22815         * lib/unictype/pr_white_space.h: Likewise.
22816         * lib/unictype/pr_zero_width.h: Likewise.
22817         * lib/unictype/sy_c_ident.h: Likewise.
22818         * lib/unictype/sy_c_whitespace.h: Likewise.
22819         * lib/unictype/sy_java_whitespace.h: Likewise.
22820         * lib/uninorm/composition-table.gperf: Likewise.
22821         * lib/uninorm/decomposition-table1.h: Likewise.
22822         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22823         LB8.
22824         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22825         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22826         * modules/unictype/*: Bump version number of expected libunistring
22827         version.
22828
22829 2011-01-09  Bruno Haible  <bruno@clisp.org>
22830
22831         Update to Unicode 5.2.0.
22832         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22833         trailing whitespace removed.
22834
22835 2011-01-09  Bruno Haible  <bruno@clisp.org>
22836
22837         New Unicode character properties, from Unicode 5.2.0.
22838         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22839         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22840         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22841         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22842         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22843         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22844         uc_is_property_cased, uc_is_property_case_ignorable,
22845         uc_is_property_changes_when_lowercased,
22846         uc_is_property_changes_when_uppercased,
22847         uc_is_property_changes_when_titlecased,
22848         uc_is_property_changes_when_casefolded,
22849         uc_is_property_changes_when_casemapped): New declarations.
22850         * lib/unictype/pr_byname.gperf: Add the new properties.
22851         * modules/unictype/property-byname (Depends-on): Depend on the new
22852         properties modules.
22853         * modules/unictype/property-all (Depends-on): Likewise.
22854         * MODULES.html.sh (Unicode string functions): Add
22855         unictype/property-case-ignorable, unictype/property-cased,
22856         unictype/property-changes-when-casefolded,
22857         unictype/property-changes-when-casemapped,
22858         unictype/property-changes-when-lowercased,
22859         unictype/property-changes-when-titlecased,
22860         unictype/property-changes-when-uppercased.
22861
22862         New module 'unictype/property-changes-when-casemapped'.
22863         * modules/unictype/property-changes-when-casemapped: New file.
22864         * lib/unictype/pr_changes_when_casemapped.c: New file.
22865         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22866         generated by gen-uni-tables.
22867         * modules/unictype/property-changes-when-casemapped-tests: New file.
22868         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22869         automatically generated by gen-uni-tables.
22870
22871         New module 'unictype/property-changes-when-casefolded'.
22872         * modules/unictype/property-changes-when-casefolded: New file.
22873         * lib/unictype/pr_changes_when_casefolded.c: New file.
22874         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22875         generated by gen-uni-tables.
22876         * modules/unictype/property-changes-when-casefolded-tests: New file.
22877         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22878         automatically generated by gen-uni-tables.
22879
22880         New module 'unictype/property-changes-when-titlecased'.
22881         * modules/unictype/property-changes-when-titlecased: New file.
22882         * lib/unictype/pr_changes_when_titlecased.c: New file.
22883         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22884         generated by gen-uni-tables.
22885         * modules/unictype/property-changes-when-titlecased-tests: New file.
22886         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22887         automatically generated by gen-uni-tables.
22888
22889         New module 'unictype/property-changes-when-uppercased'.
22890         * modules/unictype/property-changes-when-uppercased: New file.
22891         * lib/unictype/pr_changes_when_uppercased.c: New file.
22892         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22893         generated by gen-uni-tables.
22894         * modules/unictype/property-changes-when-uppercased-tests: New file.
22895         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22896         automatically generated by gen-uni-tables.
22897
22898         New module 'unictype/property-changes-when-lowercased'.
22899         * modules/unictype/property-changes-when-lowercased: New file.
22900         * lib/unictype/pr_changes_when_lowercased.c: New file.
22901         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22902         generated by gen-uni-tables.
22903         * modules/unictype/property-changes-when-lowercased-tests: New file.
22904         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22905         automatically generated by gen-uni-tables.
22906
22907         New module 'unictype/property-case-ignorable'.
22908         * modules/unictype/property-case-ignorable: New file.
22909         * lib/unictype/pr_case_ignorable.c: New file.
22910         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22911         by gen-uni-tables.
22912         * modules/unictype/property-case-ignorable-tests: New file.
22913         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22914         generated by gen-uni-tables.
22915
22916         New module 'unictype/property-cased'.
22917         * modules/unictype/property-cased: New file.
22918         * lib/unictype/pr_cased.c: New file.
22919         * lib/unictype/pr_cased.h: New file, automatically generated by
22920         gen-uni-tables.
22921         * modules/unictype/property-cased-tests: New file.
22922         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22923         gen-uni-tables.
22924
22925 2011-01-09  Bruno Haible  <bruno@clisp.org>
22926
22927         Update to Unicode 5.2.0.
22928         * lib/gen-uni-tables.c (output_predicate, output_category,
22929         output_combclass, output_bidi_category, output_decimal_digit_test,
22930         output_decimal_digit, output_digit_test, output_digit,
22931         output_numeric_test, output_numeric, output_mirror, output_scripts,
22932         output_scripts_byname, output_blocks, output_ident_category): Fix
22933         comment header.
22934         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22935         get_wbp.
22936         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22937         items.
22938         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22939         Changes_When_Lowercased, Changes_When_Uppercased,
22940         Changes_When_Titlecased, Changes_When_Casefolded,
22941         Changes_When_Casemapped.
22942         (is_property_alphabetic, is_property_default_ignorable_code_point):
22943         Update for Unicode 5.2.0.
22944         (is_property_cased, is_property_case_ignorable,
22945         is_property_changes_when_lowercased,
22946         is_property_changes_when_uppercased,
22947         is_property_changes_when_titlecased,
22948         is_property_changes_when_casefolded,
22949         is_property_changes_when_casemapped): New functions.
22950         (output_properties): Output also the properties cased, case_ignorable,
22951         changes_when_lowercased, changes_when_uppercased,
22952         changes_when_titlecased, changes_when_casefolded,
22953         changes_when_casemapped.
22954         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22955         Unicode TR#11 revision 17 -> 19.
22956         (LBP_CP): New enumeration value.
22957         (LBP_*): Adjust values accordingly.
22958         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22959         TR#14 revision 22 -> 24.
22960         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22961         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22962         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22963         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22964         is_WBP_MIDLETTER.
22965         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22966         the code1 and code2 of each composition rule.
22967         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22968         * lib/unicase/ignorable.h: Likewise.
22969         * lib/unicase/tocasefold.h: Likewise.
22970         * lib/unicase/tolower.h: Likewise.
22971         * lib/unicase/totitle.h: Likewise.
22972         * lib/unicase/toupper.h: Likewise.
22973         * lib/unictype/bidi_of.h: Likewise.
22974         * lib/unictype/blocks.h: Likewise.
22975         * lib/unictype/categ_C.h: Likewise.
22976         * lib/unictype/categ_Cf.h: Likewise.
22977         * lib/unictype/categ_Cn.h: Likewise.
22978         * lib/unictype/categ_L.h: Likewise.
22979         * lib/unictype/categ_Ll.h: Likewise.
22980         * lib/unictype/categ_Lm.h: Likewise.
22981         * lib/unictype/categ_Lo.h: Likewise.
22982         * lib/unictype/categ_Lu.h: Likewise.
22983         * lib/unictype/categ_M.h: Likewise.
22984         * lib/unictype/categ_Mc.h: Likewise.
22985         * lib/unictype/categ_Mn.h: Likewise.
22986         * lib/unictype/categ_N.h: Likewise.
22987         * lib/unictype/categ_Nd.h: Likewise.
22988         * lib/unictype/categ_Nl.h: Likewise.
22989         * lib/unictype/categ_No.h: Likewise.
22990         * lib/unictype/categ_P.h: Likewise.
22991         * lib/unictype/categ_Pd.h: Likewise.
22992         * lib/unictype/categ_Po.h: Likewise.
22993         * lib/unictype/categ_S.h: Likewise.
22994         * lib/unictype/categ_Sc.h: Likewise.
22995         * lib/unictype/categ_So.h: Likewise.
22996         * lib/unictype/categ_of.h: Likewise.
22997         * lib/unictype/combining.h: Likewise.
22998         * lib/unictype/ctype_alnum.h: Likewise.
22999         * lib/unictype/ctype_alpha.h: Likewise.
23000         * lib/unictype/ctype_graph.h: Likewise.
23001         * lib/unictype/ctype_lower.h: Likewise.
23002         * lib/unictype/ctype_print.h: Likewise.
23003         * lib/unictype/ctype_punct.h: Likewise.
23004         * lib/unictype/ctype_upper.h: Likewise.
23005         * lib/unictype/decdigit.h: Likewise.
23006         * lib/unictype/digit.h: Likewise.
23007         * lib/unictype/numeric.h: Likewise.
23008         * lib/unictype/pr_alphabetic.h: Likewise.
23009         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23010         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23011         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23012         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23013         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23014         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23015         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23016         * lib/unictype/pr_combining.h: Likewise.
23017         * lib/unictype/pr_composite.h: Likewise.
23018         * lib/unictype/pr_currency_symbol.h: Likewise.
23019         * lib/unictype/pr_dash.h: Likewise.
23020         * lib/unictype/pr_decimal_digit.h: Likewise.
23021         * lib/unictype/pr_deprecated.h: Likewise.
23022         * lib/unictype/pr_diacritic.h: Likewise.
23023         * lib/unictype/pr_extender.h: Likewise.
23024         * lib/unictype/pr_grapheme_base.h: Likewise.
23025         * lib/unictype/pr_grapheme_extend.h: Likewise.
23026         * lib/unictype/pr_grapheme_link.h: Likewise.
23027         * lib/unictype/pr_id_continue.h: Likewise.
23028         * lib/unictype/pr_id_start.h: Likewise.
23029         * lib/unictype/pr_ideographic.h: Likewise.
23030         * lib/unictype/pr_ignorable_control.h: Likewise.
23031         * lib/unictype/pr_logical_order_exception.h: Likewise.
23032         * lib/unictype/pr_lowercase.h: Likewise.
23033         * lib/unictype/pr_numeric.h: Likewise.
23034         * lib/unictype/pr_other_alphabetic.h: Likewise.
23035         * lib/unictype/pr_punctuation.h: Likewise.
23036         * lib/unictype/pr_sentence_terminal.h: Likewise.
23037         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23038         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23039         * lib/unictype/pr_unified_ideograph.h: Likewise.
23040         * lib/unictype/pr_uppercase.h: Likewise.
23041         * lib/unictype/pr_xid_continue.h: Likewise.
23042         * lib/unictype/pr_xid_start.h: Likewise.
23043         * lib/unictype/pr_zero_width.h: Likewise.
23044         * lib/unictype/scripts.h: Likewise.
23045         * lib/unictype/scripts_byname.gperf: Likewise.
23046         * lib/unictype/sy_java_ident.h: Likewise.
23047         * lib/unigbrk/gbrkprop.h: Likewise.
23048         * lib/unilbrk/lbrkprop1.h: Likewise.
23049         * lib/unilbrk/lbrkprop2.h: Likewise.
23050         * lib/unilbrk/lbrktables.h: Likewise.
23051         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23052         LBP_CP. Implement rule LB30.
23053         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23054         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23055         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23056         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23057         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23058         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23059         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23060         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23061         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23062         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23063         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23064         bits instead of 16 bits in the code1 and code2 of each composition
23065         rule.
23066         (uc_composition): Update for Unicode 5.2.0.
23067         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23068         * lib/uninorm/decomposition-table2.h: Likewise.
23069         * lib/uniwbrk/wbrkprop.h: Likewise.
23070         * tests/unicase/test-cased.c: Likewise.
23071         * tests/unicase/test-ignorable.c: Likewise.
23072         * tests/unicase/test-uc_tolower.c: Likewise.
23073         * tests/unicase/test-uc_totitle.c: Likewise.
23074         * tests/unicase/test-uc_toupper.c: Likewise.
23075         * tests/unictype/test-categ_C.c: Likewise.
23076         * tests/unictype/test-categ_Cf.c: Likewise.
23077         * tests/unictype/test-categ_Cn.c: Likewise.
23078         * tests/unictype/test-categ_L.c: Likewise.
23079         * tests/unictype/test-categ_Ll.c: Likewise.
23080         * tests/unictype/test-categ_Lm.c: Likewise.
23081         * tests/unictype/test-categ_Lo.c: Likewise.
23082         * tests/unictype/test-categ_Lu.c: Likewise.
23083         * tests/unictype/test-categ_M.c: Likewise.
23084         * tests/unictype/test-categ_Mc.c: Likewise.
23085         * tests/unictype/test-categ_Mn.c: Likewise.
23086         * tests/unictype/test-categ_N.c: Likewise.
23087         * tests/unictype/test-categ_Nd.c: Likewise.
23088         * tests/unictype/test-categ_Nl.c: Likewise.
23089         * tests/unictype/test-categ_No.c: Likewise.
23090         * tests/unictype/test-categ_P.c: Likewise.
23091         * tests/unictype/test-categ_Pd.c: Likewise.
23092         * tests/unictype/test-categ_Po.c: Likewise.
23093         * tests/unictype/test-categ_S.c: Likewise.
23094         * tests/unictype/test-categ_Sc.c: Likewise.
23095         * tests/unictype/test-categ_So.c: Likewise.
23096         * tests/unictype/test-ctype_alnum.c: Likewise.
23097         * tests/unictype/test-ctype_alpha.c: Likewise.
23098         * tests/unictype/test-ctype_graph.c: Likewise.
23099         * tests/unictype/test-ctype_lower.c: Likewise.
23100         * tests/unictype/test-ctype_print.c: Likewise.
23101         * tests/unictype/test-ctype_punct.c: Likewise.
23102         * tests/unictype/test-ctype_upper.c: Likewise.
23103         * tests/unictype/test-decdigit.h: Likewise.
23104         * tests/unictype/test-digit.h: Likewise.
23105         * tests/unictype/test-numeric.h: Likewise.
23106         * tests/unictype/test-pr_alphabetic.c: Likewise.
23107         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23108         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23109         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23110         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23111         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23112         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23113         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23114         * tests/unictype/test-pr_combining.c: Likewise.
23115         * tests/unictype/test-pr_composite.c: Likewise.
23116         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23117         * tests/unictype/test-pr_dash.c: Likewise.
23118         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23119         * tests/unictype/test-pr_deprecated.c: Likewise.
23120         * tests/unictype/test-pr_diacritic.c: Likewise.
23121         * tests/unictype/test-pr_extender.c: Likewise.
23122         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23123         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23124         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23125         * tests/unictype/test-pr_id_continue.c: Likewise.
23126         * tests/unictype/test-pr_id_start.c: Likewise.
23127         * tests/unictype/test-pr_ideographic.c: Likewise.
23128         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23129         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23130         * tests/unictype/test-pr_lowercase.c: Likewise.
23131         * tests/unictype/test-pr_numeric.c: Likewise.
23132         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23133         * tests/unictype/test-pr_punctuation.c: Likewise.
23134         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23135         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23136         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23137         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23138         * tests/unictype/test-pr_uppercase.c: Likewise.
23139         * tests/unictype/test-pr_xid_continue.c: Likewise.
23140         * tests/unictype/test-pr_xid_start.c: Likewise.
23141         * tests/unictype/test-pr_zero_width.c: Likewise.
23142         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23143         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23144         changed behaviour: line breaking is now disallowed between a letter
23145         or '=' and '('.
23146         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23147         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23148         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23149         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23150         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23151         lib/uniwidth/width.c.
23152         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23153         without comments, but with the original copyright notice.
23154         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23155         changes.
23156         * lib/unictype/categ_Cc.h: Likewise.
23157         * lib/unictype/categ_Co.h: Likewise.
23158         * lib/unictype/categ_Cs.h: Likewise.
23159         * lib/unictype/categ_Lt.h: Likewise.
23160         * lib/unictype/categ_Me.h: Likewise.
23161         * lib/unictype/categ_Pc.h: Likewise.
23162         * lib/unictype/categ_Pe.h: Likewise.
23163         * lib/unictype/categ_Pf.h: Likewise.
23164         * lib/unictype/categ_Pi.h: Likewise.
23165         * lib/unictype/categ_Ps.h: Likewise.
23166         * lib/unictype/categ_Sk.h: Likewise.
23167         * lib/unictype/categ_Sm.h: Likewise.
23168         * lib/unictype/categ_Z.h: Likewise.
23169         * lib/unictype/categ_Zl.h: Likewise.
23170         * lib/unictype/categ_Zp.h: Likewise.
23171         * lib/unictype/categ_Zs.h: Likewise.
23172         * lib/unictype/ctype_blank.h: Likewise.
23173         * lib/unictype/ctype_cntrl.h: Likewise.
23174         * lib/unictype/ctype_digit.h: Likewise.
23175         * lib/unictype/ctype_space.h: Likewise.
23176         * lib/unictype/ctype_xdigit.h: Likewise.
23177         * lib/unictype/mirror.h: Likewise.
23178         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23179         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23180         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23181         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23182         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23183         * lib/unictype/pr_bidi_control.h: Likewise.
23184         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23185         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23186         * lib/unictype/pr_bidi_pdf.h: Likewise.
23187         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23188         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23189         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23190         * lib/unictype/pr_format_control.h: Likewise.
23191         * lib/unictype/pr_hex_digit.h: Likewise.
23192         * lib/unictype/pr_hyphen.h: Likewise.
23193         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23194         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23195         * lib/unictype/pr_iso_control.h: Likewise.
23196         * lib/unictype/pr_join_control.h: Likewise.
23197         * lib/unictype/pr_left_of_pair.h: Likewise.
23198         * lib/unictype/pr_line_separator.h: Likewise.
23199         * lib/unictype/pr_math.h: Likewise.
23200         * lib/unictype/pr_non_break.h: Likewise.
23201         * lib/unictype/pr_not_a_character.h: Likewise.
23202         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23203         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23204         * lib/unictype/pr_other_id_continue.h: Likewise.
23205         * lib/unictype/pr_other_id_start.h: Likewise.
23206         * lib/unictype/pr_other_lowercase.h: Likewise.
23207         * lib/unictype/pr_other_math.h: Likewise.
23208         * lib/unictype/pr_other_uppercase.h: Likewise.
23209         * lib/unictype/pr_paired_punctuation.h: Likewise.
23210         * lib/unictype/pr_paragraph_separator.h: Likewise.
23211         * lib/unictype/pr_pattern_syntax.h: Likewise.
23212         * lib/unictype/pr_pattern_white_space.h: Likewise.
23213         * lib/unictype/pr_private_use.h: Likewise.
23214         * lib/unictype/pr_quotation_mark.h: Likewise.
23215         * lib/unictype/pr_radical.h: Likewise.
23216         * lib/unictype/pr_soft_dotted.h: Likewise.
23217         * lib/unictype/pr_space.h: Likewise.
23218         * lib/unictype/pr_titlecase.h: Likewise.
23219         * lib/unictype/pr_variation_selector.h: Likewise.
23220         * lib/unictype/pr_white_space.h: Likewise.
23221         * lib/unictype/sy_c_ident.h: Likewise.
23222         * lib/unictype/sy_c_whitespace.h: Likewise.
23223         * lib/unictype/sy_java_whitespace.h: Likewise.
23224         * modules/uni*/*: Bump version number of expected libunistring version.
23225         Reported by Simon Josefsson.
23226
23227 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23228
23229         useless-if-before-free: fix typo in --help and make the internal,
23230         automatic version date update process work once again.
23231         --help output contained a NUL character instead of the
23232         backslash-zero that was intended.  Also, the "must lie within
23233         the first 8 lines" line is on line 9, and hence not getting
23234         automatically updated.
23235         * build-aux/useless-if-before-free: Fix the former by adding a
23236         backslash, and the latter by condensing the three lines of what-it-does
23237         to a single line, leaving one line of slack for the future.
23238
23239 2011-01-09  Bruno Haible  <bruno@clisp.org>
23240
23241         uniwidth/width: Fix width of U+1D173..U+1D17A.
23242         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23243         symbolic_width, output_width_property_test): New functions.
23244         (main): Invoke output_nonspacing_property, output_width_property_test.
23245         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23246         U+1D173..U+1D17A.
23247         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23248         1.
23249         * modules/uniwidth/*: Bump version number of expected libunistring
23250         version.
23251         * modules/unilbrk/*: Likewise.
23252
23253 2011-01-08  Bruno Haible  <bruno@clisp.org>
23254
23255         uninorm tests: Preserve copyright of Unicode data file.
23256         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23257         Mention modifications.
23258
23259 2011-01-08  Bruno Haible  <bruno@clisp.org>
23260
23261         gen-uni-tables: Prepare for Unicode 5.2.0.
23262         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23263         (debug_output_lbp, output_lbp): Update.
23264
23265 2011-01-08  Bruno Haible  <bruno@clisp.org>
23266
23267         unilbrk: Clarify gen-uni-tables.c code.
23268         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23269         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23270         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23271
23272 2011-01-07  Bruno Haible  <bruno@clisp.org>
23273
23274         strtod: Restore errno when successfully parsing Infinity or NaN.
23275         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23276         restore the original errno.
23277
23278 2011-01-07  Bruno Haible  <bruno@clisp.org>
23279
23280         remove test: Avoid failure on HP-UX 11.
23281         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23282
23283 2011-01-07  Bruno Haible  <bruno@clisp.org>
23284
23285         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23286         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23287         error code.
23288
23289 2011-01-07  Pádraig Brady <P@draigBrady.com>
23290
23291         ignore-value: fixup comments, and add Eric Blake
23292         as an author since he rewrote the macros.
23293         * lib/ignore-value.h (ignore_value):  State that
23294         we now support aggregates.  Also specify exactly
23295         when the GCC warn_unused_result feature was added.
23296
23297 2011-01-06  Eric Blake  <eblake@redhat.com>
23298
23299         ignore-value: support aggregate types
23300         * lib/ignore-value.h (ignore_value): Provide separate gcc
23301         definition.
23302         * modules/ignore-value-tests: New test module.
23303         * tests/test-ignore-value.c: New test.
23304
23305         maint.mk: improve sc_prohibit_strcmp regex
23306         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23307         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23308         definition of STRNEQ.
23309
23310         signal: work around Haiku issue with SIGBUS
23311         * lib/siglist.h: Add comment.
23312         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23313         strsignal's favoring of SIGSEGV.
23314         * tests/test-signal.c (main): Avoid test failure.
23315         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23316         Reported by Scott McCreary.
23317
23318         maint.mk: add pre-release check to ensure submodule commits are public
23319         * top/maint.mk (public-submodule-commit): New rule.
23320         (submodule-checks): New variable.
23321         (alpha beta stable): Depend on the variable.
23322
23323 2011-01-05  Pádraig Brady <P@draigBrady.com>
23324         and Jim Meyering  <meyering@redhat.com>
23325
23326         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23327         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23328         (ATTRIBUTE_DEPRECATED): Define.
23329         (_ignore_case): New function.
23330         (ignore_value): New macro, to replace the old function.
23331         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23332         * modules/ignore-value (Depends-on): Add stdint.
23333
23334 2011-01-04  Eric Blake  <eblake@redhat.com>
23335
23336         doc: regenerate INSTALL
23337         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23338         @firstparagraphindent support, now that autoconf dropped it.
23339         (INSTALL_PRELUDE): Reinstate old macro.
23340         * doc/install.texi: Resync from autoconf.
23341         * doc/INSTALL: Reflect recent autoconf update.
23342         * doc/INSTALL.ISO: Likewise.
23343         * doc/INSTALL.UTF-8: Likewise.
23344         Reported by Karl Berry.
23345
23346 2011-01-04  Bruce Korb  <address@hidden>
23347
23348         git-version-gen: avoid a sub-shell
23349         * build-aux/git-version-gen: Redirect stderr in `...` via
23350         "exec 2>...", rather than via an added sub-shell.
23351
23352 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23353
23354         git-version-gen: use (...) rather than sh -c '...'
23355         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23356         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23357
23358 2011-01-03  Jim Meyering  <meyering@redhat.com>
23359
23360         git-version-gen: convert leading TABs to spaces
23361         * build-aux/git-version-gen: Expand leading TABs.
23362
23363         git-version-gen: handle failed "git rev-list"
23364         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23365         from git and proceeding as if it had succeeded but printed no SHA1
23366         checksums, suppress the diagnostic and handle the failure.
23367         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23368
23369         git-version-gen: include command name in one more diagnostic
23370         * build-aux/git-version-gen: When the required .tarball-version file
23371         was missing or unreadable, you might see the diagnostic from "cat",
23372         but no trace of the name of the invoking script.  Now, you still see
23373         the diagnostic from cat, but also get one from "git-version-gen: ".
23374         Inspired by a patch from Bruce Korb.
23375
23376         update-copyright: adjust test to match changed code
23377         * tests/test-update-copyright.sh: Change test's expected output
23378         to match new actual output.
23379
23380 2011-01-02  Bruno Haible  <bruno@clisp.org>
23381
23382         getlogin_r: Avoid test failure on HP-UX 11.
23383         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23384         ERANGE when the second argument is zero.
23385         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23386         portability problem.
23387
23388 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23389
23390         * build-aux/update-copyright: doc Simon's changes
23391
23392 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23393
23394         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23395         environment variable.
23396
23397 2011-01-02  Bruno Haible  <bruno@clisp.org>
23398
23399         unigbrk: Avoid gcc warnings.
23400         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23401         unused variable.
23402         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23403         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23404         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23405         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23406         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23407         Change type of first argument to 'const char *'.
23408         (main): Remove unused variable.
23409         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23410         type of first argument to 'const char *'.
23411         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23412         Likewise.
23413         (main): Change type of variable 's'.
23414         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23415         to 'int'.
23416
23417 2011-01-02  Bruno Haible  <bruno@clisp.org>
23418
23419         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23420         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23421         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23422         bug.
23423         * lib/pwrite.c: Undo 2010-12-31 patch.
23424         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23425
23426 2011-01-02  Bruno Haible  <bruno@clisp.org>
23427
23428         pread: Fix test whether it works.
23429         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23430
23431 2011-01-02  Bruno Haible  <bruno@clisp.org>
23432
23433         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23434         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23435         ends in "6". Don't require a specific month name. Try also the locale
23436         names found on HP-UX 11 and Solaris 7.
23437
23438 2011-01-02  Bruno Haible  <bruno@clisp.org>
23439
23440         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23441         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23442         C linkage.
23443         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23444
23445 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23446
23447         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23448         for consistency, since the "cluster" term is not used elsewhere.
23449         * lib/unigbrk.in.h: Update name.
23450         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23451         * lib/unigbrk/u16-grapheme-next.c: Update name.
23452         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23453         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23454         * lib/unigbrk/u32-grapheme-next.c: Update name.
23455         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23456         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23457         * lib/unigbrk/u8-grapheme-next.c: Update name.
23458         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23459         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23460         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23461         Suggested by Bruno Haible.
23462
23463 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23464
23465         Remove module 'u8-grapheme-len' as too redundant with
23466         'u8-grapheme-next'.
23467         * modules/unigbrk/u8-grapheme-len: Delete file.
23468         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23469         * lib/unigbrk.in.h: Remove prototype for deleted function.
23470         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23471         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23472
23473         Remove module 'u16-grapheme-len' as too redundant with
23474         'u16-grapheme-next'.
23475         * modules/unigbrk/u16-grapheme-len: Delete file.
23476         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23477         * lib/unigbrk.in.h: Remove prototype for deleted function.
23478         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23479         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23480
23481         Remove module 'u32-grapheme-len' as too redundant with
23482         'u32-grapheme-next'.
23483         * modules/unigbrk/u32-grapheme-len: Delete file.
23484         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23485         * lib/unigbrk.in.h: Remove prototype for deleted function.
23486         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23487         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23488
23489         Suggested by Bruno Haible.
23490
23491 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23492
23493         * unigbrk.in.h: Fix typo: "ben" => "been".
23494         Reported by Bruno Haible.
23495
23496 2011-01-01  Jim Meyering  <meyering@redhat.com>
23497
23498         maint: update almost all copyright ranges to include 2011
23499         Run the new "make update-copyright" rule.
23500
23501 2011-01-01  Jim Meyering  <meyering@redhat.com>
23502
23503         maint: update-copyright: exempt doc/INSTALL*
23504         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23505         since they are generated.  Suggested by Bruno Haible.
23506
23507 2011-01-01  Jim Meyering  <meyering@redhat.com>
23508
23509         maint: refine the update-copyright rule
23510         * Makefile (update-copyright): Also exclude any file that includes
23511         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23512         code that merely generates the comment.
23513
23514 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23515
23516         New module 'u8-grapheme-len'.
23517         * modules/unigbrk/u8-grapheme-len: New file.
23518         * modules/unigbrk/u8-grapheme-len-tests: New file.
23519         * lib/unigbrk.in.h: Add prototype for new function.
23520         * lib/unigbrk/u8-grapheme-len.c: New file.
23521         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23522
23523         New module 'u16-grapheme-len'.
23524         * modules/unigbrk/u16-grapheme-len: New file.
23525         * modules/unigbrk/u16-grapheme-len-tests: New file.
23526         * lib/unigbrk.in.h: Add prototype for new function.
23527         * lib/unigbrk/u16-grapheme-len.c: New file.
23528         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23529
23530         New module 'u32-grapheme-len'.
23531         * modules/unigbrk/u32-grapheme-len: New file.
23532         * modules/unigbrk/u32-grapheme-len-tests: New file.
23533         * lib/unigbrk.in.h: Add prototype for new function.
23534         * lib/unigbrk/u32-grapheme-len.c: New file.
23535         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23536
23537         New module 'u8-grapheme-next'.
23538         * modules/unigbrk/u8-grapheme-next: New file.
23539         * modules/unigbrk/u8-grapheme-next-tests: New file.
23540         * lib/unigbrk.in.h: Add prototype for new function.
23541         * lib/unigbrk/u8-grapheme-next.c: New file.
23542         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23543
23544         New module 'u16-grapheme-next'.
23545         * modules/unigbrk/u16-grapheme-next: New file.
23546         * modules/unigbrk/u16-grapheme-next-tests: New file.
23547         * lib/unigbrk.in.h: Add prototype for new function.
23548         * lib/unigbrk/u16-grapheme-next.c: New file.
23549         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23550
23551         New module 'u32-grapheme-next'.
23552         * modules/unigbrk/u32-grapheme-next: New file.
23553         * modules/unigbrk/u32-grapheme-next-tests: New file.
23554         * lib/unigbrk.in.h: Add prototype for new function.
23555         * lib/unigbrk/u32-grapheme-next.c: New file.
23556         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23557
23558         New module 'u8-grapheme-prev'.
23559         * modules/unigbrk/u8-grapheme-prev: New file.
23560         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23561         * lib/unigbrk.in.h: Add prototype for new function.
23562         * lib/unigbrk/u8-grapheme-prev.c: New file.
23563         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23564
23565         New module 'u16-grapheme-prev'.
23566         * modules/unigbrk/u16-grapheme-prev: New file.
23567         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23568         * lib/unigbrk.in.h: Add prototype for new function.
23569         * lib/unigbrk/u16-grapheme-prev.c: New file.
23570         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23571
23572         New module 'u32-grapheme-prev'.
23573         * modules/unigbrk/u32-grapheme-prev: New file.
23574         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23575         * lib/unigbrk.in.h: Add prototype for new function.
23576         * lib/unigbrk/u32-grapheme-prev.c: New file.
23577         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23578
23579         New module 'u8-grapheme-breaks'.
23580         * modules/unigbrk/u8-grapheme-breaks: New file.
23581         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23582         * lib/unigbrk.in.h: Add prototype for new function.
23583         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23584         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23585
23586         New module 'u16-grapheme-breaks'.
23587         * modules/unigbrk/u16-grapheme-breaks: New file.
23588         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23589         * lib/unigbrk.in.h: Add prototype for new function.
23590         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23591         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23592
23593         New module 'u32-grapheme-breaks'.
23594         * modules/unigbrk/u32-grapheme-breaks: New file.
23595         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23596         * lib/unigbrk.in.h: Add prototype for new function.
23597         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23598         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23599
23600         New module 'ulc-grapheme-breaks'.
23601         * modules/unigbrk/ulc-grapheme-breaks: New file.
23602         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23603         * m4/locale-ar.m4: New file.
23604         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23605         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23606         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23607
23608 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23609
23610         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23611         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23612         modified how this file was generated before I initially submitted
23613         the module, but failed to regenerate it.  This meant that several
23614         of the level2 entries were wrong.
23615         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23616         Remove the division-by-2 that is folded into the table now that
23617         gbrkprop.h has been regenerated properly.  Now -1 entries are
23618         handled correctly.
23619
23620         New module 'unigbrk/uc-gbrk-prop-tests'.
23621         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23622         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23623         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23624         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23625
23626 2011-01-01  Bruno Haible  <bruno@clisp.org>
23627
23628         Avoid use of hexadecimal escapes.
23629         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23630         instead of hexadecimal escapes.
23631
23632 2011-01-01  Jim Meyering  <meyering@redhat.com>
23633
23634         maint: new rule to update copyright year ranges
23635         * Makefile (update-copyright): New rule.
23636
23637         maint: indent with TABs in Makefile
23638         * Makefile: Expand leading sequences of spaces to TABs
23639
23640         version-etc: update the copyright year it reports
23641         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23642
23643 2010-12-31  Bruno Haible  <bruno@clisp.org>
23644
23645         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23646         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23647         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23648         zero.
23649
23650 2010-12-31  Bruno Haible  <bruno@clisp.org>
23651
23652         pwrite: Work around HP-UX 11.11 bug.
23653         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23654         works and set REPLACE_PWRITE if not.
23655         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23656         function.
23657         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23658
23659 2010-12-31  Bruno Haible  <bruno@clisp.org>
23660
23661         pread: Work around HP-UX 11 bugs.
23662         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23663         and set REPLACE_PREAD if not.
23664         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23665
23666 2010-12-31  Eric Blake  <eblake@redhat.com>
23667
23668         nl_langinfo: fix YESEXPR on Irix 6.5
23669         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23670         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23671         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23672         it.
23673
23674 2010-12-31  Bruno Haible  <bruno@clisp.org>
23675
23676         iconv: Document HP-UX 11 bug.
23677         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23678
23679 2010-12-31  Bruno Haible  <bruno@clisp.org>
23680
23681         ldexpl: Fix link error on HP-UX 11.
23682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23683         LDEXPL_LIBM, using $ISNANL_LIBM.
23684
23685 2010-12-31  Eric Blake  <eblake@redhat.com>
23686
23687         ftello: avoid compilation failure with SunStudio c89
23688         * lib/ftello.c (ftello): Use lseek, not llseek.
23689
23690         tests: avoid failing coreutils tests on cygwin
23691         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23692         (create_exe_shims_): Return 0 when skipping.
23693
23694 2010-12-31  Bruno Haible  <bruno@clisp.org>
23695
23696         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23697         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23698
23699 2010-12-31  Bruno Haible  <bruno@clisp.org>
23700
23701         waitpid: Fix link error in C++ mode.
23702         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23703
23704 2010-12-31  Bruno Haible  <bruno@clisp.org>
23705
23706         isnan: Use GCC built-ins when possible.
23707         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23708         __builtin_isnan.
23709         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23710         (isnan): Define using GCC built-ins for GCC >= 4.0.
23711
23712 2010-12-31  Bruno Haible  <bruno@clisp.org>
23713
23714         isnand: Fix mistake.
23715         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23716         __builtin_isnand.
23717
23718 2010-12-31  Bruno Haible  <bruno@clisp.org>
23719
23720         open: Avoid C++ error on HP-UX 11.
23721         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23722
23723 2010-12-31  Bruno Haible  <bruno@clisp.org>
23724
23725         time_r: Add missing declarations on HP-UX 11.
23726         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23727         instead of HAVE_LOCALTIME_R.
23728         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23729         HAVE_LOCALTIME_R always.
23730         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23731         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23732         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23733         HAVE_LOCALTIME_R.
23734         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23735         * doc/posix-functions/localtime_r.texi: Likewise.
23736
23737 2010-12-29  Eric Blake  <eblake@redhat.com>
23738
23739         mountlist: tweak previous commit
23740         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23741         Reported by Paul Eggert.
23742
23743         mountlist: fix local drive detection on cygwin
23744         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23745         that works for cygwin.
23746
23747 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23748
23749         ftoastr, snprintf: ftoastr + snprintf module
23750         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23751         since the snprintf module now should be good enough here.
23752         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23753         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23754         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23755         GNULIB_SNPRINTF only for the test directory, and the latter
23756         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23757         seems to suffice by itself.
23758
23759 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23760
23761         alloca: one step towards thread-safety
23762         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23763         need for a static variable.  All callers changed.  This does not
23764         make the alloca replacement thread-safe, but it's one step.
23765
23766         tests: minor indenting change
23767         * tests/init.sh: Sync from coreutils housekeeping patch
23768         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23769         to keep lines within 80 columns.
23770
23771 2010-12-28  Jim Meyering  <meyering@redhat.com>
23772
23773         regex: don't infloop on persistent failing calloc
23774         * lib/regexec.c (build_trtable): Return failure indication upon
23775         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23776         In glibc, this was fixed for version 2.13:
23777         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23778
23779 2010-12-28  Bruno Haible  <bruno@clisp.org>
23780             Paul Eggert <eggert@cs.ucla.edu>
23781
23782         linkat: Make implementation robust against system behaviour variations.
23783         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23784         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23785         way, and to -2 if it needs a generic runtime test.
23786         * lib/linkat.c (solaris_optimized_link_immediate,
23787         solaris_optimized_link_follow): New functions.
23788         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23789         (check_same_link): Use it.
23790
23791 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23792
23793         New module 'unigbrk/base'.
23794         * modules/unigbrk/base: New file.
23795         * lib/unigbrk.in.h: New file.
23796
23797         New module 'unigbrk/uc-gbrk-prop'.
23798         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23799         * modules/unigbrk/uc-gbrk-prop: New file.
23800         * lib/unigbrk/gbrkprop.h: New file.
23801         * lib/unigbrk/uc-gbrk-prop.c: New file.
23802
23803         New module 'unigbrk/uc-is-grapheme-break'.
23804         * modules/unigbrk/uc-is-grapheme-break: New file.
23805         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23806         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23807         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23808         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23809         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23810
23811         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23812
23813 2010-12-27  Bruno Haible  <bruno@clisp.org>
23814
23815         linkat test: Avoid failure on Solaris 11 2010-11.
23816         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23817
23818 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23819
23820         utimens: work around glibc rounding bug on more platforms
23821         * lib/utimens.c (fdutimens): Work around rounding bug even if
23822         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23823         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23824
23825 2010-12-27  Bruno Haible  <bruno@clisp.org>
23826
23827         select tests: Improve comments.
23828         * tests/test-select.c (do_select): Add comments.
23829
23830 2010-12-27  Bruno Haible  <bruno@clisp.org>
23831
23832         select tests: Safer way of handling timeout.
23833         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23834         at every invocation.
23835
23836 2010-12-27  Bruno Haible  <bruno@clisp.org>
23837
23838         select tests: Use 'bool' where appropriate.
23839         * tests/test-select.c (connect_to_socket): Change argument type to
23840         'bool'.
23841
23842 2010-12-27  Bruno Haible  <bruno@clisp.org>
23843
23844         select tests: Use existing modules.
23845         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23846         (configure.ac): Don't test for unistd.h.
23847         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23848         declared in <unistd.h>.
23849
23850 2010-12-27  Bruno Haible  <bruno@clisp.org>
23851
23852         mbrtowc: Work around a Solaris 7 bug.
23853         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23854         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23855         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23856         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23857         MBRTOWC_NULL_ARG1_BUG.
23858         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23859         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23860         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23861         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23862
23863 2010-12-27  Jim Meyering  <meyering@redhat.com>
23864
23865         read-file.c: tweak syntax
23866         * lib/read-file.c (fread_file): Remove space after "*" in function
23867         definitions.
23868
23869 2010-12-27  Bruno Haible  <bruno@clisp.org>
23870
23871         times test: Avoid gcc warnings on OSF/1.
23872         * tests/test-times.c (main): Cast printf arguments from clock_t to
23873         'long int'.
23874
23875 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23876
23877         utimens: work around glibc rounding bug on older Linux kernels
23878         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23879         on Linux with a glibc whose utimes might not work, then work
23880         around a longstanding glibc bug involving rounding rather than
23881         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23882         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23883
23884 2010-12-26  Bruno Haible  <bruno@clisp.org>
23885
23886         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23887         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23888         _GL_CXXALIAS_SYS.
23889         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23890
23891 2010-12-26  Bruno Haible  <bruno@clisp.org>
23892
23893         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23894         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23895         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23896         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23897         looking for the declaration.
23898         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23899         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23900         problem.
23901         * doc/posix-functions/inet_pton.texi: Likewise.
23902
23903 2010-12-26  Bruno Haible  <bruno@clisp.org>
23904
23905         arpa_inet: Use the common idioms with C++ support.
23906         * lib/arpa_inet.in.h: Include c++defs.h.
23907         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23908         support.
23909         * modules/arpa_inet (Depends-on): Add c++defs.
23910         (Makefile.am): Substitute the contents of c++defs.h.
23911         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23912         * modules/arpa_inet-c++-tests: New file.
23913         * tests/test-arpa_inet-c++.cc: New file.
23914
23915 2010-12-25  Bruno Haible  <bruno@clisp.org>
23916
23917         Fix more C++ link errors on Solaris 8.
23918         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23919         $(LIB_EACCESS).
23920         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23921         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23922         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23923         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23924         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23925
23926 2010-12-25  Bruno Haible  <bruno@clisp.org>
23927
23928         printf-posix: Fix link error when a non-GCC compiler is used.
23929         * lib/stdio.in.h (printf): When not using GCC, override printf
23930         correctly.
23931         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23932
23933 2010-12-25  Bruno Haible  <bruno@clisp.org>
23934
23935         strerror_r-posix: Update doc.
23936         * doc/posix-functions/strerror_r.texi: Update doc about the return
23937         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23938
23939 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23940
23941         utimens: simplify the logic of the previous change
23942         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23943         This should not affect whether the test succeeds or fails.
23944
23945         utimens: configure better on hosts with NFS clock skew
23946         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23947         uses the clock of the local host.  It might use the clock of the
23948         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23949         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23950
23951 2010-12-25  Bruno Haible  <bruno@clisp.org>
23952
23953         ptsname test: Avoid failure on Solaris.
23954         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23955         open a pseudo-terminal; don't use BSD-style ptys.
23956         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23957
23958 2010-12-25  Bruno Haible  <bruno@clisp.org>
23959
23960         ptsname: Avoid ERANGE failure on some systems.
23961         * lib/ptsname.c (buffer): Increase size.
23962
23963 2010-12-25  Bruno Haible  <bruno@clisp.org>
23964
23965         rename, renameat: Avoid test failures at NFS mounted locations.
23966         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23967         so that subsequent mkdir calls succeed.
23968
23969 2010-12-25  Bruno Haible  <bruno@clisp.org>
23970
23971         iswblank: Fix C++ link error on Solaris 8.
23972         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23973         _GL_FUNCDECL_SYS.
23974
23975 2010-12-25  Bruno Haible  <bruno@clisp.org>
23976
23977         unistd: Fix C++ link error on Solaris 8.
23978         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23979
23980 2010-12-25  Bruno Haible  <bruno@clisp.org>
23981
23982         readlink doc: Mention an old glibc bug.
23983         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23984
23985 2010-12-25  Bruno Haible  <bruno@clisp.org>
23986
23987         fcntl-h: Fix for use of C++ on glibc systems.
23988         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23989         also on glibc systems in C++ mode.
23990         Reported by Gary V. Vaughan <gary@gnu.org>.
23991
23992 2010-12-25  Bruno Haible  <bruno@clisp.org>
23993
23994         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23995         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23996
23997 2010-12-25  Bruno Haible  <bruno@clisp.org>
23998
23999         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24000         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24001         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24002         test whether truncl works according to ISO C 99 with IEC 60559.
24003         * m4/truncl-ieee.m4: New file.
24004         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24005         m4/signbit.m4.
24006         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24007
24008 2010-12-25  Bruno Haible  <bruno@clisp.org>
24009
24010         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24011         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24012         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24013         test whether ceill works according to ISO C 99 with IEC 60559.
24014         * m4/ceill-ieee.m4: New file.
24015         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24016         m4/signbit.m4.
24017         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24018
24019 2010-12-25  Bruno Haible  <bruno@clisp.org>
24020
24021         Ensure all prerequisites of <wchar.h> are included.
24022         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24023         before <wchar.h>.
24024         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24025         gl_MBRLEN_NUL_RETVAL): Likewise.
24026         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24027         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24028         AC_FUNC_MBRTOWC): Likewise.
24029         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24030         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24031         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24032         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24033         Likewise.
24034         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24035         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24036         (gl_WCHAR_H): Improve comments.
24037         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24038
24039 2010-12-25  Bruno Haible  <bruno@clisp.org>
24040
24041         strtok_r: Fix C syntax error in autoconf macro.
24042         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24043         characters in test program.
24044
24045 2010-12-24  Bruno Haible  <bruno@clisp.org>
24046
24047         ceil, trunc, round: Fix gcc warnings.
24048         * lib/ceil.c (MIN): Undefine before redefining.
24049         * lib/trunc.c (MIN): Likewise.
24050         * lib/round.c (MIN): Likewise.
24051         Include <math.h> first.
24052
24053 2010-12-24  Bruno Haible  <bruno@clisp.org>
24054
24055         select tests: Avoid failures on OSF/1 5.1.
24056         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24057         failure of closing the last socket; it may fail with ECONNRESET.
24058
24059 2010-12-24  Eric Blake  <eblake@redhat.com>
24060
24061         stdint: avoid HP-UX 10.20 preprocessor bug
24062         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24063         than #if.
24064         * tests/test-floor2.c (main): Likewise.
24065         Reported by Peter O'Gorman.
24066
24067         pipe: make obsoletion transition easier
24068         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24069         * modules/pipe (Files): Include revived file.
24070         (Include): Drop reference, to mirror getdate's behavior.
24071
24072 2010-12-24  Bruno Haible  <bruno@clisp.org>
24073
24074         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24075         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24076         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24077         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24078
24079 2010-12-24  Bruno Haible  <bruno@clisp.org>
24080
24081         gethostname: Ensure declaration on NonStop Kernel.
24082         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24083         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24084
24085 2010-12-24  Bruno Haible  <bruno@clisp.org>
24086
24087         sys_select: Ensure all necessary types on NonStop Kernel.
24088         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24089         include <sys/time.h>.
24090         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24091         NonStop Kernel.
24092         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24093
24094 2010-12-24  Bruno Haible  <bruno@clisp.org>
24095
24096         sys_select: Remove unneeded include.
24097         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24098         have <sys/select.h>.
24099
24100 2010-12-24  Bruno Haible  <bruno@clisp.org>
24101
24102         gethostname: Provide a fallback for HOST_NAME_MAX.
24103         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24104         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24105         instead.
24106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24107
24108 2010-12-24  Bruno Haible  <bruno@clisp.org>
24109
24110         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24111         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24112         (SA_RESTART): Likewise.
24113         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24114
24115 2010-12-24  Bruno Haible  <bruno@clisp.org>
24116
24117         signal: Define NSIG.
24118         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24119         * tests/test-signal.c (nsig): New variable.
24120         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24121
24122 2010-12-24  Bruno Haible  <bruno@clisp.org>
24123
24124         rename, renameat: Avoid test failures on OSF/1 5.1.
24125         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24126         alternative error codes.
24127         * tests/test-renameat.c (main): Likewise.
24128
24129 2010-12-24  Bruno Haible  <bruno@clisp.org>
24130
24131         *printf: Detect large precisions bug on Solaris 10/SPARC.
24132         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24133         by Paul Eggert.
24134         * tests/test-snprintf-posix.h (test_function): Add this test code here
24135         too.
24136         * tests/test-sprintf-posix.h (test_function): Likewise.
24137         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24138         * tests/test-vasprintf-posix.c (test_function): Likewise.
24139         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24140         around by gnulib.
24141         * doc/posix-functions/printf.texi: Likewise.
24142         * doc/posix-functions/snprintf.texi: Likewise.
24143         * doc/posix-functions/sprintf.texi: Likewise.
24144         * doc/posix-functions/vfprintf.texi: Likewise.
24145         * doc/posix-functions/vprintf.texi: Likewise.
24146         * doc/posix-functions/vsnprintf.texi: Likewise.
24147         * doc/posix-functions/vsprintf.texi: Likewise.
24148         * doc/posix-functions/dprintf.texi: Undo last commit.
24149         * doc/posix-functions/vdprintf.texi: Likewise.
24150
24151 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24152
24153         tests: port test-fdutimensat.c to Solaris 8
24154         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24155         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24156         On Solaris 8, it fails with errno == ENOSYS, because there is no
24157         futimens (so it can't use the fd), and there is no lutimens (so it
24158         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24159
24160         vsnprintf: make more consistent with snprintf; doc fixes
24161
24162         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24163         the byte count return problem was promoted from the snprintf-posix
24164         to the snprintf module.
24165         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24166         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24167         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24168         * tests/test-snprintf.c (main): Check the byte count returned.
24169         * tests/test-vsnprintf.c (main): Likewise.
24170
24171 2010-12-23  Eric Blake  <eblake@redhat.com>
24172
24173         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24174         * modules/sigpipe (License): Relax license.
24175
24176 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24177
24178         doc: document Solaris printf bug with large float precisions
24179         * doc/posix-functions/dprintf.texi (dprintf):
24180         * doc/posix-functions/fprintf.texi (fprintf):
24181         * doc/posix-functions/printf.texi (printf):
24182         * doc/posix-functions/snprintf.texi (snprintf):
24183         * doc/posix-functions/sprintf.texi (sprintf):
24184         * doc/posix-functions/vdprintf.texi (vdprintf):
24185         * doc/posix-functions/vfprintf.texi (vfprintf):
24186         * doc/posix-functions/vprintf.texi (vprintf):
24187         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24188         * doc/posix-functions/vsprintf.texi (vsprintf):
24189         Mention that these functions mishandle large floating point
24190         precisions on Solaris 10.  The same bug is also present in Solaris
24191         8, and I assume earlier.  This causes "cd gnulib-tests; make
24192         check" to fail on Solaris 8 (and I assume, later) when building
24193         the latest coreutils, in test-vasprintf-posix's call to
24194         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24195         the wide flavors (e.g., wprintf) so this patch just updates the
24196         documentation for the narrow ones.
24197
24198         test-posixtm.c: add two tests
24199         * tests/test-posixtm.c: Add two tests, to highlight the
24200         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24201         around this bug; this is merely to document it.
24202
24203 2010-12-22  Bruno Haible  <bruno@clisp.org>
24204
24205         getlogin_r: Work around portability problem on OSF/1.
24206         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24207         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24208         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24209         test for a truncated result.
24210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24211         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24212         * modules/getlogin_r (Depends-on): Add memchr.
24213         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24214
24215 2010-12-22  Bruno Haible  <bruno@clisp.org>
24216
24217         ptsname: Avoid test failure on OSF/1 5.1.
24218         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24219         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24220         (same_slave): New function.
24221         (main): Use it to compare ptsname's result with the expected file name.
24222
24223 2010-12-22  Bruno Haible  <bruno@clisp.org>
24224
24225         Port extended stdio modules to HP NonStop Kernel.
24226         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24227         macros.
24228         * lib/fbufmode.c: Update comments.
24229         * lib/fflush.c: Likewise.
24230         * lib/fpurge.c: Likewise.
24231         * lib/freadable.c: Likewise.
24232         * lib/freadahead.c: Likewise.
24233         * lib/freading.c: Likewise.
24234         * lib/freadptr.c: Likewise.
24235         * lib/freadseek.c: Likewise.
24236         * lib/fseeko.c: Likewise.
24237         * lib/fseterr.c: Likewise.
24238         * lib/fwritable.c: Likewise.
24239         * lib/fwriting.c: Likewise.
24240         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24241
24242 2010-12-22  Bruno Haible  <bruno@clisp.org>
24243
24244         ttyname_r: Work around bug on OSF/1 5.1.
24245         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24246         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24247         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24248         present.
24249         * lib/ttyname_r.c (ttyname_r): Update comments.
24250
24251 2010-12-22  Bruno Haible  <bruno@clisp.org>
24252
24253         round: Implement result sign according to IEEE 754.
24254         * lib/round.c (MIN, MINUS_ZERO): New macros.
24255         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24256         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24257         * tests/test-round-ieee.c (main): Likewise.
24258         * tests/test-roundl-ieee.c (main): Likewise.
24259
24260         trunc: Implement result sign according to IEEE 754.
24261         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24262         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24263         * tests/test-trunc2.c: Include minus-zero.h.
24264         (MINUS_ZERO): New macro.
24265         (trunc_reference): Keep in sync with lib/trunc.c.
24266         * tests/test-truncf2.c: Include minus-zero.h.
24267         (MINUS_ZERO): New macro.
24268         (truncf_reference): Keep in sync with lib/trunc.c.
24269         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24270         * tests/test-trunc-ieee.c (main): Likewise.
24271         * tests/test-truncl-ieee.c (main): Likewise.
24272
24273         ceil: Implement result sign according to IEEE 754.
24274         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24275         (FUNC): Return -0.0 for -1 < x < 0.
24276         * tests/test-ceil2.c: Include minus-zero.h.
24277         (MINUS_ZERO): New macro.
24278         (ceil_reference): Keep in sync with lib/ceil.c.
24279         * tests/test-ceilf2.c: Include minus-zero.h.
24280         (MINUS_ZERO): New macro.
24281         (ceilf_reference): Keep in sync with lib/ceil.c.
24282         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24283         * tests/test-ceil-ieee.c (main): Likewise.
24284         * tests/test-ceill-ieee.c (main): Likewise.
24285
24286         floor: Implement result sign according to IEEE 754.
24287         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24288         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24289         * tests/test-floorf2.c (floorf_reference): Likewise.
24290         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24291         * tests/test-floor-ieee.c (main): Likewise.
24292         * tests/test-floorl-ieee.c (main): Likewise.
24293
24294 2010-12-22  Bruno Haible  <bruno@clisp.org>
24295
24296         getaddrinfo: Update doc.
24297         * doc/posix-functions/gai_strerror.texi: Return type is also different
24298         on AIX and HP-UX.
24299
24300 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24301
24302         getaddrinfo, inet_ntop: Update doc for Solaris.
24303         * doc/posix-functions/gai_strerror.texi: Return type is also an
24304         issue on Solaris 9 and earlier.
24305         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24306         on Solaris 10 and earlier.
24307
24308 2010-12-21  Bruno Haible  <bruno@clisp.org>
24309
24310         New module 'roundl-ieee'.
24311         * modules/roundl-ieee: New file.
24312         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24313         test whether roundl works according to ISO C 99 with IEC 60559.
24314         * m4/roundl-ieee.m4: New file.
24315         * modules/roundl-ieee-tests: New file.
24316         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24317         * tests/test-roundl.c (main): Remove signbit tests.
24318         * modules/roundl-tests (Depends-on): Remove signbit.
24319         * doc/posix-functions/roundl.texi: Mention the new module.
24320
24321 2010-12-21  Bruno Haible  <bruno@clisp.org>
24322
24323         New module 'truncl-ieee'.
24324         * modules/truncl-ieee: New file.
24325         * modules/truncl-ieee-tests: New file.
24326         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24327         * tests/test-truncl.c (main): Remove signbit tests.
24328         * modules/truncl-tests (Depends-on): Remove signbit.
24329         * doc/posix-functions/truncl.texi: Mention the new module.
24330
24331 2010-12-21  Bruno Haible  <bruno@clisp.org>
24332
24333         New module 'ceill-ieee'.
24334         * modules/ceill-ieee: New file.
24335         * modules/ceill-ieee-tests: New file.
24336         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24337         * tests/test-ceill.c (main): Remove signbit tests.
24338         * modules/ceill-tests (Depends-on): Remove signbit.
24339         * doc/posix-functions/ceill.texi: Mention the new module.
24340
24341 2010-12-21  Bruno Haible  <bruno@clisp.org>
24342
24343         New module 'floorl-ieee'.
24344         * modules/floorl-ieee: New file.
24345         * modules/floorl-ieee-tests: New file.
24346         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24347         * tests/test-floorl.c (main): Remove signbit tests.
24348         * modules/floorl-tests (Depends-on): Remove signbit.
24349         * doc/posix-functions/floorl.texi: Mention the new module.
24350
24351 2010-12-21  Bruno Haible  <bruno@clisp.org>
24352
24353         New module 'round-ieee'.
24354         * modules/round-ieee: New file.
24355         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24356         whether round works according to ISO C 99 with IEC 60559.
24357         * m4/round-ieee.m4: New file.
24358         * modules/round-ieee-tests: New file.
24359         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24360         * tests/test-round1.c (main): Remove signbit tests.
24361         * modules/round-tests (Depends-on): Remove 'signbit'.
24362         * doc/posix-functions/round.texi: Mention the new module.
24363
24364 2010-12-21  Bruno Haible  <bruno@clisp.org>
24365
24366         New module 'trunc-ieee'.
24367         * modules/trunc-ieee: New file.
24368         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24369         whether trunc works according to ISO C 99 with IEC 60559.
24370         * m4/trunc-ieee.m4: New file.
24371         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24373         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24374         * modules/trunc-ieee-tests: New file.
24375         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24376         * tests/test-trunc1.c (main): Remove signbit tests.
24377         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24378         * doc/posix-functions/trunc.texi: Mention the new module.
24379
24380 2010-12-21  Bruno Haible  <bruno@clisp.org>
24381
24382         New module 'ceil-ieee'.
24383         * modules/ceil-ieee: New file.
24384         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24385         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24386         ISO C 99 with IEC 60559.
24387         * m4/ceil-ieee.m4: New file.
24388         * modules/ceil (Files): Add lib/ceil.c.
24389         (Depends-on): Add 'float'.
24390         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24391         * lib/math.in.h (ceil): New declaration.
24392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24393         REPLACE_CEIL.
24394         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24395         * modules/ceil-ieee-tests: New file.
24396         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24397         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24398         * doc/posix-functions/ceil.texi: Mention the new module.
24399
24400 2010-12-21  Bruno Haible  <bruno@clisp.org>
24401
24402         New module 'floor-ieee'.
24403         * modules/floor-ieee: New file.
24404         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24405         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24406         ISO C 99 with IEC 60559.
24407         * m4/floor-ieee.m4: New file.
24408         * modules/floor (Files): Add lib/floor.c.
24409         (Depends-on): Add 'float'.
24410         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24411         * lib/math.in.h (floor): New declaration.
24412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24413         REPLACE_FLOOR.
24414         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24415         * modules/floor-ieee-tests: New file.
24416         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24417         * tests/test-math-c++.cc: Check the signature of 'floor'.
24418         * doc/posix-functions/floor.texi: Mention the new module.
24419
24420 2010-12-21  Bruno Haible  <bruno@clisp.org>
24421
24422         New module 'roundf-ieee'.
24423         * modules/roundf-ieee: New file.
24424         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24425         test whether roundf works according to ISO C 99 with IEC 60559.
24426         * m4/roundf-ieee.m4: New file.
24427         * modules/roundf-ieee-tests: New file.
24428         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24429         * tests/test-roundf1.c (main): Remove signbit tests.
24430         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24431         * doc/posix-functions/roundf.texi: Mention the new module.
24432
24433 2010-12-21  Bruno Haible  <bruno@clisp.org>
24434
24435         New module 'truncf-ieee'.
24436         * modules/truncf-ieee: New file.
24437         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24438         test whether truncf works according to ISO C 99 with IEC 60559.
24439         * m4/truncf-ieee.m4: New file.
24440         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24442         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24443         * modules/truncf-ieee-tests: New file.
24444         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24445         * tests/test-truncf1.c (main): Remove signbit tests.
24446         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24447         * doc/posix-functions/truncf.texi: Mention the new module.
24448
24449 2010-12-21  Bruno Haible  <bruno@clisp.org>
24450
24451         New module 'ceilf-ieee'.
24452         * modules/ceilf-ieee: New file.
24453         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24454         test whether ceilf works according to ISO C 99 with IEC 60559.
24455         * m4/ceilf-ieee.m4: New file.
24456         * modules/ceilf-ieee-tests: New file.
24457         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24458         * tests/test-ceilf1.c (main): Remove signbit tests.
24459         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24460         * doc/posix-functions/ceilf.texi: Mention the new module.
24461
24462 2010-12-21  Bruno Haible  <bruno@clisp.org>
24463
24464         New module 'floorf-ieee'.
24465         * modules/floorf-ieee: New file.
24466         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24467         test whether floorf works according to ISO C 99 with IEC 60559.
24468         * m4/floorf-ieee.m4: New file.
24469         * modules/floorf-ieee-tests: New file.
24470         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24471         * tests/test-floorf1.c (main): Remove signbit tests.
24472         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24473         * doc/posix-functions/floorf.texi: Mention the new module.
24474
24475 2010-12-21  Bruno Haible  <bruno@clisp.org>
24476
24477         Support for minus zero in autoconf macros.
24478         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24479         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24480         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24481         * tests/minus-zero.h: Update comments.
24482
24483 2010-12-21  Bruno Haible  <bruno@clisp.org>
24484
24485         Tests for module 'ceil'.
24486         * modules/ceil-tests: New file.
24487         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24488         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24489
24490 2010-12-21  Bruno Haible  <bruno@clisp.org>
24491
24492         Tests for module 'floor'.
24493         * modules/floor-tests: New file.
24494         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24495         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24496
24497 2010-12-21  Bruno Haible  <bruno@clisp.org>
24498
24499         math: Fix indentation.
24500         * lib/math.in.h (floorf): Fix indentation.
24501
24502 2010-12-21  Bruno Haible  <bruno@clisp.org>
24503
24504         Fix cross-compilation guesses on Solaris.
24505         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24506         not match "solaris2.10".
24507         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24508         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24509         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24510
24511 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24512
24513         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24514         This fixes a problem observed with the latest coreutils snapshot
24515         that caused a test to fail on Solaris 8.  src/csplit.c's call
24516         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24517         earlier, instead of returning the number of bytes that would have
24518         been generated; this causes csplit to incorrectly report memory
24519         exhaustion.
24520         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24521         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24522         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24523         comments to match.
24524         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24525         Fix typo in matching older versions of Solaris: "solaris2.10"
24526         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24527         only for guessing while cross-compiling.
24528         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24529
24530 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24531
24532         ftoastr: fix comment again
24533         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24534         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24535         Also, simplify example a bit by using flags = 0.
24536
24537 2010-12-20  Bruno Haible  <bruno@clisp.org>
24538
24539         round*, trunc*: Update documentation regarding glibc.
24540         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24541         * doc/posix-functions/round.texi: Likewise.
24542         * doc/posix-functions/roundl.texi: Likewise.
24543         * doc/posix-functions/truncf.texi: Likewise.
24544         * doc/posix-functions/trunc.texi: Likewise.
24545         * doc/posix-functions/truncl.texi: Likewise.
24546
24547 2010-12-20  Bruno Haible  <bruno@clisp.org>
24548
24549         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24550         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24551         * doc/posix-functions/round.texi: Likewise.
24552         * doc/posix-functions/roundl.texi: Likewise.
24553
24554 2010-12-20  Bruno Haible  <bruno@clisp.org>
24555
24556         ttyname_r: Add missing declaration on HP-UX 11.
24557         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24558         HAVE_TTYNAME_R.
24559         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24560         declared. Set HAVE_TTYNAME_R always.
24561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24562         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24563         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24564         HAVE_TTYNAME_R.
24565         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24566
24567 2010-12-20  Bruno Haible  <bruno@clisp.org>
24568
24569         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24570         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24571         * doc/posix-functions/getlogin_r.texi: Likewise.
24572         * tests/test-getlogin.c: Include <errno.h>.
24573         (main): Avoid test failure on HP-UX 11.11.
24574         * tests/test-getlogin_r.c (main): Likewise.
24575
24576 2010-12-20  Bruno Haible  <bruno@clisp.org>
24577
24578         getlogin_r: Add missing declaration on HP-UX 11.
24579         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24580         declared also when it exists as a function.
24581         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24582
24583 2010-12-20  Bruno Haible  <bruno@clisp.org>
24584
24585         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24586         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24587         through wcrtomb.
24588
24589 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24590
24591         ftoastr: fix comment
24592         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24593         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24594
24595 2010-12-19  Bruno Haible  <bruno@clisp.org>
24596
24597         isnan: Ensure it is a macro.
24598         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24599         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24600         Solaris.
24601
24602 2010-12-19  Bruno Haible  <bruno@clisp.org>
24603
24604         ldexpl test: Fix link error on OSF/1 5.1.
24605         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24606
24607 2010-12-19  Bruno Haible  <bruno@clisp.org>
24608
24609         wctype: Make it work in C++ mode on OSF/1 5.1.
24610         * lib/wctype.in.h (iswblank): Declare but not define here.
24611         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24612         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24613         * modules/wctype (Files): Add lib/iswblank.c.
24614
24615 2010-12-19  Bruno Haible  <bruno@clisp.org>
24616
24617         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24618         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24619         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24620
24621 2010-12-19  Bruno Haible  <bruno@clisp.org>
24622
24623         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24625         _POSIX_PII_SOCKET.
24626         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24627         * doc/posix-functions/recvfrom.texi: Likewise.
24628         * doc/posix-functions/send.texi: Likewise.
24629         * doc/posix-functions/sendto.texi: Likewise.
24630
24631 2010-12-19  Bruno Haible  <bruno@clisp.org>
24632
24633         tcgetsid: Add missing declaration on OSF/1 5.1.
24634         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24635         HAVE_TCGETSID.
24636         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24637         Don't set HAVE_TCGETSID.
24638         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24639         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24640         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24641         HAVE_TCGETSID.
24642         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24643
24644 2010-12-19  Bruno Haible  <bruno@clisp.org>
24645
24646         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24647         * lib/stdio.in.h: During the include_next statement, let recursive
24648         includes of this file include only the system header file.
24649
24650 2010-12-19  Bruno Haible  <bruno@clisp.org>
24651
24652         iconv_open: Fix regression from 2010-12-04.
24653         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24654         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24655
24656 2010-12-19  Bruno Haible  <bruno@clisp.org>
24657
24658         stdbool test: Avoid a gcc warning.
24659         * tests/test-stdbool.c (main): Fail if e1 is false.
24660         Reported by Jim Meyering.
24661
24662 2010-12-19  Jim Meyering  <meyering@redhat.com>
24663
24664         setenv: restore to working order
24665         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24666         mistakenly removed.
24667         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24668         HAVE_SETENV.
24669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24670         HAVE_SETENV.
24671
24672 2010-12-19  Bruno Haible  <bruno@clisp.org>
24673
24674         Document some different function declarations on OSF/1 5.1.
24675         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24676         * doc/posix-functions/inet_ntop.texi: Likewise.
24677         * doc/posix-functions/gethostname.texi: Likewise.
24678         * lib/unistd.in.h (gethostname): Update comment.
24679
24680 2010-12-19  Bruno Haible  <bruno@clisp.org>
24681
24682         doc: Mention vasprintf-posix module.
24683         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24684         the 'vasprintf-posix' module.
24685         * doc/glibc-functions/vasprintf.texi: Likewise.
24686
24687 2010-12-19  Bruno Haible  <bruno@clisp.org>
24688
24689         unsetenv: Add missing declaration on OSF/1 5.1.
24690         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24691         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24692         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24694         not HAVE_UNSETENV.
24695         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24696         HAVE_UNSETENV.
24697         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24698
24699 2010-12-19  Bruno Haible  <bruno@clisp.org>
24700
24701         setenv: Add missing declaration on OSF/1 5.1.
24702         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24703         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24704         declared. Don't set HAVE_SETENV.
24705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24706         not HAVE_SETENV.
24707         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24708         HAVE_SETENV.
24709         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24710
24711 2010-12-19  Bruno Haible  <bruno@clisp.org>
24712
24713         nl_langinfo tests: Avoid gcc warning.
24714         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24715
24716 2010-12-19  Bruno Haible  <bruno@clisp.org>
24717
24718         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24719         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24720         _GL_CXXALIAS_SYS.
24721
24722 2010-12-19  Bruno Haible  <bruno@clisp.org>
24723
24724         stdbool: Relax test.
24725         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24726         address to 'bool' work in static initializer, for compilers other than
24727         GCC.
24728
24729 2010-12-19  Bruno Haible  <bruno@clisp.org>
24730
24731         ftello: Add missing declaration on OSF/1 5.1.
24732         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24733         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24735         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24736         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24737
24738 2010-12-19  Bruno Haible  <bruno@clisp.org>
24739
24740         fseeko: Add missing declaration on OSF/1 5.1.
24741         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24742         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24744         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24745         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24746
24747 2010-12-19  Bruno Haible  <bruno@clisp.org>
24748
24749         fchdir: Add missing declaration on OSF/1 5.1.
24750         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24751         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24753         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24754         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24755
24756 2010-12-19  Bruno Haible  <bruno@clisp.org>
24757
24758         relocatable-prog-wrapper: Separate from relocatable-prog.
24759         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24760         uninstall-relocwrapper rule here.
24761         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24762         Reported by Ian Beckwith <ianb@erislabs.net>.
24763
24764 2010-12-19  Bruno Haible  <bruno@clisp.org>
24765
24766         unistr/u8-mbsnlen: Add missing dependency.
24767         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24768         Reported by Ian Beckwith <ianb@erislabs.net>.
24769
24770 2010-12-19  Bruno Haible  <bruno@clisp.org>
24771
24772         iconv: Make it possible again to use this module without 'iconv-h'.
24773         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24774         if it is not defined.
24775         Reported by Ian Beckwith <ianb@erislabs.net>.
24776
24777 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24778
24779         acl: port to Solaris 8 when copying from tmpfs to ufs
24780         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24781         error number.  Problem observed on Solaris 8 with latest
24782         coreutils, with "mv A B", where A is on a tmpfs file system and B
24783         is on a ufs file system.  This caused coreutils' mv/part-symlink
24784         test to fail.
24785
24786         tests: set fail=0 at start
24787         * tests/init.sh (setup_): Move fail=0 initialization here ...
24788         (mktempd_): ... from here, so that tests can rely on fail being
24789         set to 0 initially.  This fixes a problem in coreutils; see:
24790         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24791
24792 2010-12-18  Bruno Haible  <bruno@clisp.org>
24793
24794         memmem-simple: Stylistic changes.
24795         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24796         Fix preprocessor directive indentation.
24797
24798 2010-12-15  Pádraig Brady <P@draigBrady.com>
24799
24800         memmem, memmem-simple: reorganize and expand empty needle check
24801         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24802         functional checks to memmem-simple so that one has a fully functional
24803         memmem by using just this module.
24804         Restrict the performance only check to the memmem module.
24805         Also expand the empty needle check to ensure the correct
24806         pointer is returned, not just a non NULL pointer.
24807         * doc/glibc-functions/memmem.texi: Rearrange the portability
24808         documentation to correlate with the rearranged checks.
24809         Clarify exactly how the memmem and memmem-simple modules
24810         relate to each other.
24811
24812 2010-12-15  Pádraig Brady <P@draigBrady.com>
24813             Bruno Haible  <bruno@clisp.org>
24814
24815         Improve cross-compilation guesses for uClibc.
24816         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24817         that uClibc does not have the glibc bug.
24818         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24819         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24820
24821 2010-12-14  Eric Blake  <eblake@redhat.com>
24822
24823         configmake: provide fallbacks for oldest supported autotools
24824         * m4/configmake.m4: New file.
24825         * modules/configmake (Files): Ship it.
24826         (configure.ac): Use it to guarantee fallbacks.
24827
24828 2010-12-13  Pádraig Brady <P@draigBrady.com>
24829
24830         read-file: Improve handling of large files
24831         * lib/read-file.c (fread_file): Minimize realloc()s
24832         for regular files, and better manage sizes around SIZE_MAX.
24833
24834 2010-12-13  Eric Blake  <eblake@redhat.com>
24835
24836         cloexec, fcntl: relax license
24837         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24838         consent from all contributors.
24839         * modules/fcntl (License): Likewise.
24840
24841 2010-12-10  Bruno Haible  <bruno@clisp.org>
24842
24843         Tests for module 'pipe-posix'.
24844         * modules/pipe-posix-tests: New file.
24845         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24846
24847 2010-12-10  Bruno Haible  <bruno@clisp.org>
24848
24849         pipe-posix: Make it work in C++ mode.
24850         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24851         (pipe): Use common idiom, not a macro definition.
24852         * lib/pipe.c: New file.
24853         * m4/pipe.m4: New file.
24854         * modules/pipe-posix (Description): Enhance.
24855         (Files): Add lib/pipe.c, m4/pipe.m4.
24856         (configure.ac): Invoke gl_FUNC_PIPE.
24857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24858         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24859         * tests/test-unistd-c++.cc: Check the signature of pipe.
24860
24861 2010-12-10  Bruno Haible  <bruno@clisp.org>
24862
24863         Rename module 'pipe' to 'spawn-pipe'.
24864         * modules/spawn-pipe: New file, renamed from modules/pipe.
24865         (Files, configure.ac, Makefile.am): Update.
24866         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24867         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24868         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24869         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24870         "spawn-pipe.h" instead of "pipe.h".
24871         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24872         to gl_SPAWN_PIPE.
24873         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24874         (Files, Makefile.am): Update.
24875         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24876         Update.
24877         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24878         Include "spawn-pipe.h" instead of "pipe.h".
24879         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24880         * lib/javacomp.c: Likewise.
24881         * lib/javaversion.c: Likewise.
24882         * lib/pipe-filter-gi.c: Likewise.
24883         * lib/pipe-filter-ii.c: Likewise.
24884         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24885         * modules/javacomp (Depends-on): Likewise.
24886         * modules/javaversion (Depends-on): Likewise.
24887         * modules/pipe-filter-gi (Depends-on): Likewise.
24888         * modules/pipe-filter-ii (Depends-on): Likewise.
24889         * MODULES.html.sh (Executing programs): Update.
24890         * NEWS: Mention the change.
24891
24892 2010-12-10  Eric Blake  <eblake@redhat.com>
24893
24894         pipe-posix: new module
24895         * modules/pipe-posix: New file.
24896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24897         (gl_UNISTD_H): Check for declaration.
24898         * modules/unistd (Makefile.am): Substitute it.
24899         * lib/unistd.in.h (pipe): Provide it for mingw.
24900         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24901         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24902
24903 2010-12-07  Bruno Haible  <bruno@clisp.org>
24904
24905         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24906         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24907         u8_strcmp_gnu.
24908         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24909
24910 2010-12-06  Bruno Haible  <bruno@clisp.org>
24911
24912         Update internal documentation.
24913         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24914
24915 2010-12-04  Bruno Haible  <bruno@clisp.org>
24916
24917         Put more information about failed tests into the test return codes.
24918         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24919         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24920         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24921         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24922         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24923         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24924         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24925         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24926         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24929         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24930         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24931         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24932         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24933         returns a bit mask.
24934         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24935         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24936         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24937         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24938         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24942         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24943         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24944         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24945         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24948         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24949         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24950         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24951         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24952         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24953         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24955         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24956         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24957         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24958         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24959         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24960         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24961         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24962         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24963         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24964         gl_PRINTF_PRECISION): Likewise.
24965         * m4/regex.m4 (gl_REGEX): Likewise.
24966         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24967         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24968         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24969         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24971         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24972         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24973         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24974         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24975         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24976         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24977         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24978         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24979         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24980         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24981         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24982         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24983         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24984         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24985         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24986         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24987         enumerated value.
24988         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24989
24990 2010-12-04  Bruno Haible  <bruno@clisp.org>
24991
24992         Update for Solaris 11 2010-11.
24993         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24994         Express, released in November 2010.
24995
24996 2010-12-04  Bruno Haible  <bruno@clisp.org>
24997
24998         nproc: Relax license.
24999         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25000         and Paul Eggert.
25001         Requested by Ludovic Courtès <ludo@gnu.org>.
25002
25003 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25004
25005         utimecmp: fine-grained src to nearby coarse-grained dest
25006
25007         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25008         and the source is on a file system with higher-resolution time
25009         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25010         not work, and the time stamps are close together, the algorithm to
25011         determine the exact resolution from the read-back mtime was buggy:
25012         it had a "!=" where it should have had an "==".  This bug has been
25013         in the code ever since it was introduced to gnulib.
25014         Problem reported by Dan Jacobson in
25015         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25016
25017 2010-11-30  Bruno Haible  <bruno@clisp.org>
25018
25019         strerror_r-posix: Fix autoconf test.
25020         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25021
25022 2010-11-28  Bruno Haible  <bruno@clisp.org>
25023             Paul Eggert  <eggert@cs.ucla.edu>
25024
25025         Tests for module 'getdomainname'.
25026         * modules/getdomainname-tests: New file.
25027         * tests/test-getdomainname.c: New file, based on
25028         tests/test-gethostname.c.
25029
25030 2010-11-28  Bruno Haible  <bruno@clisp.org>
25031             Paul Eggert  <eggert@cs.ucla.edu>
25032
25033         getdomainname: Use the system function when possible.
25034         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25035         (getdomainname): Replace if needed. Provide the declaration if it is
25036         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25037         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25038         (getdomainname): When the system has getdomainname, call the system
25039         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25040         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25041         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25042         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25043         the function if its second argument is of type 'int' or if it is found
25044         in libnsl.
25045         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25046         <sys/systeminfo.h> and sysinfo().
25047         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25049         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25050         HAVE_GETDOMAINNAME.
25051         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25052         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25053         * doc/glibc-functions/getdomainname.texi: Document the problems with
25054         the getdomainname declaration.
25055
25056 2010-11-28  Bruno Haible  <bruno@clisp.org>
25057
25058         sys_socket: Ensure ss_family field on AIX.
25059         * lib/sys_socket.in.h (ss_family): New macro definition.
25060         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25061         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25062         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25063         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25064         * modules/sys_socket (Makefile.am): Substitute
25065         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25066         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25067
25068 2010-11-27  Bruno Haible  <bruno@clisp.org>
25069
25070         readline: Improve configure output.
25071         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25072         "checking for readline..." result understandable.
25073
25074 2010-11-27  Bruno Haible  <bruno@clisp.org>
25075
25076         *printf-posix: Detect a bug on Solaris 10/x86.
25077         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25078         for floating-point output.
25079         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25080         directive.
25081         * tests/test-snprintf-posix.h (test_function): Likewise.
25082         * tests/test-sprintf-posix.h (test_function): Likewise.
25083         * tests/test-vasprintf-posix.c (test_function): Likewise.
25084         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25085         * doc/posix-functions/printf.texi: Likewise.
25086         * doc/posix-functions/snprintf.texi: Likewise.
25087         * doc/posix-functions/sprintf.texi: Likewise.
25088         * doc/posix-functions/vfprintf.texi: Likewise.
25089         * doc/posix-functions/vprintf.texi: Likewise.
25090         * doc/posix-functions/vsnprintf.texi: Likewise.
25091         * doc/posix-functions/vsprintf.texi: Likewise.
25092         * doc/glibc-functions/obstack_printf.texi: Likewise.
25093         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25094
25095 2010-11-27  Bruno Haible  <bruno@clisp.org>
25096
25097         Fix link error when module libunistring-optional is in use.
25098         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25099         * modules/striconveha-tests (Makefile.am): Likewise.
25100
25101 2010-11-27  Bruno Haible  <bruno@clisp.org>
25102
25103         regex: Mention link dependencies.
25104         * modules/regex (Link): New section.
25105         * modules/rpmatch (Link): Likewise.
25106         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25107
25108 2010-11-27  Bruno Haible  <bruno@clisp.org>
25109
25110         ftoastr: Fix compilation error on Solaris.
25111         * lib/ftoastr.c: Include <config.h>.
25112
25113 2010-11-27  Bruno Haible  <bruno@clisp.org>
25114
25115         getloadavg: Update documentation.
25116         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25117
25118 2010-11-27  Bruno Haible  <bruno@clisp.org>
25119
25120         sys_socket: Fix test whether the functions are declared.
25121         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25122         not <sys/select.h>.
25123
25124 2010-11-27  Bruno Haible  <bruno@clisp.org>
25125
25126         getpass: Make sure to get system declaration on some platforms.
25127         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25128         gl_USE_SYSTEM_EXTENSIONS.
25129         * modules/getpass (Depends-on): Add extensions.
25130
25131 2010-11-26  Bruno Haible  <bruno@clisp.org>
25132
25133         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25134         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25135         'iconv' module is present.
25136         (ICONV_CONST): New macro.
25137         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25138         ICONV_CONST.
25139         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25140         set ICONV_CONST.
25141         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25142         here.
25143         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25144         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25145         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25146         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25147         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25148         present.
25149
25150 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25151
25152         ftoastr: comment fix
25153         * lib/ftoastr.c: "little" -> "little or no" in comment
25154
25155 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25156
25157         stdint: port to GCC 4.3 + OSX + Octave
25158         On this platform, stdint.h is buggy and defines int64_t to long
25159         long int.  The replacement defined it to long int, causing
25160         problems with C++ style name mangling.  Instead, trust the system
25161         definition if INT64_MAX is defined, and likewise for the unsigned
25162         variant.   Problem reported by Jarno Rajahalme in
25163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25164         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25165         and don't mess with int64_t and INT64_MAX in this case.
25166         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25167
25168 2010-11-24  Bruno Haible  <bruno@clisp.org>
25169
25170         doc: Corrections regarding MacOS X 10.4 and 10.5.
25171         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25172         MacOS X.
25173         Reported by Simon Josefsson.
25174
25175 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25176
25177         Uninstall ".bin" files installed by relocwrapper.
25178         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25179         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25180         unless it is already there.
25181
25182 2010-11-21  Bruno Haible  <bruno@clisp.org>
25183
25184         Update for NetBSD 5.0.
25185         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25186         NetBSD; the test fails on NetBSD 5.0.
25187         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25188         about NetBSD.
25189
25190 2010-11-21  Bruno Haible  <bruno@clisp.org>
25191
25192         Update for HP-UX 11.23 and HP-UX 11.31.
25193         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25194         HP-UX.
25195
25196 2010-11-21  Bruno Haible  <bruno@clisp.org>
25197
25198         Update for MacOS X 10.5.
25199         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25200         MacOS X; the test fails on MacOS X 10.5.8.
25201         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25202         about MacOS X.
25203
25204 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25205
25206         bootstrap: add bootstrap_sync option.
25207         See discussion at
25208         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25210         * build-aux/bootstrap: Accept --bootstrap-sync to update
25211         bootstrap if it is not identical to the local gnulib's
25212         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25213         enable this by default.  Accept --no-bootstrap-sync to disable
25214         it.
25215
25216 2010-11-20  Bruno Haible  <bruno@clisp.org>
25217
25218         Ensure that <features.h> is included before __GLIBC__ is tested.
25219         * lib/printf-parse.h: Include <features.h>.
25220         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25221         Reported by Mike Frysinger <vapier@gentoo.org>.
25222
25223         Ensure that <features.h> is included before __GLIBC__ is tested.
25224         * lib/wchar.in.h: Include <features.h>.
25225         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25226         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25227         Reported by Mike Frysinger <vapier@gentoo.org>.
25228
25229         Ensure that <features.h> is included before __GLIBC__ is tested.
25230         * lib/arpa_inet.in.h: Include <features.h>.
25231         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25232         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25233         Reported by Mike Frysinger <vapier@gentoo.org>.
25234
25235         Ensure that <features.h> is included before __GLIBC__ is tested.
25236         * build-aux/link-warning.h: Include <features.h>.
25237         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25238         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25239         Reported by Mike Frysinger <vapier@gentoo.org>.
25240
25241         Ensure that <features.h> is included before __GLIBC__ is tested.
25242         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25243         Reported by Mike Frysinger <vapier@gentoo.org>.
25244
25245 2010-11-20  Bruno Haible  <bruno@clisp.org>
25246
25247         memmem: Fix autoconf test.
25248         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25249
25250 2010-11-20  Bruno Haible  <bruno@clisp.org>
25251
25252         Port to uClibc.
25253         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25254         * lib/fcntl.in.h: Likewise.
25255         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25256         * lib/mbrtowc.c (mbrtowc): Likewise.
25257         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25258         * lib/strerror_r.c: Likewise.
25259         * lib/unistr/u8-strnlen.c: Likewise.
25260         * lib/vasnprintf.c (decimal_point_char): Likewise.
25261         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25262         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25263         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25264         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25265         * tests/test-sigaction.c (handler, main): Likewise.
25266         * lib/freading.h: Treat uClibc like a non-glibc platform.
25267         * lib/freading.c: Likewise.
25268         * lib/gettext.h: Likewise.
25269         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25270         Likewise.
25271         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25272         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25273         * lib/propername.c (proper_name_utf8): Likewise.
25274         * lib/spawn.in.h: Likewise.
25275         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25276         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25277         mem_cd_iconveh_internal): Likewise.
25278         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25279         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25280         strstr, strcasestr): Likewise.
25281         * lib/unicodeio.c (unicode_to_mb): Likewise.
25282         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25283         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25284         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25285         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25286         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25287         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25288         * lib/unistr/u8-stpncpy.c: Likewise.
25289         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25290         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25291         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25292         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25293         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25294         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25295         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25296         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25298         Likewise.
25299         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25300         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25301         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25302         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25303         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25305         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25306         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25307         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25308         * tests/test-striconveha.c (main): Likewise.
25309         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25310         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25311         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25312         * doc/posix-functions/getline.texi: Likewise.
25313         Reported by Mike Frysinger <vapier@gentoo.org>.
25314
25315 2010-11-20  Bruno Haible  <bruno@clisp.org>
25316
25317         nproc: Fix condition.
25318         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25319         HAVE_PTHREAD_AFFINITY_NP.
25320
25321 2010-11-20  Bruno Haible  <bruno@clisp.org>
25322
25323         Fix a comment.
25324         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25325
25326 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25327
25328         ftoastr: don't assume snprintf
25329         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25330         Implement a subset of snprintf here, by using sprintf safely.
25331         * modules/ftoastr (Depends-on): Remove snprintf.
25332
25333 2010-11-19  Jim Meyering  <meyering@redhat.com>
25334
25335         test-rename.h: fix compilation failure
25336         * tests/test-rename.h (test_rename): Add omitted "}".
25337
25338 2010-11-17  Jim Meyering  <meyering@redhat.com>
25339
25340         maint.mk: add a URL discussing the no-@acronym policy
25341         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25342
25343 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25344
25345         ftoastr: depend on snprintf, improve comments
25346         * lib/ftoastr.c: Also mention Loitsch's draft.
25347         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25348         needed in the current implementation, but it might simplify
25349         speeding up the code later.
25350         * modules/ftoastr: Depend on snprintf; this improves portability.
25351         Suggested by Bruno Haible in the same email.
25352
25353         ftoastr: port to hosts lacking strtof and strtold
25354         Problem reported by Bruno Haible in
25355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25356         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25357         environment and strtold (and presumably strtof) are not available.
25358         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25359         (configure.ac): Require gl_C99_STRTOLD.
25360
25361 2010-11-18  Bruno Haible  <bruno@clisp.org>
25362
25363         c-strtold: Avoid link error on AIX 7.
25364         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25365         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25366         (gl_C_STRTOLD): Test whether strtold_l exists.
25367         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25368
25369 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25370
25371         intprops: new macro INT_BITS_STRLEN_BOUND
25372         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25373         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25374         not exposed.  Also, it uses a slightly tighter bound than before;
25375         though this makes no practical difference, we might as well be as
25376         tight as we easily can.
25377
25378         ftoastr: new module, for lossless conversion of floats to short strings
25379         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25380         * modules/ftoastr: New files.
25381
25382 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25383
25384         bootstrap: port to Solaris sed
25385         * build-aux/bootstrap (get_version): Port to Solaris sed.
25386         See Ralf Wildenhues's note in
25387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25388
25389 2010-11-14  Jim Meyering  <meyering@redhat.com>
25390
25391         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25392         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25393         and move definition closer to sole use.
25394
25395 2010-11-13  Jim Meyering  <meyering@redhat.com>
25396
25397         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25398         Now we require at least autoconf-2.59, which means the work-around
25399         is no longer needed.
25400         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25401         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25402         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25403         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25404         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25405
25406 2010-11-13  Bruno Haible  <bruno@clisp.org>
25407
25408         rename, renameat: Avoid test failures at NFS mounted locations.
25409         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25410         functions.
25411         (test_rename): Use assert_nonexistent.
25412         * tests/test-rename.c: Include <dirent.h>.
25413         * tests/test-renameat.c: Likewise.
25414         Reported by Gary V. Vaughan <gary@gnu.org>.
25415
25416         rename, renameat: Document Linux bug with NFS
25417         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25418         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25419         * doc/posix-functions/renameat.texi: Likewise.
25420         Suggested by Eric Blake.
25421
25422 2010-11-13  Bruno Haible  <bruno@clisp.org>
25423
25424         rename test: Add comments.
25425         * tests/test-rename.h (test_rename): Add structure and comments.
25426
25427 2010-11-13  Eric Blake  <eblake@redhat.com>
25428
25429         maintainer-makefile: cover a few more files
25430         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25431         scripts generated within C files, for libvirt.
25432
25433 2010-11-13  Bruno Haible  <bruno@clisp.org>
25434
25435         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25436         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25437         character, return the number of bytes that belong together, not always
25438         1.
25439         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25440         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25441         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25442         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25443         number of bytes of an invalid character.
25444         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25445         (main): Invoke it.
25446         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25447         results.
25448         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25449         malformed byte sequences.
25450         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25451         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25452         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25453         Reported by Ben Pfaff and Paolo Bonzini.
25454
25455 2010-11-13  Bruno Haible  <bruno@clisp.org>
25456
25457         openat: Work around glibc bug with fchownat() and empty file names.
25458         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25459         (gl_FUNC_FCHOWNAT): Invoke it.
25460         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25461         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25462         Reported by Gary V. Vaughan <gary@gnu.org>.
25463
25464 2010-11-13  Bruno Haible  <bruno@clisp.org>
25465
25466         openat: Ensure autoconf macro ordering.
25467         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25468         gl_USE_SYSTEM_EXTENSIONS.
25469         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25470
25471 2010-11-13  Bruno Haible  <bruno@clisp.org>
25472
25473         Update comments.
25474         * lib/unistr/u8-check.c: Update file name in comments.
25475         * lib/unistr/u8-mblen.c: Likewise.
25476         * lib/unistr/u8-prev.c: Likewise.
25477         * lib/unistr/u8-strmblen.c: Likewise.
25478         * lib/unistr/u8-strmbtouc.c: Likewise.
25479
25480 2010-11-13  Jim Meyering  <meyering@redhat.com>
25481
25482         tests: avoid test failure on Solaris 10 due to lack of PATH export
25483         * tests/test-update-copyright.sh: Don't forget to export PATH.
25484
25485         init.sh: ensure that IFS is defined, just in case...
25486         * tests/init.sh (setup_): Ensure that IFS is defined,
25487         so that saving and restoring it works as expected.  This
25488         appears to be useful at least for an old version of dash
25489         from a long time ago (RH 6).  See here for details:
25490         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25491
25492         maint.mk: tighten "test a == b" check
25493         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25494         test to files that contain something like #!/bin/sh.
25495         Without this, coreutils would get two false positives in
25496         the comments of C source files.
25497
25498 2010-11-12  Eric Blake  <eblake@redhat.com>
25499
25500         bootstrap: fix typo in previous attempt
25501         * build-aux/bootstrap (buildreq): Correct the grouping.
25502         Reported by Paul Eggert.
25503
25504         maintainer-makefile: prohibit test x == x
25505         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25506         Based on a report by Matthias Bolte.
25507
25508         bootstrap: allow FreeBSD gzip
25509         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25510         which has no '.' and goes to stderr.
25511         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25512         Reported by Matthias Bolte.
25513
25514         maintainer-makefile: check for i18n setup
25515         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25516         will likely work.
25517
25518 2010-11-12  Bruno Haible  <bruno@clisp.org>
25519
25520         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25521         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25522         * lib/nanosleep.c (nanosleep): Likewise.
25523
25524 2010-11-11  Bruno Haible  <bruno@clisp.org>
25525
25526         fcntl-h: Fix for use of C++ on glibc systems.
25527         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25528         also on glibc systems in C++ mode.
25529         Reported by Gary V. Vaughan <gary@gnu.org>.
25530
25531 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25532
25533         mknod: avoid false failure with dash
25534         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25535
25536 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25537
25538         unlink: Fix "is it should" typo in diagnostic.
25539         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25540         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25541
25542 2010-11-11  Bruno Haible  <bruno@clisp.org>
25543
25544         Tests for module 'strerror_r-posix'.
25545         * modules/strerror_r-posix-tests: New file.
25546         * tests/test-strerror_r.c: New file.
25547         * tests/test-string-c++.cc: Check the signature of strerror_r.
25548
25549         New module 'strerror_r-posix'.
25550         * lib/string.in.h (strerror_r): New declaration.
25551         * lib/strerror_r.c: New file.
25552         * m4/strerror_r.m4: New file.
25553         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25554         of strerror_r.
25555         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25556         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25557         * modules/strerror_r-posix: New file.
25558         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25559         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25560         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25561         portability problems.
25562
25563 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25564
25565         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25566         line is also considered for output. Quoted function name in shell
25567         command, so temporary files for functions like MyClass::operator()
25568         are removed correctly without errors.
25569
25570 2010-11-09  Bruno Haible  <bruno@clisp.org>
25571
25572         * doc/posix-functions/strerror.texi: List more failing platforms.
25573
25574         * doc/posix-functions/strerror.texi: Add a comment.
25575
25576 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25577
25578         fdopendir: fix bug on MacOS X when low on file descriptors
25579
25580         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25581         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25582         All callers changed.
25583         (fdopendir): Invoke save_cwd at the top level, not after using
25584         multiple dup() calls to use up file descriptors.  Then retry
25585         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25586         less than the maximum number of open file descriptors, because
25587         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25588         on Mac OS X 10.6.4 for tar 1.24
25589         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25590         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25591         and for tar 1.25
25592         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25593
25594 2010-11-07  Bruno Haible  <bruno@clisp.org>
25595
25596         vasnprintf: Support I flag on glibc systems.
25597         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25598         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25599         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25600         snprintf function.
25601         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25602         glibc systems.
25603         * tests/test-vasnprintf-posix3.c: New file.
25604         * modules/vasnprintf-posix-tests (Files): Add it.
25605         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25606
25607 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25608
25609         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25610         * MODULES.html.sh: For compiler warnings, use name
25611         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25612
25613 2010-11-05  Eric Blake  <eblake@redhat.com>
25614
25615         ceil, floor: avoid spurious failure with icc
25616         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25617         [denormals-as-zero] when optimizing without -mieee-fp option.
25618         * tests/test-floorf2.c (floorf_reference): Likewise.
25619         * tests/test-ceilf1.c (dummy): New function.
25620         (main): Use it to outsmart icc's optimization.
25621         * tests/test-floorf1.c (dummy, main): Likewise.
25622
25623         tests: require working signbit
25624         * modules/ceilf-tests (Depends-on): Add signbit.
25625         * modules/ceill-tests (Depends-on): Likewise.
25626         * modules/floorf-tests (Depends-on): Likewise.
25627         * modules/floorl-tests (Depends-on): Likewise.
25628         * modules/round-tests (Depends-on): Likewise.
25629         * modules/roundf-tests (Depends-on): Likewise.
25630         * modules/roundl-tests (Depends-on): Likewise.
25631         * modules/trunc-tests (Depends-on): Likewise.
25632         * modules/truncf-tests (Depends-on): Likewise.
25633         * modules/truncl-tests (Depends-on): Likewise.
25634
25635         strtod: work around icc bug
25636         * lib/strtod.c (minus_zero): Define to working value.
25637         (strtod): Use it to avoid icc bug.
25638
25639         copysign: enhance tests
25640         * modules/copysign-tests (Files): Add minus-zero.h.
25641         * tests/test-copysign.c (main): Also test zeros.
25642
25643 2010-11-04  Eric Blake  <eblake@redhat.com>
25644
25645         ceil, floor, round, trunc: enhance tests of -0
25646         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25647         * tests/test-ceill.c (main): Likewise.
25648         * tests/test-floorf1.c (main): Likewise.
25649         * tests/test-floorl.c (main): Likewise.
25650         * tests/test-round1.c (main): Likewise.
25651         * tests/test-roundf1.c (main): Likewise.
25652         * tests/test-roundl.c (main): Likewise.
25653         * tests/test-trunc1.c (main): Likewise.
25654         * tests/test-truncf1.c (main): Likewise.
25655         * tests/test-truncl.c (main): Likewise.
25656
25657 2010-11-04  Eric Blake  <eblake@redhat.com>
25658
25659         frexp, tests: work around ICC bug with -zero
25660         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25661         works with more compilers.
25662         * tests/minus-zero.h: New file.
25663         * modules/ceilf-tests (Files): Include it.
25664         * modules/ceill-tests (Files): Likewise.
25665         * modules/floorf-tests (Files): Likewise.
25666         * modules/floorl-tests (Files): Likewise.
25667         * modules/frexp-nolibm-tests (Files): Likewise.
25668         * modules/frexp-tests (Files): Likewise.
25669         * modules/frexpl-nolibm-tests (Files): Likewise.
25670         * modules/frexpl-tests (Files): Likewise.
25671         * modules/isnan-tests (Files): Likewise.
25672         * modules/isnand-nolibm-tests (Files): Likewise.
25673         * modules/isnand-tests (Files): Likewise.
25674         * modules/isnanf-nolibm-tests (Files): Likewise.
25675         * modules/isnanf-tests (Files): Likewise.
25676         * modules/isnanl-nolibm-tests (Files): Likewise.
25677         * modules/isnanl-tests (Files): Likewise.
25678         * modules/round-tests (Files): Likewise.
25679         * modules/roundf-tests (Files): Likewise.
25680         * modules/roundl-tests (Files): Likewise.
25681         * modules/ldexpl-tests (Files): Likewise.
25682         * modules/signbit-tests (Files): Likewise.
25683         * modules/snprintf-posix-tests (Files): Likewise.
25684         * modules/sprintf-posix-tests (Files): Likewise.
25685         * modules/strtod-tests (Files): Likewise.
25686         * modules/trunc-tests (Files): Likewise.
25687         * modules/truncf-tests (Files): Likewise.
25688         * modules/truncl-tests (Files): Likewise.
25689         * modules/vsnprintf-posix-tests (Files): Likewise.
25690         * modules/vsprintf-posix-tests (Files): Likewise.
25691         * modules/vasnprintf-posix-tests (Files): Likewise.
25692         * modules/vasprintf-posix-tests (Files): Likewise.
25693         * tests/test-ceilf1.c (main): Use it.
25694         * tests/test-ceill.c (main): Likewise.
25695         * tests/test-floorf1.c (main): Likewise.
25696         * tests/test-floorl.c (main): Likewise.
25697         * tests/test-frexp.c (main): Likewise.
25698         * tests/test-frexpl.c (main): Likewise.
25699         * tests/test-isnan.c (main): Likewise.
25700         * tests/test-isnand.h (main): Likewise.
25701         * tests/test-isnanf.h (main): Likewise.
25702         * tests/test-isnanl.h (main): Likewise.
25703         * tests/test-ldexpl.c (main): Likewise.
25704         * tests/test-round.c (main): Likewise.
25705         * tests/test-roundf.c (main): Likewise.
25706         * tests/test-roundl.c (main): Likewise.
25707         * tests/test-signbit.c (test_signbitf, test_signbitd)
25708         (test_signbitl): Likewise.
25709         * tests/test-snprintf-posix.h (test_function): Likewise.
25710         * tests/test-sprintf-posix.h (test_function): Likewise.
25711         * tests/test-strtod.c (main): Likewise.
25712         * tests/test-trunc1.c (main): Likewise.
25713         * tests/test-truncf1.c (main): Likewise.
25714         * tests/test-truncl.c (main): Likewise.
25715
25716         isnanl: work around icc bug
25717         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25718
25719 2010-11-03  Eric Blake  <eblake@redhat.com>
25720
25721         tests: fix compiler warnings
25722         * tests/test-getopt.h (test_getopt): Fix condition.
25723         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25724         * tests/test-pipe2.c (main): Likewise.
25725         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25726
25727         utimens: fix broken m4 test
25728         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25729
25730 2010-10-28  Bruno Haible  <bruno@clisp.org>
25731
25732         posix_spawn*, getdtablesize: Relax license.
25733         * modules/posix_spawn (License): Change to LGPLv2+.
25734         * modules/posix_spawnp (License): Likewise.
25735         * modules/posix_spawn-internal (License): Likewise.
25736         * modules/posix_spawnattr_init (License): Likewise.
25737         * modules/posix_spawnattr_getflags (License): Likewise.
25738         * modules/posix_spawnattr_setflags (License): Likewise.
25739         * modules/posix_spawnattr_getpgroup (License): Likewise.
25740         * modules/posix_spawnattr_setpgroup (License): Likewise.
25741         * modules/posix_spawnattr_getschedparam (License): Likewise.
25742         * modules/posix_spawnattr_setschedparam (License): Likewise.
25743         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25744         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25745         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25746         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25747         * modules/posix_spawnattr_getsigmask (License): Likewise.
25748         * modules/posix_spawnattr_setsigmask (License): Likewise.
25749         * modules/posix_spawnattr_destroy (License): Likewise.
25750         * modules/posix_spawn_file_actions_init (License): Likewise.
25751         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25752         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25753         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25754         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25755         * modules/getdtablesize (License): Likewise.
25756         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25757
25758 2010-10-26  Bruno Haible  <bruno@clisp.org>
25759
25760         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25761         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25762         Cygwin and mingw.
25763         Suggested by Eric Blake.
25764
25765 2010-10-26  Bruno Haible  <bruno@clisp.org>
25766
25767         stdio: Work around compilation error due to renameat() on Solaris 10.
25768         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25769         * lib/renameat.c: Don't include <unistd.h> here.
25770         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25771         Reported by Paul Eggert and Eric Blake.
25772
25773 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25774
25775         renameat: port to Solaris 10, which declares renameat in unistd.h
25776
25777         * lib/renameat.c: Include unistd.h before stdio.h, because
25778         Solaris 10 declares renameat in unistd.h.  Problem encountered
25779         when building GNU tar 1.24 on Solaris 10.
25780
25781 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25782
25783         fdopendir: fix C89 compilation
25784         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25785         compilers.
25786
25787 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25788
25789         inttostr: simplify by removing unnecessary redundancy
25790         * lib/anytostr.c: Don't include verify.h.
25791         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25792         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25793         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25794         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25795         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25796         Likewise.
25797         * modules/inttostr (Depends-on): Remove 'verify'.
25798
25799 2010-10-23  Bruno Haible  <bruno@clisp.org>
25800
25801         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25802         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25803         Reported by Eric Blake.
25804
25805 2010-10-23  Bruno Haible  <bruno@clisp.org>
25806
25807         Tests: Fix LOCALE_JA on MirBSD 10.
25808         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25809         to an UTF-8 locale.
25810         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25811         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25812         Reported by Eric Blake.
25813
25814 2010-10-21  Bruno Haible  <bruno@clisp.org>
25815
25816         nl_langinfo test: Avoid test failure on NetBSD 5.
25817         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25818         Reported by Eric Blake.
25819
25820 2010-10-21  Eric Blake  <eblake@redhat.com>
25821
25822         c-stack: work around libsigsegv 2.8 bug
25823         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25824         overflow on at least PowerPC64.
25825
25826 2010-10-17  Bruno Haible  <bruno@clisp.org>
25827
25828         userspec: Drop redundant file.
25829         * modules/userspec (Files): Remove lib/inttostr.h.
25830
25831 2010-10-17  Bruno Haible  <bruno@clisp.org>
25832
25833         nl_langinfo tests: Silence some warnings.
25834         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25835         Reported by Jim Meyering.
25836
25837 2010-10-17  Bruno Haible  <bruno@clisp.org>
25838
25839         Make use of GCC's attribute __alloc_size__.
25840         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25841         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25842         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25843         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25844         __alloc_size__.
25845         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25846         Suggested by Jim Meyering.
25847
25848 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25849
25850         bootstrap: anchor .gitignore entries.
25851         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25852         with...
25853         (insert_vc_ignore): ... this new function, which prepends `/' to
25854         all .gitignore entries before passing them to
25855         insert_sorted_if_absent.
25856
25857 2010-10-16  Bruno Haible  <bruno@clisp.org>
25858
25859         nextafter: Fix configure check.
25860         * modules/nextafter (configure.ac): Correct expected prototype.
25861
25862 2010-10-16  Bruno Haible  <bruno@clisp.org>
25863
25864         termios: Update documentation.
25865         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25866
25867 2010-10-16  Bruno Haible  <bruno@clisp.org>
25868
25869         tests: Make them compile with TinyCC.
25870         * tests/test-strstr.c (main): Remove parentheses around array
25871         initializer.
25872
25873 2010-10-15  Eric Blake  <eblake@redhat.com>
25874
25875         ignore-value: make header idempotent
25876         * lib/ignore-value.h: Add double-inclusion guards.
25877         Reported by Stefan Berger.
25878
25879 2010-10-15  Jim Meyering  <meyering@redhat.com>
25880
25881         GNUmakefile: handle "stable" target, not "major"
25882         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25883         lists in maint.mk and announce-gen.  Without this, "make stable"
25884         would fail to ensure that $(VERSION) is up to date.
25885
25886 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25887
25888         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25889         & co.
25890
25891 2010-10-14  Bruno Haible  <bruno@clisp.org>
25892
25893         vasnprintf: Don't set errno to 0.
25894         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25895         block that sets it to 0.
25896         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25897
25898 2010-10-14  Bruno Haible  <bruno@clisp.org>
25899
25900         socketlib: Fix.
25901         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25902         gl_PREREQ_SYS_H_WINSOCK2.
25903         Reported by Ian Beckwith <ianb@erislabs.net>.
25904
25905 2010-10-13  Jim Meyering  <meyering@redhat.com>
25906
25907         test-select-stdin.c: avoid warn_unused_result warnings
25908         * tests/test-select-stdin.c: Include "macros.h".
25909         ASSERT that read and fflush succeed.
25910
25911 2010-10-13  Jim Meyering  <meyering@redhat.com>
25912
25913         git-version-gen: do require git-VC'd files in cwd
25914         * build-aux/git-version-gen: Reject a git version string
25915         if there are no commits associated with the current directory.
25916         This avoids an unlikely false-positive (unrelated dir whose parent
25917         repository also contains a tag matching v*), as pointed out
25918         by Giuseppe Scrivano in
25919         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25920
25921 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25922
25923         argv-iter: omit nonconforming declaration
25924         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25925         enum arg_iter_err declaration, which doesn't conform to C99.
25926         Solaris 10 cc warns about this.
25927
25928 2010-10-13  Eric Blake  <eblake@redhat.com>
25929
25930         termios: fix compilation on mingw
25931         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25932         (gl_TERMIOS_H): Adjust it on mingw.
25933         * modules/termios (Makefile.am): Substitute new key.
25934         * lib/termios.in.h (includes): Make include_next conditional.
25935         * doc/posix-headers/termios.texi (termios.h): Update
25936         documentation.
25937         Reported by Daniel P. Berrange.
25938
25939 2010-10-13  Jim Meyering  <meyering@redhat.com>
25940
25941         git-version-gen: don't require that .git/ be in the current dir
25942         * build-aux/git-version-gen: Adjust this script so that it works
25943         when run from any working directory beneath the top-level .git/-
25944         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25945         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25946
25947         test-select: avoid warn_unused_result warnings
25948         * tests/test-select.c: Include "macros.h".
25949         ASSERT that each call to read, write, and pipe succeeds.
25950         While not technically required, also check each "close".
25951         * modules/select-tests (Files): Add tests/macros.h.
25952
25953         test-symlinkat: remove declaration of unused local
25954         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25955
25956         test-inttostr: avoid shadowing warnings
25957         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25958         and use malloc rather than the stack for the same reason as
25959         mentioned in the comment justifying the other allocation.
25960
25961 2010-10-11  Bruno Haible  <bruno@clisp.org>
25962
25963         stdlib: Allow multiple gnulib generated replacements to coexist.
25964         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25965         Reported by Sam Steingold <sds@gnu.org>.
25966
25967 2010-10-11  Jim Meyering  <meyering@redhat.com>
25968
25969         fix a documentation typo
25970         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25971
25972 2010-10-11  Eric Blake  <eblake@redhat.com>
25973
25974         futimens: work around Solaris 11 bug
25975         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25976         * tests/test-futimens.h (test_futimens): Enhance, rather than
25977         weaken test.
25978         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25979
25980 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25981
25982         Indentation.
25983         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25984         higher-level operators more to the left.
25985
25986 2010-10-11  Jim Meyering  <meyering@redhat.com>
25987
25988         test-futimens: avoid unwarranted test failure on Solaris 5.11
25989         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25990         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25991         because it tries to dereference the NULL name argument.
25992
25993 2010-10-11  Bruno Haible  <bruno@clisp.org>
25994
25995         Indentation.
25996         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25997         indentation.
25998
25999 2010-10-11  Jim Meyering  <meyering@redhat.com>
26000
26001         spawn.in.h: make indentation consistent with parentheses
26002         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26003         Make indentation consistent with parentheses.
26004
26005 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26006
26007         Fix mismatched parens in previous commit
26008         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26009         parens.
26010
26011 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26012
26013         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26014
26015         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26016         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26017         * lib/malloca.c: Include "verify.h".
26018         (verify1): Remove, replacing with a verify call.
26019         * lib/relocwrapper.c (verify1): Likewise.
26020         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26021         Likewise.
26022         * modules/malloca (Depends-on): Add 'verify'.
26023         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26024         * modules/vasnprintf (Depends-on): Add 'verify'.
26025         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26026         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26027         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26028         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26029         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26030         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26031         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26032
26033         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26034
26035         Formerly the style was sometimes 2*X - 1, because the C standard
26036         was wrongly thought to disallow ?: in integral constant expressions.
26037         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26038         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26039         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26040         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26041         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26042         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26043         verify that time_t cannot be floating.
26044
26045 2010-10-08  Eric Blake  <eblake@redhat.com>
26046
26047         time: enforce recent POSIX ruling that time_t is integral
26048         * lib/time.in.h (__time_t_must_be_integral): Detect any
26049         problematic systems, allowing the rest of gnulib to assume POSIX.
26050
26051 2010-10-08  Jim Meyering  <meyering@redhat.com>
26052
26053         fdopendir: fix a bug on systems lacking openat and /proc support
26054         OpenBSD 4.7 is one such system.  The most noticeable effect was
26055         failure of any application making nontrivial use of fts: rm, du,
26056         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26057           ./rm: traversal failed: `a': Bad file descriptor
26058         Debugging that, you see that even though FD 6 was closed just
26059         prior to the opendir call in fd_clone_opendir, its resulting
26060         dir->dd_fd was 8, rather than the expected value of 6:
26061
26062         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26063         93                close (fd);
26064         (gdb) n
26065         94                dir = fd_clone_opendir (dupfd);
26066         (gdb) n
26067         95                saved_errno = errno;
26068         (gdb) p dir->dd_fd
26069         $11 = 8
26070
26071         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26072         The problem is that on OpenBSD, fd_clone_opendir has to resort
26073         to using the old-style save/restore CWD mechanism, due to its
26074         lack of openat/proc support, and *that* would steal the FD (6)
26075         that opendir was supposed to use.
26076
26077         The fix is to squirrel away the desired FD so that save_cwd uses a
26078         different one, and then free the dest FD right before calling opendir.
26079         That guarantees opendir will use the required file descriptor.
26080
26081         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26082
26083 2010-10-08  Bruno Haible  <bruno@clisp.org>
26084
26085         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26086         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26087
26088 2010-10-08  Bruno Haible  <bruno@clisp.org>
26089
26090         nanosleep: Make replacement POSIX compliant.
26091         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26092         is out of range.
26093         Reported by Jim Meyering.
26094
26095 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26096
26097         bootstrap: add hook for altering gnulib.mk, for Bison
26098         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26099         the Bison bootstrapping process can rewrite file names and variables
26100         in this file before later parts of 'bootstrap' use the file.
26101         Bison wants to include lib/gnulib.mk from the top-level makefile,
26102         so it needs the file names in this file to be relative to the top
26103         level, not relative to lib; plus it needs variable names to be
26104         rewritten.
26105         (slurp): Use the new function.
26106
26107         bootstrap: reformat for readability
26108         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26109
26110 2010-10-08  Eric Blake  <eblake@redhat.com>
26111
26112         docs: update cygwin progress
26113         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26114         1.7.7.
26115         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26116         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26117         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26118         * doc/posix-functions/carg.texi (carg): Likewise.
26119         * doc/posix-functions/cargf.texi (cargf): Likewise.
26120         * doc/posix-functions/casin.texi (casin): Likewise.
26121         * doc/posix-functions/casinf.texi (casinf): Likewise.
26122         * doc/posix-functions/casinh.texi (casinh): Likewise.
26123         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26124         * doc/posix-functions/catan.texi (catan): Likewise.
26125         * doc/posix-functions/catanf.texi (catanf): Likewise.
26126         * doc/posix-functions/catanh.texi (catanh): Likewise.
26127         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26128         * doc/posix-functions/ccos.texi (ccos): Likewise.
26129         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26130         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26131         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26132         * doc/posix-functions/cexp.texi (cexp): Likewise.
26133         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26134         * doc/posix-functions/cimag.texi (cimag): Likewise.
26135         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26136         * doc/posix-functions/clog.texi (clog): Likewise.
26137         * doc/posix-functions/clogf.texi (clogf): Likewise.
26138         * doc/posix-functions/conj.texi (conj): Likewise.
26139         * doc/posix-functions/conjf.texi (conjf): Likewise.
26140         * doc/posix-functions/cpow.texi (cpow): Likewise.
26141         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26142         * doc/posix-functions/cproj.texi (cproj): Likewise.
26143         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26144         * doc/posix-functions/creal.texi (creal): Likewise.
26145         * doc/posix-functions/crealf.texi (crealf): Likewise.
26146         * doc/posix-functions/csin.texi (csin): Likewise.
26147         * doc/posix-functions/csinf.texi (csinf): Likewise.
26148         * doc/posix-functions/csinh.texi (csinh): Likewise.
26149         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26150         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26151         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26152         * doc/posix-functions/ctan.texi (ctan): Likewise.
26153         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26154         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26155         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26156         * doc/posix-headers/complex.texi (complex.h): Likewise.
26157
26158 2010-10-07  Jim Meyering  <meyering@redhat.com>
26159
26160         parse-datetime: avoid compilation failure on OpenBSD 4.7
26161         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26162         This works around a compilation failure on OpenBSD 4.7:
26163         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26164
26165 2010-10-07  Eric Blake  <eblake@redhat.com>
26166
26167         docs: update cygwin progress
26168         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26169         1.7.6.
26170         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26171         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26172         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26173         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26174         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26175         Likewise.
26176         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26177         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26178         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26179         Likewise.
26180         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26181         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26182         Likewise.
26183         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26184         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26185         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26186         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26187         Likewise.
26188         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26189         Likewise.
26190         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26191
26192         docs: update parse-datetime history
26193         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26194         documentation of this function's history and alternatives.
26195
26196         cygwin: use more robust version check
26197         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26198         exclude an eventual cygwin 1.9.1.
26199         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26201         (gl_FUNC_STRCASESTR): Likewise.
26202         Reported by Bruno Haible.
26203
26204 2010-10-06  Bruno Haible  <bruno@clisp.org>
26205
26206         string, sys_select: Avoid #including large headers unless necessary.
26207         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26208         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26209         OSF/1, BeOS, Haiku.
26210         Reported by Jim Meyering.
26211
26212 2010-10-05  Eric Blake  <eblake@redhat.com>
26213
26214         memmem, strstr, strcasestr: fix bug with long periodic needle
26215         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26216         periodic needle having false positive.
26217         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26218         and cygwin 1.7.7.
26219         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26221         (gl_FUNC_STRCASESTR): Likewise.
26222         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26223         * tests/test-memmem.c (main): Expose the bug.
26224         * tests/test-strcasestr.c (main): Likewise.
26225         * tests/test-strstr.c (main): Likewise.
26226         * tests/test-c-strcasestr.c (main): Likewise.
26227         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26228         * doc/posix-functions/strstr.texi (strstr): Likewise.
26229         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26230         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26231
26232 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26233
26234         parse-datetime: do some more renaming
26235         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26236         parse_datetime, not get_date.  Mention the renaming.
26237         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26238         in comments.
26239         * m4/bison.m4: Likewise.
26240
26241 2010-10-05  Eric Blake  <eblake@redhat.com>
26242
26243         parse-datetime: better name than get_date
26244         * NEWS: Reword the deprecation notice.
26245         * modules/get_date: Rename to modules/parse-datetime.
26246         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26247         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26248         * lib/get_date.y: Rename to lib/parse-datetime.y.
26249         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26250         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26251         * doc/getdate.texi: Provide fallback wrapper.
26252         * lib/getdate.h: Move guts, and wrap...
26253         * lib/parse-datetime.h: ...new file.
26254         * lib/parse-datetime.y (get_date): Rename...
26255         (parse_datetime): ...to this.
26256         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26257         (gl_PARSE_DATETIME): ...to this.
26258         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26259         documentation.
26260         * modules/getdate (Files): Provide fallback docs and header.
26261         (Notice, Depends-on): Update references.
26262         * tests/test-parse-datetime.c: Likewise.
26263         * DEPENDENCIES: Likewise.
26264         * MODULES.html.sh (Date and time <time.h>): Likewise.
26265         * doc/parse-datetime.texi (Date input formats)
26266         (Authors of parse_datetime): Likewise.
26267         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26268         (Include): Likewise.
26269         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26270         * gnulib-tool: Likewise.
26271         * m4/bison.m4 (gl_BISON): Likewise.
26272         Suggested by Bruno Haible.
26273
26274 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26275
26276         more ports to Solaris tr, which needs [] around ranges
26277         * gnulib-tool: Solaris tr needs [] around ranges.
26278         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26279         * tests/test-pipe-filter-gi1.c (main): Likewise.
26280         * tests/test-pipe-filter-ii1.c (main): Likewise.
26281
26282 2010-10-05  Eric Blake  <eblake@redhat.com>
26283
26284         bootstrap: fix Solaris regression
26285         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26286         around ranges.
26287         Reported by Pádraig Brady.
26288
26289         bootstrap: work with pkg-config
26290         * build-aux/bootstrap (check_versions): Also transliterate - in
26291         prerequisite name.
26292         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26293         prerequisites that were already found, to avoid confusion.
26294         Reported by Justin Clift.
26295
26296         faccessat: remove unused wrappers
26297         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26298         presence of these wrappers dragged in -lgen on Solaris.
26299         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26300
26301 2010-10-05  Jim Meyering  <meyering@redhat.com>
26302
26303         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26304         * Makefile (sc_pragma_columns): New syntax-check rule.
26305
26306 2010-10-04  Bruno Haible  <bruno@clisp.org>
26307
26308         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26309         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26310         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26311         Reported by Bruce Korb and Eric Blake.
26312
26313 2010-10-04  Bruno Haible  <bruno@clisp.org>
26314
26315         threadlib: Make option --with-libpth-prefix work.
26316         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26317         use $LIBPTH, not just -lpth.
26318
26319 2010-10-04  Bruno Haible  <bruno@clisp.org>
26320
26321         Avoid line length limitation from HP NonStop system header files.
26322         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26323         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26324         * lib/ctype.in.h: Likewise.
26325         * lib/dirent.in.h: Likewise.
26326         * lib/errno.in.h: Likewise.
26327         * lib/fcntl.in.h: Likewise.
26328         * lib/float.in.h: Likewise.
26329         * lib/getopt.in.h: Likewise.
26330         * lib/iconv.in.h: Likewise.
26331         * lib/inttypes.in.h: Likewise.
26332         * lib/langinfo.in.h: Likewise.
26333         * lib/locale.in.h: Likewise.
26334         * lib/math.in.h: Likewise.
26335         * lib/netdb.in.h: Likewise.
26336         * lib/netinet_in.in.h: Likewise.
26337         * lib/poll.in.h: Likewise.
26338         * lib/pthread.in.h: Likewise.
26339         * lib/pty.in.h: Likewise.
26340         * lib/sched.in.h: Likewise.
26341         * lib/se-selinux.in.h: Likewise.
26342         * lib/search.in.h: Likewise.
26343         * lib/signal.in.h: Likewise.
26344         * lib/spawn.in.h: Likewise.
26345         * lib/stdarg.in.h: Likewise.
26346         * lib/stddef.in.h: Likewise.
26347         * lib/stdint.in.h: Likewise.
26348         * lib/stdio.in.h: Likewise.
26349         * lib/stdlib.in.h: Likewise.
26350         * lib/string.in.h: Likewise.
26351         * lib/strings.in.h: Likewise.
26352         * lib/sys_file.in.h: Likewise.
26353         * lib/sys_ioctl.in.h: Likewise.
26354         * lib/sys_select.in.h: Likewise.
26355         * lib/sys_socket.in.h: Likewise.
26356         * lib/sys_stat.in.h: Likewise.
26357         * lib/sys_time.in.h: Likewise.
26358         * lib/sys_times.in.h: Likewise.
26359         * lib/sys_utsname.in.h: Likewise.
26360         * lib/sys_wait.in.h: Likewise.
26361         * lib/sysexits.in.h: Likewise.
26362         * lib/termios.in.h: Likewise.
26363         * lib/time.in.h: Likewise.
26364         * lib/unistd.in.h: Likewise.
26365         * lib/wchar.in.h: Likewise.
26366         * lib/wctype.in.h: Likewise.
26367         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26368         * modules/ctype (Makefile.am): Likewise.
26369         * modules/dirent (Makefile.am): Likewise.
26370         * modules/errno (Makefile.am): Likewise.
26371         * modules/fcntl-h (Makefile.am): Likewise.
26372         * modules/float (Makefile.am): Likewise.
26373         * modules/getopt-posix (Makefile.am): Likewise.
26374         * modules/iconv-h (Makefile.am): Likewise.
26375         * modules/inttypes (Makefile.am): Likewise.
26376         * modules/langinfo (Makefile.am): Likewise.
26377         * modules/locale (Makefile.am): Likewise.
26378         * modules/math (Makefile.am): Likewise.
26379         * modules/netdb (Makefile.am): Likewise.
26380         * modules/netinet_in (Makefile.am): Likewise.
26381         * modules/poll-h (Makefile.am): Likewise.
26382         * modules/pthread (Makefile.am): Likewise.
26383         * modules/pty (Makefile.am): Likewise.
26384         * modules/sched (Makefile.am): Likewise.
26385         * modules/search (Makefile.am): Likewise.
26386         * modules/selinux-h (Makefile.am): Likewise.
26387         * modules/signal (Makefile.am): Likewise.
26388         * modules/spawn (Makefile.am): Likewise.
26389         * modules/stdarg (Makefile.am): Likewise.
26390         * modules/stddef (Makefile.am): Likewise.
26391         * modules/stdint (Makefile.am): Likewise.
26392         * modules/stdio (Makefile.am): Likewise.
26393         * modules/stdlib (Makefile.am): Likewise.
26394         * modules/string (Makefile.am): Likewise.
26395         * modules/strings (Makefile.am): Likewise.
26396         * modules/sys_file (Makefile.am): Likewise.
26397         * modules/sys_ioctl (Makefile.am): Likewise.
26398         * modules/sys_select (Makefile.am): Likewise.
26399         * modules/sys_socket (Makefile.am): Likewise.
26400         * modules/sys_stat (Makefile.am): Likewise.
26401         * modules/sys_time (Makefile.am): Likewise.
26402         * modules/sys_times (Makefile.am): Likewise.
26403         * modules/sys_utsname (Makefile.am): Likewise.
26404         * modules/sys_wait (Makefile.am): Likewise.
26405         * modules/sysexits (Makefile.am): Likewise.
26406         * modules/termios (Makefile.am): Likewise.
26407         * modules/time (Makefile.am): Likewise.
26408         * modules/unistd (Makefile.am): Likewise.
26409         * modules/wchar (Makefile.am): Likewise.
26410         * modules/wctype (Makefile.am): Likewise.
26411
26412 2010-10-04  Bruno Haible  <bruno@clisp.org>
26413
26414         read-file tests: Avoid a test failure on NonStop Kernel.
26415         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26416         a regular file.
26417         Reported by Joachim Schmitz <schmitz@hp.com>.
26418
26419 2010-10-03  Bruno Haible  <bruno@clisp.org>
26420
26421         gnulib-tool: Fixes for --create-testdir with --libtool.
26422         * gnulib-tool (func_get_automake_snippet): Don't augment
26423         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26424         an executable.
26425         (func_create_testdir): Handle module 'alloca' like func_import.
26426         Reported by Bruce Korb <bruce.korb@gmail.com>.
26427
26428 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26429
26430         Avoid some lines longer than 80 characters.
26431         * lib/stdint.in.h: Break long comment lines.
26432         * lib/math.in.h: Likewise.
26433         (_GL_NUM_UINT_WORDS): New macro, for readability.
26434         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26435         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26436         * lib/stdlib.in.h: Likewise.
26437         * lib/spawn.in.h: Likewise.
26438         * lib/sys_socket.in.h: Update an URL.
26439         * lib/sys_stat.in.h: Break long line.
26440
26441 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26442
26443         Improve pmccabe2html.
26444         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26445         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26446         when the sources change. Remove the line in the HTML about "Used
26447         ranges" (which implied that there might be other unused ranges),
26448         rename "Resume" to "Summary" (easier to understand for more users).
26449         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26450         styles, and some unnecessary blank lines.
26451
26452 2010-10-03  Bruno Haible  <bruno@clisp.org>
26453             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26454
26455         acl: Add support for ACLs on NonStop Kernel.
26456         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26457         Check whether the function aclsort() exists.
26458         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26459         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26460         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26461         (acl_nontrivial [HAVE_ACLSORT]: New function.
26462         (file_has_acl): Implement for NonStop Kernel.
26463         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26464         (qset_acl): Implement for NonStop Kernel.
26465         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26466         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26467         (main): Implement for NonStop Kernel.
26468         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26469         Kernel. Handle this flavor.
26470         * tests/test-set-mode-acl.sh: Likewise.
26471         * tests/test-copy-acl.sh: Likewise.
26472         * tests/test-copy-file.sh: Likewise.
26473
26474 2010-10-03  Bruno Haible  <bruno@clisp.org>
26475
26476         Info about ACLs on NonStop Kernel.
26477         * doc/acl-resources.txt: Add info about NonStop Kernel.
26478         References by Joachim Schmitz <schmitz@hp.com>.
26479
26480 2010-10-02  Bruno Haible  <bruno@clisp.org>
26481
26482         Define missing EDQUOT on NonStop Kernel.
26483         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26484         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26485         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26486         missing.
26487         * doc/posix-headers/errno.texi: Mention the NSK bug.
26488         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26489         Reported by Joachim Schmitz <schmitz@hp.com>.
26490
26491 2010-10-02  Bruno Haible  <bruno@clisp.org>
26492
26493         Update doc for POSIX:2008.
26494         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26495         Update URL of POSIX specification.
26496
26497 2010-10-02  Bruno Haible  <bruno@clisp.org>
26498
26499         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26500         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26501         from gnulib, not from Automake.
26502
26503 2010-10-02  Bruno Haible  <bruno@clisp.org>
26504
26505         New module 'system-posix'.
26506         * modules/system-posix: New file.
26507         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26508         module is present.
26509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26510         GNULIB_SYSTEM_POSIX.
26511         * modules/stdlib (Depends-on): Remove sys_wait.
26512         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26513         * doc/posix-functions/system.texi: Mention the new module.
26514         * doc/posix-headers/stdlib.texi: Likewise.
26515         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26516         define test_sys_wait_macros to a no-op.
26517         Reported by Sam Steingold <sds@gnu.org>.
26518
26519 2010-09-30  Bruno Haible  <bruno@clisp.org>
26520
26521         More renaming from 'getdate' to 'get_date'.
26522         * doc/get_date.texi: Renamed from doc/getdate.texi.
26523         * modules/get_date (Files): Update.
26524         * MODULES.html.sh (Date and time <time.h>): Update.
26525         * DEPENDENCIES: Update.
26526         * gnulib-tool: Update comment.
26527         * m4/bison.m4 (gl_BISON): Likewise.
26528         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26529
26530 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26531
26532         bootstrap: support ACLOCAL_FLAGS during aclocal
26533         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26534         can add additional -I dir for third-party .m4 files.
26535
26536 2010-09-30  Eric Blake  <eblake@redhat.com>
26537
26538         bootstrap: use glibtoolize on MacOS
26539         * build-aux/bootstrap (check_versions): Convert libtool into
26540         libtoolize.
26541         (tool search): Move libtool check earlier, and look for
26542         glibtoolize for MacOS.
26543         (gnulib_tool_options): Auto-add --libtool when appropriate.
26544         Reported by Justin Clift.
26545
26546         poll: fix typo that broke test on MacOS
26547         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26548         Reported by Justin Clift.
26549
26550         getdate: rename to get_date
26551         Note: getdate.h is not renamed, to minimize client impact.
26552         * modules/getdate: Mark obsolete.  Move old contents...
26553         * modules/get_date: ...to new module name.
26554         * modules/getdate-tests: Move...
26555         * modules/get_date-tests: ...here.
26556         * m4/getdate.m4: Move...
26557         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26558         * lib/getdate.y: Move...
26559         * lib/get_date.y: ...here.
26560         * tests/test-getdate.c: Move...
26561         * tests/test-get_date.c: ...here.
26562         * doc/posix-functions/getdate.texi (getdate): Update name.
26563         * NEWS: Mention the change.
26564
26565 2010-09-29  Bruno Haible  <bruno@clisp.org>
26566
26567         Separate the module 'waitpid' from the module 'sys_wait'.
26568         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26569         present.
26570         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26571         gl_MODULE_INDICATOR_FOR_TESTS.
26572         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26573         * modules/sys_wait (Depends-on): Remove waitpid.
26574         (Makefile.am): Substitute GNULIB_WAITPID.
26575         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26576         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26577         signature only if the 'waitpid' module is present.
26578         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26579         * NEWS: Mention the change.
26580         * modules/grantpt (Depends-on): Add waitpid.
26581         * modules/wait-process (Depends-on): Likewise.
26582
26583 2010-09-29  Bruno Haible  <bruno@clisp.org>
26584
26585         More tests for module 'sys_wait'.
26586         * modules/sys_wait-c++-tests: New file.
26587         * tests/test-sys_wait-c++.cc: New file.
26588         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26589         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26590
26591 2010-09-29  Bruno Haible  <bruno@clisp.org>
26592
26593         New module 'waitpid'.
26594         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26595         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26596         Don't include <process.h>.
26597         (waitpid): Declare only, using modern idiom.
26598         * m4/waitpid.m4: New file.
26599         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26600         * modules/waitpid: New file.
26601         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26602         (Makefile.am): Update.
26603         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26604
26605 2010-09-28  Bruno Haible  <bruno@clisp.org>
26606
26607         poll: Assume ANSI C.
26608         * lib/poll.c (poll): Use an ANSI C declaration.
26609
26610 2010-09-28  Bruno Haible  <bruno@clisp.org>
26611
26612         poll-h: Create poll.h on all platforms.
26613         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26614         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26615         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26616         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26617         (gl_REPLACE_POLL_H): Don't set POLL_H.
26618         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26619         * modules/poll-h (Depends-on): Add include_next.
26620         (Makefile.am): Create poll.h unconditionally. Substitute also
26621         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26622
26623 2010-09-28  Bruno Haible  <bruno@clisp.org>
26624
26625         Tests for module 'poll-h'.
26626         * modules/poll-h-c++-tests: New file.
26627         * tests/test-poll-h-c++.cc: New file.
26628
26629         Tests for module 'poll-h'.
26630         * modules/poll-h-tests: New file.
26631         * tests/test-poll-h.c: New file.
26632
26633 2010-09-28  Bruno Haible  <bruno@clisp.org>
26634
26635         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26636         * modules/poll-h (Depends-on): Add 'extensions'.
26637
26638 2010-09-28  Bruno Haible  <bruno@clisp.org>
26639
26640         New module 'poll-h'.
26641         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26642         (poll): Use modern idiom.
26643         * modules/poll-h: New file.
26644         * modules/poll (Files): Remove lib/poll.in.h.
26645         (Depends-on): Add poll-h.
26646         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26647         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26648         * m4/poll_h.m4: New file.
26649         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26650         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26651         and invoke gl_REPLACE_POLL_H.
26652         * lib/poll.c: Use common idiom.
26653         * tests/test-poll.c: Likewise.
26654         * doc/posix-headers/poll.texi: Mention the poll-h module.
26655         Suggested by Eric Blake.
26656
26657 2010-09-26  Bruno Haible  <bruno@clisp.org>
26658
26659         sys_wait: Implement WSTOPSIG.
26660         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26661         Reported by Simon Josefsson.
26662
26663 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26664
26665         stdlib, sys_wait: Avoid compilation error on mingw.
26666         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26667
26668 2010-09-26  Bruno Haible  <bruno@clisp.org>
26669
26670         stdlib tests: Avoid code duplication.
26671         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26672         * modules/sys_wait-tests (Files): Likewise.
26673         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26674         * tests/test-stdlib.c: Include test-sys_wait.h.
26675         (main): Invoke test_sys_wait_macros.
26676         * tests/test-sys_wait.c: Include test-sys_wait.h.
26677         (main): Invoke test_sys_wait_macros.
26678
26679 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26680
26681         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26682         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26683         sure Windows sockets are working before calling getaddrinfo.
26684         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26685         * doc/gnulib.texi (Windows sockets): Fix typo.
26686
26687 2010-09-25  Bruno Haible  <bruno@clisp.org>
26688
26689         Tests for module 'regex-quote'.
26690         * modules/regex-quote-tests: New file.
26691         * tests/test-regex-quote.c: New file.
26692
26693         New module 'regex-quote'.
26694         * lib/regex-quote.h: New file.
26695         * lib/regex-quote.c: New file.
26696         * modules/regex-quote: New file.
26697         Suggested by Reuben Thomas <rrt@sc3d.org>.
26698
26699 2010-09-24  Bruno Haible  <bruno@clisp.org>
26700
26701         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26702         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26703
26704 2010-09-23  Bruno Haible  <bruno@clisp.org>
26705
26706         setenv: Relax license.
26707         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26708         Blake.
26709         Requested by Eric Blake.
26710
26711 2010-09-22  Bruno Haible  <bruno@clisp.org>
26712
26713         termios: Relax license.
26714         * modules/termios (License): Change to LGPLv2+.
26715         Requested by Eric Blake.
26716
26717 2010-09-22  Bruno Haible  <bruno@clisp.org>
26718
26719         threadlib: Allow the package to change the default to 'no'.
26720         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26721         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26722         Reported by Paul Eggert.
26723
26724 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26725             Bruno Haible  <bruno@clisp.org>
26726
26727         Fix endless loop in mbmemcasecoll.
26728         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26729         byte.
26730         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26731
26732 2010-09-22  Bruno Haible  <bruno@clisp.org>
26733
26734         Tests for module 'memcoll'.
26735         * modules/memcoll-tests: New file.
26736         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26737
26738         memcoll, xmemcoll: Clarify size vs. length.
26739         * modules/memcoll.c (memcoll0): Clarify specification.
26740         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26741         passed to collate_error.
26742
26743 2010-09-22  Bruno Haible  <bruno@clisp.org>
26744
26745         Tests for module 'memcasecmp'.
26746         * modules/memcasecmp-tests: New file.
26747         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26748
26749 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26750
26751         * lib/pthread.in.h: Add split double-inclusion guard, and include
26752         system <pthread.h> if there is one.  Use @@-style as in other
26753         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26754         pthread.h doesn't.
26755         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26756         (pthread_mutexattr_settype, pthread_mutex_trylock):
26757         New static inline functions, if there's no system <pthread.h>.
26758         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26759         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26760         Approximate with mutexes if the system lacks spinlocks, as in
26761         MacOS.
26762         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26763         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26764         @@-style.  Check for spinlocks separately.
26765         (gl_PTHREAD_DEFAULTS): New macro.
26766         * modules/pthread: Redo to use a more typical style for in.h files.
26767
26768 2010-09-21  Eric Blake  <eblake@redhat.com>
26769
26770         net_if: enhance tests
26771         * tests/test-net_if.c (main): Move signature checks earlier.
26772         Print failures to stderr.
26773         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26774         Document the bug that we do not yet fix.
26775
26776 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26777
26778         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26779         about gnulib, not GSS.
26780
26781 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26782
26783         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26784         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26785         for Emacs.
26786         * build-aux/pmccabe2html: Make Makefile.am example code more
26787         cut-and-paste friendly.
26788
26789 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26790
26791         * tests/test-net_if.c: New file.
26792         * modules/net_if-tests: New file.
26793
26794 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26795
26796         pthread: add pthread_spin_destroy
26797         * lib/pthread.in.h (pthread_spin_destroy): New function.
26798
26799 2010-09-19  Bruno Haible  <bruno@clisp.org>
26800
26801         gnulib-tool: Fix --help output.
26802         * gnulib-tool (func_usage): Fix help message.
26803         Reported by Reuben Thomas <rrt@sc3d.org>.
26804
26805 2010-09-18  Jim Meyering  <meyering@redhat.com>
26806
26807         maint.mk: avoid unexpanded \n in two diagnostics
26808         * top/maint.mk (sc_prohibit_always_true_header_tests):
26809         Don't use a literal \n in a halt=... assignment.  It would not be
26810         expanded, and the two \n bytes would appear in the diagnostic output
26811         rather than the desired newline.  Use halt=$$(printf ... instead.
26812         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26813
26814 2010-09-18  Bruno Haible  <bruno@clisp.org>
26815
26816         netinet_in: Doc tweak.
26817         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26818         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26819
26820 2010-09-18  Jim Meyering  <meyering@redhat.com>
26821
26822         init.sh: correct an outdated comment
26823         * tests/init.sh (create_exe_shims_):  s/function/alias/
26824
26825         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26826         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26827         a file named "*.exe" is removed between the glob expansion and the
26828         processing of that oddly named file.
26829
26830 2010-09-17  Eric Blake  <eblake@redhat.com>
26831
26832         mirbsd: add some more support
26833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26834         in BSD family.
26835         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26836         devices as OpenBSD.
26837         * m4/host-os.m4 (mirbsd): Add MirBSD.
26838
26839         tests: fix unportable assumption on sys/wait.h
26840         * tests/test-sys_wait.c (main): Relax test.
26841         * tests/test-stdlib.c (main): Likewise.
26842
26843         init.sh: accommodate directory with no .exes
26844         * tests/init.sh: Accomodate directory containing only scripts.
26845
26846         tests: avoid compiler warning
26847         * tests/test-stdlib.c (main): Use the variable.
26848
26849         fdutimens, fdutimensat: update signature, again
26850         * lib/utimens.h (gl_futimens): Delete, and move signature...
26851         (fdutimens): ...here.
26852         (fdutimensat): Rearrange signature.
26853         (lutimensat): Rename variable for clarity.
26854         * lib/fdutimensat.c (fdutimensat): Update signature.
26855         * lib/utimens.c (fdutimens): Likewise.
26856         (gl_futimens): Delete.
26857         (utimens, lutimens): Update callers.
26858         * lib/futimens.c (futimens): Likewise.
26859         * tests/test-fdutimensat.c: Likewise.
26860         * tests/test-utimens.c: Likewise.
26861         * tests/test-futimens.h: Update comment.
26862         * NEWS: Mention this.
26863         Suggested by Paul Eggert.
26864
26865 2010-09-17  Bruno Haible  <bruno@clisp.org>
26866
26867         Take over the maintenance of some older macros from Autoconf.
26868         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26869         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26870         GNU Autoconf.
26871         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26872         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26873
26874 2010-09-17  Eric Blake  <eblake@redhat.com>
26875
26876         fdutimensat: drop atflag validation
26877         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26878         with valid fd, to close a race scenario where futimens is
26879         unsupported and FILE was replaced by a symlink.
26880         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26881         accordingly.
26882         Suggested by Paul Eggert.
26883
26884 2010-09-16  Bruno Haible  <bruno@clisp.org>
26885
26886         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26887         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26888
26889 2010-09-16  Bruno Haible  <bruno@clisp.org>
26890
26891         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26892         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26893         login_tty exists.
26894         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26895
26896 2010-09-16  Bruno Haible  <bruno@clisp.org>
26897
26898         login_tty: Make the replacement code work on BSD systems.
26899         * lib/login_tty.c: Include <sys/ioctl.h>.
26900         (login_tty): Use ioctl TIOCSCTTY when available.
26901         * modules/login_tty (Depends-on): Add sys_ioctl.
26902         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26903
26904 2010-09-16  Bruno Haible  <bruno@clisp.org>
26905
26906         login_tty: Stricter unit test.
26907         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26908         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26909         and tcgetsid() after login_tty.
26910         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26911
26912 2010-09-16  Bruno Haible  <bruno@clisp.org>
26913
26914         New module 'tcgetsid'.
26915         * lib/tcgetsid.c: New file.
26916         * m4/tcgetsid.m4: New file.
26917         * modules/tcgetsid: New file.
26918         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26919         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26920         GNULIB_TCGETSID, HAVE_TCGETSID.
26921         * lib/termios.in.h: Include <sys/types.h>.
26922         (tcgetsid): New declaration.
26923         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26924         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26925         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26926         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26927
26928 2010-09-16  Bruno Haible  <bruno@clisp.org>
26929
26930         Tests for module 'termios'.
26931         * modules/termios-c++-tests: New file.
26932         * modules/termios-tests: New file.
26933         * tests/test-termios-c++.cc: New file.
26934         * tests/test-termios.c: New file.
26935
26936         New module 'termios'.
26937         * modules/termios: New file.
26938         * lib/termios.in.h: New file.
26939         * m4/termios_h.m4: New file.
26940         * doc/posix-headers/termios.texi: Mention the new module.
26941
26942 2010-09-16  Eric Blake  <eblake@redhat.com>
26943
26944         fdutimensat: add an atflag parameter
26945         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26946         * lib/utimens.h (fdutimensat): Update prototype.
26947         * tests/test-fdutimensat.c: Adjust test to match.
26948         * NEWS: Document the change.
26949         Suggested by Paul Eggert.
26950
26951 2010-09-16  Bruno Haible  <bruno@clisp.org>
26952
26953         Fix typos in comments.
26954         * lib/striconveh.h: Fix typo in comment.
26955         * lib/login_tty.c (login_tty): Likewise.
26956
26957 2010-09-15  Bruno Haible  <bruno@clisp.org>
26958
26959         stdlib: clarify MirBSD WEXITSTATUS bug
26960         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26961         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26962
26963 2010-09-15  Eric Blake  <eblake@redhat.com>
26964
26965         stdlib: work around MirBSD WEXITSTATUS bug
26966         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26967         * modules/stdlib (Depends-on): Add sys_wait.
26968         * tests/test-sys_wait.c (main): Enhance test.
26969         * tests/test-stdlib.c (main): Likewise.
26970         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26971
26972         docs: mention MacOS issue with WEXITSTATUS(constant)
26973         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26974         issue.
26975         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26976
26977         strnlen: add tests
26978         * modules/strnlen-tests: New file.
26979         * tests/test-strnlen.c: Likewise.
26980
26981 2010-09-14  Bruno Haible  <bruno@clisp.org>
26982
26983         unistr/base: Avoid link errors when module 'libunistring' is also used.
26984         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26985         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26986         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26987         Declare also when HAVE_LIBUNISTRING is set.
26988         Reported by Pádraig Brady <P@draigbrady.com>.
26989
26990 2010-09-14  Eric Blake  <eblake@redhat.com>
26991
26992         test-rawmemchr: make more robust
26993         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26994         (Depends-on, configure.ac): Add needed prerequisites to use it.
26995         * modules/memchr-tests (Files, Depends-on, configure.ac):
26996         Likewise, to avoid implicit reliance on memchr module prereqs.
26997         * tests/test-memchr.c (main): Ensure proper masking.
26998         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26999         reads.
27000
27001         memchr: detect glibc Alpha bug
27002         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27003         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27004         Alpha.
27005         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27006         * tests/test-memchr.c (main): Enhance test.
27007         Reported by Nelson H. F. Beebe.
27008
27009 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27010
27011         fts, getcwd, glob: audit for dirfd returning -1
27012         * lib/fts.c (opendir): Remove #define; no longer used.
27013         (opendirat): New arg PDIR_FD.  All callers changed.
27014         (fts_build, _opendir2): Use new opendirat to avoid the need for
27015         dirfd, or for checking whether dirfd returns a negative value.
27016         Don't use opendir; always use openat followed by fdopendir.
27017         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27018         it.
27019         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27020         returns -1 here.
27021         * modules/fts (Depends-on): Remove dirfd.
27022         * modules/getcwd (Depends-on): Likewise.
27023
27024 2010-09-13  Eric Blake  <eblake@redhat.com>
27025
27026         float: fix broken MirBSD header
27027         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27028         * doc/posix-headers/float.texi (float.h): Document it.
27029
27030 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27031
27032         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27033         * lib/fts.c (opendirat): New arg extra_flags.
27034         (__opendir2): Use it to avoid following symlinks when opening
27035         a directory, if symlinks are not supposed to be followed.  See
27036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27037
27038         fdopendir: preserve argument fd before returning
27039         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27040         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27041         (fdopendir): Use them, arranging for FD to be open to the same
27042         directory that it was when it started.  (It might be temporarily
27043         closed while fdopendir is running, so this not thread- or
27044         signal-safe.)  Be careful to do the right thing even when file
27045         descriptors are scarce and dup fails with errno == EMFILE.  See
27046         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27047
27048 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27049
27050         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27051         * NEWS: Document change.
27052         * m4/regex.m4: Disable test for regoff_t size.
27053
27054 2010-09-13  Jim Meyering  <meyering@redhat.com>
27055
27056         fts: don't operate on an invalid file descriptor after failed dup
27057         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27058         negative file descriptor.
27059
27060 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27061
27062         savedir: add streamsavedir, deprecate fdsavedir
27063         * NEWS: Mention deprecation of fdsavedir.
27064         * lib/savedir.c (streamsavedir): New extern function, whose name
27065         ends in "savedir" to be consistent with the others.  This differs
27066         from savedirstream in that it doesn't close its argument.  The
27067         next version of GNU tar will use this instead of fdsavedir, to
27068         avoid some race conditions and conserve file descriptors.
27069         (savedirstream): Reimplement as a wrapper around streamsavedir.
27070         (fdsavedir): Add a comment deprecating this function.  As far as
27071         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27072         * lib/savedir.h (streamsavedir): New decl.
27073         (fdsavedir): Add a comment deprecating this.
27074
27075 2010-09-10  Bruno Haible  <bruno@clisp.org>
27076
27077         langinfo: Fix last commit.
27078         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27079         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27081
27082 2010-09-10  Bruno Haible  <bruno@clisp.org>
27083
27084         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27085         * lib/progreloc.c (O_EXEC): Define fallback.
27086
27087 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27088
27089         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27090         * NEWS: Document recent changes to fcntl-h.
27091         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27092         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27093         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27094         Similarly for O_SEARCH; this last was already true, but not documented.
27095         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27096         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27097         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27098         Likewise.
27099         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27100         is zero, not whether it is defined.
27101         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27102         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27103         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27104
27105 2010-09-10  Bruno Haible  <bruno@clisp.org>
27106
27107         langinfo, nl_langinfo: Fix for IRIX 5.3.
27108         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27109         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27110         HAVE_LANGINFO_YESEXPR.
27111         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27112         HAVE_LANGINFO_YESEXPR.
27113         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27114         HAVE_LANGINFO_T_FMT_AMPM is 0.
27115         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27116         HAVE_LANGINFO_YESEXPR is 0.
27117         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27118         NOEXPR.
27119         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27120         * doc/posix-functions/nl_langinfo.texi: Likewise.
27121         Reported by Eric Blake.
27122
27123 2010-09-10  Bruno Haible  <bruno@clisp.org>
27124
27125         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27126         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27127         on FreeBSD 8.0 and OpenBSD 4.6.
27128         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27129         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27130         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27131         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27132         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27133         ac_includes_default.
27134         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27135
27136 2010-09-09  Eric Blake  <eblake@redhat.com>
27137
27138         strsignal: work around NetBSD bug
27139         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27140         * lib/string.in.h (includes): Likewise.
27141         * doc/posix-functions/strsignal.texi (strsignal): Document the
27142         bug.
27143         Reported by Nelson H. F. Beebe.
27144
27145         gnulib-tool: work with NetBSD /bin/sh
27146         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27147         (func_get_description, func_get_comment, func_get_status)
27148         (func_get_notice, func_get_applicability, func_get_filelist)
27149         (func_get_dependencies, func_get_autoconf_early_snippet)
27150         (func_get_autoconf_snippet, func_get_automake_snippet)
27151         (func_get_include_directive, func_get_link_directive)
27152         (func_get_license, func_get_maintainer, func_import): Avoid
27153         shell syntax errors from parsing syntax extensions.
27154
27155 2010-09-09  Bruno Haible  <bruno@clisp.org>
27156
27157         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27158         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27159         a reliable way to determine whether the 'alias' command works.
27160
27161 2010-09-08  Jim Meyering  <meyering@redhat.com>
27162
27163         init.sh: penalize a set-x-impaired shell; don't disqualify it
27164         * tests/init.sh: Too many shells corrupt application stderr when
27165         you set -x, so we can't afford to disqualify them, since at least
27166         on Irix-6.5, that would disqualify all bourne shells.
27167         Instead, use a two-pass approach.
27168         On the first pass, try to find a shell that meets the stricter
27169         condition that set -x does not corrupt stderr.
27170         If no shell meets the stricter condition, retest each candidate
27171         shell, but without that extra condition.  Finally, when
27172         VERBOSE=yes is requested and set -x might cause trouble, simply
27173         issue a warning and refrain from enabling debug output.
27174
27175 2010-09-08  Eric Blake  <eblake@redhat.com>
27176
27177         unsetenv: fix OpenBSD bug
27178         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27179         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27180         documentation.
27181         Reported by Jim Meyering.
27182
27183         strtod: work around IRIX 6.5 bug
27184         * lib/strtod.c (strtod): Reparse number on shorter string if
27185         exponent parse was invalid.
27186         * tests/test-strtod.c (main): Add check for "0x1p 2".
27187         Reported by Tom G. Christensen.
27188
27189         getopt: optimize previous patch
27190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27191         empty variable.  Speed up awk script.
27192         Reported by Paolo Bonzini.
27193
27194 2010-09-08  Jim Meyering  <meyering@redhat.com>
27195
27196         test.sh: disqualify shells for which set -x corrupts stderr
27197         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27198         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27199         appear in stderr output.  For example, this command:
27200             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27201         prints "P=1" on those two systems:
27202
27203 2010-09-08  Bruno Haible  <bruno@clisp.org>
27204
27205         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27206         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27207         commands, because some shells ignore redirections when there is an
27208         error in the command lookup.
27209         Reported by Eric Blake.
27210
27211 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27212
27213         * lib/regex.h: Fix a mention of `regex_compile' (should be
27214         `re_compile_pattern').
27215         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27216         (re_set_registers): Correct name of parameter in comment.
27217
27218         * doc/regex.texi: Add documentation for missing syntax flags.
27219         Remove commented-out documentation of defunct syntax option
27220         RE_NO_EMPTY_ALTS.
27221         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27222         Add documentation of re_set_registers.
27223         Document trick to re-use a pattern buffer by setting fastmap manually.
27224         Update documentation of struct re_pattern_buffer per public members.
27225         Uncomment documentation of equivalence class operators and
27226         collating symbol operators, since they are now implemented,
27227         Explain leftmost-longest matching in relation to alternatives.
27228         Tidy documentation of substring matching.
27229         Remove POSIX documentation, which is done better in
27230         glibc, and refer the reader there. Keep BSD API documentation, as
27231         that is not readily available elsewhere.
27232
27233 2010-09-07  Eric Blake  <eblake@redhat.com>
27234
27235         getopt: handle POSIXLY_CORRECT set but not exported
27236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27237         export state of POSIXLY_CORRECT, due to bash set -o posix.
27238         Reported by Dustin J. Mitchell.
27239
27240 2010-09-05  Bruno Haible  <bruno@clisp.org>
27241
27242         gnulib-tool: Highlight the changed options.
27243         * gnulib-tool (func_usage): Display the --import, --add-import,
27244         --remove-import explanations in bold font.
27245
27246 2010-09-06  Karl Berry  <karl@gnu.org>
27247
27248         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27249
27250 2010-09-05  Bruno Haible  <bruno@clisp.org>
27251
27252         uniwidth/width: Update comment.
27253         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27254         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27255
27256 2010-09-05  Bruno Haible  <bruno@clisp.org>
27257
27258         isinf, isnan: Relax license.
27259         * modules/isinf (License): Change from GPL to LGPL, with consent from
27260         Ben Pfaff.
27261         * modules/isnan (License): Likewise.
27262         Requested by Ludovic Courtès.
27263
27264 2010-09-04  Bruno Haible  <bruno@clisp.org>
27265
27266         gnulib-tool: Help migration from --import to --add-import or --update.
27267         * gnulib-tool: Emit a verbose error message when --import is used
27268         without any module name.
27269
27270 2010-09-04  Bruno Haible  <bruno@clisp.org>
27271
27272         Update doc about gnulib-tool.
27273         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27274         'gnulib-tool --update' in more detail.
27275         Reported by Eric Blake.
27276
27277 2010-09-04  Bruno Haible  <bruno@clisp.org>
27278
27279         gnulib-tool: Change --import. New options --add/remove-import.
27280         * gnulib-tool: New options --add-import, --remove-import.
27281         (func_usage): Document them.
27282         (have_associative): Define always.
27283         (func_import): In import mode, don't merge the specified settings with
27284         the cached settings. Implement remove-import mode.
27285         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27286         Explain when to use them versus --import.
27287         (Simple update): Use --add-import instead of --import.
27288         * NEWS: Mention the change.
27289
27290 2010-09-04  Bruno Haible  <bruno@clisp.org>
27291
27292         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27293         separate gnulib.mk.
27294
27295 2010-09-04  Bruno Haible  <bruno@clisp.org>
27296
27297         gnulib-tool: Don't talk about CVS any more.
27298         * gnulib-tool (func_usage, func_import): Write "version control"
27299         instead of CVS.
27300
27301 2010-09-04  Jim Meyering  <meyering@redhat.com>
27302
27303         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27304         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27305         false positives (whose names may be ill-chosen) when searching
27306         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27307         would cause a false-positive.
27308
27309         avoid coreutils "make distcheck" failure
27310         Coreutils tests with an absolute build directory name that contains
27311         a space.  Not quoting this directory name caused a failure.
27312         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27313         * tests/test-vc-list-files-cvs.sh: Likewise.
27314
27315 2010-09-04  Bruno Haible  <bruno@clisp.org>
27316
27317         gnulib-tool: Avoid error when run in a package without Makefile.am.
27318         * gnulib-tool: When collecting the m4dirs in a package that does not
27319         have a Makefile.am, eliminate those directories that contain no
27320         gnulib-cache.m4. Fix expression that counts these directories.
27321
27322 2010-09-04  Bruno Haible  <bruno@clisp.org>
27323
27324         update-copyright test: Improve output when perl is missing or too old.
27325         * tests/test-update-copyright.sh: Move test of Perl version down after
27326         the test whether Perl exists. Provide an explanation relating Perl's
27327         error message to Automake's SKIP: message.
27328
27329 2010-09-04  Bruno Haible  <bruno@clisp.org>
27330
27331         Don't augment PATH in TESTS_ENVIRONMENT.
27332         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27333         set abs_aux_dir instead of augmenting PATH.
27334         * modules/vc-list-files-tests (Makefile.am): Likewise.
27335         * tests/test-update-copyright.sh: Augment PATH here.
27336         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27337         path_prepend_.
27338         * tests/test-vc-list-files-git.sh: Likewise.
27339
27340 2010-09-04  Jim Meyering  <meyering@redhat.com>
27341
27342         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27343         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27344
27345 2010-09-04  Bruno Haible  <bruno@clisp.org>
27346
27347         strdup: Fix compilation error in C++ mode.
27348         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27349         the macro.
27350
27351 2010-09-04  Bruno Haible  <bruno@clisp.org>
27352
27353         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27354         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27355         macro into a function.
27356         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27357
27358 2010-09-04  Bruno Haible  <bruno@clisp.org>
27359
27360         Set PATH_SEPARATOR the same way autoconf does.
27361         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27362         the value of PATH_SEPARATOR the same way autoconf-generated configure
27363         scripts do.
27364         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27365         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27366
27367 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27368
27369         Set PATH_SEPARATOR the same way autoconf does.
27370         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27371         the same way autoconf-generated configure scripts do.
27372         * posix-modules: Likewise.
27373
27374 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27375
27376         hash: fix safe_hasher const typo
27377         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27378         const; otherwise, there is a type error later.
27379
27380 2010-09-02  Jim Meyering  <meyering@redhat.com>
27381
27382         test-update-copyright.sh: require perl 5.8.0
27383         * tests/test-update-copyright.sh: Require 5.8.0,
27384         which Tom G. Christensen has confirmed is adequate,
27385         while 5.6.1 is not.
27386
27387 2010-09-02  Eric Blake  <eblake@redhat.com>
27388
27389         tests: init.sh improvements for re-exec'ing with zsh
27390         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27391         -vx through shell re-exec.
27392         Reported by Tom G. Christensen.
27393
27394         wctype: fix typo in previous commit
27395         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27396         Reported by Ludovic Courtès.
27397
27398 2010-09-02  Jim Meyering  <meyering@redhat.com>
27399
27400         test-update-copyright.sh: skip test if Perl is too old
27401         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27402         Reported by Tom G. Christensen.
27403
27404 2010-09-02  Bruno Haible  <bruno@clisp.org>
27405
27406         wctype: Avoid compilation error on IRIX 6.5.30.
27407         * lib/wctype.in.h (iswblank): Declare with a replacement if
27408         REPLACE_ISWBLANK is set.
27409         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27410         declared. Set REPLACE_ISWBLANK.
27411         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27412         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27413         * doc/posix-headers/wctype.texi: Likewise.
27414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27415
27416 2010-09-01  Bruno Haible  <bruno@clisp.org>
27417
27418         New module 'socketlib'.
27419         * modules/socketlib: New file.
27420         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27421         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27422         * modules/sockets (Depends-on): Add socketlib.
27423         Suggested by Sam Steingold <sds@gnu.org>.
27424
27425 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27426
27427         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27428
27429         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27430         when one needs search access to a directory but not read access.
27431         On systems where it is available, it works in some cases where
27432         O_RDONLY does not, namely on directories that are searchable but
27433         not readable, and which need only to be searchable.  If O_SEARCH
27434         is not available, fall back to the traditional method of using
27435         O_RDONLY.
27436
27437         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27438         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27439         when opening a directory that needs only to be searchable.
27440         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27441         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27442         * lib/openat-proc.c (openat_proc_name): Likewise.
27443         * lib/openat.c (openat_needs_fchdir): Likewise.
27444         * lib/save-cwd.c (save_cwd): Likewise.
27445         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27446
27447 2010-08-28  Bruno Haible  <bruno@clisp.org>
27448
27449         New module 'host-cpu-c-abi'.
27450         * modules/host-cpu-c-abi: New file.
27451         * m4/host-cpu-c-abi.m4: New file, based on part of
27452         clisp/src/m4/general.m4.
27453         Requested by Sam Steingold <sds@gnu.org>.
27454
27455 2010-08-31  Eric Blake  <eblake@redhat.com>
27456         and Jim Meyering  <meyering@redhat.com>
27457
27458         hash: factor, and guard against misbehaving hasher function
27459         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27460         of table->hasher's return value.  Also protect against a hash value
27461         so large that adding it to table->bucket results in a NULL pointer.
27462         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27463         Use it in place of open-coded check-and-abort.
27464
27465 2010-08-30  Bruno Haible  <bruno@clisp.org>
27466
27467         hash: silence spurious clang warning
27468         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27469         Reported by Eric Blake.
27470
27471 2010-08-30  Eric Blake  <eblake@redhat.com>
27472
27473         strstr, memmem, strcasestr: avoid leaked shell message
27474         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27475         FreeBSD.
27476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27477         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27478
27479         tests: silence clang warning
27480         * tests/test-malloca.c (do_allocation): Avoid dead store.
27481
27482 2010-08-29  Bruno Haible  <bruno@clisp.org>
27483
27484         gettext: Fix recent mistake.
27485         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27486
27487 2010-08-29  Bruno Haible  <bruno@clisp.org>
27488
27489         selinux-h: Offer a --without-selinux option.
27490         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27491         --without-selinux was specified, skip all tests and define
27492         HAVE_SELINUX_SELINUX_H to 0.
27493         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27494         set LIB_SELINUX to empty.
27495         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27496         gl_LIBSELINUX. If --without-selinux was specified, replace
27497         selinux/context.h.
27498         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27499
27500 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27501             Bruno Haible  <bruno@clisp.org>
27502
27503         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27504         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27505         of HAVE_REALLOC.
27506         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27507         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27508         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27509         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27510
27511 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27512             Bruno Haible  <bruno@clisp.org>
27513
27514         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27515         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27516         HAVE_CALLOC.
27517         * lib/xmalloc.c: Update accordingly.
27518         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27519         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27520         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27521
27522 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27523             Bruno Haible  <bruno@clisp.org>
27524
27525         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27526         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27527         HAVE_MALLOC.
27528         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27529         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27530         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27531
27532 2010-08-29  Bruno Haible  <bruno@clisp.org>
27533
27534         Update modules list.
27535         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27536         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27537         (String handling <string.h>): Add astrxfrm.
27538         (File system functions): Add readlinkat.
27539
27540 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27541
27542         Tests for module 'realloc-gnu'.
27543         * modules/realloc-gnu-tests: New file.
27544         * tests/test-realloc-gnu.c: New file.
27545
27546         Tests for module 'calloc-gnu'.
27547         * modules/calloc-gnu-tests: New file.
27548         * tests/test-calloc-gnu.c: New file.
27549
27550         Tests for module 'malloc-gnu'.
27551         * modules/malloc-gnu-tests: New file.
27552         * tests/test-malloc-gnu.c: New file.
27553
27554 2010-08-28  Bruno Haible  <bruno@clisp.org>
27555
27556         Rename module 'realloc' -> 'realloc-gnu'.
27557         * modules/realloc-gnu: New file, copied from modules/realloc.
27558         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27559         obsolete.
27560         * modules/mgetgroups (Depends-on): Update.
27561         * doc/posix-functions/realloc.texi: Update.
27562         * NEWS: Mention the change.
27563
27564         Rename module 'calloc' -> 'calloc-gnu'.
27565         * modules/calloc-gnu: New file, copied from modules/calloc.
27566         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27567         obsolete.
27568         * doc/posix-functions/calloc.texi: Update.
27569         * NEWS: Mention the change.
27570
27571         Rename module 'malloc' -> 'malloc-gnu'.
27572         * modules/malloc-gnu: New file, copied from modules/malloc.
27573         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27574         obsolete.
27575         * modules/argp (Depends-on): Update.
27576         * modules/regex (Depends-on): Update.
27577         * doc/posix-functions/malloc.texi: Update.
27578         * NEWS: Mention the change.
27579
27580 2010-08-28  Eric Blake  <eblake@redhat.com>
27581
27582         pread, pwrite: add missing dependency
27583         * modules/pread (Depends-on): Add extensions.
27584         * modules/pwrite (Depends-on): Likewise.
27585
27586 2010-08-28  Bruno Haible  <bruno@clisp.org>
27587
27588         unistr/u*-strchr: Fix tests dependencies.
27589         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27590         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27591         Reported by Ian Beckwith <ianb@erislabs.net>.
27592
27593 2010-08-28  Bruno Haible  <bruno@clisp.org>
27594
27595         read-file: Don't occupy too much unused memory.
27596         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27597
27598 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27599             Eric Blake  <eblake@redhat.com>
27600             Bruno Haible  <bruno@clisp.org>
27601
27602         read-file: Avoid memory reallocations with regular files.
27603         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27604         (fread_file): With regular files, use the remaining length as the
27605         initial buffer size.  Check against overflow.
27606         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27607         sys_stat.
27608
27609 2010-08-28  Bruno Haible  <bruno@clisp.org>
27610
27611         ftello: Relax license.
27612         * modules/ftello (License): Relax to LGPLv2+.
27613         Reported by Eric Blake.
27614
27615 2010-08-28  Bruno Haible  <bruno@clisp.org>
27616
27617         Avoid relocwrapper link errors due to gnulib replacement functions.
27618         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27619         function.
27620         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27621
27622 2010-08-28  Bruno Haible  <bruno@clisp.org>
27623
27624         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27625         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27626         defined.
27627         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27628         Suggested by Eric Blake.
27629
27630 2010-08-28  Bruno Haible  <bruno@clisp.org>
27631
27632         sys_socket, netdb: Ensure socklen_t gets defined.
27633         * modules/sys_socket (Depends-on): Add socklen.
27634         * modules/netdb (Depends-on): Likewise.
27635         * modules/getaddrinfo (Depends-on): Remove socklen.
27636         * modules/getsockopt (Depends-on): Likewise.
27637         * modules/setsockopt (Depends-on): Likewise.
27638         * tests/test-sys_socket.c: Check that socklen_t is defined.
27639         * tests/test-netdb.c: Likewise.
27640         * m4/socklen.m4: Update comments.
27641         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27642
27643 2010-08-27  Eric Blake  <eblake@redhat.com>
27644
27645         login_tty: add missing dependency
27646         * modules/login_tty (Depends-on): Add pty.
27647
27648 2010-08-26  Eric Blake  <eblake@redhat.com>
27649
27650         lib-symbol-versions: fix m4 quoting
27651         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27652         format for AC_LINK_IFELSE.
27653
27654         glob: fix compile test
27655         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27656
27657         btowc: fix missing file
27658         * modules/btowc (Files): Also ship locale-fr.m4.
27659
27660         lseek: fix link test
27661         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27662         AC_LINK_IFELSE.
27663
27664         include_next: silence autoconf 2.68 warning
27665         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27666         AC_COMPILE_IFELSE as special.
27667         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27668         autoconf < 2.68.
27669
27670         acl: fix compilation test
27671         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27672         AC_COMPILE_IFELSE.
27673
27674 2010-08-26  Bruno Haible  <bruno@clisp.org>
27675
27676         Modernize AC_TRY_RUN invocations.
27677         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27678         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27679         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27680         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27681         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27682         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27683         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27684         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27685         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27686         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27687         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27688         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27689         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27690         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27691         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27692         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27693         gl_MBRLEN_NUL_RETVAL): Likewise.
27694         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27695         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27696         Likewise.
27697         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27698         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27699         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27700         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27701         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27702         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27703         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27704         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27705         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27706         Likewise.
27707         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27708         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27709         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27710         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27711         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27712         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27713         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27714         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27715         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27716         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27717
27718 2010-08-26  Bruno Haible  <bruno@clisp.org>
27719
27720         Modernize AC_TRY_LINK invocations.
27721         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27722         AC_TRY_LINK.
27723         * m4/argp.m4 (gl_ARGP): Likewise.
27724         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27725         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27726         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27727         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27728         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27729         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27730         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27731         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27732         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27733         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27734         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27735         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27736         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27737         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27738         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27739         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27740         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27741         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27742         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27743         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27744         Likewise.
27745         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27746         Likewise.
27747         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27748         Likewise.
27749         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27750         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27751         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27752         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27753         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27754         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27755         * m4/servent.m4 (gl_SERVENT): Likewise.
27756         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27757         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27758         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27759         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27760         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27761         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27762         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27763         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27764         * modules/tsearch-tests (configure.ac): Likewise.
27765
27766 2010-08-26  Bruno Haible  <bruno@clisp.org>
27767
27768         Modernize AC_TRY_COMPILE invocations.
27769         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27770         AC_TRY_COMPILE.
27771         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27772         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27773         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27774         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27775         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27776         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27777         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27778         * m4/lock.m4 (gl_LOCK): Likewise.
27779         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27780         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27781         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27782         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27783         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27784         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27785         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27786         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27787         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27788         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27789         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27790         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27791         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27792         extraneous semicolon.
27793
27794 2010-08-26  Jim Meyering  <meyering@redhat.com>
27795
27796         stat-time: relax license LGPL
27797         * modules/stat-time (License): Change from GPL to LGPL,
27798         with consent from all contributors, for use in libguile.
27799         Requested by Ludovic Courtès.
27800
27801 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27802
27803         poll: return immediately on POLLHUP.
27804         * lib/poll.c (poll): Always set timeout before wait_timeout is
27805         computed.
27806
27807 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27808
27809         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27810         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27811         rmdir ("dir/.//"), unlinkat.
27812
27813 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27814
27815         stdbool: avoid spurious failure with modern xlc
27816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27817
27818 2010-08-24  Bruno Haible  <bruno@clisp.org>
27819
27820         getloadavg: simplify code
27821         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27822         gl_have_func. Update comments.
27823
27824 2010-08-24  Eric Blake  <eblake@redhat.com>
27825
27826         getloadavg: don't define SVR4 on cygwin
27827         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27828         only define SVR4 when -lkvm is required.
27829         Reported by Yaakov Selkowitz.
27830
27831 2010-08-24  Bruno Haible  <bruno@clisp.org>
27832
27833         priv-set: fix comment
27834         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27835
27836 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27837
27838         priv-set: fix comments
27839         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27840         to match code, as suggested by David Bartley in:
27841         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27842
27843 2010-08-23  Eric Blake  <eblake@redhat.com>
27844
27845         stdbool: avoid rejecting clang
27846         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27847         * tests/test-stdbool.c: Enable more tests if using the system
27848         <stdbool.h> instead of the gnulib replacement.
27849         (main): Move xlc bug test to a runtime test for all compilers.
27850         Reported by Anders Kaseorg.
27851
27852         argz: fix shell quoting issue
27853         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27854         Reported by Charles Wilson.
27855
27856 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27857             Erik Faye-Lund <kusmabite@gmail.com>
27858
27859         poll, select: handle ERROR_BROKEN_PIPE.
27860         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27861         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27862         * lib/select.c (win32_compute_revents): Do not mark a pipe
27863         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27864
27865 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27866
27867         fts: allow compilation with C++
27868         * lib/fts_.h: Specify extern "C" linkage with C++.
27869
27870 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27871
27872         Fix gnulib-tool sed script de-commentation for AIX sed.
27873         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27874         sed.
27875
27876 2010-08-17  Eric Blake  <eblake@redhat.com>
27877
27878         test-stddef: test for (some) offsetof bugs
27879         * tests/test-stddef.c: Enhance test to ensure correct type of
27880         offsetof.
27881         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27882         that we are not fixing at this time.
27883
27884 2010-08-15  Bruno Haible  <bruno@clisp.org>
27885
27886         stpncpy: Allow stpncpy to be defined as a macro.
27887         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27888         if it's already correctly declared.
27889         * lib/string.in.h (stpncpy): Undefine before redefining.
27890         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27891
27892 2010-08-14  Bruno Haible  <bruno@clisp.org>
27893
27894         Rename module 'memxfrm' to 'amemxfrm'.
27895         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27896         (amemxfrm): Renamed from memxfrm.
27897         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27898         (amemxfrm): Renamed from memxfrm.
27899         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27900         * NEWS: Mention the change.
27901         * MODULES.html.sh (String handling <string.h>): Update.
27902         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27903         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27904         * lib/unicase/u16-casexfrm.c: Likewise.
27905         * lib/unicase/u32-casexfrm.c: Likewise.
27906         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27907         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27908         * lib/uninorm/u16-normxfrm.c: Likewise.
27909         * lib/uninorm/u32-normxfrm.c: Likewise.
27910         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27911         memxfrm.
27912         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27913         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27914         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27915         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27916         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27917         Suggested by Paul Eggert.
27918
27919 2010-08-14  Bruno Haible  <bruno@clisp.org>
27920
27921         Tests for module 'astrxfrm'.
27922         * modules/astrxfrm-tests: New file.
27923         * tests/test-astrxfrm.c: New file.
27924
27925         New module 'astrxfrm'.
27926         * lib/astrxfrm.h: New file.
27927         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27928         * modules/astrxfrm: New file.
27929
27930 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27931
27932         regex: Tweak doc.
27933         * doc/regex.texi (Overview): Don't mention regex.c.
27934         (GNU Regular Expression Compiling): Likewise.
27935         (Match-end-of-line Operator): Mention 'not_eol'.
27936
27937 2010-08-14  Brian Gough  <bjg@gnu.org>
27938             Bruno Haible  <bruno@clisp.org>
27939
27940         git-merge-changelog: add doc relating to use with bzr and hg.
27941         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27942
27943 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27944
27945         pthread: fix pthread.h creation for srcdir != builddir
27946         * modules/pthread (Makefile.am): Fix the rule to work also in a
27947         non-srcdir build.
27948
27949 2010-08-13  Karl Berry  <karl@gnu.org>
27950
27951         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27952         * doc/posix-*/*: force line break before @url of POSIX
27953         specifications.
27954         Suggested by Werner Lemberg.
27955
27956 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27957
27958         strtod: fix const diagnostic
27959         * lib/strtod.c (strtod): Don't assign const char * to char *,
27960         as this elicits a warning from GCC when warnings are enabled.
27961
27962 2010-08-10  Pádraig Brady <P@draigbrady.com>
27963         and Eric Blake  <eblake@redhat.com>
27964
27965         copy-acl: ignore ENOTSUP on HP-UX
27966         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27967         so that it is available for HP-UX.
27968         * lib/copy-acl.c (qcopy_acl): Use it.
27969         Reported by Patrick M. Callahan.
27970
27971 2010-08-10  Eric Blake  <eblake@redhat.com>
27972
27973         open, chown: relax license
27974         * modules/open (License): Change to LGPLv2+, with consent by all
27975         authors, for use in augeas.
27976         * modules/chown (License): Likewise.
27977         * modules/lchown (Likewise): Likewise.
27978         Requested by Adam Stokes.
27979
27980 2010-08-09  Karl Berry  <karl@gnu.org>
27981
27982         * build-aux/ar-lib: new file, import from Automake.
27983         * config/srclist.txt: autocheck for updates.
27984
27985 2010-08-09  Eric Blake  <eblake@redhat.com>
27986
27987         readlinkat: adjust client modules
27988         * modules/areadlinkat (Depends-on): Use readlinkat, not
27989         symlinkat.
27990         * modules/areadlinkat-with-size (Depends-on): Likewise.
27991
27992         mknod: be more vocal about danger of running tests as root
27993         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27994         root, since that is just asking for problems.
27995         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27996
27997         readlinkat: split into its own module
27998         * modules/symlinkat: Split readlinkat...
27999         * modules/readlinkat: ...into separate module.
28000         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28001         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28002         * lib/symlinkat.c (readlinkat): Move...
28003         * lib/readlinkat.c: ...into new file.
28004         * modules/symlinkat-tests: Split readlinkat test...
28005         * modules/readlinkat-tests: ...into separate module.
28006         * tests/test-symlinkat.c: Split...
28007         * tests/test-readlinkat.c: ...into new file.
28008         * NEWS: Document the split.
28009         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28010         * lib/unistd.in.h (readlinkat): Likewise.
28011         Suggested by Bruno Haible.
28012
28013 2010-08-08  Bruno Haible  <bruno@clisp.org>
28014
28015         memxfrm: Speed up.
28016         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28017         that usually only one call to strxfrm is necessary for each string
28018         part.
28019         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28020
28021 2010-08-07  Karl Berry  <karl@gnu.org>
28022
28023         * doc/posix-headers/limits.texi,
28024         * doc/posix-functions/malloc.texi,
28025         * doc/posix-functions/strsignal.texi: missing @item.
28026         * doc/ld-version-script.texi: spurious leading i.
28027         * doc/regex.texi (Interval Operators): no commas inside @var.
28028
28029 2010-08-01  Bruno Haible  <bruno@clisp.org>
28030
28031         Integrate the regex documentation.
28032         * doc/gnulib.texi: Define 'cn' index.
28033         (Regular expressions): New a chapter that includes regex.texi and
28034         regexprops-generic.texi.
28035         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28036         syntax.
28037
28038         Whitespace cleanup.
28039         * doc/regex.texi: Remove trailing spaces.
28040
28041         Add regex documentation.
28042         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28043         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28044         Written by Kathy A. Hargreaves and Karl Berry.
28045
28046 2010-08-01  Bruno Haible  <bruno@clisp.org>
28047
28048         link: Update documentation.
28049         * doc/posix-functions/link.texi: Update regarding Solaris.
28050
28051 2010-07-31  Bruno Haible  <bruno@clisp.org>
28052
28053         Update modules list.
28054         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28055         (String handling <string.h>): Add memcmp2, memxfrm.
28056         (Container data structures): Add xlist, xsublist, xoset.
28057         (Core language properties): Add alignof, unused-parameter.
28058         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28059         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28060         (Unibyte characters <ctype.h>): New section.
28061         (String handling <string.h>): New section.
28062         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28063         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28064         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28065         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28066         tan, tanh, tanl, y0, y1, yn.
28067         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28068         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28069         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28070         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28071         unlockpt, vdprintf, vdprintf-posix.
28072         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28073         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28074         xconcat-filename.
28075         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28076         getdtablesize, pipe2, pipe2-safer.
28077         (Security): New section.
28078         (Networking functions): Add accept4.
28079         (Signal handling): Add sigpipe.
28080         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28081         mbmemcasecoll.
28082         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28083         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28084         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28085         pipe-filter-ii.
28086         (Misc): Add argp-version-etc, login_tty, parse-duration.
28087
28088 2010-07-31  Bruno Haible  <bruno@clisp.org>
28089
28090         Improve doc in MODULES.html.
28091         * modules/linkat (Description): Add the word "function".
28092         * modules/mkfifo (Description): Likewise.
28093         * modules/mknod (Description): Likewise.
28094         * modules/remove (Description): Likewise.
28095         * modules/renameat (Description): Likewise.
28096         * modules/stat (Description): Likewise.
28097         * modules/symlink (Description): Likewise.
28098         * modules/unlink (Description): Likewise.
28099
28100 2010-07-31  Bruno Haible  <bruno@clisp.org>
28101
28102         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28103         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28104         option --enable/disable-c++ instead of --enable/disable-cxx.
28105         * NEWS: Mention the change.
28106
28107 2010-07-31  Bruno Haible  <bruno@clisp.org>
28108
28109         readlink, areadlink: Relax test a bit.
28110         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28111         alternative to ENOTDIR.
28112         * tests/test-areadlink.h (test_areadlink): Likewise.
28113         Reported by Rainer Tammer.
28114
28115 2010-07-31  Bruno Haible  <bruno@clisp.org>
28116
28117         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28118         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28119         character, perform the search using U_STRCHR.
28120         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28121         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28122         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28123         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28124         Suggested by Paolo Bonzini.
28125
28126 2010-07-31  Bruno Haible  <bruno@clisp.org>
28127
28128         unistr/u*-strstr: Fix dependencies.
28129         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28130         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28131         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28132
28133 2010-07-31  Bruno Haible  <bruno@clisp.org>
28134
28135         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28136         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28137         the beginning of the loop.
28138         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28139         cases in 'switch' statement.
28140
28141         unistr/u8-strchr: Fix several bugs.
28142         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28143         the string. When not found, return NULL, not a pointer near the end.
28144
28145         More tests for unistr/u8-strchr.
28146         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28147         that the function does not read past the first occurrence of the byte
28148         being searched.
28149         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28150         * tests/unistr/test-u16-strchr.c (main): New function.
28151         * tests/unistr/test-u32-strchr.c (main): New function.
28152
28153 2010-07-31  Bruno Haible  <bruno@clisp.org>
28154
28155         posix-modules: Ignore backup files of documentation files.
28156         * posix-modules: grep only through files named *.texi.
28157
28158 2010-07-31  Bruno Haible  <bruno@clisp.org>
28159
28160         symlinkat: Fix documentation.
28161         * doc/posix-functions/readlinkat.texi: Fix module name.
28162
28163 2010-07-31  Bruno Haible  <bruno@clisp.org>
28164
28165         fchownat: Replace also when chown has the trailing slash bug.
28166         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28167         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28168         introduced on 2010-04-10.
28169         Reported by Rainer Tammer.
28170
28171 2010-07-31  Bruno Haible  <bruno@clisp.org>
28172
28173         linkat: Work around AIX 7.1 bug.
28174         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28175         whether linkat handles trailing slash correctly. If not, replace linkat
28176         and define LINKAT_TRAILING_SLASH_BUG.
28177         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28178         check whether (fd1,file1) points to a directory if file1 or file2 ends
28179         in a slash. Code taken from lib/link.c.
28180         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28181         Reported by Rainer Tammer.
28182
28183 2010-07-31  Bruno Haible  <bruno@clisp.org>
28184
28185         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28186         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28187         This disables an xlc optimization that was causing wrong test results.
28188         Reported by Rainer Tammer.
28189
28190 2010-07-31  Bruno Haible  <bruno@clisp.org>
28191
28192         iconv: Work around AIX 6.1..7.1 bug.
28193         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28194         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28195         cross-compiling, guess no on all versions of AIX.
28196         Reported by Rainer Tammer.
28197
28198 2010-07-31  Bruno Haible  <bruno@clisp.org>
28199
28200         readlink: Relax test a bit.
28201         * tests/test-readlink.h (test_readlink): Allow different errno value
28202         when readlink is called with a file name that ends in / and refers to
28203         a file.
28204         Suggested by Eric Blake.
28205         Reported by Rainer Tammer.
28206
28207 2010-07-31  Bruno Haible  <bruno@clisp.org>
28208
28209         copysign: Does not require -lm on glibc systems.
28210         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28211         gl_COMMON_DOUBLE_MATHFUNC.
28212         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28213
28214 2010-07-31  Bruno Haible  <bruno@clisp.org>
28215
28216         duplocale: Work around AIX 7.1 bug.
28217         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28218         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28219         * lib/duplocale.c (rpl_duplocale): Update comment.
28220         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28221         Reported by Rainer Tammer.
28222
28223 2010-07-30  Bruno Haible  <bruno@clisp.org>
28224
28225         dirfd: Avoid link error on AIX 7.1.
28226         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28227         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28228         exist, set REPLACE_DIRFD.
28229         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28230         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28231         * doc/posix-functions/dirfd.texi: Update.
28232         Reported by Rainer Tammer.
28233
28234 2010-07-30  Eric Blake  <eblake@redhat.com>
28235
28236         strtod: next round of AIX fixes
28237         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28238         exponent.
28239         * tests/test-strtod.c (main): Enhance tests.
28240         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28241         Reported by Rainer Tammer.
28242
28243         futimens: fix configure check
28244         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28245         Reported by Bruno Haible.
28246
28247 2010-07-30  Bruno Haible  <bruno@clisp.org>
28248
28249         getline: Update regarding AIX.
28250         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28251         Reported by Rainer Tammer.
28252
28253 2010-07-30  Bruno Haible  <bruno@clisp.org>
28254
28255         wcwidth: Drop replacement on AIX 7.
28256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28257         AIX 7.
28258         Reported by Rainer Tammer.
28259
28260 2010-07-30  Bruno Haible  <bruno@clisp.org>
28261
28262         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28263         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28264         a 'char *'.
28265         Reported by Rainer Tammer.
28266
28267 2010-07-30  Bruno Haible  <bruno@clisp.org>
28268
28269         unlink: Update regarding AIX.
28270         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28271         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28272         Reported by Rainer Tammer.
28273
28274 2010-07-30  Bruno Haible  <bruno@clisp.org>
28275
28276         symlink: Update regarding AIX.
28277         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28278         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28279         Reported by Rainer Tammer.
28280
28281 2010-07-30  Bruno Haible  <bruno@clisp.org>
28282
28283         strndup: Update regarding AIX.
28284         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28285         AIX 7.
28286         Reported by Rainer Tammer.
28287
28288 2010-07-30  Bruno Haible  <bruno@clisp.org>
28289
28290         stat: Update regarding AIX.
28291         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28292         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28293         Reported by Rainer Tammer.
28294
28295 2010-07-30  Bruno Haible  <bruno@clisp.org>
28296
28297         truncl: Fix autoconf test.
28298         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28299         whether truncl works.
28300         Reported by Rainer Tammer.
28301
28302 2010-07-30  Bruno Haible  <bruno@clisp.org>
28303
28304         round: Update regarding AIX.
28305         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28306         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28307         Reported by Rainer Tammer.
28308
28309 2010-07-30  Bruno Haible  <bruno@clisp.org>
28310
28311         rename: Update regarding AIX.
28312         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28313         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28314         Reported by Rainer Tammer.
28315
28316 2010-07-30  Bruno Haible  <bruno@clisp.org>
28317
28318         printf.m4: Update regarding AIX.
28319         * m4/printf.m4: Update comments regarding AIX.
28320         Reported by Rainer Tammer.
28321
28322 2010-07-30  Bruno Haible  <bruno@clisp.org>
28323
28324         iconv: Update regarding AIX.
28325         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28326         AIX 7.
28327         Reported by Rainer Tammer.
28328
28329 2010-07-30  Bruno Haible  <bruno@clisp.org>
28330
28331         getopt: Update regarding AIX.
28332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28333         no on AIX.
28334         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28335         Reported by Rainer Tammer.
28336
28337 2010-07-30  Bruno Haible  <bruno@clisp.org>
28338
28339         ldexpl; Update regarding AIX.
28340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28341         on AIX 7.
28342         Reported by Rainer Tammer.
28343
28344 2010-07-30  Bruno Haible  <bruno@clisp.org>
28345
28346         frexpl: Update regarding AIX.
28347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28348         on AIX 7.
28349         Reported by Rainer Tammer.
28350
28351 2010-07-30  Bruno Haible  <bruno@clisp.org>
28352
28353         open, fopen: Update regarding AIX.
28354         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28355         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28356         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28357         * doc/posix-functions/fopen.texi: Likewise.
28358         Reported by Rainer Tammer.
28359
28360 2010-07-30  Bruno Haible  <bruno@clisp.org>
28361
28362         chown: Update doc regarding AIX.
28363         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28364         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28365         Reported by Rainer Tammer.
28366
28367 2010-07-30  Eric Blake  <eblake@redhat.com>
28368
28369         strtod: fix bug in replacement function on AIX
28370         * lib/strtod.c (strtod): Special case broken "0x" parse in
28371         underlying strtod.
28372         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28373         * doc/posix-functions/strtod.texi (strtod): Likewise.
28374         Reported by Rainer Tammer.
28375
28376 2010-07-30  Bruno Haible  <bruno@clisp.org>
28377
28378         mbrlen: Fix cross-compilation guess for AIX.
28379         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28380         guess. Leftover from 2008-12-22.
28381
28382 2010-07-30  Bruno Haible  <bruno@clisp.org>
28383
28384         mbrtowc: Fix cross-compilation guess for AIX.
28385         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28386         guess. Leftover from 2008-12-21.
28387
28388 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28389
28390         init.sh: work around trap limitation of some shells
28391         * tests/init.sh (setup_): Move exit trap outside of shell function.
28392
28393 2010-07-29  Eric Blake  <eblake@redhat.com>
28394
28395         strtod: aid debugging
28396         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28397         understanding why strtod is rejected.
28398
28399 2010-07-28  Bruno Haible  <bruno@clisp.org>
28400
28401         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28402         * lib/unistr/u8-chr.c: Include <string.h>.
28403         * tests/unistr/test-u8-chr.c: Likewise.
28404         * tests/unistr/test-u16-chr.c: Likewise.
28405         * tests/unistr/test-u32-chr.c: Likewise.
28406         * tests/unistr/test-u8-strchr.c: Likewise.
28407         * tests/unistr/test-u16-strchr.c: Likewise.
28408         * tests/unistr/test-u32-strchr.c: Likewise.
28409         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28410         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28411         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28412         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28413
28414 2010-07-28  Bruno Haible  <bruno@clisp.org>
28415
28416         Use spaces for indentation, not tabs.
28417         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28418
28419 2010-07-27  Bruno Haible  <bruno@clisp.org>
28420
28421         mbspcasecmp: Fix function specification.
28422         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28423         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28424         Reported by Eric Blake <eblake@redhat.com>.
28425
28426 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28427
28428         timespec: use cast and not conditional, as truncation isn't possible
28429         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28430         instead of a conditional.  Comment about the situation in more detail.
28431         This undoes most of the 2009-10-29 patch.
28432
28433 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28434
28435         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28436         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28437         * lib/unistr/u8-strchr.c: Likewise.
28438         * modules/unistr/u8-chr: Depend on memchr.
28439
28440         unistr/u*-strchr: add tests
28441         * modules/unistr/u8-strchr-tests: New file.
28442         * modules/unistr/u16-strchr-tests: New file.
28443         * modules/unistr/u32-strchr-tests: New file.
28444         * tests/unistr/test-strchr.h: New file.
28445         * tests/unistr/test-u8-strchr.c: New file.
28446         * tests/unistr/test-u16-strchr.c: New file.
28447         * tests/unistr/test-u32-strchr.c: New file.
28448
28449         unistr/u*-chr: test multibyte sequences more
28450         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28451         test vector.
28452         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28453         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28454         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28455
28456         unistr/u*-chr: test multibyte sequences
28457         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28458
28459         unistr/u*-chr: prepare for multibyte tests
28460         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28461         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28462         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28463         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28464         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28465         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28466
28467 2010-07-18  Bruno Haible  <bruno@clisp.org>
28468
28469         unistr/u8-strchr: Optimize non-ASCII argument case.
28470         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28471         because the first byte often matches anyway.
28472         Reported by Pádraig Brady <P@draigbrady.com>.
28473
28474 2010-07-15  Karl Berry  <karl@gnu.org>
28475
28476         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28477
28478 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28479
28480         getcwd: on Solaris, work better if ancestors are inaccessible
28481         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28482         buffer and size, try again with a large buffer.  This works better
28483         on Solaris, since its getcwd succeeds even if the path to the root
28484         is inaccessible, and this is helpful in common cases such as .zfs
28485         hidden directories.  Problem reported by J Chapman Flack in
28486         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28487         Use system getcwd if it's declared, not merely if it's partly
28488         working; use the partly-working test only to avoid needless effort
28489         if the system getcwd fails.
28490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28491         comment that was already obsolete and is now even more obsolete.
28492         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28493         now might call strdup.
28494
28495 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28496
28497         pthread: Add enough so that coreutils/src/sort.c compiles.
28498         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28499         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28500         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28501         Include <sys/types.h>, in case it defines pthread_t.
28502         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28503         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28504         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28505         (pthread_rwlockattr_t, pthread_spinlock_t):
28506         New typedefs, if HAVE_PTHREAD_T is not defined.
28507         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28508         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28509         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28510         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28511         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28512         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28513         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28514         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28515         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28516         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28517         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28518         New macros.
28519         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28520         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28521         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28522         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28523         (pthread_spin_unlock): New dummy functions.
28524         (pthread_create): Return EAGAIN; don't set errno.
28525         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28526         require AC_C_INLINE.
28527         * modules/pthread (Depends-on): Add sched, time.
28528         (pthread.h): Use AM_V_GEN.
28529
28530 2010-07-13  Bruno Haible  <bruno@clisp.org>
28531
28532         striconveh: Don't malloc memory if the result buffer is sufficient.
28533         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28534         buffer if its size is sufficient.
28535         Reported by Ludovic Courtès <ludo@gnu.org>.
28536
28537 2010-07-13  Bruno Haible  <bruno@clisp.org>
28538
28539         strtod: Add safety check.
28540         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28541
28542 2010-07-12  Bruno Haible  <bruno@clisp.org>
28543
28544         Unify tests that set gl_cv_func_ldexpl_no_libm.
28545         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28546         gl_FUNC_LDEXPL.
28547         (gl_FUNC_LDEXPL): Invoke it.
28548         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28549
28550 2010-07-12  Bruno Haible  <bruno@clisp.org>
28551
28552         Unify tests that set gl_cv_func_ldexp_no_libm.
28553         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28554         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28555         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28556         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28557         * modules/strtod (Files): Add m4/ldexp.m4.
28558
28559 2010-07-12  Bruno Haible  <bruno@clisp.org>
28560
28561         Unify tests that set gl_cv_func_frexpl_no_libm.
28562         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28563         gl_FUNC_FREXPL_NO_LIBM.
28564         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28565         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28566
28567 2010-07-12  Bruno Haible  <bruno@clisp.org>
28568
28569         Unify tests that set gl_cv_func_frexp_no_libm.
28570         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28571         gl_FUNC_FREXP_NO_LIBM.
28572         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28573         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28574
28575 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28576
28577         memcoll: clarify sizes versus lengths, document better, and tweak perf
28578         * lib/memcoll.c (strcoll_loop, memcoll0):
28579         Improve quality of descriptive comments.  Name variables
28580         consistently as to whether they are lengths (which do not include
28581         terminating null) versus sizes (which do).
28582         * lib/xmemcoll.c (xmemcoll0): Likewise.
28583         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28584         returned when s1size == 0; this is easier to compile and saves
28585         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28586
28587 2010-07-12  Bruno Haible  <bruno@clisp.org>
28588
28589         Tests for module '_Exit'.
28590         * modules/_Exit-tests: New file.
28591         * tests/test-_Exit.sh: New file.
28592         * tests/test-_Exit.c: New file.
28593
28594         New module '_Exit'.
28595         * lib/stdlib.in.h (__attribute__): New macro.
28596         (_Exit): New declaration.
28597         * lib/_Exit.c: New file.
28598         * m4/_Exit.m4: New file.
28599         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28600         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28601         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28602         * modules/_Exit: New file.
28603         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28604         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28605
28606 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28607
28608         strtod: make it more-accurate typically, and don't require libm
28609         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28610         Include limits.h.  Don't include string.h.
28611         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28612         (locale_isspace): New function, so that no casts are needed to
28613         check whether *s is a space.
28614         (ldexp): Provide an unused dummy if not available.
28615         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28616         (strtod): Use them.  This implementation prefers to use the
28617         underlying strtod if available, falling back on our own code
28618         only to fix known bugs.  This is more likely to produce an
28619         accurate result.  Also, it avoids the use of libm functions.
28620         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28621         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28622         was absent, but it caused a test failure with coreutils.
28623         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28624         with libm.
28625         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28626         * modules/strtod-tests (Makefile.am): Likewise.
28627
28628 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28629             Bruno Haible  <bruno@clisp.org>
28630
28631         unistr/u8-strchr: Optimize ASCII argument case.
28632         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28633
28634 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28635
28636         (x)memcoll: minor tweaks
28637         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28638         is after the type that it qualifies.
28639         (memcoll0): Likewise.
28640         * lib/memcoll.h (memcoll0): Likewise.
28641         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28642         * lib/xmemcoll.h (xmemcoll0): Likewise.
28643         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28644         differs from memcoll in that the NUL byte is part of the argument.
28645         Omit the abort-checks, as performance is a real issue here.  Plus,
28646         the checks were wrong anyway (an off-by-one error).  Omit local
28647         variable 'diff', as it's a bit clearer that way.
28648         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28649         no longer needed.
28650
28651 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28652
28653         (x)memcoll: speedup when input is known to be NUL delimited
28654         * lib/memcoll.c: Include stdlib.
28655         (memcoll0): New function.
28656         (strcoll_loop): New function, refactored for use in both memcoll
28657         and memcoll0.
28658         * lib/memcoll.h (memcoll0): Add prototype.
28659         * lib/xmemcoll.c (xmemcoll0): New function.
28660         (collate_error): New function, refactored for use in both xmemcoll
28661         and xmemcoll0.
28662         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28663         * m4/memcoll.m4: add inline invocation.
28664
28665 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28666
28667         * build-aux/bootstrap: Remove any local translations
28668         from the translation project synchronization directory,
28669         so that local only translations are not distributed.
28670
28671 2010-07-04  Bruno Haible  <bruno@clisp.org>
28672
28673         fsusage: Clarify which code applies to which platforms.
28674         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28675         platform.
28676         * lib/fsusage.c (get_fs_usage): Likewise.
28677
28678 2010-07-04  Bruno Haible  <bruno@clisp.org>
28679
28680         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28681         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28682         Reported by Martin Lambers <marlam@marlam.de>.
28683
28684 2010-07-04  Jim Meyering  <meyering@redhat.com>
28685
28686         hash: once again explicitly disallow insertion of NULL
28687         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28688         inserting a NULL pointer cannot work with these functions.
28689         Add a comment with details.
28690         This reverts part of the 2010-07-01 commit, 5bef1a35
28691         "hash: extend module to deal with non-pointer keys".
28692
28693 2010-07-01  Bruno Haible  <bruno@clisp.org>
28694
28695         stdbool: Update doc.
28696         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28697         Info from Christian Weisgerber <naddy@mips.inka.de>.
28698
28699 2010-07-01  Jim Meyering  <meyering@redhat.com>
28700
28701         hash: extend module to deal with non-pointer keys
28702         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28703         but that allows insertion of non-pointer entries.
28704         Do not disallow an ENTRY value of NULL.
28705         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28706         * lib/hash.h (hash_insert0): Declare.
28707
28708 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28709
28710         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28711         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28712         not present (i.e. with autoconf 2.59 and when using gettextize, not
28713         gnulib), require AC_GNU_SOURCE instead.
28714
28715 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28716
28717         idpriv-drop: Fix tests.
28718         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28719         not to the test-idpriv-droptemp program.
28720
28721 2010-06-29  Bruno Haible  <bruno@clisp.org>
28722
28723         string: Fix syntax error with g++ 2.96.
28724         * lib/string.in.h (__pure__): Remove definition.
28725         (_GL_ATTRIBUTE_PURE): New macro.
28726         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28727         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28728         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28729
28730 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28731
28732         unitypes: Fix bug introduced on 2010-05-18.
28733         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28734
28735 2010-06-22  Eric Blake  <eblake@redhat.com>
28736
28737         memmem: slight optimization
28738         * lib/str-two-way.h (critical_factorization): Update comments.
28739         Reduce work during factorization phase.
28740         Reported by Carlos Bueno <carlos@bueno.org>.
28741
28742 2010-06-21  Bruno Haible  <bruno@clisp.org>
28743
28744         Fix HAVE_CALLOC_POSIX misnomer.
28745         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28746         !HAVE_CALLOC_POSIX.
28747         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28748         HAVE_CALLOC_POSIX.
28749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28750         instead of HAVE_CALLOC_POSIX.
28751         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28752         HAVE_CALLOC_POSIX.
28753
28754         Use modern idiom for calloc() replacement.
28755         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28756         AC_FUNC_CALLOC.
28757         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28758         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28759         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28760         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28761         (gl_REPLACE_CALLOC): New macro.
28762
28763 2010-06-21  Bruno Haible  <bruno@clisp.org>
28764
28765         Fix HAVE_REALLOC_POSIX misnomer.
28766         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28767         !HAVE_REALLOC_POSIX.
28768         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28769         HAVE_REALLOC_POSIX.
28770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28771         instead of HAVE_REALLOC_POSIX.
28772         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28773         HAVE_REALLOC_POSIX.
28774
28775         Use modern idiom for realloc() replacement.
28776         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28777         AC_FUNC_REALLOC.
28778         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28779         Autoconf's AC_FUNC_REALLOC.
28780         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28781         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28782         (gl_REPLACE_REALLOC): New macro.
28783         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28784
28785 2010-06-21  Bruno Haible  <bruno@clisp.org>
28786
28787         Fix HAVE_MALLOC_POSIX misnomer.
28788         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28789         !HAVE_MALLOC_POSIX.
28790         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28791         HAVE_MALLOC_POSIX.
28792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28793         instead of HAVE_MALLOC_POSIX.
28794         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28795         HAVE_MALLOC_POSIX.
28796
28797         Use modern idiom for malloc() replacement.
28798         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28799         AC_FUNC_MALLOC.
28800         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28801         Autoconf's AC_FUNC_MALLOC.
28802         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28803         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28804         (gl_REPLACE_MALLOC): New macro.
28805         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28806
28807 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28808
28809         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28810         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28811         This macro takes 3 arguments, not 4.
28812
28813 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28814
28815         ipv6: fix detection under mingw
28816         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28817         in6_addr.
28818
28819 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28820
28821         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28822         that strtod() works when cross-compiling to a glibc version known
28823         to work.
28824
28825 2010-06-15  Bruno Haible  <bruno@clisp.org>
28826
28827         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28828
28829 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28830
28831         select: Correct timeout.
28832         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28833
28834 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28835
28836         git-version-gen: init shell var to avoid env var influence
28837         * build-aux/git-version-gen (v): Init shell var to empty.
28838
28839 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28840
28841         priv-set: Don't assume that priv.h exists merely because getppriv does.
28842         See Jan Andersen's bug report about AIX 5L in
28843         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28844         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28845         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28846         * lib/priv-set.h: Likewise.
28847         * tests/test-priv-set.c: Likewise.
28848
28849 2010-06-13  Bruno Haible  <bruno@clisp.org>
28850
28851         relocatable: Make it easier to test whether to install wrappers.
28852         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28853         RELOCATABLE_VIA_WRAPPER.
28854
28855 2010-06-13  Bruno Haible  <bruno@clisp.org>
28856
28857         gnulib-tool: Display specified modules and dependencies differently.
28858         * gnulib-tool (func_show_module_list): New function.
28859         (func_import, func_create_testdir): Invoke it.
28860         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28861
28862 2010-06-13  Bruno Haible  <bruno@clisp.org>
28863
28864         gnulib-tool: Align code of func_import and func_create_testdir.
28865         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28866         specified_modules.
28867
28868 2010-06-12  Jim Meyering  <meyering@redhat.com>
28869
28870         test-inttostr: avoid spurious failure on Solaris 9
28871         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28872         to accept "%ju".  Reported by Bruno Haible.
28873
28874 2010-06-11  Jim Meyering  <meyering@redhat.com>
28875
28876         test-sys_socket: mark variables as used more readably
28877         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28878         as "used" explicitly via (void) statement casts.  This is more
28879         readable than using them in an artificial return expression.
28880         Suggestion from Bruno Haible.
28881
28882 2010-06-11  Bruno Haible  <bruno@clisp.org>
28883
28884         Avoid some more warnings from "gcc -Wwrite-strings".
28885         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28886         to 'const char *'.
28887         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28888         * tests/test-c-strcasestr.c (main): Likewise.
28889         * tests/test-mbscasestr1.c (main): Likewise.
28890         * tests/test-mbscasestr2.c (main): Likewise.
28891         * tests/test-memmem.c (main): Likewise.
28892         * tests/test-strstr.c (main): Likewise.
28893         * tests/test-strcasestr.c (main): Likewise.
28894
28895 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28896
28897         init.sh: change framework_failure_ to fail with status 99, not 1
28898         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28899         automake's parallel-tests rule that this is an unexpected failure,
28900         even if the test is listed in XFAIL_TESTS.
28901
28902 2010-06-11  Jim Meyering  <meyering@redhat.com>
28903
28904         test-inttostr: avoid warnings about 4-6KB literal strings
28905         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28906         Include "macros.h", for its definition of ASSERT.
28907         (CK): s/assert/ASSERT/
28908         * modules/inttostr-tests (Files): Add macros.h.
28909
28910         init.sh: don't use $ME_ or skip_ before they are defined
28911         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28912         their first uses.  Also hoist their companions: warn_, fail_,
28913         framework_failure_, $stderr_fileno.  Prompted by a patch from
28914         Stefano Lattarini.
28915
28916         test-sys_socket: avoid set-but-not-used warnings from gcc
28917         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28918         avoid warning about set-but-not-used variables.
28919
28920         test-xvasprintf: avoid 'const' discard warnings
28921         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28922         "const" when assigning from literal strings.
28923         (test_xasprintf): Add "void" in function argument list to placate
28924         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28925
28926         tests: avoid compilation warnings in argmatch and exclude tests...
28927         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28928         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28929         Since it always exits, declare with the "noreturn" attribute.
28930         * tests/test-argmatch.c: Likewise.
28931
28932         tests: avoid 'const' discard warnings in mbsstr tests
28933         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28934         * tests/test-mbsstr2.c (main): Likewise.
28935
28936         test-verify: avoid warning from gcc's -Wmissing-declarations
28937         * tests/test-verify.c (function): Declare to be static.
28938
28939         test-inttostr.c: include <string.h> for use of strcmp
28940         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28941
28942         test-linkat: avoid failed assertion on "other" architectures
28943         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28944         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28945         sparc: https://bugs.launchpad.net/bugs/591968
28946
28947 2010-06-11  Jim Meyering  <meyering@redhat.com>
28948
28949         printf.m4: avoid autoconf's "Expanded Before Required" warning
28950         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28951         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28952         autoconf warning.
28953
28954 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28955
28956         Replacement header templates are now named with ".in", not "_".
28957         * doc/gnulib-intro.texi: Correct.
28958
28959 2010-06-10  Jim Meyering  <meyering@redhat.com>
28960
28961         inttostr-tests: depend on snprintf, not snprintf-posix
28962         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28963         snprintf-posix, to avoid this aclocal failure:
28964           missing file gnulib-tests/vasnprintf.c
28965           configure.ac:45: error: expected source file, required through \
28966           AC_LIBSOURCES, not found
28967
28968 2010-06-10  Jim Meyering  <meyering@redhat.com>
28969
28970         inttostr: add a new function, inttostr, and tests
28971         The namesake function was not available.  The existence of the
28972         template file, inttostr.c makes its addition nontrivial.
28973         * lib/anytostr.c: Rename from inttostr.c.
28974         (anytostr): Rename from inttostr.
28975         * lib/inttostr.c: New file.
28976         * modules/inttostr (Files): Add anytostr.c.
28977         (Makefile.am): Set lib_SOURCES instead of ...
28978         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28979         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28980         * lib/offtostr.c: Likewise.
28981         * lib/uinttostr.c: Likewise.
28982         * lib/umaxtostr.c: Likewise.
28983         * modules/inttostr-tests: New file.
28984         * tests/test-inttostr.c: New file.  Test these functions.
28985
28986 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28987             Bruno Haible  <bruno@clisp.org>
28988
28989         Add "Extending Gnulib" chapter to manual.
28990         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28991         chapter.
28992         (Extending Gnulib): New chapter.
28993         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28994         chapter.
28995
28996 2010-06-09  Bruno Haible  <bruno@clisp.org>
28997
28998         Avoid relocwrapper link errors due to gnulib replacement functions.
28999         * lib/areadlink.c: Use the system's malloc, realloc functions.
29000         (areadlink): Set errno to ENOMEM explicitly.
29001         * modules/areadlink (Depends-on): Remove malloc-posix.
29002         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29003
29004 2010-06-09  Bruno Haible  <bruno@clisp.org>
29005
29006         Avoid relocwrapper link errors due to gnulib replacement functions.
29007         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29008         * lib/malloca.c: Likewise.
29009         * lib/relocatable.c: Likewise.
29010         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29011         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29012         * lib/setenv.c: Use the system's malloc, realloc functions.
29013         * lib/strerror.c: Use the system's sprintf function.
29014         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29015
29016 2010-06-04  Bruno Haible  <bruno@clisp.org>
29017
29018         Prefer documented low-level autoconf macro names.
29019         * m4/lib-link.m4: Use m4_translit instead of translit.
29020         * m4/environ.m4: Likewise.
29021         * m4/mathfunc.m4: Likewise.
29022         * m4/onceonly.m4: Likewise.
29023         * m4/stdint.m4: Likewise.
29024         Suggested by Eric Blake.
29025
29026 2010-06-04  Martin Lambers  <marlam@marlam.de>
29027             Bruno Haible  <bruno@clisp.org>
29028
29029         havelib: Allow library names with '+' characters.
29030         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29031         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29032
29033 2010-06-09  Bruno Haible  <bruno@clisp.org>
29034
29035         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29036         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29037         realloc failed.
29038
29039 2010-06-08  Peter Simons  <simons@cryp.to>
29040
29041         maint.mk: make the news-check rule more configurable
29042         * top/maint.mk (news-check-lines-spec): New variable.
29043         (news-check): Use "sed -n 1,10p" in place of "head".
29044
29045 2010-06-07  Jim Meyering  <meyering@redhat.com>
29046
29047         do-release-commit-and-tag: fix typo in --help
29048         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29049
29050         regex: avoid new dead-code warning with gcc-4.6.0
29051         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29052         if-block containing a while-loop.  It's been unused for at least
29053         5 years.
29054
29055 2010-06-05  Bruno Haible  <bruno@clisp.org>
29056
29057         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29058         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29059
29060 2010-06-04  Bruno Haible  <bruno@clisp.org>
29061
29062         Update to GNU gettext 0.18.1.
29063         * modules/gettext (configure.ac): Require gettext infrastructure from
29064         version 0.18.1.
29065
29066 2010-06-03  Bruno Haible  <bruno@clisp.org>
29067
29068         Don't use AC_LIBOBJ with file names in subdirectories.
29069         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29070         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29071         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29072         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29073         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29074         gl_LIBUNISTRING_LIBSOURCE.
29075         (Makefile.am): Augment lib_SOURCES here, conditionally.
29076         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29077
29078 2010-06-03  Bruno Haible  <bruno@clisp.org>
29079
29080         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29081         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29082         expansion does not end with a newline.
29083         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29084         unnecessary newline.
29085
29086 2010-06-03  Bruno Haible  <bruno@clisp.org>
29087
29088         Reduce dependencies.
29089         * tests/test-quotearg.h: New file, extracted from
29090         tests/test-quotearg.c.
29091         * tests/test-quotearg-simple.c: New file, extracted from
29092         tests/test-quotearg.c.
29093         * tests/test-quotearg.c: Don't include <ctype.h>.
29094         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29095         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29096         use_quote_double_quotes, use_quotearg_colon): Moved to
29097         tests/test-quotearg.h.
29098         (results_g, flag_results, custom_quotes, custom_results): Moved
29099         to tests/test-quotearg-simple.c.
29100         (main): Moved the part that does not depend on gettext to
29101         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29102         performed.
29103         * modules/quotearg-simple: New file.
29104         * modules/quotearg-simple-tests: New file.
29105         * modules/quotearg (Depends-on): Add quotearg-simple.
29106         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29107         (Files): Add tests/test-quotearg.h.
29108         Reported by Paolo Bonzini.
29109
29110 2010-06-03  Bruno Haible  <bruno@clisp.org>
29111
29112         Reduce dependencies.
29113         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29114
29115 2010-06-03  Bruno Haible  <bruno@clisp.org>
29116
29117         time: Undefine more broken macros.
29118         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29119         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29120         Reported by Eric Blake.
29121
29122 2010-06-03  Bruno Haible  <bruno@clisp.org>
29123
29124         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29125         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29126         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29127         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29128         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29129         Reported by Ludovic Courtès <ludo@gnu.org>.
29130
29131 2010-06-02  Eric Blake  <eblake@redhat.com>
29132
29133         time: work with mingw + pthreads-win32 library
29134         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29135         if timespec is defined only in pthread.h.
29136         * modules/time (Makefile.am): Substitute it.
29137         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29138         <pthread.h>, when needed.
29139         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29140         from the library.
29141
29142 2010-05-31  Bruno Haible  <bruno@clisp.org>
29143
29144         Avoid expanding two macros in the wrong order.
29145         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29146         gl_LIBUNISTRING if it is defined.
29147         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29148         autoconf >= 2.64.
29149         Reported by Ludovic Courtès <ludo@gnu.org>.
29150
29151 2010-05-27  Jim Meyering  <meyering@redhat.com>
29152
29153         maint.mk: also prohibit "#undef" of always-defined symbols
29154         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29155         Allow more than one space before the symbol name.
29156         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29157         the regexp uses alternation.
29158
29159 2010-05-26  Eric Blake  <eblake@redhat.com>
29160
29161         maint.mk: avoid echo -e
29162         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29163         Convert all uses of echo -* to printf.
29164         Reported by Matthias Bolte.
29165
29166 2010-05-25  Bruno Haible  <bruno@clisp.org>
29167
29168         Update to GNU gettext 0.18, part 2.
29169         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29170         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29171
29172 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29173
29174         Add missing include in test-pwrite.c.
29175         * tests/test-pwrite.c: Include string.h, for strcmp.
29176
29177 2010-05-24  Bruno Haible  <bruno@clisp.org>
29178
29179         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29180
29181 2010-05-24  Bruno Haible  <bruno@clisp.org>
29182
29183         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29184         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29185         iconveh_error argument.
29186         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29187         U_STRCONV_TO_LOCALE.
29188         * lib/unistr/u16-strcoll.c: Likewise.
29189         * lib/unistr/u32-strcoll.c: Likewise.
29190         * modules/unistr/u8-strcoll (Depends-on): Add
29191         uniconv/u8-strconv-to-enc, localcharset. Remove
29192         uniconv/u8-strconv-to-locale.
29193         (configure.ac): Bump version number.
29194         * modules/unistr/u16-strcoll (Depends-on): Add
29195         uniconv/u16-strconv-to-enc, localcharset. Remove
29196         uniconv/u16-strconv-to-locale.
29197         (configure.ac): Bump version number.
29198         * modules/unistr/u32-strcoll (Depends-on): Add
29199         uniconv/u32-strconv-to-enc, localcharset. Remove
29200         uniconv/u32-strconv-to-locale.
29201         (configure.ac): Bump version number.
29202
29203 2010-05-24  Bruno Haible  <bruno@clisp.org>
29204
29205         Avoid a test failure on NetBSD 5.0.
29206         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29207         an iconv() bug.
29208
29209 2010-05-24  Bruno Haible  <bruno@clisp.org>
29210
29211         Adjust #include directive style.
29212         * modules/regex (Includes): Recommend to write <regex.h>.
29213
29214 2010-05-24  Bruno Haible  <bruno@clisp.org>
29215
29216         regex: Don't require alloca.
29217         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29218         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29219         only inside if (0).
29220
29221 2010-05-23  Jim Meyering  <meyering@redhat.com>
29222
29223         test-renameat.c: include <sys/stat.h>
29224         * tests/test-renameat.c: Include <sys/stat.h>; required for
29225         definition of S_IS* macros.
29226
29227 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29228
29229         Update maintainer documentation for 'relocatable-prog' module.
29230         * doc/relocatable-maint.texi: Update.
29231         Comments by Bruno Haible.
29232
29233 2010-05-23  Bruno Haible  <bruno@clisp.org>
29234
29235         git-merge-changelog: Enable --split-merged-entry by default.
29236         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29237         (usage): Don't mention this option any more.
29238         Reported by Ralf Wildenhues.
29239
29240 2010-05-23  Jim Meyering  <meyering@redhat.com>
29241
29242         test-pwrite: do not leave behind a test file named "out"
29243         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29244         The trivial-looking use of init.sh is really necessary.
29245         It ensures that the temporary file, "out", is created in
29246         a temporary directory, and removed upon termination.
29247         * tests/test-pwrite.sh: Re-add file.
29248         * modules/pwrite-tests: Reference it.
29249
29250 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29251
29252         Fix output redirection buglet in init.sh.
29253         * tests/init.sh: Fix redirection of stderr.
29254
29255 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29256
29257         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29258
29259 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29260
29261         * modules/valgrind-tests: New file.
29262         * m4/valgrind-tests.m4: New file.
29263         * doc/valgrind-tests.texi: New file.
29264         * doc/gnulib.texi (Running self-tests under valgrind): New
29265         section.
29266
29267 2010-05-19  Bruno Haible  <bruno@clisp.org>
29268
29269         Clean up dead code in recent commit.
29270         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29271         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29272         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29273         Suggested by Paolo Bonzini.
29274
29275 2010-05-19  Bruno Haible  <bruno@clisp.org>
29276
29277         Avoid valgrind error reports from libunistring.
29278         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29279         * modules/libunistring (Files): Add it.
29280         * modules/libunistring-optional (Files): Likewise.
29281
29282 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29283             Bruno Haible  <bruno@clisp.org>
29284
29285         New module 'libunistring-optional'.
29286         * modules/libunistring-optional: New file.
29287         * m4/libunistring-base.m4: New file.
29288         * m4/libunistring-optional.m4: New file.
29289         * lib/unicase.in.h: Renamed from lib/unicase.h.
29290         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29291         * lib/unictype.in.h: Renamed from lib/unictype.h.
29292         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29293         * lib/uniname.in.h: Renamed from lib/uniname.h.
29294         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29295         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29296         * lib/unistr.in.h: Renamed from lib/unistr.h.
29297         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29298         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29299         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29300         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29301         gl_LIBUNISTRING. If the library was found, determine the installed
29302         version and set LIBUNISTRING_VERSION.
29303         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29304         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29305         handle a configuration option --with-included-libunistring.
29306         * modules/libunistring (Files): Add m4/absolute-header.m4.
29307         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29308         Add m4/libunistring-base.m4.
29309         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29310         (Makefile.am): Build unicase.h from unicase.in.h.
29311         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29312         Add m4/libunistring-base.m4.
29313         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29314         (Makefile.am): Build uniconv.h from uniconv.in.h.
29315         * modules/unictype/base (Files): Use unictype.in.h instead of
29316         unictype.h. Add m4/libunistring-base.m4.
29317         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29318         (Makefile.am): Build unictype.h from unictype.in.h.
29319         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29320         Add m4/libunistring-base.m4.
29321         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29322         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29323         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29324         Add m4/libunistring-base.m4.
29325         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29326         (Makefile.am): Build uniname.h from uniname.in.h.
29327         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29328         Add m4/libunistring-base.m4.
29329         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29330         (Makefile.am): Build uninorm.h from uninorm.in.h.
29331         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29332         unistdio.h. Add m4/libunistring-base.m4.
29333         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29334         (Makefile.am): Build unistdio.h from unistdio.in.h.
29335         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29336         Add m4/libunistring-base.m4.
29337         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29338         (Makefile.am): Build unistr.h from unistr.in.h.
29339         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29340         Add m4/libunistring-base.m4.
29341         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29342         (Makefile.am): Build unitypes.h from unitypes.in.h.
29343         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29344         Add m4/libunistring-base.m4.
29345         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29346         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29347         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29348         uniwidth.h. Add m4/libunistring-base.m4.
29349         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29350         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29351         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29352         instead of augmenting lib_SOURCES.
29353         * modules/unicase/empty-suffix-context: Likewise.
29354         * modules/unicase/locale-language: Likewise.
29355         * modules/unicase/tolower: Likewise.
29356         * modules/unicase/totitle: Likewise.
29357         * modules/unicase/toupper: Likewise.
29358         * modules/unicase/u8-casecmp: Likewise.
29359         * modules/unicase/u8-casecoll: Likewise.
29360         * modules/unicase/u8-casefold: Likewise.
29361         * modules/unicase/u8-casexfrm: Likewise.
29362         * modules/unicase/u8-ct-casefold: Likewise.
29363         * modules/unicase/u8-ct-tolower: Likewise.
29364         * modules/unicase/u8-ct-totitle: Likewise.
29365         * modules/unicase/u8-ct-toupper: Likewise.
29366         * modules/unicase/u8-is-cased: Likewise.
29367         * modules/unicase/u8-is-casefolded: Likewise.
29368         * modules/unicase/u8-is-lowercase: Likewise.
29369         * modules/unicase/u8-is-titlecase: Likewise.
29370         * modules/unicase/u8-is-uppercase: Likewise.
29371         * modules/unicase/u8-prefix-context: Likewise.
29372         * modules/unicase/u8-suffix-context: Likewise.
29373         * modules/unicase/u8-tolower: Likewise.
29374         * modules/unicase/u8-totitle: Likewise.
29375         * modules/unicase/u8-toupper: Likewise.
29376         * modules/unicase/u16-casecmp: Likewise.
29377         * modules/unicase/u16-casecoll: Likewise.
29378         * modules/unicase/u16-casefold: Likewise.
29379         * modules/unicase/u16-casexfrm: Likewise.
29380         * modules/unicase/u16-ct-casefold: Likewise.
29381         * modules/unicase/u16-ct-tolower: Likewise.
29382         * modules/unicase/u16-ct-totitle: Likewise.
29383         * modules/unicase/u16-ct-toupper: Likewise.
29384         * modules/unicase/u16-is-cased: Likewise.
29385         * modules/unicase/u16-is-casefolded: Likewise.
29386         * modules/unicase/u16-is-lowercase: Likewise.
29387         * modules/unicase/u16-is-titlecase: Likewise.
29388         * modules/unicase/u16-is-uppercase: Likewise.
29389         * modules/unicase/u16-prefix-context: Likewise.
29390         * modules/unicase/u16-suffix-context: Likewise.
29391         * modules/unicase/u16-tolower: Likewise.
29392         * modules/unicase/u16-totitle: Likewise.
29393         * modules/unicase/u16-toupper: Likewise.
29394         * modules/unicase/u32-casecmp: Likewise.
29395         * modules/unicase/u32-casecoll: Likewise.
29396         * modules/unicase/u32-casefold: Likewise.
29397         * modules/unicase/u32-casexfrm: Likewise.
29398         * modules/unicase/u32-ct-casefold: Likewise.
29399         * modules/unicase/u32-ct-tolower: Likewise.
29400         * modules/unicase/u32-ct-totitle: Likewise.
29401         * modules/unicase/u32-ct-toupper: Likewise.
29402         * modules/unicase/u32-is-cased: Likewise.
29403         * modules/unicase/u32-is-casefolded: Likewise.
29404         * modules/unicase/u32-is-lowercase: Likewise.
29405         * modules/unicase/u32-is-titlecase: Likewise.
29406         * modules/unicase/u32-is-uppercase: Likewise.
29407         * modules/unicase/u32-prefix-context: Likewise.
29408         * modules/unicase/u32-suffix-context: Likewise.
29409         * modules/unicase/u32-tolower: Likewise.
29410         * modules/unicase/u32-totitle: Likewise.
29411         * modules/unicase/u32-toupper: Likewise.
29412         * modules/unicase/ulc-casecmp: Likewise.
29413         * modules/unicase/ulc-casecoll: Likewise.
29414         * modules/unicase/ulc-casexfrm: Likewise.
29415         * modules/uniconv/u8-conv-from-enc: Likewise.
29416         * modules/uniconv/u8-conv-to-enc: Likewise.
29417         * modules/uniconv/u8-strconv-from-enc: Likewise.
29418         * modules/uniconv/u8-strconv-from-locale: Likewise.
29419         * modules/uniconv/u8-strconv-to-enc: Likewise.
29420         * modules/uniconv/u8-strconv-to-locale: Likewise.
29421         * modules/uniconv/u16-conv-from-enc: Likewise.
29422         * modules/uniconv/u16-conv-to-enc: Likewise.
29423         * modules/uniconv/u16-strconv-from-enc: Likewise.
29424         * modules/uniconv/u16-strconv-from-locale: Likewise.
29425         * modules/uniconv/u16-strconv-to-enc: Likewise.
29426         * modules/uniconv/u16-strconv-to-locale: Likewise.
29427         * modules/uniconv/u32-conv-from-enc: Likewise.
29428         * modules/uniconv/u32-conv-to-enc: Likewise.
29429         * modules/uniconv/u32-strconv-from-enc: Likewise.
29430         * modules/uniconv/u32-strconv-from-locale: Likewise.
29431         * modules/uniconv/u32-strconv-to-enc: Likewise.
29432         * modules/uniconv/u32-strconv-to-locale: Likewise.
29433         * modules/unictype/bidicategory-byname: Likewise.
29434         * modules/unictype/bidicategory-name: Likewise.
29435         * modules/unictype/bidicategory-of: Likewise.
29436         * modules/unictype/bidicategory-test: Likewise.
29437         * modules/unictype/block-list: Likewise.
29438         * modules/unictype/block-test: Likewise.
29439         * modules/unictype/category-C: Likewise.
29440         * modules/unictype/category-Cc: Likewise.
29441         * modules/unictype/category-Cf: Likewise.
29442         * modules/unictype/category-Cn: Likewise.
29443         * modules/unictype/category-Co: Likewise.
29444         * modules/unictype/category-Cs: Likewise.
29445         * modules/unictype/category-L: Likewise.
29446         * modules/unictype/category-Ll: Likewise.
29447         * modules/unictype/category-Lm: Likewise.
29448         * modules/unictype/category-Lo: Likewise.
29449         * modules/unictype/category-Lt: Likewise.
29450         * modules/unictype/category-Lu: Likewise.
29451         * modules/unictype/category-M: Likewise.
29452         * modules/unictype/category-Mc: Likewise.
29453         * modules/unictype/category-Me: Likewise.
29454         * modules/unictype/category-Mn: Likewise.
29455         * modules/unictype/category-N: Likewise.
29456         * modules/unictype/category-Nd: Likewise.
29457         * modules/unictype/category-Nl: Likewise.
29458         * modules/unictype/category-No: Likewise.
29459         * modules/unictype/category-P: Likewise.
29460         * modules/unictype/category-Pc: Likewise.
29461         * modules/unictype/category-Pd: Likewise.
29462         * modules/unictype/category-Pe: Likewise.
29463         * modules/unictype/category-Pf: Likewise.
29464         * modules/unictype/category-Pi: Likewise.
29465         * modules/unictype/category-Po: Likewise.
29466         * modules/unictype/category-Ps: Likewise.
29467         * modules/unictype/category-S: Likewise.
29468         * modules/unictype/category-Sc: Likewise.
29469         * modules/unictype/category-Sk: Likewise.
29470         * modules/unictype/category-Sm: Likewise.
29471         * modules/unictype/category-So: Likewise.
29472         * modules/unictype/category-Z: Likewise.
29473         * modules/unictype/category-Zl: Likewise.
29474         * modules/unictype/category-Zp: Likewise.
29475         * modules/unictype/category-Zs: Likewise.
29476         * modules/unictype/category-and: Likewise.
29477         * modules/unictype/category-and-not: Likewise.
29478         * modules/unictype/category-byname: Likewise.
29479         * modules/unictype/category-name: Likewise.
29480         * modules/unictype/category-none: Likewise.
29481         * modules/unictype/category-of: Likewise.
29482         * modules/unictype/category-or: Likewise.
29483         * modules/unictype/category-test: Likewise.
29484         * modules/unictype/combining-class: Likewise.
29485         * modules/unictype/ctype-alnum: Likewise.
29486         * modules/unictype/ctype-alpha: Likewise.
29487         * modules/unictype/ctype-blank: Likewise.
29488         * modules/unictype/ctype-cntrl: Likewise.
29489         * modules/unictype/ctype-digit: Likewise.
29490         * modules/unictype/ctype-graph: Likewise.
29491         * modules/unictype/ctype-lower: Likewise.
29492         * modules/unictype/ctype-print: Likewise.
29493         * modules/unictype/ctype-punct: Likewise.
29494         * modules/unictype/ctype-space: Likewise.
29495         * modules/unictype/ctype-upper: Likewise.
29496         * modules/unictype/ctype-xdigit: Likewise.
29497         * modules/unictype/decimal-digit: Likewise.
29498         * modules/unictype/digit: Likewise.
29499         * modules/unictype/mirror: Likewise.
29500         * modules/unictype/numeric: Likewise.
29501         * modules/unictype/property-alphabetic: Likewise.
29502         * modules/unictype/property-ascii-hex-digit: Likewise.
29503         * modules/unictype/property-bidi-arabic-digit: Likewise.
29504         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29505         * modules/unictype/property-bidi-block-separator: Likewise.
29506         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29507         * modules/unictype/property-bidi-common-separator: Likewise.
29508         * modules/unictype/property-bidi-control: Likewise.
29509         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29510         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29511         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29512         * modules/unictype/property-bidi-european-digit: Likewise.
29513         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29514         * modules/unictype/property-bidi-left-to-right: Likewise.
29515         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29516         * modules/unictype/property-bidi-other-neutral: Likewise.
29517         * modules/unictype/property-bidi-pdf: Likewise.
29518         * modules/unictype/property-bidi-segment-separator: Likewise.
29519         * modules/unictype/property-bidi-whitespace: Likewise.
29520         * modules/unictype/property-byname: Likewise.
29521         * modules/unictype/property-combining: Likewise.
29522         * modules/unictype/property-composite: Likewise.
29523         * modules/unictype/property-currency-symbol: Likewise.
29524         * modules/unictype/property-dash: Likewise.
29525         * modules/unictype/property-decimal-digit: Likewise.
29526         * modules/unictype/property-default-ignorable-code-point: Likewise.
29527         * modules/unictype/property-deprecated: Likewise.
29528         * modules/unictype/property-diacritic: Likewise.
29529         * modules/unictype/property-extender: Likewise.
29530         * modules/unictype/property-format-control: Likewise.
29531         * modules/unictype/property-grapheme-base: Likewise.
29532         * modules/unictype/property-grapheme-extend: Likewise.
29533         * modules/unictype/property-grapheme-link: Likewise.
29534         * modules/unictype/property-hex-digit: Likewise.
29535         * modules/unictype/property-hyphen: Likewise.
29536         * modules/unictype/property-id-continue: Likewise.
29537         * modules/unictype/property-id-start: Likewise.
29538         * modules/unictype/property-ideographic: Likewise.
29539         * modules/unictype/property-ids-binary-operator: Likewise.
29540         * modules/unictype/property-ids-trinary-operator: Likewise.
29541         * modules/unictype/property-ignorable-control: Likewise.
29542         * modules/unictype/property-iso-control: Likewise.
29543         * modules/unictype/property-join-control: Likewise.
29544         * modules/unictype/property-left-of-pair: Likewise.
29545         * modules/unictype/property-line-separator: Likewise.
29546         * modules/unictype/property-logical-order-exception: Likewise.
29547         * modules/unictype/property-lowercase: Likewise.
29548         * modules/unictype/property-math: Likewise.
29549         * modules/unictype/property-non-break: Likewise.
29550         * modules/unictype/property-not-a-character: Likewise.
29551         * modules/unictype/property-numeric: Likewise.
29552         * modules/unictype/property-other-alphabetic: Likewise.
29553         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29554         * modules/unictype/property-other-grapheme-extend: Likewise.
29555         * modules/unictype/property-other-id-continue: Likewise.
29556         * modules/unictype/property-other-id-start: Likewise.
29557         * modules/unictype/property-other-lowercase: Likewise.
29558         * modules/unictype/property-other-math: Likewise.
29559         * modules/unictype/property-other-uppercase: Likewise.
29560         * modules/unictype/property-paired-punctuation: Likewise.
29561         * modules/unictype/property-paragraph-separator: Likewise.
29562         * modules/unictype/property-pattern-syntax: Likewise.
29563         * modules/unictype/property-pattern-white-space: Likewise.
29564         * modules/unictype/property-private-use: Likewise.
29565         * modules/unictype/property-punctuation: Likewise.
29566         * modules/unictype/property-quotation-mark: Likewise.
29567         * modules/unictype/property-radical: Likewise.
29568         * modules/unictype/property-sentence-terminal: Likewise.
29569         * modules/unictype/property-soft-dotted: Likewise.
29570         * modules/unictype/property-space: Likewise.
29571         * modules/unictype/property-terminal-punctuation: Likewise.
29572         * modules/unictype/property-test: Likewise.
29573         * modules/unictype/property-titlecase: Likewise.
29574         * modules/unictype/property-unassigned-code-value: Likewise.
29575         * modules/unictype/property-unified-ideograph: Likewise.
29576         * modules/unictype/property-uppercase: Likewise.
29577         * modules/unictype/property-variation-selector: Likewise.
29578         * modules/unictype/property-white-space: Likewise.
29579         * modules/unictype/property-xid-continue: Likewise.
29580         * modules/unictype/property-xid-start: Likewise.
29581         * modules/unictype/property-zero-width: Likewise.
29582         * modules/unictype/scripts: Likewise.
29583         * modules/unictype/syntax-c-ident: Likewise.
29584         * modules/unictype/syntax-c-whitespace: Likewise.
29585         * modules/unictype/syntax-java-ident: Likewise.
29586         * modules/unictype/syntax-java-whitespace: Likewise.
29587         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29588         * modules/unilbrk/u8-width-linebreaks: Likewise.
29589         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29590         * modules/unilbrk/u16-width-linebreaks: Likewise.
29591         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29592         * modules/unilbrk/u32-width-linebreaks: Likewise.
29593         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29594         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29595         * modules/uniname/uniname: Likewise.
29596         * modules/uninorm/canonical-decomposition: Likewise.
29597         * modules/uninorm/composition: Likewise.
29598         * modules/uninorm/decomposing-form: Likewise.
29599         * modules/uninorm/decomposition: Likewise.
29600         * modules/uninorm/filter: Likewise.
29601         * modules/uninorm/nfc: Likewise.
29602         * modules/uninorm/nfd: Likewise.
29603         * modules/uninorm/nfkc: Likewise.
29604         * modules/uninorm/nfkd: Likewise.
29605         * modules/uninorm/u8-normalize: Likewise.
29606         * modules/uninorm/u8-normcmp: Likewise.
29607         * modules/uninorm/u8-normcoll: Likewise.
29608         * modules/uninorm/u8-normxfrm: Likewise.
29609         * modules/uninorm/u16-normalize: Likewise.
29610         * modules/uninorm/u16-normcmp: Likewise.
29611         * modules/uninorm/u16-normcoll: Likewise.
29612         * modules/uninorm/u16-normxfrm: Likewise.
29613         * modules/uninorm/u32-normalize: Likewise.
29614         * modules/uninorm/u32-normcmp: Likewise.
29615         * modules/uninorm/u32-normcoll: Likewise.
29616         * modules/uninorm/u32-normxfrm: Likewise.
29617         * modules/unistdio/u8-asnprintf: Likewise.
29618         * modules/unistdio/u8-asprintf: Likewise.
29619         * modules/unistdio/u8-snprintf: Likewise.
29620         * modules/unistdio/u8-sprintf: Likewise.
29621         * modules/unistdio/u8-u8-asnprintf: Likewise.
29622         * modules/unistdio/u8-u8-asprintf: Likewise.
29623         * modules/unistdio/u8-u8-snprintf: Likewise.
29624         * modules/unistdio/u8-u8-sprintf: Likewise.
29625         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29626         * modules/unistdio/u8-u8-vasprintf: Likewise.
29627         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29628         * modules/unistdio/u8-u8-vsprintf: Likewise.
29629         * modules/unistdio/u8-vasnprintf: Likewise.
29630         * modules/unistdio/u8-vasprintf: Likewise.
29631         * modules/unistdio/u8-vsnprintf: Likewise.
29632         * modules/unistdio/u8-vsprintf: Likewise.
29633         * modules/unistdio/u16-asnprintf: Likewise.
29634         * modules/unistdio/u16-asprintf: Likewise.
29635         * modules/unistdio/u16-snprintf: Likewise.
29636         * modules/unistdio/u16-sprintf: Likewise.
29637         * modules/unistdio/u16-u16-asnprintf: Likewise.
29638         * modules/unistdio/u16-u16-asprintf: Likewise.
29639         * modules/unistdio/u16-u16-snprintf: Likewise.
29640         * modules/unistdio/u16-u16-sprintf: Likewise.
29641         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29642         * modules/unistdio/u16-u16-vasprintf: Likewise.
29643         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29644         * modules/unistdio/u16-u16-vsprintf: Likewise.
29645         * modules/unistdio/u16-vasnprintf: Likewise.
29646         * modules/unistdio/u16-vasprintf: Likewise.
29647         * modules/unistdio/u16-vsnprintf: Likewise.
29648         * modules/unistdio/u16-vsprintf: Likewise.
29649         * modules/unistdio/u32-asnprintf: Likewise.
29650         * modules/unistdio/u32-asprintf: Likewise.
29651         * modules/unistdio/u32-snprintf: Likewise.
29652         * modules/unistdio/u32-sprintf: Likewise.
29653         * modules/unistdio/u32-u32-asnprintf: Likewise.
29654         * modules/unistdio/u32-u32-asprintf: Likewise.
29655         * modules/unistdio/u32-u32-snprintf: Likewise.
29656         * modules/unistdio/u32-u32-sprintf: Likewise.
29657         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29658         * modules/unistdio/u32-u32-vasprintf: Likewise.
29659         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29660         * modules/unistdio/u32-u32-vsprintf: Likewise.
29661         * modules/unistdio/u32-vasnprintf: Likewise.
29662         * modules/unistdio/u32-vasprintf: Likewise.
29663         * modules/unistdio/u32-vsnprintf: Likewise.
29664         * modules/unistdio/u32-vsprintf: Likewise.
29665         * modules/unistdio/ulc-asnprintf: Likewise.
29666         * modules/unistdio/ulc-asprintf: Likewise.
29667         * modules/unistdio/ulc-fprintf: Likewise.
29668         * modules/unistdio/ulc-snprintf: Likewise.
29669         * modules/unistdio/ulc-sprintf: Likewise.
29670         * modules/unistdio/ulc-vasnprintf: Likewise.
29671         * modules/unistdio/ulc-vasprintf: Likewise.
29672         * modules/unistdio/ulc-vfprintf: Likewise.
29673         * modules/unistdio/ulc-vsnprintf: Likewise.
29674         * modules/unistdio/ulc-vsprintf: Likewise.
29675         * modules/unistr/u8-check: Likewise.
29676         * modules/unistr/u8-chr: Likewise.
29677         * modules/unistr/u8-cmp: Likewise.
29678         * modules/unistr/u8-cmp2: Likewise.
29679         * modules/unistr/u8-cpy: Likewise.
29680         * modules/unistr/u8-cpy-alloc: Likewise.
29681         * modules/unistr/u8-endswith: Likewise.
29682         * modules/unistr/u8-mblen: Likewise.
29683         * modules/unistr/u8-mbsnlen: Likewise.
29684         * modules/unistr/u8-mbtouc: Likewise.
29685         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29686         * modules/unistr/u8-mbtoucr: Likewise.
29687         * modules/unistr/u8-move: Likewise.
29688         * modules/unistr/u8-next: Likewise.
29689         * modules/unistr/u8-prev: Likewise.
29690         * modules/unistr/u8-set: Likewise.
29691         * modules/unistr/u8-startswith: Likewise.
29692         * modules/unistr/u8-stpcpy: Likewise.
29693         * modules/unistr/u8-stpncpy: Likewise.
29694         * modules/unistr/u8-strcat: Likewise.
29695         * modules/unistr/u8-strchr: Likewise.
29696         * modules/unistr/u8-strcmp: Likewise.
29697         * modules/unistr/u8-strcoll: Likewise.
29698         * modules/unistr/u8-strcpy: Likewise.
29699         * modules/unistr/u8-strcspn: Likewise.
29700         * modules/unistr/u8-strdup: Likewise.
29701         * modules/unistr/u8-strlen: Likewise.
29702         * modules/unistr/u8-strmblen: Likewise.
29703         * modules/unistr/u8-strmbtouc: Likewise.
29704         * modules/unistr/u8-strncat: Likewise.
29705         * modules/unistr/u8-strncmp: Likewise.
29706         * modules/unistr/u8-strncpy: Likewise.
29707         * modules/unistr/u8-strnlen: Likewise.
29708         * modules/unistr/u8-strpbrk: Likewise.
29709         * modules/unistr/u8-strrchr: Likewise.
29710         * modules/unistr/u8-strspn: Likewise.
29711         * modules/unistr/u8-strstr: Likewise.
29712         * modules/unistr/u8-strtok: Likewise.
29713         * modules/unistr/u8-to-u16: Likewise.
29714         * modules/unistr/u8-to-u32: Likewise.
29715         * modules/unistr/u8-uctomb: Likewise.
29716         * modules/unistr/u16-check: Likewise.
29717         * modules/unistr/u16-chr: Likewise.
29718         * modules/unistr/u16-cmp: Likewise.
29719         * modules/unistr/u16-cmp2: Likewise.
29720         * modules/unistr/u16-cpy: Likewise.
29721         * modules/unistr/u16-cpy-alloc: Likewise.
29722         * modules/unistr/u16-endswith: Likewise.
29723         * modules/unistr/u16-mblen: Likewise.
29724         * modules/unistr/u16-mbsnlen: Likewise.
29725         * modules/unistr/u16-mbtouc: Likewise.
29726         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29727         * modules/unistr/u16-mbtoucr: Likewise.
29728         * modules/unistr/u16-move: Likewise.
29729         * modules/unistr/u16-next: Likewise.
29730         * modules/unistr/u16-prev: Likewise.
29731         * modules/unistr/u16-set: Likewise.
29732         * modules/unistr/u16-startswith: Likewise.
29733         * modules/unistr/u16-stpcpy: Likewise.
29734         * modules/unistr/u16-stpncpy: Likewise.
29735         * modules/unistr/u16-strcat: Likewise.
29736         * modules/unistr/u16-strchr: Likewise.
29737         * modules/unistr/u16-strcmp: Likewise.
29738         * modules/unistr/u16-strcoll: Likewise.
29739         * modules/unistr/u16-strcpy: Likewise.
29740         * modules/unistr/u16-strcspn: Likewise.
29741         * modules/unistr/u16-strdup: Likewise.
29742         * modules/unistr/u16-strlen: Likewise.
29743         * modules/unistr/u16-strmblen: Likewise.
29744         * modules/unistr/u16-strmbtouc: Likewise.
29745         * modules/unistr/u16-strncat: Likewise.
29746         * modules/unistr/u16-strncmp: Likewise.
29747         * modules/unistr/u16-strncpy: Likewise.
29748         * modules/unistr/u16-strnlen: Likewise.
29749         * modules/unistr/u16-strpbrk: Likewise.
29750         * modules/unistr/u16-strrchr: Likewise.
29751         * modules/unistr/u16-strspn: Likewise.
29752         * modules/unistr/u16-strstr: Likewise.
29753         * modules/unistr/u16-strtok: Likewise.
29754         * modules/unistr/u16-to-u32: Likewise.
29755         * modules/unistr/u16-to-u8: Likewise.
29756         * modules/unistr/u16-uctomb: Likewise.
29757         * modules/unistr/u32-check: Likewise.
29758         * modules/unistr/u32-chr: Likewise.
29759         * modules/unistr/u32-cmp: Likewise.
29760         * modules/unistr/u32-cmp2: Likewise.
29761         * modules/unistr/u32-cpy: Likewise.
29762         * modules/unistr/u32-cpy-alloc: Likewise.
29763         * modules/unistr/u32-endswith: Likewise.
29764         * modules/unistr/u32-mblen: Likewise.
29765         * modules/unistr/u32-mbsnlen: Likewise.
29766         * modules/unistr/u32-mbtouc: Likewise.
29767         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29768         * modules/unistr/u32-mbtoucr: Likewise.
29769         * modules/unistr/u32-move: Likewise.
29770         * modules/unistr/u32-next: Likewise.
29771         * modules/unistr/u32-prev: Likewise.
29772         * modules/unistr/u32-set: Likewise.
29773         * modules/unistr/u32-startswith: Likewise.
29774         * modules/unistr/u32-stpcpy: Likewise.
29775         * modules/unistr/u32-stpncpy: Likewise.
29776         * modules/unistr/u32-strcat: Likewise.
29777         * modules/unistr/u32-strchr: Likewise.
29778         * modules/unistr/u32-strcmp: Likewise.
29779         * modules/unistr/u32-strcoll: Likewise.
29780         * modules/unistr/u32-strcpy: Likewise.
29781         * modules/unistr/u32-strcspn: Likewise.
29782         * modules/unistr/u32-strdup: Likewise.
29783         * modules/unistr/u32-strlen: Likewise.
29784         * modules/unistr/u32-strmblen: Likewise.
29785         * modules/unistr/u32-strmbtouc: Likewise.
29786         * modules/unistr/u32-strncat: Likewise.
29787         * modules/unistr/u32-strncmp: Likewise.
29788         * modules/unistr/u32-strncpy: Likewise.
29789         * modules/unistr/u32-strnlen: Likewise.
29790         * modules/unistr/u32-strpbrk: Likewise.
29791         * modules/unistr/u32-strrchr: Likewise.
29792         * modules/unistr/u32-strspn: Likewise.
29793         * modules/unistr/u32-strstr: Likewise.
29794         * modules/unistr/u32-strtok: Likewise.
29795         * modules/unistr/u32-to-u16: Likewise.
29796         * modules/unistr/u32-to-u8: Likewise.
29797         * modules/unistr/u32-uctomb: Likewise.
29798         * modules/uniwbrk/u8-wordbreaks: Likewise.
29799         * modules/uniwbrk/u16-wordbreaks: Likewise.
29800         * modules/uniwbrk/u32-wordbreaks: Likewise.
29801         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29802         * modules/uniwbrk/wordbreak-property: Likewise.
29803         * modules/uniwidth/u8-strwidth: Likewise.
29804         * modules/uniwidth/u8-width: Likewise.
29805         * modules/uniwidth/u16-strwidth: Likewise.
29806         * modules/uniwidth/u16-width: Likewise.
29807         * modules/uniwidth/u32-strwidth: Likewise.
29808         * modules/uniwidth/u32-width: Likewise.
29809         * modules/uniwidth/width: Likewise.
29810         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29811         with $(LIBUNISTRING).
29812         * modules/unicase/ignorable-tests: Likewise.
29813         * modules/unicase/locale-language-tests: Likewise.
29814         * modules/unicase/tolower-tests: Likewise.
29815         * modules/unicase/totitle-tests: Likewise.
29816         * modules/unicase/toupper-tests: Likewise.
29817         * modules/unicase/u8-casecmp-tests: Likewise.
29818         * modules/unicase/u8-casecoll-tests: Likewise.
29819         * modules/unicase/u8-casefold-tests: Likewise.
29820         * modules/unicase/u8-is-cased-tests: Likewise.
29821         * modules/unicase/u8-is-casefolded-tests: Likewise.
29822         * modules/unicase/u8-is-lowercase-tests: Likewise.
29823         * modules/unicase/u8-is-titlecase-tests: Likewise.
29824         * modules/unicase/u8-is-uppercase-tests: Likewise.
29825         * modules/unicase/u8-tolower-tests: Likewise.
29826         * modules/unicase/u8-totitle-tests: Likewise.
29827         * modules/unicase/u8-toupper-tests: Likewise.
29828         * modules/unicase/u16-casecmp-tests: Likewise.
29829         * modules/unicase/u16-casecoll-tests: Likewise.
29830         * modules/unicase/u16-casefold-tests: Likewise.
29831         * modules/unicase/u16-is-cased-tests: Likewise.
29832         * modules/unicase/u16-is-casefolded-tests: Likewise.
29833         * modules/unicase/u16-is-lowercase-tests: Likewise.
29834         * modules/unicase/u16-is-titlecase-tests: Likewise.
29835         * modules/unicase/u16-is-uppercase-tests: Likewise.
29836         * modules/unicase/u16-tolower-tests: Likewise.
29837         * modules/unicase/u16-totitle-tests: Likewise.
29838         * modules/unicase/u16-toupper-tests: Likewise.
29839         * modules/unicase/u32-casecmp-tests: Likewise.
29840         * modules/unicase/u32-casecoll-tests: Likewise.
29841         * modules/unicase/u32-casefold-tests: Likewise.
29842         * modules/unicase/u32-is-cased-tests: Likewise.
29843         * modules/unicase/u32-is-casefolded-tests: Likewise.
29844         * modules/unicase/u32-is-lowercase-tests: Likewise.
29845         * modules/unicase/u32-is-titlecase-tests: Likewise.
29846         * modules/unicase/u32-is-uppercase-tests: Likewise.
29847         * modules/unicase/u32-tolower-tests: Likewise.
29848         * modules/unicase/u32-totitle-tests: Likewise.
29849         * modules/unicase/u32-toupper-tests: Likewise.
29850         * modules/unicase/ulc-casecmp-tests: Likewise.
29851         * modules/unicase/ulc-casecoll-tests: Likewise.
29852         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29853         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29854         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29855         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29856         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29857         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29858         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29859         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29860         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29861         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29862         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29863         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29864         * modules/unictype/bidicategory-byname-tests: Likewise.
29865         * modules/unictype/bidicategory-name-tests: Likewise.
29866         * modules/unictype/bidicategory-of-tests: Likewise.
29867         * modules/unictype/bidicategory-test-tests: Likewise.
29868         * modules/unictype/block-list-tests: Likewise.
29869         * modules/unictype/block-of-tests: Likewise.
29870         * modules/unictype/block-test-tests: Likewise.
29871         * modules/unictype/category-C-tests: Likewise.
29872         * modules/unictype/category-Cc-tests: Likewise.
29873         * modules/unictype/category-Cf-tests: Likewise.
29874         * modules/unictype/category-Cn-tests: Likewise.
29875         * modules/unictype/category-Co-tests: Likewise.
29876         * modules/unictype/category-Cs-tests: Likewise.
29877         * modules/unictype/category-L-tests: Likewise.
29878         * modules/unictype/category-Ll-tests: Likewise.
29879         * modules/unictype/category-Lm-tests: Likewise.
29880         * modules/unictype/category-Lo-tests: Likewise.
29881         * modules/unictype/category-Lt-tests: Likewise.
29882         * modules/unictype/category-Lu-tests: Likewise.
29883         * modules/unictype/category-M-tests: Likewise.
29884         * modules/unictype/category-Mc-tests: Likewise.
29885         * modules/unictype/category-Me-tests: Likewise.
29886         * modules/unictype/category-Mn-tests: Likewise.
29887         * modules/unictype/category-N-tests: Likewise.
29888         * modules/unictype/category-Nd-tests: Likewise.
29889         * modules/unictype/category-Nl-tests: Likewise.
29890         * modules/unictype/category-No-tests: Likewise.
29891         * modules/unictype/category-P-tests: Likewise.
29892         * modules/unictype/category-Pc-tests: Likewise.
29893         * modules/unictype/category-Pd-tests: Likewise.
29894         * modules/unictype/category-Pe-tests: Likewise.
29895         * modules/unictype/category-Pf-tests: Likewise.
29896         * modules/unictype/category-Pi-tests: Likewise.
29897         * modules/unictype/category-Po-tests: Likewise.
29898         * modules/unictype/category-Ps-tests: Likewise.
29899         * modules/unictype/category-S-tests: Likewise.
29900         * modules/unictype/category-Sc-tests: Likewise.
29901         * modules/unictype/category-Sk-tests: Likewise.
29902         * modules/unictype/category-Sm-tests: Likewise.
29903         * modules/unictype/category-So-tests: Likewise.
29904         * modules/unictype/category-Z-tests: Likewise.
29905         * modules/unictype/category-Zl-tests: Likewise.
29906         * modules/unictype/category-Zp-tests: Likewise.
29907         * modules/unictype/category-Zs-tests: Likewise.
29908         * modules/unictype/category-and-not-tests: Likewise.
29909         * modules/unictype/category-and-tests: Likewise.
29910         * modules/unictype/category-byname-tests: Likewise.
29911         * modules/unictype/category-name-tests: Likewise.
29912         * modules/unictype/category-none-tests: Likewise.
29913         * modules/unictype/category-of-tests: Likewise.
29914         * modules/unictype/category-or-tests: Likewise.
29915         * modules/unictype/category-test-withtable-tests: Likewise.
29916         * modules/unictype/combining-class-tests: Likewise.
29917         * modules/unictype/ctype-alnum-tests: Likewise.
29918         * modules/unictype/ctype-alpha-tests: Likewise.
29919         * modules/unictype/ctype-blank-tests: Likewise.
29920         * modules/unictype/ctype-cntrl-tests: Likewise.
29921         * modules/unictype/ctype-digit-tests: Likewise.
29922         * modules/unictype/ctype-graph-tests: Likewise.
29923         * modules/unictype/ctype-lower-tests: Likewise.
29924         * modules/unictype/ctype-print-tests: Likewise.
29925         * modules/unictype/ctype-punct-tests: Likewise.
29926         * modules/unictype/ctype-space-tests: Likewise.
29927         * modules/unictype/ctype-upper-tests: Likewise.
29928         * modules/unictype/ctype-xdigit-tests: Likewise.
29929         * modules/unictype/decimal-digit-tests: Likewise.
29930         * modules/unictype/digit-tests: Likewise.
29931         * modules/unictype/mirror-tests: Likewise.
29932         * modules/unictype/numeric-tests: Likewise.
29933         * modules/unictype/property-alphabetic-tests: Likewise.
29934         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29935         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29936         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29937         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29938         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29939         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29940         * modules/unictype/property-bidi-control-tests: Likewise.
29941         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29942         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29943         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29944         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29945         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29946         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29947         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29948         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29949         * modules/unictype/property-bidi-pdf-tests: Likewise.
29950         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29951         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29952         * modules/unictype/property-byname-tests: Likewise.
29953         * modules/unictype/property-combining-tests: Likewise.
29954         * modules/unictype/property-composite-tests: Likewise.
29955         * modules/unictype/property-currency-symbol-tests: Likewise.
29956         * modules/unictype/property-dash-tests: Likewise.
29957         * modules/unictype/property-decimal-digit-tests: Likewise.
29958         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29959         * modules/unictype/property-deprecated-tests: Likewise.
29960         * modules/unictype/property-diacritic-tests: Likewise.
29961         * modules/unictype/property-extender-tests: Likewise.
29962         * modules/unictype/property-format-control-tests: Likewise.
29963         * modules/unictype/property-grapheme-base-tests: Likewise.
29964         * modules/unictype/property-grapheme-extend-tests: Likewise.
29965         * modules/unictype/property-grapheme-link-tests: Likewise.
29966         * modules/unictype/property-hex-digit-tests: Likewise.
29967         * modules/unictype/property-hyphen-tests: Likewise.
29968         * modules/unictype/property-id-continue-tests: Likewise.
29969         * modules/unictype/property-id-start-tests: Likewise.
29970         * modules/unictype/property-ideographic-tests: Likewise.
29971         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29972         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29973         * modules/unictype/property-ignorable-control-tests: Likewise.
29974         * modules/unictype/property-iso-control-tests: Likewise.
29975         * modules/unictype/property-join-control-tests: Likewise.
29976         * modules/unictype/property-left-of-pair-tests: Likewise.
29977         * modules/unictype/property-line-separator-tests: Likewise.
29978         * modules/unictype/property-logical-order-exception-tests: Likewise.
29979         * modules/unictype/property-lowercase-tests: Likewise.
29980         * modules/unictype/property-math-tests: Likewise.
29981         * modules/unictype/property-non-break-tests: Likewise.
29982         * modules/unictype/property-not-a-character-tests: Likewise.
29983         * modules/unictype/property-numeric-tests: Likewise.
29984         * modules/unictype/property-other-alphabetic-tests: Likewise.
29985         * modules/unictype/property-other-default-ignorable-code-point-tests:
29986         Likewise.
29987         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29988         * modules/unictype/property-other-id-continue-tests: Likewise.
29989         * modules/unictype/property-other-id-start-tests: Likewise.
29990         * modules/unictype/property-other-lowercase-tests: Likewise.
29991         * modules/unictype/property-other-math-tests: Likewise.
29992         * modules/unictype/property-other-uppercase-tests: Likewise.
29993         * modules/unictype/property-paired-punctuation-tests: Likewise.
29994         * modules/unictype/property-paragraph-separator-tests: Likewise.
29995         * modules/unictype/property-pattern-syntax-tests: Likewise.
29996         * modules/unictype/property-pattern-white-space-tests: Likewise.
29997         * modules/unictype/property-private-use-tests: Likewise.
29998         * modules/unictype/property-punctuation-tests: Likewise.
29999         * modules/unictype/property-quotation-mark-tests: Likewise.
30000         * modules/unictype/property-radical-tests: Likewise.
30001         * modules/unictype/property-sentence-terminal-tests: Likewise.
30002         * modules/unictype/property-soft-dotted-tests: Likewise.
30003         * modules/unictype/property-space-tests: Likewise.
30004         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30005         * modules/unictype/property-test-tests: Likewise.
30006         * modules/unictype/property-titlecase-tests: Likewise.
30007         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30008         * modules/unictype/property-unified-ideograph-tests: Likewise.
30009         * modules/unictype/property-uppercase-tests: Likewise.
30010         * modules/unictype/property-variation-selector-tests: Likewise.
30011         * modules/unictype/property-white-space-tests: Likewise.
30012         * modules/unictype/property-xid-continue-tests: Likewise.
30013         * modules/unictype/property-xid-start-tests: Likewise.
30014         * modules/unictype/property-zero-width-tests: Likewise.
30015         * modules/unictype/scripts-tests: Likewise.
30016         * modules/unictype/syntax-c-ident-tests: Likewise.
30017         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30018         * modules/unictype/syntax-java-ident-tests: Likewise.
30019         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30020         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30021         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30022         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30023         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30024         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30025         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30026         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30027         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30028         * modules/uniname/uniname-tests: Likewise.
30029         * modules/uninorm/canonical-decomposition-tests: Likewise.
30030         * modules/uninorm/compat-decomposition-tests: Likewise.
30031         * modules/uninorm/composition-tests: Likewise.
30032         * modules/uninorm/decomposing-form-tests: Likewise.
30033         * modules/uninorm/decomposition-tests: Likewise.
30034         * modules/uninorm/filter-tests: Likewise.
30035         * modules/uninorm/nfc-tests: Likewise.
30036         * modules/uninorm/nfd-tests: Likewise.
30037         * modules/uninorm/nfkc-tests: Likewise.
30038         * modules/uninorm/nfkd-tests: Likewise.
30039         * modules/uninorm/u8-normcmp-tests: Likewise.
30040         * modules/uninorm/u8-normcoll-tests: Likewise.
30041         * modules/uninorm/u16-normcmp-tests: Likewise.
30042         * modules/uninorm/u16-normcoll-tests: Likewise.
30043         * modules/uninorm/u32-normcmp-tests: Likewise.
30044         * modules/uninorm/u32-normcoll-tests: Likewise.
30045         * modules/unistdio/u8-asnprintf-tests: Likewise.
30046         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30047         * modules/unistdio/u8-vasprintf-tests: Likewise.
30048         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30049         * modules/unistdio/u8-vsprintf-tests: Likewise.
30050         * modules/unistdio/u16-asnprintf-tests: Likewise.
30051         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30052         * modules/unistdio/u16-vasprintf-tests: Likewise.
30053         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30054         * modules/unistdio/u16-vsprintf-tests: Likewise.
30055         * modules/unistdio/u32-asnprintf-tests: Likewise.
30056         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30057         * modules/unistdio/u32-vasprintf-tests: Likewise.
30058         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30059         * modules/unistdio/u32-vsprintf-tests: Likewise.
30060         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30061         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30062         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30063         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30064         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30065         * modules/unistr/u8-check-tests: Likewise.
30066         * modules/unistr/u8-chr-tests: Likewise.
30067         * modules/unistr/u8-cmp-tests: Likewise.
30068         * modules/unistr/u8-cmp2-tests: Likewise.
30069         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30070         * modules/unistr/u8-cpy-tests: Likewise.
30071         * modules/unistr/u8-mblen-tests: Likewise.
30072         * modules/unistr/u8-mbsnlen-tests: Likewise.
30073         * modules/unistr/u8-mbtouc-tests: Likewise.
30074         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30075         * modules/unistr/u8-mbtoucr-tests: Likewise.
30076         * modules/unistr/u8-move-tests: Likewise.
30077         * modules/unistr/u8-next-tests: Likewise.
30078         * modules/unistr/u8-prev-tests: Likewise.
30079         * modules/unistr/u8-set-tests: Likewise.
30080         * modules/unistr/u8-stpcpy-tests: Likewise.
30081         * modules/unistr/u8-stpncpy-tests: Likewise.
30082         * modules/unistr/u8-strcat-tests: Likewise.
30083         * modules/unistr/u8-strcmp-tests: Likewise.
30084         * modules/unistr/u8-strcoll-tests: Likewise.
30085         * modules/unistr/u8-strcpy-tests: Likewise.
30086         * modules/unistr/u8-strdup-tests: Likewise.
30087         * modules/unistr/u8-strlen-tests: Likewise.
30088         * modules/unistr/u8-strmblen-tests: Likewise.
30089         * modules/unistr/u8-strmbtouc-tests: Likewise.
30090         * modules/unistr/u8-strncat-tests: Likewise.
30091         * modules/unistr/u8-strncmp-tests: Likewise.
30092         * modules/unistr/u8-strncpy-tests: Likewise.
30093         * modules/unistr/u8-strnlen-tests: Likewise.
30094         * modules/unistr/u8-to-u16-tests: Likewise.
30095         * modules/unistr/u8-to-u32-tests: Likewise.
30096         * modules/unistr/u8-uctomb-tests: Likewise.
30097         * modules/unistr/u16-check-tests: Likewise.
30098         * modules/unistr/u16-chr-tests: Likewise.
30099         * modules/unistr/u16-cmp-tests: Likewise.
30100         * modules/unistr/u16-cmp2-tests: Likewise.
30101         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30102         * modules/unistr/u16-cpy-tests: Likewise.
30103         * modules/unistr/u16-mblen-tests: Likewise.
30104         * modules/unistr/u16-mbsnlen-tests: Likewise.
30105         * modules/unistr/u16-mbtouc-tests: Likewise.
30106         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30107         * modules/unistr/u16-mbtoucr-tests: Likewise.
30108         * modules/unistr/u16-move-tests: Likewise.
30109         * modules/unistr/u16-next-tests: Likewise.
30110         * modules/unistr/u16-prev-tests: Likewise.
30111         * modules/unistr/u16-set-tests: Likewise.
30112         * modules/unistr/u16-stpcpy-tests: Likewise.
30113         * modules/unistr/u16-stpncpy-tests: Likewise.
30114         * modules/unistr/u16-strcat-tests: Likewise.
30115         * modules/unistr/u16-strcmp-tests: Likewise.
30116         * modules/unistr/u16-strcoll-tests: Likewise.
30117         * modules/unistr/u16-strcpy-tests: Likewise.
30118         * modules/unistr/u16-strdup-tests: Likewise.
30119         * modules/unistr/u16-strlen-tests: Likewise.
30120         * modules/unistr/u16-strmblen-tests: Likewise.
30121         * modules/unistr/u16-strmbtouc-tests: Likewise.
30122         * modules/unistr/u16-strncat-tests: Likewise.
30123         * modules/unistr/u16-strncmp-tests: Likewise.
30124         * modules/unistr/u16-strncpy-tests: Likewise.
30125         * modules/unistr/u16-strnlen-tests: Likewise.
30126         * modules/unistr/u16-to-u32-tests: Likewise.
30127         * modules/unistr/u16-to-u8-tests: Likewise.
30128         * modules/unistr/u16-uctomb-tests: Likewise.
30129         * modules/unistr/u32-check-tests: Likewise.
30130         * modules/unistr/u32-chr-tests: Likewise.
30131         * modules/unistr/u32-cmp-tests: Likewise.
30132         * modules/unistr/u32-cmp2-tests: Likewise.
30133         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30134         * modules/unistr/u32-cpy-tests: Likewise.
30135         * modules/unistr/u32-mblen-tests: Likewise.
30136         * modules/unistr/u32-mbsnlen-tests: Likewise.
30137         * modules/unistr/u32-mbtouc-tests: Likewise.
30138         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30139         * modules/unistr/u32-mbtoucr-tests: Likewise.
30140         * modules/unistr/u32-move-tests: Likewise.
30141         * modules/unistr/u32-next-tests: Likewise.
30142         * modules/unistr/u32-prev-tests: Likewise.
30143         * modules/unistr/u32-set-tests: Likewise.
30144         * modules/unistr/u32-stpcpy-tests: Likewise.
30145         * modules/unistr/u32-stpncpy-tests: Likewise.
30146         * modules/unistr/u32-strcat-tests: Likewise.
30147         * modules/unistr/u32-strcmp-tests: Likewise.
30148         * modules/unistr/u32-strcoll-tests: Likewise.
30149         * modules/unistr/u32-strcpy-tests: Likewise.
30150         * modules/unistr/u32-strdup-tests: Likewise.
30151         * modules/unistr/u32-strlen-tests: Likewise.
30152         * modules/unistr/u32-strmblen-tests: Likewise.
30153         * modules/unistr/u32-strmbtouc-tests: Likewise.
30154         * modules/unistr/u32-strncat-tests: Likewise.
30155         * modules/unistr/u32-strncmp-tests: Likewise.
30156         * modules/unistr/u32-strncpy-tests: Likewise.
30157         * modules/unistr/u32-strnlen-tests: Likewise.
30158         * modules/unistr/u32-to-u16-tests: Likewise.
30159         * modules/unistr/u32-to-u8-tests: Likewise.
30160         * modules/unistr/u32-uctomb-tests: Likewise.
30161         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30162         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30163         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30164         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30165         * modules/uniwidth/u8-strwidth-tests: Likewise.
30166         * modules/uniwidth/u8-width-tests: Likewise.
30167         * modules/uniwidth/u16-strwidth-tests: Likewise.
30168         * modules/uniwidth/u16-width-tests: Likewise.
30169         * modules/uniwidth/u32-strwidth-tests: Likewise.
30170         * modules/uniwidth/u32-width-tests: Likewise.
30171         * modules/uniwidth/width-tests: Likewise.
30172
30173 2010-05-18  Richard Jones  <rjones@redhat.com>
30174
30175         doc: users.txt: list hivex
30176         * users.txt: Add hivex.
30177
30178 2010-05-18  Richard Jones  <rjones@redhat.com>
30179
30180         doc: users.txt: list febootstrap
30181         * users.txt: Add febootstrap.
30182
30183 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30184
30185         bootstrap: fix an error when gnulib is not used as a git submodule
30186         * build-aux/bootstrap (gnulib_path): If its length is zero then
30187         assign "gnulib" to it.
30188         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30189
30190 2010-05-16  Bruno Haible  <bruno@clisp.org>
30191
30192         Avoid autoconf warnings about AM_ICONV.
30193         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30194         2.64.
30195
30196 2010-05-16  Bruno Haible  <bruno@clisp.org>
30197
30198         absolute-header: Make the macro usable in more situations.
30199         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30200         from gl_ABSOLUTE_HEADER.
30201         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30202
30203 2010-05-16  James Youngman  <jay@gnu.org>
30204
30205         doc: update users.txt
30206         * users.txt: Add CSSC.
30207
30208 2010-05-16  Jim Meyering  <meyering@redhat.com>
30209
30210         init.sh: fix an error in the previous change; add more comments
30211         * tests/init.sh: Compare exit code in loop against 9, not 2.
30212         Patch by Bruno Haible.
30213         Make the two tests more similar by adding an empty "then" clause.
30214         Add comments.
30215
30216         init.sh: avoid unnecessary shell re-exec
30217         * tests/init.sh: Improve the re-exec-required check to first test the
30218         current shell.  If it passes the test, do not search for a shell that
30219         does pass, and do not re-exec.  This test is particularly contorted to
30220         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30221         of $(...) evokes a syntax error and causes immediate shell exit with
30222         status 2.  Bruno Haible reported that the re-exec made it impossible
30223         to single-step through any init.sh-using script.
30224
30225 2010-05-16  Bruno Haible  <bruno@clisp.org>
30226
30227         Fix collision between gnulib's and libintl's printf replacements.
30228         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30229         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30230         (printf): When using GNU C, map the __printf__ function to rpl_printf
30231         via __asm__. When not using GNU C, define rpl_printf instead of
30232         __printf__.
30233         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30234         commit.
30235         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30236         commit.
30237         * m4/asm-underscore.m4: New file.
30238         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30239         * modules/stdio (Files): Add m4/asm-underscore.m4.
30240         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30241         Reported by Ben Pfaff.
30242
30243 2010-05-16  Bruno Haible  <bruno@clisp.org>
30244
30245         verify: Avoid skipping the test on openSUSE 11.0.
30246         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30247
30248 2010-05-13  Bruno Haible  <bruno@clisp.org>
30249
30250         Avoid useless warnings from G++.
30251         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30252         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30253         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30254
30255 2010-05-11  Jim Meyering  <meyering@redhat.com>
30256
30257         maint.mk: tweak preceding change
30258         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30259         regexps tighter by anchoring at EOL, and make the new group "shy"
30260         for slightly decreased overhead.
30261
30262 2010-05-11  Eric Blake  <eblake@redhat.com>
30263
30264         maint.mk: gnulib doesn't guarantee NSIG
30265         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30266
30267 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30268
30269         test-pwrite.c: Remove unused variable declaration.
30270         * tests/test-pwrite.c (main): Remove read_buf declaration.
30271
30272         Remove useless test-pwrite.sh file.
30273         * tests/test-pwrite.sh: Delete file.
30274         * modules/pwrite-tests: Remove references.
30275         Reported by Bruno Haible.
30276
30277 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30278
30279         init.sh: fix a typo
30280         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30281
30282 2010-05-10  Jim Meyering  <meyering@redhat.com>
30283
30284         maint.mk: avoid using a temporary file in the always-defined-macros check
30285         * top/maint.mk (.re-defmac): Remove rule.
30286         (gl_trap_): Remove definition.
30287         (sc_prohibit_always-defined_macros): Rewrite not to create and
30288         depend on a temporary file.  Instead, depend on GNU grep's ability
30289         to read a list of regular expressions from stdin when given "-f -".
30290
30291 2010-05-09  Bruno Haible  <bruno@clisp.org>
30292
30293         Update to GNU gettext 0.18, part 1.
30294         * m4/gettext.m4: Update to GNU gettext 0.18.
30295         * m4/intl.m4: Likewise.
30296         * m4/po.m4: Likewise.
30297         * modules/gettext (Files): Add m4/fcntl-o.m4.
30298         (configure.ac): Require gettext infrastructure from version 0.18.
30299
30300 2010-05-09  Jim Meyering  <meyering@redhat.com>
30301
30302         init.sh: enable MALLOC_PERTURB_
30303         * tests/init.sh: Enable glibc's malloc-perturbing option.
30304
30305         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30306         With my recent change in init.sh from the two-line form:
30307             -#   : ${srcdir=.}
30308             -#   . "$srcdir/init.sh"; path_prepend_ .
30309             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30310         I noticed that using the one-line form would cause this test
30311         to fail with a false-positive, or to stop working altogether,
30312         depending on whether help-version changed or all the tests did.
30313         * top/maint.mk (_hv_regex): Remove this definition.
30314         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30315         (_hv_regex_strong): Use a stronger regex to check for conformance.
30316         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30317         Give a separate diagnostic for lack of conforming use.
30318
30319         maint.mk: prohibit definition of symbols defined by gnulib
30320         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30321         definition of symbols defined by gnulib.
30322
30323 2010-05-09  Bruno Haible  <bruno@clisp.org>
30324
30325         acl: Avoid test failure on Cygwin-hosted mingw.
30326         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30327
30328 2010-05-09  Bruno Haible  <bruno@clisp.org>
30329
30330         error: Use system's fcntl function.
30331         * lib/error.c (fcntl): Undefine.
30332
30333 2010-05-09  Jim Meyering  <meyering@redhat.com>
30334
30335         verify: adjust formatting to be more consistent
30336         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30337         argument-list '('s, and after one comma.
30338
30339 2010-05-09  Bruno Haible  <bruno@clisp.org>
30340
30341         error: More reliable output on mingw.
30342         * lib/error.c: Include <windows.h>.
30343         (is_open): New function.
30344         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30345         defined.
30346
30347 2010-05-09  Bruno Haible  <bruno@clisp.org>
30348
30349         vasnprintf: Fix syntax errors in libintl build on mingw.
30350         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30351         pad_ourselves and prec_ourselves after use.
30352
30353 2010-05-08  Bruno Haible  <bruno@clisp.org>
30354
30355         * lib/config.charset: Update comments for Cygwin 1.7.
30356         * lib/localcharset.c: Likewise.
30357
30358 2010-05-07  Jim Meyering  <meyering@redhat.com>
30359
30360         init.sh: improve comments
30361         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30362         . "${srcdir=.}/init.sh"; path_prepend_ .
30363         Add a note about path_prepend_ and the alternative of using
30364         TESTS_ENVIRONMENT.
30365
30366 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30367
30368         exclude: Unescape hashed patterns in wildcard mode.
30369         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30370         to the hash list.
30371         * tests/test-exclude8.sh: New test case.
30372         * modules/exclude-tests: Add new test.
30373
30374 2010-05-05  Eric Blake  <eblake@redhat.com>
30375
30376         verify: automate tests
30377         * modules/verify-tests: New module.
30378         * tests/test-verify.sh: New file.
30379         * tests/test-verify.c: Guard each negative test with a unique id.
30380         Also avoid warning about unused left hand of comma expressions.
30381
30382 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30383
30384         Further improvements to verify.h, suggested by Eric Blake.
30385         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30386         the GL_* versions, to avoid collision with OpenGL.
30387         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30388         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30389         than testing merely whether it's defined.
30390
30391         Modify verify.h to pacify gcc -Wredundant_decls.
30392         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30393         These use the prefix "GL_" since they're likely to be useful elsewhere.
30394         We may need to break them out into a different .h file.
30395         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30396         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30397         of verify_function__.
30398
30399 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30400
30401         Tests for module pwrite.
30402         * modules/pwrite-tests: New file.
30403         * tests/test-pwrite.sh: New file.
30404         * tests/test-pwrite.c: New file.
30405
30406         New module pwrite.
30407         * lib/unistd.in.h (pwrite): New declaration.
30408         * lib/pwrite.c: New file, from glibc with modifications.
30409         * m4/pwrite.m4: New file.
30410         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30411         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30412         REPLACE_PWRITE.
30413         * modules/pwrite: New file.
30414         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30415         REPLACE_PWRITE.
30416         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30417         * doc/posix-functions/pwrite.texi: Mention the new module.
30418
30419 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30420
30421         pread: Update documentation.
30422         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30423
30424 2010-05-04  Eric Blake  <eblake@redhat.com>
30425
30426         docs: update cygwin progress
30427         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30428         this bug.
30429         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30430         Added in cygwin 1.7.2.
30431         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30432         Likewise.
30433         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30434         Likewise.
30435         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30436         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30437         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30438         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30439         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30440         Mention nproc module.
30441         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30442         bug in cygwin 1.7.5 addition.
30443         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30444         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30445         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30446         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30447         1.7.5.
30448         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30449         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30450         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30451         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30452         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30453         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30454         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30455         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30456         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30457         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30458         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30459         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30460         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30461         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30462         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30463         Likewise.
30464         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30465         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30466         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30467         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30468         Likewise.
30469         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30470         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30471         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30472         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30473         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30474         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30475         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30476         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30477         Likewise.
30478         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30479         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30480         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30481         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30482         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30483         Likewise.
30484         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30485         Likewise.
30486         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30487         Likewise.
30488         * doc/glibc-functions/xdrrec_endofrecord.texi
30489         (xdrrec_endofrecord): Likewise.
30490         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30491         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30492         Likewise.
30493         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30494         Likewise.
30495
30496 2010-05-04  Jim Meyering  <meyering@redhat.com>
30497
30498         gendocs.sh: make its "-s FILE" option more useful
30499         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30500         $PACKAGE to reflect the probably-different basename of "FILE".
30501
30502 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30503
30504         bootstrap: don't ignore download_po_files failure
30505         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30506         failure.
30507
30508 2010-05-03  Jim Meyering  <meyering@redhat.com>
30509
30510         maint.mk: allow to pass options to gendocs.sh
30511         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30512         (gendocs_options_): New overridable variable.
30513
30514         gnu-web-doc-update: don't ignore configure or build failure
30515         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30516
30517         announce-gen: backslash-escape '@'s in --help output
30518         * build-aux/announce-gen: Fix syntax errors.
30519
30520         maint.mk, announce-gen: allow project-specific announcement mail headers
30521         * top/maint.mk (translation_project_): Define default.
30522         (announcement_Cc_, announcement_mail_headers_): Likewise.
30523         (announcement): Invoke announce-gen with new --mail-headers option.
30524         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30525
30526         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30527         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30528         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30529         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30530         line in the "err2" output file when running "make check" in verbose
30531         mode (i.e., with set -x enabled).
30532
30533 2010-05-03  Bruno Haible  <bruno@clisp.org>
30534
30535         wctob: Fix for weird platforms.
30536         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30537         argument value.
30538
30539 2010-05-03  Jim Meyering  <meyering@redhat.com>
30540
30541         maint.mk: prohibit unwarranted use of <strings.h>
30542         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30543         strings.h in a file that does not also use strcasecmp, strncasecmp,
30544         ffs or ffsll.
30545
30546         maint.mk: remove obsolete comments
30547         * top/maint.mk: Remove stale, commented-out rules.
30548
30549 2010-05-02  Bruno Haible  <bruno@clisp.org>
30550
30551         wcwidth: Declare also when it's aliased.
30552         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30553         macro.
30554
30555 2010-05-02  Bruno Haible  <bruno@clisp.org>
30556
30557         Fix regression from 2010-04-25.
30558         * gnulib-tool (func_modules_transitive_closure): Check the status of
30559         all modules, not only of the tests that are of the form foo-tests where
30560         foo is a module.
30561
30562 2010-05-02  Bruno Haible  <bruno@clisp.org>
30563
30564         wctob: Work around nasty Cygwin 1.7.2 bug.
30565         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30566         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30567
30568 2010-05-01  Bruno Haible  <bruno@clisp.org>
30569
30570         fpurge: Sharper test.
30571         * tests/test-fpurge.c (main): Add one more ftell check.
30572         * modules/fpurge-tests (Depends-on): Add ftell.
30573         Suggested by Eric Blake.
30574
30575 2010-05-01  Bruno Haible  <bruno@clisp.org>
30576
30577         ftello: Another test.
30578         * tests/test-ftello3.c: New file.
30579         * modules/ftello-tests (Files): Add it.
30580         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30581         MOSTLYCLEANFILES.
30582
30583         ftell: Another test.
30584         * tests/test-ftell3.c: New file.
30585         * modules/ftell-tests (Files): Add it.
30586         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30587         MOSTLYCLEANFILES.
30588
30589 2010-05-01  Bruno Haible  <bruno@clisp.org>
30590
30591         ftell, ftello: Work around Solaris bug.
30592         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30593         * lib/ftello.c: Include stdio-impl.h.
30594         (ftello): On Solaris, when _IOWRT is set, compute the result without
30595         looking at _IOREAD.
30596         * modules/ftello (Files): Add lib/stdio-impl.h.
30597         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30598         * doc/posix-functions/ftello.texi: Likewise.
30599         Reported by Eric Blake.
30600
30601 2010-05-01  Bruno Haible  <bruno@clisp.org>
30602
30603         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30604         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30605         the _IOWRT flag is also set.
30606
30607 2010-05-01  Bruno Haible  <bruno@clisp.org>
30608
30609         Fix doc about a HP-UX stdio bug.
30610         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30611         * doc/posix-functions/ftello.texi: Likewise.
30612
30613 2010-05-01  Bruno Haible  <bruno@clisp.org>
30614
30615         lseek test: Fix failure on Solaris.
30616         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30617         output.
30618
30619 2010-04-30  Jim Meyering  <meyering@redhat.com>
30620
30621         bootstrap: don't ignore failure to generate po*/Makevars
30622         * build-aux/bootstrap (with_gettext): Don't ignore failure
30623         to create po/Makevars or runtime-po/Makevars.
30624
30625 2010-04-29  Eric Blake  <eblake@redhat.com>
30626
30627         headers: relax license to LGPLv2+
30628         * modules/fcntl-h (License): Relax license.
30629         * modules/getopt-posix (License): Likewise.
30630         * modules/locale (License): Likewise.
30631         * modules/math (License): Likewise.
30632         * modules/pty (License): Likewise.
30633         * modules/sched (License): Likewise.
30634         * modules/search (License): Likewise.
30635         * modules/spawn (License): Likewise.
30636         * modules/stdarg (License): Likewise.
30637         * modules/sysexits (License): Likewise.
30638
30639 2010-04-29  Jim Meyering  <meyering@redhat.com>
30640
30641         inttypes: relax license to LGPLv2+
30642         * modules/inttypes (License): Relax license.
30643
30644 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30645
30646         * top/maint.mk (indent): Run twice to produce idempotent results.
30647
30648 2010-04-28  Bruno Haible  <bruno@clisp.org>
30649
30650         getdate: Generate getdate.c in the source directory.
30651         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30652         MOSTLYCLEANFILES.
30653         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30654
30655 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30656
30657         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30658         is not declared as a const *; avoid warnings in that case.
30659
30660 2010-04-28  Eric Blake  <eblake@redhat.com>
30661
30662         canonicalize-lgpl: avoid compiler warning
30663         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30664         declaration' / 'extraneous semicolon' warning with some compilers.
30665         Reported by Andreas Gruenbacher.
30666
30667 2010-04-28  Jim Meyering  <meyering@redhat.com>
30668
30669         init.sh: ensure a more reliable exit status when exiting via trap
30670         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30671         Inspired by patches from Dmitry V. Levin.
30672         Also trap on signal 3 (SIGQUIT).
30673
30674 2010-04-27  Bruno Haible  <bruno@clisp.org>
30675
30676         Update doc about utimes().
30677         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30678         'utimens' module.
30679         Reported by Andreas Gruenbacher <agruen@suse.de>.
30680
30681 2010-04-27  Eric Blake  <eblake@redhat.com>
30682
30683         full-read, full-write: relax license
30684         * modules/full-read (License): Drop to LGPLv2+.
30685         * modules/full-write (License): Likewise.
30686         * modules/safe-read (License): Likewise.
30687         * modules/safe-write (License): Likewise.
30688
30689         pthread: mention library for linking
30690         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30691
30692 2010-04-27  Jim Meyering  <meyering@redhat.com>
30693
30694         maint.mk: fix a bug introduced in last change
30695         * top/maint.mk (gl_assured_headers_): Now that all names are on
30696         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30697         is not anchored to end of word, it should be adequate.
30698
30699         maint.mk: avoid side-effect in latest syntax-check
30700         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30701         to run commands via $(shell...), and hence to incur cost only when
30702         the new rule is actually run.
30703
30704         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30705         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30706         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30707         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30708         (gl_assured_headers_, az_, AZ_): Define.
30709         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30710
30711 2010-04-26  Jim Meyering  <jim@meyering.net>
30712             Bruno Haible  <bruno@clisp.org>
30713
30714         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30715         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30716         Prompted by an exchange with Gilles Espinasse.
30717
30718 2010-04-26  Jim Meyering  <meyering@redhat.com>
30719
30720         git-version-gen: aesthetic tweak
30721         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30722         so that the command remains on a single line.
30723
30724 2010-04-26  Eric Blake  <eblake@redhat.com>
30725
30726         git-version-gen: allow use on EBCDIC hosts
30727         * build-aux/git-version-gen (dirty): Use literal rather than tying
30728         ourselves to ascii.
30729         Reported by Steve Goetze.
30730
30731 2010-04-25  Bruno Haible  <bruno@clisp.org>
30732
30733         netdb: Add support for GNULIB_POSIXCHECK.
30734         * lib/netdb.in.h: Include warn-on-use.h.
30735         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30736         functions are used when GNULIB_POSIXCHECK is defined and the
30737         getaddrinfo module is not in use.
30738         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30739         freeaddrinfo, gai_strerror, getnameinfo are declared.
30740         * modules/netdb (Depends-on): Add warn-on-use.
30741         (Makefile.am): Include warn-on-use.h in netdb.h.
30742
30743 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30744
30745         build: avoid "make check" failure without .git/ directory
30746         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30747         there is no .git/ directory.
30748
30749 2010-04-25  Bruno Haible  <bruno@clisp.org>
30750
30751         ptsname: Fix misuse of ttyname_r.
30752         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30753         of errno.
30754
30755 2010-04-25  Bruno Haible  <bruno@clisp.org>
30756
30757         ttyname_r: Make it work on Solaris 10.
30758         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30759         if the system function has the POSIX declaration. Test whether the
30760         function fails if the buffer is less than 128 bytes large.
30761         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30762         system's ttyname_r function. Provide a reasonably large buffer.
30763         * modules/ttyname_r (Depends-on): Add extensions.
30764         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30765
30766 2010-04-25  Bruno Haible  <bruno@clisp.org>
30767
30768         Use the 'extensions' module for some more functions on Solaris.
30769         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30770         module.
30771         * doc/posix-functions/ctime_r.texi: Likewise.
30772         * doc/posix-functions/getgrgid_r.texi: Likewise.
30773         * doc/posix-functions/getgrnam_r.texi: Likewise.
30774         * doc/posix-functions/getpwnam_r.texi: Likewise.
30775         * doc/posix-functions/getpwuid_r.texi: Likewise.
30776         * doc/posix-functions/readdir_r.texi: Likewise.
30777         * doc/posix-functions/sigwait.texi: Likewise.
30778         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30779         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30780
30781 2010-04-25  Bruno Haible  <bruno@clisp.org>
30782
30783         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30784         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30785         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30786         * lib/ttyname_r.c: Include <limits.h>.
30787         (ttyname_r): Define using the system's ttyname_r function, if it exists
30788         and not on Solaris.
30789         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30790         set.
30791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30792         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30793         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30794         Reported by Simon Josefsson.
30795
30796 2010-04-25  Bruno Haible  <bruno@clisp.org>
30797
30798         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30799         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30800         * doc/posix-functions/ctime_r.texi: Likewise.
30801         * doc/posix-functions/getgrgid_r.texi: Likewise.
30802         * doc/posix-functions/getgrnam_r.texi: Likewise.
30803         * doc/posix-functions/getlogin_r.texi: Likewise.
30804         * doc/posix-functions/getpwnam_r.texi: Likewise.
30805         * doc/posix-functions/getpwuid_r.texi: Likewise.
30806         * doc/posix-functions/readdir_r.texi: Likewise.
30807         * doc/posix-functions/sigwait.texi: Likewise.
30808         * doc/posix-functions/ttyname_r.texi: Likewise.
30809         Reported by Simon Josefsson.
30810
30811 2010-04-25  Bruno Haible  <bruno@clisp.org>
30812
30813         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30814         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30815         also to --create-testdir.
30816         (func_acceptable): Don't consider the status of *-tests modules here.
30817         (func_modules_transitive_closure): Consider it here, before including a
30818         test module.
30819         (func_import, func_create_testdir): Set inc_all_direct_tests,
30820         inc_all_indirect_tests.
30821         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30822         --create-testdir and --create-megatestdir.
30823
30824 2010-04-25  Bruno Haible  <bruno@clisp.org>
30825
30826         gnulib-tool: Add --without-*-tests options.
30827         * gnulib-tool (func_usage): Document the --without-*-tests options.
30828         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30829         excl_unportable_tests): New variables.
30830         Fail if they are specified with --import or --update.
30831         (func_acceptable): Respect the excl_*_tests variables.
30832         (func_import): Set the excl_*_tests variables to empty.
30833
30834 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30835             Bruno Haible  <bruno@clisp.org>
30836
30837         Work around a MacOS X 10.4 bug with openpty.
30838         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30839         * tests/test-openpty.c (main): Close the master side explicitly.
30840
30841 2010-04-25  Bruno Haible  <bruno@clisp.org>
30842
30843         strnlen: Fix a C++ test error on MacOS X and Solaris.
30844         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30845         the function is not declared.
30846         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30847         Simon Josefsson.
30848
30849 2010-04-24  Bruno Haible  <bruno@clisp.org>
30850
30851         Avoid a gcc warning.
30852         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30853         of correct type for %08lx directive.
30854         Reported by Eric Blake.
30855
30856 2010-04-24  Bruno Haible  <bruno@clisp.org>
30857
30858         vasnprintf: Correct errno value in case of out-of-memory.
30859         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30860         or sprintf. Use the errno value from SNPRINTF or sprintf.
30861         Reported by Ian Beckwith <ianb@erislabs.net>.
30862
30863 2010-04-24  Bruno Haible  <bruno@clisp.org>
30864
30865         ansi-c++-opt: Find correct compiler when cross-compiling.
30866         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30867         AC_CHECK_PROGS.
30868         Reported by Simon Josefsson.
30869
30870 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30871
30872         vc-list-files: Add support for subversion
30873         * build-aux/vc-list-files: Use "svn list" to generate the list of
30874         files controlled by subversion.
30875
30876 2010-04-23  Jim Meyering  <meyering@redhat.com>
30877
30878         vc-list-files tests: convert to use init.sh
30879         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30880         path_prepend_.
30881         Use Exit, not exit.
30882         Use skip_ rather than open coding it.
30883         Remove trap set-up and compare definitions.
30884         * tests/test-vc-list-files-git.sh: Likewise.
30885         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30886
30887 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30888
30889         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30890         backup files.
30891
30892 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30893
30894         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30895
30896 2010-04-20  Eric Blake  <eblake@redhat.com>
30897
30898         tests: be robust to ignored SIGPIPE
30899         * tests/test-select-in.sh: Consume all output.
30900         * tests/test-lseek.sh: Check correct exit status, while avoiding
30901         EPIPE.
30902
30903 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30904             Bruno Haible  <bruno@clisp.org>
30905
30906         visibility: Don't use -fvisibility if it leads to a warning.
30907         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30908         yes, don't pretend that visibility works if it leads to a warning.
30909         Reported by Mike Gran <spk121@yahoo.com>.
30910
30911 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30912
30913         * build-aux/bootstrap: Use "git -h" for testing for supported options
30914         instead of "git --help".  The short-form option only shows a summary,
30915         and doesn't layout the full man page.  Grep for the full option name
30916         in the summary, too.
30917
30918 2010-04-19  Bruno Haible  <bruno@clisp.org>
30919
30920         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30921         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30922         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30923         mention of RELOCATABLE_STRIP.
30924         Reported by Sylvain Beucler <beuc@beuc.net>.
30925
30926 2010-04-19  Bruno Haible  <bruno@clisp.org>
30927
30928         * lib/diffseq.h: Fix typo in comment.
30929         Reported by Eric Blake.
30930
30931 2010-04-19  Bruno Haible  <bruno@clisp.org>
30932
30933         ioctl: Move autoconf macro to a .m4 file.
30934         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30935         * modules/ioctl (Files): Add it.
30936         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30937         Reported by Ian Beckwith <ianb@erislabs.net>.
30938
30939 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30940             Bruno Haible  <bruno@clisp.org>
30941
30942         diffseq: Accommodate use-case with abstract arrays.
30943         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30944         is not defined.
30945         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30946         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30947
30948 2010-04-18  Bruno Haible  <bruno@clisp.org>
30949
30950         * doc/posix-headers/stdbool.texi: More precise wording.
30951
30952 2010-04-17  Jim Meyering  <meyering@redhat.com>
30953
30954         maint.mk: use gnu-style indentation in an embedded perl script
30955         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30956         Rename variable: s/two/last_two_bytes/
30957
30958 2010-04-16  Eric Blake  <eblake@redhat.com>
30959
30960         test-stdbool: skip test that fails with Solaris CC
30961         * tests/test-stdbool.c (f): Skip test that causes compilation
30962         error under buggy C++ compiler.
30963         * lib/stdbool.in.h: Document the limitation.
30964         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30965
30966         setenv: allow compilation with C++
30967         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30968         register keyword.
30969
30970         stdint: allow test to pass with C++
30971         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30972
30973         getopt: allow compilation with C++
30974         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30975         struct.
30976         * lib/getopt.c (_getopt_internal_r): Use correct type.
30977         Reported by Dagobert Michelson, via Joel E. Denny.
30978
30979 2010-04-16  Bruno Haible  <bruno@clisp.org>
30980
30981         Override netdb.h always.
30982         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30983         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30984         Reported by Ludovic Courtès <ludo@gnu.org>.
30985
30986 2010-04-15  Bruno Haible  <bruno@clisp.org>
30987
30988         openpty: Fix mistake from 2010-03-21.
30989         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30990         Reported by Simon Josefsson.
30991
30992 2010-04-15  Eric Blake  <eblake@redhat.com>
30993
30994         test-forkpty: fix expected signature
30995         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30996         Reported by Simon Josefsson.
30997
30998 2010-04-15  Jim Meyering  <meyering@redhat.com>
30999
31000         maint.mk: texinfo_suffix_re_: correct the default regexp
31001         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31002
31003         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31004         make it configurable via texinfo_suffix_re_.
31005
31006 2010-04-14  Eric Blake  <eblake@redhat.com>
31007
31008         strtok_r: relax license to LGPLv2+
31009         * modules/strtok_r (License): Relax license.
31010         Reported by Matthias Bolte.
31011
31012 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31013
31014         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31015         version 1.4.4 by default instead of requiring the libgcrypt
31016         version used during build.  This makes it possible to use the
31017         application with older but still binary compatible libgcrypt
31018         versions.
31019
31020 2010-04-13  Eric Blake  <eblake@redhat.com>
31021
31022         getopt-gnu: match recent glibc fixes and posix ruling
31023         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31024         '+' handling, when requesting extensions.
31025         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31026         'W;' handling.
31027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31028         * doc/posix-functions/getopt.texi (getopt): Document this.
31029         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31030         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31031         Likewise.
31032
31033         getopt: merge bug fixes from glibc
31034         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31035         diagnostics.  Honor '+:' correctly.  Reject ';'.
31036
31037         getopt-posix: detect MacOS bug
31038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31039         optind when missing a required argument.
31040         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31041         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31042         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31043         Likewise.
31044
31045         getopt-posix: avoid spurious failure on Solaris
31046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31047         an indicator that setting optind=1 is sufficient for reset.
31048
31049         getopt-posix: avoid spurious failure on FreeBSD
31050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31051         in POSIX mode, since the m4 test uses it.
31052
31053         gnulib-tool: silence warning on BSD sh
31054         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31055
31056 2010-04-13  Jim Meyering  <meyering@redhat.com>
31057
31058         doc: users.txt: GNU patch now uses gnulib
31059         * users.txt: Add patch.
31060
31061 2010-04-12  Jim Meyering  <meyering@redhat.com>
31062
31063         maint.mk: generate more concise timing data for syntax-check rules
31064         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31065         " done" from each line that reports a syntax-check test duration.
31066
31067 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31068
31069         git-version-gen: use "git update-index..." rather than "git status"
31070         * build-aux/git-version-gen: Use git update-index --refresh, not
31071         "git status".  With some versions of git, "git status" would fail
31072         to update the index and result in an unwarranted "-dirty" suffix.
31073
31074 2010-04-11  Jim Meyering  <meyering@redhat.com>
31075
31076         openat: correct formatting (no semantic change)
31077         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31078         Suggested by Bruno Haible.
31079
31080 2010-04-11  Bruno Haible  <bruno@clisp.org>
31081
31082         Stricter declaration checking in testdirs.
31083         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31084         If for_tests is true, augment AM_CPPFLAGS to define
31085         GNULIB_STRICT_CHECKING.
31086         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31087         GNULIB_STRICT_CHECKING is defined, verify that the function is
31088         declared.
31089
31090 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31091             Bruno Haible  <bruno@clisp.org>
31092
31093         libunistring: Improve configure output.
31094         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31095         Don't say "consider installing GNU libunistring" when checking again
31096         with libiconv.
31097
31098 2010-04-11  Bruno Haible  <bruno@clisp.org>
31099
31100         libunistring: Correct value of $LTLIBUNISTRING.
31101         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31102         correct the value of $LTLIBUNISTRING.
31103
31104 2010-04-11  Bruno Haible  <bruno@clisp.org>
31105
31106         havelib: Add static libraries to LIBS in the right order.
31107         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31108         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31109
31110 2010-04-11  Bruno Haible  <bruno@clisp.org>
31111
31112         libunistring: Detect libunistring also when it depends on libiconv.
31113         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31114         the second AC_LIB_HAVE_LINKFLAGS invocation.
31115
31116 2010-04-11  James Youngman  <jay@gnu.org>
31117
31118         close-stream: declare local scalars to be "const"
31119         * lib/close-stream.c (close_stream): Make boolean variables const
31120         to document the fact that we set but do not change them.
31121
31122 2010-04-11  Bruno Haible  <bruno@clisp.org>
31123
31124         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31125
31126 2010-04-11  Jim Meyering  <meyering@redhat.com>
31127
31128         maint.mk: don't include dist-check.mk
31129         * top/maint.mk: Remove bogus include directive.
31130
31131         maint.mk: improve empty-line-at-EOF check
31132         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31133         solution, rather than tail+Perl-based one.  The latter would read
31134         a few kilobytes from the end of each file, and did not handle empty
31135         files properly.
31136
31137         maint.mk: print the elapsed time for each syntax-check rule
31138         * top/maint.mk (sc_m_rules_): Save start time in a file.
31139         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31140         (local-check): Interpose the .z rules
31141
31142 2010-04-11  Jim Meyering  <meyering@redhat.com>
31143
31144         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31145         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31146         empty file with one that ends in an empty line.
31147
31148 2010-04-10  Bruno Haible  <bruno@clisp.org>
31149
31150         mkdir: Make it work on mingw64.
31151         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31152         * lib/mkdir.c: Update comment.
31153         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
31154
31155 2010-04-10  Bruno Haible  <bruno@clisp.org>
31156
31157         Don't override improved macro from newer autoconf.
31158         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31159         autoconf >= 2.62.
31160         Reported by Joel E. Denny <jdenny@clemson.edu>.
31161
31162 2010-04-10  Jim Meyering  <meyering@redhat.com>
31163
31164         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31165         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31166
31167         maint.mk: correct a diagnostic
31168         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31169         in diagnostic; now use $prohibit.
31170
31171 2010-04-10  Bruno Haible  <address@hidden>
31172
31173         fchownat: Fix a C++ test error on Solaris 8.
31174         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31175         the function does not exist.
31176
31177 2010-04-10  Bruno Haible  <bruno@clisp.org>
31178
31179         vasnprintf: Add more tests.
31180         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31181         (test_function): Test converting an invalid wide string.
31182
31183         vasnprintf: Correct handling of unconvertible wide string arguments.
31184         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31185         VASNPRINTF.
31186         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31187         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31188         smaller than the expected maximum need for the directive. Set errno to
31189         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31190         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31192         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31193         * modules/vasnprintf (Files): Add m4/printf.m4.
31194         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31195
31196 2010-04-10  Bruno Haible  <bruno@clisp.org>
31197
31198         vasnprintf: Fix crash in %ls directive.
31199         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31200         string is passed as argument to %ls, with no precision and no width.
31201         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31202
31203 2010-04-10  Bruno Haible  <bruno@clisp.org>
31204
31205         vasnprintf: Fix multiple test failures on mingw.
31206         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31207         _snprintf, or snwprintf, not _snwprintf.
31208
31209 2010-04-10  Bruno Haible  <bruno@clisp.org>
31210
31211         write: Fix a C++ test error on mingw.
31212         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31213
31214 2010-04-10  Bruno Haible  <bruno@clisp.org>
31215
31216         vasnprintf test: Reduce code duplication.
31217         * tests/test-vasnprintf.c (test_function): New function, extracted from
31218         test_vasnprintf.
31219         (test_vasnprintf, test_asnprintf): Invoke it.
31220
31221 2010-04-10  Bruno Haible  <bruno@clisp.org>
31222
31223         strnlen: Fix warning in C++ mode on MacOS X.
31224         * lib/string.in.h (strnlen): Use the modern idiom.
31225         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31226         defining strnlen as a macro already in <config.h>.
31227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31228         REPLACE_STRNLEN.
31229         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31230         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31231
31232 2010-04-08  James Youngman  <jay@gnu.org>
31233
31234         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31235         the example.
31236
31237 2010-04-09  Jim Meyering  <meyering@redhat.com>
31238
31239         maint.mk: print better diagnostic when there is no $(_hv_file)
31240         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31241         announce that when $(_hv_file) (aka help-version) does not exist.
31242
31243         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31244         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31245         not try to interpret its random input bytes.  Jarno Rajahalme reported
31246         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31247         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31248         (mktempd_): Likewise, just in case.
31249
31250         ftruncate: add two years to projected module removal date: 2012
31251         * m4/ftruncate.m4: Adjust comments.
31252
31253         ftruncate: mark module as obsolete; even MinGW provides it, now
31254         * modules/ftruncate (Status): Obsolete.
31255         (Notice): Say that.
31256         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31257         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31258
31259 2010-04-08  Bruno Haible  <bruno@clisp.org>
31260
31261         Fix side effects from tests-related modules.
31262         * modules/dprintf-posix (Comment): New section.
31263         * modules/fprintf-posix (Comment): Likewise.
31264         * modules/obstack-printf-posix (Comment): Likewise.
31265         * modules/printf-posix (Comment): Likewise.
31266         * modules/snprintf-posix (Comment): Likewise.
31267         * modules/sprintf-posix (Comment): Likewise.
31268         * modules/vasnprintf-posix (Comment): Likewise.
31269         * modules/vasprintf-posix (Comment): Likewise.
31270         * modules/vdprintf-posix (Comment): Likewise.
31271         * modules/vfprintf-posix (Comment): Likewise.
31272         * modules/vprintf-posix (Comment): Likewise.
31273         * modules/vsnprintf-posix (Comment): Likewise.
31274         * modules/vsprintf-posix (Comment): Likewise.
31275         * modules/xprintf-posix (Comment): Likewise.
31276         * modules/xvasprintf-posix (Comment): Likewise.
31277         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31278         * modules/floorf-tests (Depends-on): Likewise.
31279         * modules/round-tests (Depends-on): Likewise.
31280         * modules/roundf-tests (Depends-on): Likewise.
31281         * modules/trunc-tests (Depends-on): Likewise.
31282         * modules/truncf-tests (Depends-on): Likewise.
31283         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31284         'fprintf-posix' module is not present.
31285         * tests/test-floorf2.c (check): Likewise.
31286         * tests/test-trunc2.c (check): Likewise.
31287         * tests/test-truncf2.c (check): Likewise.
31288         * tests/test-round2.c (equal): Likewise.
31289         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31290
31291 2010-04-07  Karl Berry  <karl@gnu.org>
31292
31293         * config/srclist.txt,
31294         * config/srclistvars.sh,
31295         * config/srclist-update: doc fixes.
31296
31297 2010-04-07  Jim Meyering  <meyering@redhat.com>
31298
31299         maint.mk: add a PATH crosschecking syntax-check rule
31300         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31301         Useful if you use a test like the one in help-version (coreutils,
31302         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31303         printed by prog --version.
31304
31305 2010-04-06  Bruno Haible  <bruno@clisp.org>
31306
31307         Fix link error on mingw.
31308         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31309         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31310
31311 2010-04-06  Bruno Haible  <bruno@clisp.org>
31312
31313         Assume rmdir exists.
31314         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31315
31316 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31317
31318         doc: update users.txt
31319         * users.txt: Add gcal.
31320
31321 2010-04-06  Jim Meyering  <meyering@redhat.com>
31322
31323         init.sh: simply unset TMPDIR rather than risking env -i
31324         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31325         although it probably works fine on all Unix-based systems, some
31326         systems (Cygwin?) cannot tolerate a totally cleared environment.
31327         Suggestion from Eric Blake.
31328
31329 2010-04-06  Jim Meyering  <meyering@redhat.com>
31330
31331         init.sh: portability fix: use env's POSIX-specified -i option not -u
31332         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31333         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31334
31335 2010-04-05  Bruno Haible  <bruno@clisp.org>
31336
31337         btowc: Work around Cygwin 1.7.2 bug.
31338         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31339         does not map NUL to 0.
31340         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31341
31342 2010-04-05  Bruno Haible  <bruno@clisp.org>
31343
31344         Make the multithread modules work on Cygwin 1.7.2.
31345         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31346         imported symbols can be declared weak, so that it returns "no" on
31347         Cygwin 1.7.2.
31348
31349 2010-04-05  Bruno Haible  <bruno@clisp.org>
31350
31351         Use the module 'strncat'.
31352         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31353
31354         Tests for module 'strncat'.
31355         * modules/strncat-tests: New file.
31356         * tests/test-strncat.c: New file.
31357
31358         New module 'strncat'.
31359         * lib/string.in.h (strncat): New declaration.
31360         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31361         * m4/strncat.m4: New file, based on m4/memchr.m4.
31362         * modules/strncat: New file.
31363         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31364         is declared.
31365         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31366         REPLACE_STRNCAT.
31367         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31368         REPLACE_STRNCAT.
31369         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31370         module.
31371         * tests/test-string-c++.cc: Check signature of strncat.
31372
31373 2010-04-05  Jim Meyering  <meyering@redhat.com>
31374
31375         xstrtoumax-tests: convert to use init.sh
31376         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31377         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31378         Use Exit, not exit.
31379         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31380
31381         xstrtoimax-tests: convert to use init.sh
31382         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31383         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31384         Use Exit, not exit.
31385         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31386
31387 2010-04-05  Bruno Haible  <bruno@clisp.org>
31388
31389         sys_socket: Avoid #define replacements in C++ mode.
31390         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31391         warning to the function if possible, rather than #defining the symbol
31392         to a dysfunctional alias.
31393
31394 2010-04-05  Bruno Haible  <bruno@clisp.org>
31395
31396         fseeko: Fix C++ test error on mingw.
31397         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31398         gl_FUNC_FSEEKO.
31399         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31400         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31401         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31402         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31403
31404 2010-04-05  Bruno Haible  <bruno@clisp.org>
31405
31406         duplocale: Improve test output.
31407         * tests/test-duplocale.c (main): Print reason for skipped test.
31408
31409 2010-04-05  Bruno Haible  <bruno@clisp.org>
31410
31411         Assume rmdir exists.
31412         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31413         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31414
31415 2010-04-05  Bruno Haible  <bruno@clisp.org>
31416
31417         Fix link error on Solaris 8 with cc.
31418         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31419
31420 2010-04-05  Bruno Haible  <bruno@clisp.org>
31421
31422         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31423         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31424
31425 2010-04-05  Bruno Haible  <bruno@clisp.org>
31426
31427         vasprintf: Update documentation.
31428         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31429
31430 2010-04-05  Bruno Haible  <bruno@clisp.org>
31431
31432         ptsname: Improve test.
31433         * tests/test-ptsname.c (main): Also try the various master names of BSD
31434         systems.
31435
31436 2010-04-05  Bruno Haible  <bruno@clisp.org>
31437
31438         memchr: Avoid a possible C++ test error.
31439         * lib/string.in.h (memchr): Provide declaration if function is missing.
31440         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31441         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31443         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31444
31445 2010-04-05  Bruno Haible  <bruno@clisp.org>
31446
31447         strtok_r: Improve idiom.
31448         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31449         AC_LIBOBJ is used.
31450
31451 2010-04-05  Bruno Haible  <bruno@clisp.org>
31452
31453         strdup: Improve idiom.
31454         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31455         AC_LIBOBJ is used.
31456         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31457         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31458         when AC_LIBOBJ is used.
31459
31460 2010-04-05  Bruno Haible  <bruno@clisp.org>
31461
31462         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31463         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31464         don't set REPLACE_MBSINIT to 1.
31465         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31466         don't set REPLACE_MBRTOWC to 1.
31467         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31468         exist, don't set REPLACE_MBSRTOWCS to 1.
31469         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31470         exist, don't set REPLACE_MBSNRTOWCS to 1.
31471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31472         don't set REPLACE_WCRTOMB to 1.
31473         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31474         exist, don't set REPLACE_WCSRTOMBS to 1.
31475         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31476         exist, don't set REPLACE_WCSNRTOMBS to 1.
31477
31478 2010-04-05  Bruno Haible  <bruno@clisp.org>
31479
31480         ldexpl: Improve idiom.
31481         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31482         make sure to set HAVE_DECL_LDEXPL to 0.
31483
31484 2010-04-05  Jim Meyering  <meyering@redhat.com>
31485
31486         xstrtol-tests: convert to use init.sh
31487         * modules/xstrtol-tests (Files): Add tests/init.sh.
31488         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31489         Use Exit, not exit.
31490         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31491
31492         atexit-tests: convert to use init.sh
31493         * modules/atexit-tests (Files): Add tests/init.sh.
31494         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31495         Use Exit, not exit.
31496         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31497
31498         init.sh: fix typo
31499         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31500
31501         init.sh: make it easier for a test script to write to the tty, ...
31502         when using automake's parallel-tests mode.
31503         * tests/init.sh (stderr_fileno_): Define overridable variable.
31504         (warn_): New function, to use it.
31505         (fail_, skip_, framework_failure_): Use warn_.
31506
31507 2010-04-04  Bruno Haible  <bruno@clisp.org>
31508
31509         btowc: Avoid warning.
31510         * lib/btowc.c: Include <stdlib.h>.
31511         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31512
31513 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31514             Bruno Haible  <bruno@clisp.org>
31515
31516         wchar: Port to NetBSD 1.5.
31517         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31518         * lib/wctype.in.h (WEOF): Likewise.
31519
31520 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31521             Bruno Haible  <bruno@clisp.org>
31522
31523         Port extended stdio to NetBSD 1.5.
31524         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31525         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31526         older.
31527
31528 2010-04-04  Bruno Haible  <bruno@clisp.org>
31529
31530         string: Remove unused substitution.
31531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31532         HAVE_DECL_STRERROR.
31533         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31534
31535 2010-04-04  Bruno Haible  <bruno@clisp.org>
31536
31537         strtod: Avoid a possible C++ test error.
31538         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31539         set REPLACE_STRTOD.
31540
31541 2010-04-04  Bruno Haible  <bruno@clisp.org>
31542
31543         strerror: Update documentation.
31544         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31545
31546 2010-04-04  Bruno Haible  <bruno@clisp.org>
31547
31548         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31549         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31550         _GL_CXXALIAS_SYS_CAST.
31551
31552 2010-04-04  Bruno Haible  <bruno@clisp.org>
31553
31554         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31555         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31556         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31557         REPLACE_FREXPL to 1.
31558         * doc/posix-functions/frexpl.texi: Update documentation.
31559
31560 2010-04-04  Bruno Haible  <bruno@clisp.org>
31561
31562         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31563         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31564
31565 2010-04-04  Bruno Haible  <bruno@clisp.org>
31566
31567         Implement nanosleep for native Windows.
31568         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31569
31570 2010-04-04  Bruno Haible  <bruno@clisp.org>
31571
31572         math: Fix some C++ test errors on Solaris 8.
31573         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31574
31575 2010-04-04  Bruno Haible  <bruno@clisp.org>
31576
31577         math: Fix some C++ test errors on Cygwin.
31578         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31579         truncl): Provide declaration if the system does not have it.
31580         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31581         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31582         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31583         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31584         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31585         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31586         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31587         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31588         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31589         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31590         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31591         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31592         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31593         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31594         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31595         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31597         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31598         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31599         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31600         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31601         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31602
31603 2010-04-04  Bruno Haible  <bruno@clisp.org>
31604
31605         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31606         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31607         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31608         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31609         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31610         * m4/isinf.m4 (gl_ISINF): Likewise.
31611         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31612
31613 2010-04-04  Bruno Haible  <bruno@clisp.org>
31614
31615         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31616         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31617
31618 2010-04-04  Bruno Haible  <bruno@clisp.org>
31619
31620         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31621         * modules/tmpfile (configure.ac): Update.
31622
31623         tmpfile: Fix C++ test error on mingw.
31624         * lib/stdio.in.h (tmpfile): New declaration.
31625         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31626         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31627         * modules/tmpfile (Depends-on): Add stdio.
31628         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31629         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31630         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31631         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31632         REPLACE_TMPFILE.
31633         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31634
31635 2010-04-04  Bruno Haible  <bruno@clisp.org>
31636
31637         ioctl: Fix C++ test error on mingw.
31638         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31639         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31640         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31641
31642 2010-04-03  Bruno Haible  <bruno@clisp.org>
31643
31644         wcwidth: Fix C++ test error on mingw.
31645         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31647         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31648
31649 2010-04-03  Bruno Haible  <bruno@clisp.org>
31650
31651         nanosleep: Fix C++ test error on mingw.
31652         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31653         * lib/time.in.h (nanosleep): Use modern idiom.
31654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31655         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31656         REPLACE_NANOSLEEP to 1.
31657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31658         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31659
31660 2010-04-03  Bruno Haible  <bruno@clisp.org>
31661
31662         strptime: Fix C++ test error on mingw.
31663         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31664         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31665         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31666         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31667         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31668         not REPLACE_STRPTIME.
31669         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31670         REPLACE_STRPTIME.
31671
31672 2010-04-03  Bruno Haible  <bruno@clisp.org>
31673
31674         timegm: Fix C++ test error on mingw.
31675         * lib/time.in.h (timegm): Use modern idiom.
31676         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31677         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31678         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31679         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31680
31681 2010-04-03  Bruno Haible  <bruno@clisp.org>
31682
31683         timegm: Assume declaration if function exists.
31684         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31685         if it exists. Don't clobber ac_cv_func_timegm.
31686
31687 2010-04-03  Bruno Haible  <bruno@clisp.org>
31688
31689         time_r: Fix C++ test error on mingw.
31690         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31691         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31692         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31693         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31694         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31695
31696 2010-04-03  Bruno Haible  <bruno@clisp.org>
31697
31698         time_r: Minor updates.
31699         * modules/time_r (Description): Mention the provided functions.
31700         * lib/time_r.c: Don't include <string.h>.
31701         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31702         * doc/posix-functions/localtime_r.texi: Likewise.
31703
31704 2010-04-03  Bruno Haible  <bruno@clisp.org>
31705
31706         time: Fix regression introduced on 2010-03-08.
31707         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31708         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31709
31710 2010-04-03  Jim Meyering  <meyering@redhat.com>
31711
31712         maint.mk: don't silently disable project-specific syntax-check rules
31713         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31714         that they need to convert their project-specific syntax-check rules
31715         to use the new _sc_search_regexp.
31716
31717 2010-04-03  Bruno Haible  <bruno@clisp.org>
31718
31719         fchdir: Fix regression introduced on 2010-03-08.
31720         * lib/unistd.in.h (fchdir): Fix declaration.
31721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31723         REPLACE_FCHDIR.
31724         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31725         REPLACE_FCHDIR.
31726
31727 2010-04-03  Bruno Haible  <bruno@clisp.org>
31728
31729         getpagesize: Fix C++ test error on mingw.
31730         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31731         system does not declare the function.
31732         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31733         declared.
31734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31735         HAVE_DECL_GETPAGESIZE.
31736         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31737
31738 2010-04-03  Bruno Haible  <bruno@clisp.org>
31739
31740         stdio: Make C++ tests work on mingw.
31741         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31742         does not declare the function.
31743
31744 2010-04-03  Bruno Haible  <bruno@clisp.org>
31745
31746         ftello: Fix C++ test error on mingw.
31747         * lib/stdio.in.h (ftello): Use modern idiom.
31748         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31749         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31750         is missing and that it needs to be replaced.
31751         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31753         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31754
31755 2010-04-03  Bruno Haible  <bruno@clisp.org>
31756
31757         fseeko: Fix C++ test error on mingw.
31758         * lib/stdio.in.h (fseeko): Use modern idiom.
31759         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31761         is missing and that it needs to be replaced.
31762         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31764         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31765
31766 2010-04-03  Bruno Haible  <bruno@clisp.org>
31767
31768         mkstemp: Fix C++ test error on mingw.
31769         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31770         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31771         function is missing and that it needs to be replaced.
31772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31773         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31774
31775 2010-04-03  Bruno Haible  <bruno@clisp.org>
31776
31777         stpncpy: Fix C++ test error on mingw.
31778         * lib/string.in.h (stpncpy): Use modern idiom.
31779         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31780         function is missing and that it needs to be replaced.
31781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31782         REPLACE_STPNCPY.
31783         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31784
31785 2010-04-03  Bruno Haible  <bruno@clisp.org>
31786
31787         sys_stat: Fix C++ test error on mingw.
31788         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31789         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31790
31791 2010-04-03  Bruno Haible  <bruno@clisp.org>
31792
31793         pty: Update doc.
31794         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31795
31796 2010-04-03  Bruno Haible  <bruno@clisp.org>
31797
31798         unistd: Fix C++ test error on mingw.
31799         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31800
31801 2010-04-03  Bruno Haible  <bruno@clisp.org>
31802
31803         Update doc regarding mingw.
31804         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31805         * doc/glibc-functions/login_tty.texi: Likewise.
31806         * doc/glibc-functions/forkpty.texi: Likewise.
31807
31808 2010-04-03  Bruno Haible  <bruno@clisp.org>
31809
31810         stdlib: Avoid compilation failure of c-strtold on mingw.
31811         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31812
31813 2010-04-03  Bruno Haible  <bruno@clisp.org>
31814
31815         locale: Make C++ tests work on Cygwin and mingw.
31816         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31817         cannot provide the function.
31818         Reported by Simon Josefsson.
31819
31820 2010-04-03  Bruno Haible  <bruno@clisp.org>
31821
31822         localename: Port to MacOS X 10.6.
31823         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31824         memory layout of the locales in MacOS X 10.6 as well.
31825         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31826
31827 2010-04-02  Bruno Haible  <bruno@clisp.org>
31828
31829         gnulib-tool: Ensure that long-running tests are executed last.
31830         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31831         running tests after the one for the other tests.
31832
31833 2010-04-02  Bruno Haible  <bruno@clisp.org>
31834
31835         gnulib-tool: Ensure the tests in the main directory are executed first.
31836         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31837         start with the current directory.
31838
31839 2010-04-02  Bruno Haible  <bruno@clisp.org>
31840
31841         Tests for module 'havelib', moved here from GNU gettext.
31842         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31843         modifications.
31844         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31845         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31846         with modifications.
31847         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31848         modifications.
31849         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31850         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31851         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31852         with modifications.
31853         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31854         with modifications.
31855         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31856         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31857         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31858         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31859         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31860         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31861         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31862         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31863         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31864         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31865         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31866         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31867         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31868         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31869         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31870         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31871         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31872         with modifications.
31873         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31874         with modifications.
31875         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31876         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31877         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31878         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31879         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31880         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31881         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31882         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31883         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31884         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31885         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31886         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31887         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31888         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31889         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31890         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31891         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31892         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31893         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31894         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31895         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31896         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31897         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31898         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31899         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31900         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31901         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31902         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31903         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31904         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31905         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31906         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31907         * tests/havelib/rpathx/rpathx.c: New file, from
31908         gettext/autoconf-lib-link.
31909         * tests/havelib/rpathx/Makefile.am: New file, from
31910         gettext/autoconf-lib-link.
31911         * tests/havelib/rpathx/configure.ac: New file, from
31912         gettext/autoconf-lib-link with modifications.
31913         * tests/havelib/rpathy/rpathy.c: New file, from
31914         gettext/autoconf-lib-link.
31915         * tests/havelib/rpathy/Makefile.am: New file, from
31916         gettext/autoconf-lib-link.
31917         * tests/havelib/rpathy/configure.ac: New file, from
31918         gettext/autoconf-lib-link with modifications.
31919         * tests/havelib/rpathz/rpathz.c: New file, from
31920         gettext/autoconf-lib-link.
31921         * tests/havelib/rpathz/Makefile.am: New file, from
31922         gettext/autoconf-lib-link.
31923         * tests/havelib/rpathz/configure.ac: New file, from
31924         gettext/autoconf-lib-link with modifications.
31925         * tests/havelib/rpathlx/usex.c: New file, from
31926         gettext/autoconf-lib-link.
31927         * tests/havelib/rpathlx/Makefile.am: New file, from
31928         gettext/autoconf-lib-link.
31929         * tests/havelib/rpathlx/configure.ac: New file, from
31930         gettext/autoconf-lib-link with modifications.
31931         * tests/havelib/rpathly/usey.c: New file, from
31932         gettext/autoconf-lib-link.
31933         * tests/havelib/rpathly/Makefile.am: New file, from
31934         gettext/autoconf-lib-link.
31935         * tests/havelib/rpathly/configure.ac: New file, from
31936         gettext/autoconf-lib-link with modifications.
31937         * tests/havelib/rpathlz/usez.c: New file, from
31938         gettext/autoconf-lib-link.
31939         * tests/havelib/rpathlz/Makefile.am: New file, from
31940         gettext/autoconf-lib-link.
31941         * tests/havelib/rpathlz/configure.ac: New file, from
31942         gettext/autoconf-lib-link with modifications.
31943         * tests/havelib/rpathlyx/usey.c: New file, from
31944         gettext/autoconf-lib-link.
31945         * tests/havelib/rpathlyx/Makefile.am: New file, from
31946         gettext/autoconf-lib-link.
31947         * tests/havelib/rpathlyx/configure.ac: New file, from
31948         gettext/autoconf-lib-link with modifications.
31949         * tests/havelib/rpathlzyx/usez.c: New file, from
31950         gettext/autoconf-lib-link.
31951         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31952         gettext/autoconf-lib-link.
31953         * tests/havelib/rpathlzyx/configure.ac: New file, from
31954         gettext/autoconf-lib-link with modifications.
31955         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31956         with modifications.
31957
31958 2010-04-02  Bruno Haible  <bruno@clisp.org>
31959
31960         gnulib-tool: Create distributed built sources also for the tests.
31961         * gnulib-tool (func_create_testdir): Also generate distributed built
31962         sources in the tests directory.
31963
31964 2010-04-02  Bruno Haible  <bruno@clisp.org>
31965
31966         gnulib-tool: Obey user's environment variables.
31967         * gnulib-tool (func_create_testdir): When creating built sources,
31968         respect the environment variables for autoconf, automake, etc. given by
31969         the user.
31970
31971 2010-04-02  Bruno Haible  <bruno@clisp.org>
31972
31973         gnulib-tool: Provide the value of --m4-base to modules.
31974         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31975         of gl_m4_base.
31976
31977 2010-04-02  Eric Blake  <eblake@redhat.com>
31978
31979         maint.mk: fix some fallout
31980         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31981         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31982
31983 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31984
31985         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31986         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31987         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31988         (sc_cast_of_x_alloc_return_value): Likewise.
31989         (sc_cast_of_alloca_return_value): Likewise.
31990         (sc_space_tab): Likewise.
31991         (sc_prohibit_atoi_atof): Likewise.
31992         (sc_prohibit_magic_number_exit): Likewise.
31993         (sc_error_exit_success): Likewise.
31994         (sc_file_system): Likewise.
31995         (sc_prohibit_have_config_h): Likewise.
31996         (sc_require_config_h): Likewise.
31997         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31998         (sc_obsolete_symbols): Likewise.
31999         (sc_changelog): Likewise.
32000         (sc_program_name): Likewise.
32001         (sc_the_the): Likewise.
32002         (sc_trailing_blank): Likewise.
32003         (sc_two_space_separator_in_usage): Likewise.
32004         (sc_useless_cpp_parens): Likewise.
32005         (sc_GPL_version): Likewise.
32006         (sc_GFDL_version): Likewise.
32007         (sc_texinfo_acronym): Likewise.
32008         (sc_prohibit_cvs_keyword): Likewise.
32009         (sc_prohibit_stat_st_blocks): Likewise.
32010         (sc_prohibit_S_IS_definition): Likewise.
32011         (sc_redundant_const): Likewise.
32012         (sc_makefile_TAB_only_indentation): Likewise.
32013         (sc_m4_quote_check): Likewise.
32014         (sc_makefile_path_separator_check): Likewise.
32015         (sc_copyright_check): Likewise.
32016         (sc_Wundef_boolean): Likewise.
32017         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32018
32019         maint.mk: match 0 or more whitespace-before-function-call '('
32020         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32021         that have zero or two-and-more spaces between the function name
32022         and the open parenthesis.
32023         (sc_error_message_warn_fatal): Likewise.
32024         (sc_error_message_uppercase): Likewise.
32025         (sc_error_message_period): Likewise.
32026
32027 2010-03-31  Eric Blake  <eblake@redhat.com>
32028
32029         maint.mk: check for [ as well as test
32030         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32031         Based on a libvirt report by Matthias Bolte.
32032
32033         gnumakefile: don't squelch _version output
32034         * top/GNUmakefile (_version): Create one-shot dependency rather
32035         than using $(shell) when version must be regenerated.
32036         (_autoreconf): Run verbosely, by default.
32037
32038         sys_time: avoid compiler warnings
32039         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32040         unconditional, fixing regression from 2010-03-29.
32041         Reported by Simon Josefsson.
32042
32043 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32044
32045         maint.mk: s/_header_without_use/_sc_header_without_use/
32046         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32047         (sc_prohibit_assert_without_use): Use the new name.
32048         (sc_prohibit_close_stream_without_use): Likewise.
32049         (sc_prohibit_getopt_without_use): Likewise.
32050         (sc_prohibit_quotearg_without_use): Likewise.
32051         (sc_prohibit_quote_without_use): Likewise.
32052         (sc_prohibit_long_options_without_use): Likewise.
32053         (sc_prohibit_inttostr_without_use): Likewise.
32054         (sc_prohibit_ignore_value_without_use): Likewise.
32055         (sc_prohibit_error_without_use): Likewise.
32056         (sc_prohibit_xalloc_without_use): Likewise.
32057         (sc_prohibit_hash_without_use): Likewise.
32058         (sc_prohibit_hash_pjw_without_use): Likewise.
32059         (sc_prohibit_safe_read_without_use): Likewise.
32060         (sc_prohibit_argmatch_without_use): Likewise.
32061         (sc_prohibit_canonicalize_without_use): Likewise.
32062         (sc_prohibit_root_dev_ino_without_use): Likewise.
32063         (sc_prohibit_openat_without_use): Likewise.
32064         (sc_prohibit_c_ctype_without_use): Likewise.
32065         (sc_prohibit_signal_without_use): Likewise.
32066         (sc_prohibit_intprops_without_use): Likewise.
32067
32068 2010-03-30  Eric Blake  <eblake@redhat.com>
32069
32070         maint: improve module indicators
32071         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32072         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32073         columns, and avoid extra macro expansion.
32074
32075         fdopendir: work around FreeBSD bug
32076         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32077         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32078         * modules/dirent (Makefile.am): Substitute it.
32079         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32080         declaration.
32081         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32082         fix.
32083         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32084
32085 2010-03-29  Bruno Haible  <bruno@clisp.org>
32086
32087         Emit #pragma system_header after the inclusion guard, not before.
32088         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32089         guard that spans the entire file, not before. This enables an
32090         optimization in GCC's preprocessor.
32091         * lib/ctype.in.h: Likewise.
32092         * lib/dirent.in.h: Likewise.
32093         * lib/errno.in.h: Likewise.
32094         * lib/float.in.h: Likewise.
32095         * lib/getopt.in.h: Likewise.
32096         * lib/iconv.in.h: Likewise.
32097         * lib/langinfo.in.h: Likewise.
32098         * lib/locale.in.h: Likewise.
32099         * lib/math.in.h: Likewise.
32100         * lib/netdb.in.h: Likewise.
32101         * lib/netinet_in.in.h: Likewise.
32102         * lib/pty.in.h: Likewise.
32103         * lib/sched.in.h: Likewise.
32104         * lib/se-selinux.in.h: Likewise.
32105         * lib/search.in.h: Likewise.
32106         * lib/spawn.in.h: Likewise.
32107         * lib/stdarg.in.h: Likewise.
32108         * lib/stdint.in.h: Likewise.
32109         * lib/string.in.h: Likewise.
32110         * lib/strings.in.h: Likewise.
32111         * lib/sys_file.in.h: Likewise.
32112         * lib/sys_ioctl.in.h: Likewise.
32113         * lib/sys_time.in.h: Likewise.
32114         * lib/sys_times.in.h: Likewise.
32115         * lib/sys_utsname.in.h: Likewise.
32116         * lib/sys_wait.in.h: Likewise.
32117         * lib/sysexits.in.h: Likewise.
32118         * lib/wctype.in.h: Likewise.
32119
32120 2010-03-28  James Youngman  <jay@gnu.org>
32121
32122         save-cwd: don't leak a file descriptor when the caller execs.
32123         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32124         saved file descriptor.
32125         * modules/save-cwd (Depends-on): Depend on cloexec.
32126
32127 2010-03-29  Bruno Haible  <bruno@clisp.org>
32128
32129         Remove vestiges of fts-lgpl module.
32130         * lib/fts_.h: Assume GNULIB_FTS is 1.
32131         * lib/fts.c: Likewise.
32132         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32133
32134 2010-03-28  Bruno Haible  <bruno@clisp.org>
32135
32136         Fix definition of tests witness macro.
32137         * gnulib-tool (func_import): Fix definition of witness macro.
32138
32139 2010-03-28  Bruno Haible  <bruno@clisp.org>
32140
32141         Fix ioctl's protoype on glibc systems.
32142         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32143         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32144         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32145         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32146         signature. If not, arrange to replace the ioctl function.
32147         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32148         REPLACE_IOCTL.
32149         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32150         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32151         Reported by Ludovic Courtès <ludo@gnu.org>.
32152
32153 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32154
32155         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32156         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32157         made it so grep -r --include=GLOB* ... did not work.
32158
32159 2010-03-26  Jim Meyering  <meyering@redhat.com>
32160             Eric Blake  <eblake@redhat.com>
32161
32162         maint.mk: prohibit use of test's -o and -a operators
32163         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32164
32165 2010-03-28  Bruno Haible  <bruno@clisp.org>
32166
32167         Remove unused GNULIB_XYZ macro definitions.
32168         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32169         invocation.
32170
32171 2010-03-28  Bruno Haible  <bruno@clisp.org>
32172
32173         Mark privileged tests modules.
32174         * modules/idpriv-drop-tests (Status): New section.
32175         * modules/idpriv-droptemp-tests (Status): New section.
32176
32177 2010-03-28  Bruno Haible  <bruno@clisp.org>
32178
32179         Split C++ tests into separate tests modules.
32180         * modules/dirent-c++-tests: New file, extracted from
32181         modules/dirent-tests.
32182         * modules/dirent-tests: Depend on it.
32183         * modules/fcntl-h-c++-tests: New file, extracted from
32184         modules/fcntl-h-tests.
32185         * modules/fcntl-h-tests: Depend on it.
32186         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32187         * modules/glob-tests: Depend on it.
32188         * modules/iconv-h-c++-tests: New file, extracted from
32189         modules/iconv-h-tests.
32190         * modules/iconv-h-tests: Depend on it.
32191         * modules/langinfo-c++-tests: New file, extracted from
32192         modules/langinfo-tests.
32193         * modules/langinfo-tests: Depend on it.
32194         * modules/locale-c++-tests: New file, extracted from
32195         modules/locale-tests.
32196         * modules/locale-tests: Depend on it.
32197         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32198         * modules/math-tests: Depend on it.
32199         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32200         * modules/pty-tests: Depend on it.
32201         * modules/search-c++-tests: New file, extracted from
32202         modules/search-tests.
32203         * modules/search-tests: Depend on it.
32204         * modules/signal-c++-tests: New file, extracted from
32205         modules/signal-tests.
32206         * modules/signal-tests: Depend on it.
32207         * modules/spawn-c++-tests: New file, extracted from
32208         modules/spawn-tests.
32209         * modules/spawn-tests: Depend on it.
32210         * modules/stdio-c++-tests: New file, extracted from
32211         modules/stdio-tests.
32212         * modules/stdio-tests: Depend on it.
32213         * modules/stdlib-c++-tests: New file, extracted from
32214         modules/stdlib-tests.
32215         * modules/stdlib-tests: Depend on it.
32216         * modules/string-c++-tests: New file, extracted from
32217         modules/string-tests.
32218         * modules/string-tests: Depend on it.
32219         * modules/sys_ioctl-c++-tests: New file, extracted from
32220         modules/sys_ioctl-tests.
32221         * modules/sys_ioctl-tests: Depend on it.
32222         * modules/sys_select-c++-tests: New file, extracted from
32223         modules/sys_select-tests.
32224         * modules/sys_select-tests: Depend on it.
32225         * modules/sys_socket-c++-tests: New file, extracted from
32226         modules/sys_socket-tests.
32227         * modules/sys_socket-tests: Depend on it.
32228         * modules/sys_stat-c++-tests: New file, extracted from
32229         modules/sys_stat-tests.
32230         * modules/sys_stat-tests: Depend on it.
32231         * modules/sys_time-c++-tests: New file, extracted from
32232         modules/sys_time-tests.
32233         * modules/sys_time-tests: Depend on it.
32234         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32235         * modules/time-tests: Depend on it.
32236         * modules/unistd-c++-tests: New file, extracted from
32237         modules/unistd-tests.
32238         * modules/unistd-tests: Depend on it.
32239         * modules/wchar-c++-tests: New file, extracted from
32240         modules/wchar-tests.
32241         * modules/wchar-tests: Depend on it.
32242         * modules/wctype-c++-tests: New file, extracted from
32243         modules/wctype-tests.
32244         * modules/wctype-tests: Depend on it.
32245         Reported by Simon Josefsson.
32246
32247 2010-03-28  Bruno Haible  <bruno@clisp.org>
32248
32249         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32250         * gnulib-tool (func_exists_module): New function, extracted from
32251         func_verify_module.
32252         (func_verify_module): Use it.
32253         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32254         'foo' only if 'foo' exists.
32255         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32256         module.
32257
32258 2010-03-28  Bruno Haible  <bruno@clisp.org>
32259
32260         gnulib-tool: Add support for special categories of tests.
32261         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32262         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32263         (func_usage): Document them.
32264         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32265         inc_unportable_tests, inc_all_tests): New variables.
32266         (func_acceptable): Consider these variables.
32267         (func_modules_transitive_closure): Make it work when the 'Status' field
32268         consists of multiple words.
32269         (func_import): Store and restore the values of inc_cxx_tests,
32270         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32271         inc_all_tests in gnulib-comp.m4.
32272         (func_create_testdir): Set inc_all_tests to true.
32273         * doc/gnulib.texi (Extra tests modules): New section.
32274         Suggested by Jim Meyering.
32275
32276 2010-03-28  Bruno Haible  <bruno@clisp.org>
32277
32278         ansi-c++-opt: Allow turning off the C++ build by default.
32279         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32280         gl_CXX_CHOICE_DEFAULT_NO is defined.
32281         Requested by Eric Blake.
32282
32283 2010-03-28  Bruno Haible  <bruno@clisp.org>
32284
32285         unistd: Avoid #define replacements in C++ mode.
32286         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32287         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32288         setsockopt, shutdown, select): In C++, attach a warning to the function
32289         if possible, rather than #defining the symbol to a dysfunctional alias.
32290         Reported by John W. Eaton <jwe@gnu.org>.
32291
32292 2010-03-28  Bruno Haible  <bruno@clisp.org>
32293
32294         Fix link errors on mingw.
32295         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32296         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32297         $(LIBSOCKET).
32298         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32299         $(LIBSOCKET).
32300
32301 2010-03-28  Bruno Haible  <bruno@clisp.org>
32302             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32303
32304         lib-ignore: Determine different options for different compilers.
32305         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32306         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32307         Add comments.
32308         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32309         * NEWS: Mention the change.
32310
32311 2010-03-27  Bruno Haible  <bruno@clisp.org>
32312
32313         Remove unused GNULIB_XYZ macro definitions.
32314         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32315         * modules/fseek (configure.ac): Likewise.
32316         * modules/ioctl (configure.ac): Likewise.
32317         * modules/open (configure.ac): Likewise.
32318         * modules/stdlib-safer (configure.ac): Likewise.
32319
32320 2010-03-27  Bruno Haible  <bruno@clisp.org>
32321
32322         Add a remark about certain modules.
32323         * modules/malloc (Comment): New section.
32324         * modules/realloc (Comment): Likewise.
32325         * modules/sigpipe (Comment): Likewise.
32326
32327 2010-03-27  Bruno Haible  <bruno@clisp.org>
32328
32329         Resolve conflict between the two kinds of module indicators.
32330         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32331         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32332         * modules/canonicalize (configure.ac): Invoke
32333         gl_MODULE_INDICATOR_FOR_TESTS.
32334         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32335         GNULIB_XYZ.
32336         * tests/test-dirent-c++.cc: Likewise.
32337         * tests/test-dirent-safer.c: Likewise.
32338         * tests/test-dup2.c: Likewise.
32339         * tests/test-fchdir.c: Likewise.
32340         * tests/test-fcntl-h-c++.cc: Likewise.
32341         * tests/test-getopt.c: Likewise.
32342         * tests/test-getopt.h: Likewise.
32343         * tests/test-langinfo-c++.cc: Likewise.
32344         * tests/test-locale-c++.cc: Likewise.
32345         * tests/test-math-c++.cc: Likewise.
32346         * tests/test-pty-c++.cc: Likewise.
32347         * tests/test-search-c++.cc: Likewise.
32348         * tests/test-signal-c++.cc: Likewise.
32349         * tests/test-spawn-c++.cc: Likewise.
32350         * tests/test-stdio-c++.cc: Likewise.
32351         * tests/test-stdlib-c++.cc: Likewise.
32352         * tests/test-string-c++.cc: Likewise.
32353         * tests/test-sys_ioctl-c++.cc: Likewise.
32354         * tests/test-sys_select-c++.cc: Likewise.
32355         * tests/test-sys_socket-c++.cc: Likewise.
32356         * tests/test-sys_stat-c++.cc: Likewise.
32357         * tests/test-sys_time-c++.cc: Likewise.
32358         * tests/test-time-c++.cc: Likewise.
32359         * tests/test-unistd-c++.cc: Likewise.
32360         * tests/test-wchar-c++.cc: Likewise.
32361         * tests/uninorm/test-u8-nfc.c: Likewise.
32362         * tests/uninorm/test-u8-nfd.c: Likewise.
32363         * tests/uninorm/test-u8-nfkc.c: Likewise.
32364         * tests/uninorm/test-u8-nfkd.c: Likewise.
32365         * tests/uninorm/test-u16-nfc.c: Likewise.
32366         * tests/uninorm/test-u16-nfd.c: Likewise.
32367         * tests/uninorm/test-u16-nfkc.c: Likewise.
32368         * tests/uninorm/test-u16-nfkd.c: Likewise.
32369         * tests/uninorm/test-u32-nfc.c: Likewise.
32370         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32371         * tests/uninorm/test-u32-nfd.c: Likewise.
32372         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32373         * tests/uninorm/test-u32-nfkc.c: Likewise.
32374         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32375         * tests/uninorm/test-u32-nfkd.c: Likewise.
32376         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32377         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32378
32379 2010-03-27  Bruno Haible  <bruno@clisp.org>
32380
32381         Distinguish two kinds of module indicators.
32382         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32383         gl_MODULE_INDICATOR.
32384         (gl_MODULE_INDICATOR): New macro.
32385         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32386         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32387         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32388         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32389         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32390         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32391         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32392         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32393         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32394         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32395         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32396         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32398         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32399         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32400         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32401         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32402         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32403         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32404         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32405         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32406         * modules/cloexec (configure.ac): Likewise.
32407         * modules/getopt-gnu (configure.ac): Likewise.
32408         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32409         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32410         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32411         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32412
32413 2010-03-27  Bruno Haible  <bruno@clisp.org>
32414
32415         New module description field 'Comment'.
32416         * gnulib-tool: New option --extract-comment.
32417         (func_usage): Document it.
32418         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32419         (func_get_comment): New function.
32420         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32421
32422 2010-03-27  Bruno Haible  <bruno@clisp.org>
32423
32424         Addendum to 2010-02-07 commit.
32425         * gnulib-tool (func_usage): Document --extract-applicability option.
32426
32427 2010-03-27  Bruno Haible  <bruno@clisp.org>
32428
32429         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32430         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32431         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32432         rather than link errors.
32433
32434 2010-03-27  Bruno Haible  <bruno@clisp.org>
32435
32436         Avoid side effects from tests-related modules on the compilation of lib.
32437         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32438         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32439         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32440         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32441         macro.
32442         (func_import): Define a witness macro. Assign it a value that depends
32443         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32444         tests-related modules.
32445         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32446         Reported by Jim Meyering.
32447
32448 2010-03-27  Bruno Haible  <bruno@clisp.org>
32449
32450         Factorize common .m4 code.
32451         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32452         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32453         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32454         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32455         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32456         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32457         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32458         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32459         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32460         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32461         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32462         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32463         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32464         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32465         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32466         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32467         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32468         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32470         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32471         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32472         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32473         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32474         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32475         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32476         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32477         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32478         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32479         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32480         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32481         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32482         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32483
32484 2010-03-27  Bruno Haible  <bruno@clisp.org>
32485
32486         Fix a compilation error on Cygwin with g++ >= 4.3.
32487         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32488         if it is undefined or if we alias it to chmod.
32489         (lstat): Don't warn about the use of this function if it is undefined
32490         or if we alias it to stat.
32491         Reported by Simon Josefsson.
32492
32493 2010-03-27  Bruno Haible  <bruno@clisp.org>
32494
32495         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32496         * modules/getlogin (configure.ac): Update.
32497
32498         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32499         * modules/getlogin_r (configure.ac): Update.
32500
32501         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32503         * modules/inet_ntop (configure.ac): Update.
32504
32505         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32506         * modules/inet_pton (configure.ac): Update.
32507
32508         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32509         * modules/mbslen (configure.ac): Update.
32510
32511         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32512         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32513         * modules/forkpty (configure.ac): Update.
32514         * modules/openpty (configure.ac): Update.
32515
32516 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32517
32518         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32519         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32520
32521 2010-03-25  Eric Blake  <eblake@redhat.com>
32522
32523         maint: use pragma consistently across replacement headers
32524         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32525         * lib/dirent.in.h (system_header): Likewise.
32526         * lib/errno.in.h (system_header): Likewise.
32527         * lib/float.in.h (system_header): Likewise.
32528         * lib/getopt.in.h (system_header): Likewise.
32529         * lib/iconv.in.h (system_header): Likewise.
32530         * lib/inttypes.in.h (system_header): Likewise.
32531         * lib/langinfo.in.h (system_header): Likewise.
32532         * lib/locale.in.h (system_header): Likewise.
32533         * lib/math.in.h (system_header): Likewise.
32534         * lib/netdb.in.h (system_header): Likewise.
32535         * lib/netinet_in.in.h (system_header): Likewise.
32536         * lib/pty.in.h (system_header): Likewise.
32537         * lib/sched.in.h (system_header): Likewise.
32538         * lib/se-selinux.in.h (system_header): Likewise.
32539         * lib/search.in.h (system_header): Likewise.
32540         * lib/spawn.in.h (system_header): Likewise.
32541         * lib/stdarg.in.h (system_header): Likewise.
32542         * lib/stdint.in.h (system_header): Likewise.
32543         * lib/string.in.h (system_header): Likewise.
32544         * lib/strings.in.h (system_header): Likewise.
32545         * lib/sys_file.in.h (system_header): Likewise.
32546         * lib/sys_ioctl.in.h (system_header): Likewise.
32547         * lib/sys_socket.in.h (system_header): Likewise.
32548         * lib/sys_times.in.h (system_header): Likewise.
32549         * lib/sys_utsname.in.h (system_header): Likewise.
32550         * lib/sys_wait.in.h (system_header): Likewise.
32551         * lib/sysexits.in.h (system_header): Likewise.
32552         * lib/unistd.in.h (system_header): Likewise.
32553         * lib/wctype.in.h (system_header): Likewise.
32554
32555         arpa/inet: fix mingw compilation warning
32556         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32557         Reported by Matthew Bolte.
32558
32559 2010-03-25  Bruno Haible  <bruno@clisp.org>
32560
32561         Avoid collision between gnulib wrapper and libintl wrapper.
32562         * lib/printf.c (printf): Don't define if a printf wrapper is already
32563         defined in intl/printf.c.
32564         Reported by Michel Boaventura <michel@michelboaventura.com>.
32565
32566 2010-03-25  Bruno Haible  <bruno@clisp.org>
32567
32568         Use ANSI C.
32569         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32570
32571 2010-03-25  Bruno Haible  <bruno@clisp.org>
32572
32573         Minor formatting changes.
32574         * lib/acosl.c: Insert space before function argument list.
32575         * lib/argz.c: Likewise.
32576         * lib/asinl.c: Likewise.
32577         * lib/expl.c: Likewise.
32578         * lib/gen-uni-tables.c: Likewise.
32579         * lib/gettext.h: Likewise.
32580         * lib/glthread/lock.h: Likewise.
32581         * lib/tanl.c: Likewise.
32582         * lib/uniname/uniname.c: Likewise.
32583         * tests/test-idpriv-drop.c: Likewise.
32584         * tests/test-idpriv-droptemp.c: Likewise.
32585         * tests/test-lock.c: Likewise.
32586         * tests/test-tls.c: Likewise.
32587         * lib/argp-help.c: Insert space before function-like macro argument
32588         list.
32589         * lib/memcmp.c: Likewise.
32590         * tests/test-base64.c: Likewise.
32591         * lib/localename.c: Insert space before sizeof's argument list.
32592         * lib/safe-alloc.h: Likewise.
32593         * lib/file-set.h: Insert space before macro argument list.
32594         * tests/test-argp.c: Likewise.
32595         * lib/argp-namefrob.h: Insert space before function parameter list.
32596         * lib/getaddrinfo.c: Likewise.
32597         * lib/netdb.in.h: Likewise.
32598         * lib/parse-duration.h: Likewise.
32599         * lib/parse-duration.c: Likewise.
32600         * lib/poll.c: Likewise.
32601         * lib/select.c: Likewise.
32602         * lib/trim.h: Likewise.
32603         * tests/test-usleep.c: Likewise.
32604         * lib/ldexpl.c: Insert space before function parameter list and before
32605         function argument list.
32606         * lib/logl.c: Likewise.
32607         * lib/sqrtl.c: Likewise.
32608         * lib/trim.c: Likewise.
32609         * lib/cosl.c: Use GNU style indentation. Insert space before function
32610         argument list.
32611         * lib/sinl.c: Likewise.
32612         * lib/tsearch.c: Insert space after 'for'.
32613         Reported by Jim Meyering.
32614
32615 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32616
32617         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32618         config header before grepping, as it's not present before
32619         autoreconf/configure are run.  Reported by Simon Josefsson.
32620
32621 2010-03-23  Bruno Haible  <bruno@clisp.org>
32622
32623         pt_chown: Make it work with automake < 1.11.
32624         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32625         Reported by Simon Josefsson.
32626
32627 2010-03-23  Bruno Haible  <bruno@clisp.org>
32628
32629         pt_chown: Don't depend on GPLed modules.
32630         * lib/pt_chown.c: Don't include idpriv.h.
32631         (main): Don't drop privileges.
32632         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32633         Reported by Simon Josefsson.
32634
32635 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32636
32637         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32638         suggestions from karl@freefriends.org (Karl Berry).
32639
32640 2010-03-22  Eric Blake  <eblake@redhat.com>
32641
32642         gethostname: further tweaks
32643         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32644         are overriding gethostname.
32645         Suggested by Bruno Haible.
32646
32647 2010-03-21  Bruno Haible  <bruno@clisp.org>
32648
32649         Fix comments.
32650         * lib/forkpty.c (rpl_forkpty): Fix comment.
32651         * lib/openpty.c (rpl_openpty): Likewise.
32652         Reported by Eric Blake.
32653
32654 2010-03-22  Eric Blake  <eblake@redhat.com>
32655
32656         gethostname: fix build on mingw
32657         * lib/unistd.in.h (includes): Work around fact that mingw
32658         <winsock2.h> re-includes <unistd.h>, by avoiding any
32659         redeclarations if we are being included by <winsock2.h>.
32660         Reported by Matthias Bolte.
32661
32662 2010-03-21  Bruno Haible  <bruno@clisp.org>
32663
32664         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32665         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32666         modifications.
32667         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32668         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32669         provide the replacement.
32670         * modules/forkpty (Depends-on): Add openpty, login_tty.
32671         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32672         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32673         * doc/glibc-functions/forkpty.texi: More supported platforms.
32674         * config/srclist.txt: Add forkpty.c (commented).
32675
32676 2010-03-21  Bruno Haible  <bruno@clisp.org>
32677
32678         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32679         (Makefile.am): Verify that PTY_LIB is defined.
32680
32681         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32682
32683 2010-03-21  Bruno Haible  <bruno@clisp.org>
32684
32685         Tests for module 'login_tty'.
32686         * modules/login_tty-tests: New file.
32687         * tests/test-login_tty.c: New file.
32688
32689         New module 'login_tty'.
32690         * lib/login_tty.c: New file.
32691         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32692         * modules/login_tty: New file.
32693         * doc/glibc-functions/login_tty.texi: Mention the new module.
32694
32695 2010-03-21  Bruno Haible  <bruno@clisp.org>
32696
32697         login_tty: Documentation.
32698         * doc/glibc-functions/login_tty.texi: New file.
32699         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32700
32701 2010-03-21  Bruno Haible  <bruno@clisp.org>
32702
32703         pty: Consistent macro naming.
32704         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32705         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32706         * modules/pty (configure.ac): Update.
32707
32708 2010-03-21  Bruno Haible  <bruno@clisp.org>
32709
32710         Tests for openpty: Make stricter.
32711         * tests/test-openpty.c (main): Add test of canonical processing and
32712         erase.
32713         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32714
32715         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32716         * lib/openpty.c (openpty): New replacement function.
32717         * lib/pty.in.h: Include <termios.h>.
32718         (openpty): Update declaration. Add comments.
32719         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32720         is not declared, arrange to provide the replacement. Check for _getpty
32721         and posix_openpt.
32722         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32723         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32724         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32725         * modules/pty-tests (test_pty_c___LDADD): New variable.
32726         * doc/glibc-functions/openpty.texi: More supported platforms.
32727
32728 2010-03-21  Bruno Haible  <bruno@clisp.org>
32729
32730         setenv: Tweaks.
32731         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32732         the test program.
32733         * doc/posix-functions/setenv.texi: Update platforms list.
32734
32735 2010-03-21  Bruno Haible  <bruno@clisp.org>
32736
32737         New module 'unlockpt'.
32738         * lib/unlockpt.c: New file, from glibc with modifications.
32739         * m4/unlockpt.m4: New file.
32740         * modules/unlockpt: New file.
32741         * lib/stdlib.in.h (unlockpt): New declaration.
32742         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32743         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32744         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32745         HAVE_UNLOCKPT.
32746         * doc/posix-functions/unlockpt.texi: Mention the new module.
32747         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32748         * config/srclist.txt: Add unlockpt.c (commented).
32749
32750 2010-03-21  Jim Meyering  <meyering@redhat.com>
32751
32752         maint.mk: prohibit inclusion of "intprops.h" without use
32753         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32754
32755 2010-03-21  Bruno Haible  <bruno@clisp.org>
32756
32757         New module 'grantpt'.
32758         * lib/grantpt.c: New file, from glibc with modifications.
32759         * m4/grantpt.m4: New file.
32760         * modules/grantpt: New file.
32761         * lib/stdlib.in.h (grantpt): New declaration.
32762         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32763         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32764         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32765         HAVE_GRANTPT.
32766         * doc/posix-functions/grantpt.texi: Mention the new module.
32767         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32768         * config/srclist.txt: Add grantpt.c (commented).
32769
32770 2010-03-21  Bruno Haible  <bruno@clisp.org>
32771
32772         New module 'pt_chown'.
32773         * lib/pt_chown.c: New file, from glibc with modifications.
32774         * lib/pty-private.h: New file, from glibc with modifications.
32775         * modules/pt_chown: New file.
32776         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32777
32778 2010-03-21  Bruno Haible  <bruno@clisp.org>
32779
32780         Tests for module 'ptsname'.
32781         * modules/ptsname-tests: New file.
32782         * tests/test-ptsname.c: New file.
32783
32784         New module 'ptsname'.
32785         * lib/ptsname.c: New file, from glibc with modifications.
32786         * m4/ptsname.m4: New file.
32787         * modules/ptsname: New file.
32788         * lib/stdlib.in.h (ptsname): New declaration.
32789         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32790         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32791         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32792         HAVE_PTSNAME.
32793         * doc/posix-functions/ptsname.texi: Mention the new module.
32794         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32795         * config/srclist.txt: Add ptsname.c (commented).
32796
32797 2010-03-21  Bruno Haible  <bruno@clisp.org>
32798
32799         Tests for module 'ttyname_r'.
32800         * modules/ttyname_r-tests: New file.
32801         * tests/test-ttyname_r.c: New file.
32802
32803         New module 'ttyname_r'.
32804         * lib/ttyname_r.c: New file.
32805         * m4/ttyname_r.m4: New file.
32806         * modules/ttyname_r: New file.
32807         * lib/unistd.in.h (ttyname_r): New declaration.
32808         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32809         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32810         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32811         HAVE_TTYNAME_R.
32812         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32813         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32814
32815 2010-03-20  Bruno Haible  <bruno@clisp.org>
32816
32817         signal: Undefine macro definitions in C++ mode.
32818         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32819         sigfillset): Undefine macro definitions from the system header in C++
32820         mode.
32821         Reported by John W. Eaton <jwe@gnu.org>.
32822
32823 2010-03-20  Bruno Haible  <bruno@clisp.org>
32824
32825         Ensure no #include statements inside extern "C" { ... }.
32826         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32827         contain #include statements.
32828         * lib/time.in.h: Likewise.
32829
32830 2010-03-20  Bruno Haible  <bruno@clisp.org>
32831
32832         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32833         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32834         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32835         Reported by John W. Eaton <jwe@gnu.org>.
32836
32837 2010-03-20  Bruno Haible  <bruno@clisp.org>
32838
32839         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32840         Reported by Jim Meyering.
32841
32842 2010-03-20  Bruno Haible  <bruno@clisp.org>
32843
32844         pipe: Set errno upon failure.
32845         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32846         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32847         errno value in error message.
32848
32849 2010-03-20  Bruno Haible  <bruno@clisp.org>
32850             Jim Meyering  <meyering@redhat.com>
32851
32852         lchown: Avoid "unused variable" warning.
32853         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32854
32855 2010-03-20  Bruno Haible  <bruno@clisp.org>
32856
32857         Work around unlink() bug on MacOS X 10.5.6.
32858         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32859         attempting to unlink a parent directory.
32860         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32861         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32862         activate for the replacement function.
32863         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32864
32865 2010-03-20  Bruno Haible  <bruno@clisp.org>
32866
32867         Fix link errors on Solaris 8.
32868         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32869         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32870
32871 2010-03-19  Jim Meyering  <meyering@redhat.com>
32872
32873         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32874         The _LIBC implementation of build_range_exp correctly honors the
32875         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32876         However, the non-_LIBC implementation would ignore that syntax-bit
32877         flag and return REG_ERANGE unconditionally.
32878         This change makes it honor that flag.
32879         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32880         Make two pointer parameters "const".
32881         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32882         (parse_bracket_exp): Update caller.
32883
32884         regex.m4: correct the reversed range endpoint ([b-a]) test
32885         * m4/regex.m4: When requiring that [b-a] evoke failure,
32886         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32887         test pass once again for x86-based systems.
32888
32889 2010-03-19  Bruno Haible  <bruno@clisp.org>
32890
32891         scandir: Fix link error on Solaris 8.
32892         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32893         macros.
32894
32895 2010-03-19  Bruno Haible  <bruno@clisp.org>
32896
32897         getusershell: Fix documentation.
32898         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32899         module.
32900         * doc/glibc-functions/setusershell.texi: Likewise.
32901
32902         getusershell: Provide declaration, missing on Solaris 9.
32903         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32904         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32905         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32906         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32908         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32909         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32910         HAVE_GETUSERSHELL.
32911         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32912
32913 2010-03-19  Bruno Haible  <bruno@clisp.org>
32914
32915         wctype: Provide iswblank function.
32916         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32917         exists and is fine.
32918         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32919         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32920         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32921         * doc/posix-functions/iswblank.texi: Update.
32922
32923 2010-03-19  Bruno Haible  <bruno@clisp.org>
32924
32925         Tests of module 'pty' in C++ mode.
32926         * modules/pty-tests: New file.
32927         * tests/test-pty-c++.cc: New file.
32928         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32929
32930 2010-03-19  Eric Blake  <eblake@redhat.com>
32931
32932         logb: fix documentation
32933         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32934         1.5 declaration bug.
32935
32936         forkpty, openpty: prefer glibc's const-safe prototype
32937         * lib/forkpty.c (rpl_forkpty): New file.
32938         * lib/openpty.c (rpl_openpty): Likewise.
32939         * modules/forkpty (Files): Distribute it.
32940         * modules/openpty (Files): Likewise.
32941         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32942         check...
32943         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32944         replacement for for non-const BSD signature.
32945         * modules/pty (Makefile.am): Substitute witnesses.
32946         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32947         * tests/test-forkpty.c: Update signature check.
32948         * tests/test-openpty.c: Likewise.
32949         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32950         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32951
32952         forkpty, openpty: split functions into new modules
32953         * modules/pty (Makefile.am): Substitute new witnesses.
32954         (Libraries): Move library detection...
32955         * modules/forkpty: ...into new module.
32956         * modules/openpty: Another new module.
32957         * modules/pty-tests: Rename and split...
32958         * modules/forkpty-tests: ...to this...
32959         * modules/openpty-tests: ...and this.
32960         * tests/test-pty.c: Rename and split...
32961         * tests/test-forkpty.c: ...to this...
32962         * tests/test-openpty.c: ...and this.
32963         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32964         (gl_PTY): Split library searching...
32965         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32966         (gl_FORKPTY, gl_OPENPTY): New macros.
32967         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32968         * NEWS: Mention the split.
32969         * MODULES.html.sh (Misc): Document the modules.
32970         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32971         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32972
32973         pty: improve replacement header
32974         * lib/pty.in.h: New file.
32975         * modules/pty (Files): Ship it.
32976         (Makefile.am): Always build replacement.
32977         * m4/pty.m4: Rename...
32978         * m4/pty_h.m4: ...to this.
32979         (gl_PTY): Modernize setting of witness macros; update check of
32980         forkpty to take proper advantage of cache.
32981         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32982
32983         getopt: avoid compiler warning
32984         * lib/getopt.c (attribute_hidden): Remove unused macro.
32985
32986 2010-03-18  Bruno Haible  <bruno@clisp.org>
32987
32988         Fix link errors on Solaris 8.
32989         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32990         * modules/search-tests (test_search_c___LDADD): Likewise.
32991         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32992         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32993         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32994         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32995         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32996         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32997         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32998
32999 2010-03-18  Bruno Haible  <bruno@clisp.org>
33000
33001         Fix bug introduced on 2010-03-14.
33002         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33003         (gl_SPAWN_H): Require it.
33004         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33005         Reported by Simon Josefsson.
33006
33007 2010-03-18  Bruno Haible  <bruno@clisp.org>
33008
33009         Fix typo introduced on 2009-12-31.
33010         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33011         posix_spawn_file_actions_adddup2.
33012
33013 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33014         and Eric Blake  <eblake@redhat.com>
33015
33016         test-vc-list-files-git: make more robust
33017         * tests/test-vc-list-files-git.sh: Unset problematic environment
33018         variables.  Chain commands together.
33019
33020 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33021
33022         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33023         `AC_CHECK_DECL' invocation.
33024
33025 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33026
33027         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33028         appears before executable statements. Suggested by Petr Sumbera
33029         <Petr.Sumbera@Sun.COM>.
33030
33031 2010-03-14  Bruno Haible  <bruno@clisp.org>
33032
33033         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33034         portability problems. Instead use a simpler test.
33035         (main): Check that invalid arguments are rejected only on Linux.
33036
33037 2010-03-14  Bruno Haible  <bruno@clisp.org>
33038
33039         Fix bug introduced on 2009-12-31.
33040         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33041         gl_PREREQ_SYS_H_WINSOCK2 always.
33042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33043         SYS_SOCKET_H variable.
33044         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33045         Update comments.
33046         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33047         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33048         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33049         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33050         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33051
33052 2010-03-14  Bruno Haible  <bruno@clisp.org>
33053
33054         Fix values returned by sinl, cosl.
33055         * lib/trigl.h: Add specification comments.
33056         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33057         that combines the values from the precomputed table with the values of
33058         the Chebyshev polynomials.
33059
33060 2010-03-14  Bruno Haible  <bruno@clisp.org>
33061
33062         Fix compilation error when modules 'posix_spawn[p]' are not used.
33063         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33064         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33065
33066 2010-03-14  Bruno Haible  <bruno@clisp.org>
33067
33068         Fix compilation error on mingw when module 'time_r' is not used.
33069         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33070         is 1.
33071         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33072         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33073         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33074         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33075
33076 2010-03-14  Bruno Haible  <bruno@clisp.org>
33077
33078         Fix compilation error with Sun C.
33079         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33080         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33081         instead of GCC specific ULONG_LONG_MAX.
33082         * lib/xstrtoll.c: Likewise.
33083         * lib/xstrtoull.c: Likewise.
33084
33085 2010-03-13  Bruno Haible  <bruno@clisp.org>
33086
33087         Allow the user to disable C++ code and tests.
33088         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33089         (gl_PROG_ANSI_CXX): Require it.
33090
33091 2010-03-13  Bruno Haible  <bruno@clisp.org>
33092
33093         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33094         cases.
33095
33096 2010-03-13  Bruno Haible  <bruno@clisp.org>
33097
33098         Test that gnulib does not break the standard C++ headers.
33099         * tests/test-locale-c++2.cc: New file.
33100         * modules/locale-tests (Files): Add it.
33101         (Makefile.am): Compile it for test-locale-c++.
33102         * tests/test-math-c++2.cc: New file.
33103         * modules/math-tests (Files): Add it.
33104         (Makefile.am): Compile it for test-math-c++.
33105         * tests/test-signal-c++2.cc: New file.
33106         * modules/signal-tests (Files): Add it.
33107         (Makefile.am): Compile it for test-signal-c++.
33108         * tests/test-stdio-c++2.cc: New file.
33109         * modules/stdio-tests (Files): Add it.
33110         (Makefile.am): Compile it for test-stdio-c++.
33111         * tests/test-stdlib-c++2.cc: New file.
33112         * modules/stdlib-tests (Files): Add it.
33113         (Makefile.am): Compile it for test-stdlib-c++.
33114         * tests/test-string-c++2.cc: New file.
33115         * modules/string-tests (Files): Add it.
33116         (Makefile.am): Compile it for test-string-c++.
33117         * tests/test-time-c++2.cc: New file.
33118         * modules/time-tests (Files): Add it.
33119         (Makefile.am): Compile it for test-time-c++.
33120         Reported by John W. Eaton <jwe@gnu.org>.
33121
33122 2010-03-13  Bruno Haible  <bruno@clisp.org>
33123
33124         * gnulib-tool (func_usage): Clarify which options are available for
33125         --create-testdir and --create-megatestdir.
33126
33127 2010-03-13  Bruno Haible  <bruno@clisp.org>
33128
33129         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33130         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33131         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33132         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33133         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33134         when appropriate.
33135         Reported by Jim Meyering.
33136
33137 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33138
33139         * gnulib-tool (func_import): Explain origin of code.
33140
33141 2010-03-12  Bruno Haible  <bruno@clisp.org>
33142
33143         Fix problem with automake's definition of CXXLINK.
33144         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33145         Reported by Simon Josefsson and Ludovic Courtès.
33146
33147 2010-03-12  Bruno Haible  <bruno@clisp.org>
33148
33149         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33150         stable releases.
33151
33152 2010-03-11  Bruno Haible  <bruno@clisp.org>
33153
33154         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33155         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33156         whether the system provides one variant or multiple variants of the
33157         function.
33158         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33159         C++ compilers.
33160         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33161         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33162         Reported by Jim Meyering.
33163
33164 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33165
33166         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33167
33168 2010-03-08  Bruno Haible  <bruno@clisp.org>
33169
33170         gnulib-tool: Add support for --libtool in --create-testdir.
33171         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33172         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33173
33174 2010-03-08  Eric Blake  <eblake@redhat.com>
33175
33176         gnulib-tool.texi: mention possibility of git submodule
33177         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33178         submodules.
33179         * doc/.gitignore: Ignore another generated file.
33180
33181 2010-03-08  Karl Berry  <karl@gnu.org>
33182
33183         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33184         of committing gnulib files while skipping others.
33185
33186 2010-03-07  Bruno Haible  <bruno@clisp.org>
33187
33188         Tests of module 'wctype' in C++ mode.
33189         * tests/test-wctype-c++.cc: New file.
33190         * modules/wctype-tests (Files): Add it and tests/signature.h.
33191         (Depends-on): Add ansi-c++-opt.
33192         (Makefile.am): Arrange to compile and run test-wctype-c++.
33193
33194         Tests of module 'wchar' in C++ mode.
33195         * tests/test-wchar-c++.cc: New file.
33196         * modules/wchar-tests (Files): Add it and tests/signature.h.
33197         (Depends-on): Add ansi-c++-opt.
33198         (Makefile.am): Arrange to compile and run test-wchar-c++.
33199         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33200         gl_MODULE_INDICATOR.
33201
33202         Tests of module 'unistd' in C++ mode.
33203         * tests/test-unistd-c++.cc: New file.
33204         * modules/unistd-tests (Files): Add it and tests/signature.h.
33205         (Depends-on): Add ansi-c++-opt.
33206         (Makefile.am): Arrange to compile and run test-unistd-c++.
33207         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33208         gl_MODULE_INDICATOR.
33209
33210         Tests of module 'time' in C++ mode.
33211         * tests/test-time-c++.cc: New file.
33212         * modules/time-tests (Files): Add it and tests/signature.h.
33213         (Depends-on): Add ansi-c++-opt.
33214         (Makefile.am): Arrange to compile and run test-time-c++.
33215         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33216
33217         Tests of module 'sys_time' in C++ mode.
33218         * tests/test-sys_time-c++.cc: New file.
33219         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33220         (Depends-on): Add ansi-c++-opt.
33221         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33222         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33223         gl_MODULE_INDICATOR.
33224
33225         Tests of module 'sys_stat' in C++ mode.
33226         * tests/test-sys_stat-c++.cc: New file.
33227         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33228         (Depends-on): Add ansi-c++-opt.
33229         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33230         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33231         gl_MODULE_INDICATOR.
33232
33233         Tests of module 'sys_socket' in C++ mode.
33234         * tests/test-sys_socket-c++.cc: New file.
33235         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33236         (Depends-on): Add ansi-c++-opt.
33237         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33238         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33239         gl_MODULE_INDICATOR.
33240
33241         Tests of module 'sys_select' in C++ mode.
33242         * tests/test-sys_select-c++.cc: New file.
33243         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33244         (Depends-on): Add ansi-c++-opt.
33245         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33246         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33247         gl_MODULE_INDICATOR.
33248
33249         Tests of module 'sys_ioctl' in C++ mode.
33250         * tests/test-sys_ioctl-c++.cc: New file.
33251         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33252         (Depends-on): Add ansi-c++-opt.
33253         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33254         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33255         gl_MODULE_INDICATOR.
33256
33257         Tests of module 'string' in C++ mode.
33258         * tests/test-string-c++.cc: New file.
33259         * modules/string-tests (Files): Add it and tests/signature.h.
33260         (Depends-on): Add ansi-c++-opt.
33261         (Makefile.am): Arrange to compile and run test-string-c++.
33262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33263         gl_MODULE_INDICATOR.
33264
33265         Tests of module 'stdlib' in C++ mode.
33266         * tests/test-stdlib-c++.cc: New file.
33267         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33268         (Depends-on): Add ansi-c++-opt.
33269         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33270         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33271         gl_MODULE_INDICATOR.
33272
33273         Tests of module 'stdio' in C++ mode.
33274         * tests/test-stdio-c++.cc: New file.
33275         * modules/stdio-tests (Files): Add it and tests/signature.h.
33276         (Depends-on): Add ansi-c++-opt.
33277         (Makefile.am): Arrange to compile and run test-stdio-c++.
33278         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33279         gl_MODULE_INDICATOR.
33280
33281         Tests of module 'spawn' in C++ mode.
33282         * tests/test-spawn-c++.cc: New file.
33283         * modules/spawn-tests (Files): Add it and tests/signature.h.
33284         (Depends-on): Add ansi-c++-opt.
33285         (Makefile.am): Arrange to compile and run test-spawn-c++.
33286         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33287         gl_MODULE_INDICATOR.
33288
33289         Tests of module 'signal' in C++ mode.
33290         * tests/test-signal-c++.cc: New file.
33291         * modules/signal-tests (Files): Add it and tests/signature.h.
33292         (Depends-on): Add ansi-c++-opt.
33293         (Makefile.am): Arrange to compile and run test-signal-c++.
33294         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33295         gl_MODULE_INDICATOR.
33296
33297         Tests of module 'search' in C++ mode.
33298         * tests/test-search-c++.cc: New file.
33299         * modules/search-tests (Files): Add it and tests/signature.h.
33300         (Depends-on): Add ansi-c++-opt.
33301         (Makefile.am): Arrange to compile and run test-search-c++.
33302         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33303         gl_MODULE_INDICATOR.
33304
33305         Tests of module 'math' in C++ mode.
33306         * tests/test-math-c++.cc: New file.
33307         * modules/math-tests (Files): Add it and tests/signature.h.
33308         (Depends-on): Add ansi-c++-opt.
33309         (Makefile.am): Arrange to compile and run test-math-c++.
33310         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33311
33312         Tests of module 'locale' in C++ mode.
33313         * tests/test-locale-c++.cc: New file.
33314         * modules/locale-tests (Files): Add it and tests/signature.h.
33315         (Depends-on): Add ansi-c++-opt.
33316         (Makefile.am): Arrange to compile and run test-locale-c++.
33317         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33318         gl_MODULE_INDICATOR.
33319
33320         Tests of module 'langinfo' in C++ mode.
33321         * tests/test-langinfo-c++.cc: New file.
33322         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33323         (Depends-on): Add ansi-c++-opt.
33324         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33325         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33326         gl_MODULE_INDICATOR.
33327
33328         Tests of module 'iconv-h' in C++ mode.
33329         * tests/test-iconv-h-c++.cc: New file.
33330         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33331         (Depends-on): Add ansi-c++-opt.
33332         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33333
33334         Tests of module 'glob' in C++ mode.
33335         * tests/test-glob-c++.cc: New file.
33336         * modules/glob-tests (Files): Add it.
33337         (Depends-on): Add ansi-c++-opt.
33338         (Makefile.am): Arrange to compile and run test-glob-c++.
33339
33340         Tests of module 'fcntl-h' in C++ mode.
33341         * tests/test-fcntl-h-c++.cc: New file.
33342         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33343         (Depends-on): Add ansi-c++-opt.
33344         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33345         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33346         gl_MODULE_INDICATOR.
33347
33348         Tests of module 'dirent' in C++ mode.
33349         * tests/test-dirent-c++.cc: New file.
33350         * modules/dirent-tests (Files): Add it and tests/signature.h.
33351         (Depends-on): Add ansi-c++-opt.
33352         (Makefile.am): Arrange to compile and run test-dirent-c++.
33353         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33354         gl_MODULE_INDICATOR.
33355
33356         New module 'ansi-c++-opt'.
33357         * modules/ansi-c++-opt: New file.
33358         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33359
33360         Document C++ namespace mode.
33361         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33362
33363         wctype: Avoid #define replacements in C++ mode.
33364         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33365         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33366         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33367         In C++, define a namespaced alias symbol.
33368         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33369         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33370         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33371         rule.
33372
33373         wchar: Avoid #define replacements in C++ mode.
33374         * lib/wchar.in.h: Include c++defs.h.
33375         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33376         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33377         symbol.
33378         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33379         * modules/wchar (Depends-on): Add c++defs.
33380         (Makefile.am): Update wchar.h rule.
33381
33382         unistd: Avoid #define replacements in C++ mode.
33383         * lib/unistd.in.h: Include c++defs.h.
33384         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33385         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33386         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33387         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33388         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33389         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33390         symbol.
33391         (environ): Update.
33392         * modules/unistd (Depends-on): Add c++defs.
33393         (Makefile.am): Update unistd.h rule.
33394
33395         time: Avoid #define replacements in C++ mode.
33396         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33397         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33398         define a namespaced alias symbol.
33399         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33400         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33401         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33402         * modules/time (Depends-on): Add c++defs, warn-on-use.
33403         (Makefile.am): Update time.h rule.
33404         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33405         * modules/nanosleep (configure.ac): Likewise.
33406         * modules/strptime (configure.ac): Likewise.
33407         * modules/timegm (configure.ac): Likewise.
33408
33409         sys_time: Avoid #define replacements in C++ mode.
33410         * lib/sys_time.in.h: Include c++defs.h.
33411         (gettimeofday): In C++, define a namespaced alias symbol.
33412         * modules/sys_time (Depends-on): Add c++defs.
33413         (Makefile.am): Update sys/time.h rule.
33414
33415         sys_stat: Avoid #define replacements in C++ mode.
33416         * lib/sys_stat.in.h: Include c++defs.h.
33417         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33418         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33419         namespaced alias symbol.
33420         In C++, define a namespaced alias symbol.
33421         * modules/sys_stat (Depends-on): Add c++defs.
33422         (Makefile.am): Update sys/stat.h rule.
33423
33424         sys_socket: Avoid #define replacements in C++ mode.
33425         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33426         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33427         definitions also when the system has a <sys/socket.h>.
33428         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33429         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33430         In C++, define a namespaced alias symbol.
33431         * modules/sys_socket (Depends-on): Add c++defs.
33432         (Makefile.am): Update sys/socket.h rule.
33433
33434         sys_select: Avoid #define replacements in C++ mode.
33435         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33436         definitions also when the system has a <sys/select.h>.
33437         (select): In C++, define a namespaced alias symbol.
33438         * modules/sys_select (Depends-on): Add c++defs.
33439         (Makefile.am): Update sys/select.h rule.
33440
33441         sys_ioctl: Avoid #define replacements in C++ mode.
33442         * lib/sys_ioctl.in.h: Include c++defs.h.
33443         (ioctl): In C++, define a namespaced alias symbol.
33444         * modules/sys_ioctl (Depends-on): Add c++defs.
33445         (Makefile.am): Update sys/ioctl.h rule.
33446
33447         string: Avoid #define replacements in C++ mode.
33448         * lib/string.in.h: Include c++defs.h.
33449         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33450         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33451         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33452         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33453         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33454         * modules/string (Depends-on): Add c++defs.
33455         (Makefile.am): Update string.h rule.
33456
33457         stdlib: Avoid #define replacements in C++ mode.
33458         * lib/stdlib.in.h: Include c++defs.h.
33459         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33460         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33461         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33462         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33463         symbol.
33464         * modules/stdlib (Depends-on): Add c++defs.
33465         (Makefile.am): Update stdlib.h rule.
33466
33467         stdio: Avoid #define replacements in C++ mode.
33468         * lib/stdio.in.h: Include c++defs.h.
33469         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33470         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33471         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33472         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33473         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33474         namespaced alias symbol.
33475         * modules/stdio (Depends-on): Add c++defs.
33476         (Makefile.am): Update stdio.h rule.
33477
33478         spawn: Avoid #define replacements in C++ mode.
33479         * lib/spawn.in.h: Include c++defs.h.
33480         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33481         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33482         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33483         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33484         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33485         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33486         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33487         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33488         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33489         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33490         In C++, define a namespaced alias symbol.
33491         * modules/spawn (Depends-on): Add c++defs.
33492         (Makefile.am): Update spawn.h rule.
33493
33494         signal: Avoid #define replacements in C++ mode.
33495         * lib/signal.in.h: Include c++defs.h.
33496         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33497         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33498         namespaced alias symbol.
33499         * modules/signal (Depends-on): Add c++defs.
33500         (Makefile.am): Update signal.h rule.
33501
33502         search: Avoid #define replacements in C++ mode.
33503         * lib/search.in.h: Include c++defs.h.
33504         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33505         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33506         symbol.
33507         * modules/search (Depends-on): Add c++defs.
33508         (Makefile.am): Update search.h rule.
33509
33510         math: Avoid #define replacements in C++ mode.
33511         * lib/math.in.h: Include c++defs.h.
33512         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33513         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33514         trunc, truncl): In C++, define a namespaced alias symbol.
33515         * modules/math (Depends-on): Add c++defs.
33516         (Makefile.am): Update math.h rule.
33517
33518         locale: Avoid #define replacements in C++ mode.
33519         * lib/locale.in.h: Include c++defs.h.
33520         (duplocale): In C++, define a namespaced alias symbol.
33521         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33522         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33523         * modules/locale (Depends-on): Add c++defs.
33524         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33525
33526         langinfo: Avoid #define replacements in C++ mode.
33527         * lib/langinfo.in.h: Include c++defs.h.
33528         (nl_langinfo): In C++, define a namespaced alias symbol.
33529         * modules/langinfo (Depends-on): Add c++defs.
33530         (Makefile.am): Update langinfo.h rule.
33531
33532         iconv-h: Avoid #define replacements in C++ mode.
33533         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33534         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33535         symbol.
33536         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33537         whenever iconv is present.
33538         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33539         (Makefile.am): Update iconv.h rule.
33540
33541         glob: Avoid #define replacements in C++ mode.
33542         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33543         (_gl_glob_errfunc_fn): New type.
33544         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33545         symbol.
33546         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33547         (Makefile.am): Update glob.h rule.
33548
33549         fcntl-h: Avoid #define replacements in C++ mode.
33550         * lib/fcntl.in.h: Include c++defs.h.
33551         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33552         * modules/fcntl-h (Depends-on): Add c++defs.
33553         (Makefile.am): Update fcntl.h rule.
33554
33555         dirent: Avoid #define replacements in C++ mode.
33556         * lib/dirent.in.h: Include c++defs.h.
33557         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33558         namespaced alias symbol.
33559         (dirfd): Update declaration.
33560         * modules/dirent (Depends-on): Add c++defs.
33561         (Makefile.am): Update dirent.h rule.
33562
33563         ctype: Make it usable in C++ code.
33564         * lib/ctype.in.h: Include c++defs.h.
33565         (isblank): Declare as extern "C".
33566         * modules/ctype (Depends-on): Add c++defs.
33567         (Makefile.am): Update ctype.h rule.
33568
33569         New module 'c++defs'.
33570         * modules/c++defs: New file.
33571         * build-aux/c++defs.h: New file.
33572         Reported by John W. Eaton <jwe@gnu.org>.
33573
33574 2010-03-07  Bruno Haible  <bruno@clisp.org>
33575
33576         logb: Provide missing declaration for Cygwin.
33577         * lib/math.in.h (logb): New declaration.
33578         * m4/logb.m4: New file.
33579         * modules/logb (Files): Add m4/logb.m4.
33580         (Depends-on): Add math.
33581         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33582         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33584         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33585         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33586
33587 2010-03-07  Bruno Haible  <bruno@clisp.org>
33588
33589         Fix test-cond link error.
33590         * tests/test-cond.c: Include <stdio.h>.
33591
33592 2010-03-07  Bruno Haible  <bruno@clisp.org>
33593
33594         Fix test-dirent-safer link error.
33595         * modules/dirent-safer-tests (Makefile.am): Define
33596         test_dirent_safer_LDADD.
33597
33598 2010-03-07  Bruno Haible  <bruno@clisp.org>
33599
33600         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33601         among default module list.
33602
33603 2010-03-07  Bruno Haible  <bruno@clisp.org>
33604
33605         Fix link error on platforms with GNU libiconv.
33606         * modules/unistr/u8-strcoll-tests (Makefile): Define
33607         test_u8_strcoll_LDADD.
33608         * modules/unistr/u16-strcoll-tests (Makefile): Define
33609         test_u16_strcoll_LDADD.
33610         * modules/unistr/u32-strcoll-tests (Makefile): Define
33611         test_u32_strcoll_LDADD.
33612
33613 2010-03-07  Bruno Haible  <bruno@clisp.org>
33614
33615         Use POSIX declarations for socket functions.
33616         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33617         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33618         rpl_sendto): Change declaration to match POSIX.
33619         * lib/connect.c (rpl_connect): Likewise.
33620         * lib/accept.c (rpl_accept): Likewise.
33621         * lib/bind.c (rpl_bind): Likewise.
33622         * lib/getpeername.c (rpl_getpeername): Likewise.
33623         * lib/getsockname.c (rpl_getsockname): Likewise.
33624         * lib/recv.c (rpl_recv): Likewise.
33625         * lib/send.c (rpl_send): Likewise.
33626         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33627         * lib/sendto.c (rpl_sendto): Likewise.
33628
33629 2010-03-06  Bruno Haible  <bruno@clisp.org>
33630
33631         Clarify access, euidaccess, faccessat.
33632         * doc/posix-functions/faccessat.texi: Mention security problem under
33633         "Other problems", not "Portability problems".
33634         * doc/posix-functions/access.texi: Likewise. Mention a related security
33635         problem.
33636         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33637         * lib/euidaccess.c: Add comments about platforms.
33638         * lib/unistd.in.h (access, euidaccess): Add warnings.
33639
33640 2010-03-07  Bruno Haible  <bruno@clisp.org>
33641
33642         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33643         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33644         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33645         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33646         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33647         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33648         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33649         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33650         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33651         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33652         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33653         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33654         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33655         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33656         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33657         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33658         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33659         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33660         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33661         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33662         Likewise.
33663         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33664         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33665         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33666         Likewise.
33667         * tests/test-spawn.c (main): Make it work when
33668         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33669
33670 2010-03-07  Bruno Haible  <bruno@clisp.org>
33671
33672         Fix incorrect Makefile.am generation in German locale.
33673         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33674         Execute sed command with character range in C locale.
33675
33676 2010-03-06  Bruno Haible  <bruno@clisp.org>
33677
33678         Tests for module 'iconv-h'.
33679         * modules/iconv-h-tests: New file.
33680         * tests/test-iconv-h.c: New file.
33681
33682         New module 'iconv-h'.
33683         * modules/iconv-h: New file.
33684         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33685         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33686         (configure.ac): Remove gl_ICONV_H.
33687         (Makefile.am): Remove rule for iconv.h.
33688
33689 2010-03-06  Bruno Haible  <bruno@clisp.org>
33690
33691         More consistent naming of *.m4 files.
33692         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33693         * modules/wctype (Files): Update.
33694
33695         More consistent naming of *.m4 files.
33696         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33697         * modules/wchar (Files): Update.
33698
33699 2010-03-06  Jim Meyering  <meyering@redhat.com>
33700
33701         euidaccess: relax license to LGPLv2+
33702         * modules/euidaccess (License): Relax to LGPLv2+.
33703
33704 2010-03-06  Bruno Haible  <bruno@clisp.org>
33705
33706         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33707         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33708         (Makefile.am): Augment lib_SOURCES instead.
33709
33710 2010-03-04  Jim Meyering  <meyering@redhat.com>
33711
33712         utime: remove obsolete module
33713         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33714         unnecessary for years, and has been marked as obsolete for 10 months.
33715         * modules/utime: Remove file.
33716         * lib/utime.c: Remove file.
33717         * m4/utime.m4: Remove file.
33718         * m4/utimes-null.m4: Remove file.
33719         * doc/posix-functions/utime.texi (utime): Remove reference to
33720         the module.  Move the sole "fixed by gnulib" item into the
33721         "problems not fixed by Gnulib" list.
33722         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33723
33724 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33725
33726         * modules/exit (License): Relax license to LGPLv2+.
33727         (Status): Mark as obsolete.
33728         * NEWS: Mention deprecated 'exit' module.
33729         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33730         of now obsolete 'exit'.
33731
33732 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33733
33734         fts-lgpl: remove unused module
33735         * modules/fts-lgpl: Remove.
33736         * MODULES.html.sh (func_all_modules): Adjust.
33737         * check-module (find_included_lib_files): Adjust.
33738         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33739
33740 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33741
33742         copy-acl: enhance Solaris ACL error handling
33743         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33744         * lib/set-mode-acl.c (qset_acl): Likewise.
33745
33746 2010-03-02  Bruno Haible  <bruno@clisp.org>
33747
33748         spawn: Don't override the system defined values on FreeBSD 8.
33749         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33750         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33751         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33752         if HAVE_POSIX_SPAWN is 1.
33753         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33754
33755 2010-03-01  Bruno Haible  <bruno@clisp.org>
33756
33757         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33758         regarding Automake.
33759
33760 2010-02-25  Bruno Haible  <bruno@clisp.org>
33761
33762         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33763         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33764         setting, not afterwards.
33765         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33766
33767 2010-02-24  Eric Blake  <eblake@redhat.com>
33768
33769         bootstrap, git-version-gen: use timestamp
33770         * build-aux/git-version-gen (scriptversion): Force UTC.
33771         * build-aux/bootstrap (scriptversion): New variable.
33772
33773         bootstrap: allow older git
33774         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33775         older than 1.6.4.  Requested by the libvirt project.
33776
33777 2010-02-23  Eric Blake  <eblake@redhat.com>
33778
33779         warn-on-use: work with old autoconf
33780         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33781         AS_VAR semantics of autoconf 2.60.
33782         Reported by Bruno Haible.
33783
33784         bootstrap: improve some comments
33785         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33786         clarification comments.
33787
33788         gettimeofday: provide correct function
33789         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33790         when replacement is declared, otherwise provide gettimeofday.
33791         Reported by Michael Goffioul.
33792
33793 2010-02-23  Jim Meyering  <meyering@redhat.com>
33794
33795         lib-ignore: relax license to "unlimited", not LGPLv2+
33796         * modules/lib-ignore (License): Relax to "unlimited".
33797
33798 2010-02-23  Jim Meyering  <meyering@redhat.com>
33799
33800         lib-ignore: relax license to LGPLv2+
33801         * modules/lib-ignore (License): Relax to LGPLv2+.
33802
33803 2010-02-22  Eric Blake  <eblake@redhat.com>
33804
33805         lseek: avoid bash 3.2 broken pipe bug
33806         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33807         warning from bash 3.2.
33808         Reported by Ben Pfaff, with analysis from Bruno Haible.
33809
33810         bootstrap: support non-FSF copyright holder
33811         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33812         bootstrap.conf override of COPYRIGHT_HOLDER.
33813         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33814
33815         bootstrap: interoperate with gettext 0.14.1
33816         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33817
33818         bootstrap: allow for alternate submodule location
33819         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33820         hardcoding submodule location.
33821         (gnulib_mk): Allow direct use of Makefile.am.
33822
33823         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33824         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33825         rather than reconfiguring where the submodule points.
33826
33827         gettimeofday: restore support for platforms that lack function
33828         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33829         replacement if function is missing.
33830         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33831         * modules/sys_time (Makefile.am): Substitute it.
33832         * lib/sys_time.in.h (gettimeofday): Check it.
33833         Reported by Michael Goffioul.
33834
33835 2010-02-21  Bruno Haible  <bruno@clisp.org>
33836
33837         * lib/stdio.in.h (obstack_printf): Fix typo.
33838
33839 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33840
33841         vc-list-files: use bzr ls's -R option
33842         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33843         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33844
33845 2010-02-21  Jim Meyering  <meyering@redhat.com>
33846
33847         init.sh: fix EXEEXT shims to work also for names like test-prog
33848         * tests/init.sh: Re-exec a better shell, when needed.
33849         If the current shell lacks support for posix $(...), an init.sh-using
33850         test will now try to find a shell that supports that.  If EXEEXT is
33851         nonempty, we also require support for hyphen-in-alias-name and shell
33852         substitutions like ${var#glob}.  Failure to find such a shell results
33853         in a skipped test.
33854
33855 2010-02-21  Bruno Haible  <bruno@clisp.org>
33856
33857         Really work around around "broken pipe" error message from bash 3.2.
33858         * gnulib-tool (func_reset_sigpipe): Remove function.
33859         (echo): In bash 3.2, define to a function that uses printf.
33860         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33861
33862 2010-02-20  Bruno Haible  <bruno@clisp.org>
33863
33864         Restore support for automake 1.9.6 with autoconf 2.61.
33865         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33866         Reported by James Youngman <jay@gnu.org>.
33867
33868 2010-02-20  Bruno Haible  <bruno@clisp.org>
33869
33870         Improve *printf warning condition.
33871         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33872         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33873         and the function is overridden due to SIGPIPE emulation.
33874
33875 2010-02-20  Bruno Haible  <bruno@clisp.org>
33876
33877         * lib/stdio.in.h: Tweak comments.
33878
33879 2010-02-19  Bruno Haible  <bruno@clisp.org>
33880
33881         Make it easier to find modules. New gnulib-tool option '--find'.
33882         * gnulib-tool: New option --find.
33883         (func_usage): Document it.
33884         (func_sanitize_modulelist): New function, extracted from
33885         func_all_modules.
33886         (func_all_modules): Invoke it.
33887         * doc/gnulib-tool.texi (Which modules?): New node.
33888
33889 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33890
33891         * lib/sys_select.in.h: Provide select replacement even if
33892         sys/select.h exists on a system, for Interix.
33893
33894 2010-02-18  Jim Meyering  <meyering@redhat.com>
33895
33896         init.sh: don't use $(...) just yet
33897         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33898         to accommodate e.g., Solaris' /bin/sh.
33899
33900 2010-02-17  Bruno Haible  <bruno@clisp.org>
33901
33902         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33903         Reported by Ludovic Courtès <ludo@gnu.org>.
33904
33905 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33906
33907         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33908         linking with -lintl.
33909
33910 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33911
33912         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33913         if not provided by the system's netdb.h.  Reported by
33914         ludo@gnu.org (Ludovic Courtès).
33915
33916 2010-02-15  Jim Meyering  <meyering@redhat.com>
33917
33918         init.sh: improve portability and efficiency
33919         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33920         "dummy" in a for loop.
33921         Use '!', not '^' to select the complement of a character set used
33922         in a "case" statement.
33923         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33924         Suggestions from Eric Blake.
33925
33926         init.sh: automatically accommodate programs with the .exe suffix
33927         Automatically arrange for an invocation of "prog" to execute the
33928         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33929         may use the simpler "prog", yet still work when built on a system
33930         that requires specifying the added suffix.
33931         Do this by constructing a function named "prog" that invokes
33932         "prog.exe" for each .exe file in selected directories.
33933         * tests/init.sh (find_exe_basenames_): New function.
33934         (create_exe_shim_functions_): New function.
33935         (path_prepend_): Use it.
33936
33937         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33938         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33939         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33940
33941 2010-02-14  Jim Meyering  <meyering@redhat.com>
33942
33943         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33944         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33945         (sc_prohibit_hash_pjw_without_use): New rule.
33946
33947         maint.mk: allow the default upload destination dir to be overridden
33948         * top/maint.mk (upload_dest_dir_): Define with a default that
33949         preserves the status quo.
33950         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33951         Reported by Peter Simons.
33952
33953         maint.mk: prohibit inclusion of "hash.h" without_use
33954         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33955
33956 2010-02-10  Jim Meyering  <meyering@redhat.com>
33957
33958         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33959         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33960
33961 2010-02-09  Eric Blake  <ebb9@byu.net>
33962         and Bruno Haible  <bruno@clisp.org>
33963
33964         obstack-printf-posix: ensure declaration
33965         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33966         extracted from gl_FUNC_OBSTACK_PRINTF.
33967         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33968         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33969         Likewise.
33970         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33971         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33972         0.
33973
33974 2010-02-08  Bruno Haible  <bruno@clisp.org>
33975
33976         gnulib-tool: Fix typo in 2010-02-07 commit.
33977         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33978         Reported by Eric Blake.
33979
33980 2010-02-07  Bruno Haible  <bruno@clisp.org>
33981
33982         gnulib-tool: Fix up caching patches.
33983         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33984         option --no-cache. Use associative arrays when supported by the shell.
33985         (sed_comments): New variable.
33986         (modcache): Renamed from do_cache.
33987         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33988         abbreviate unnecessarily.
33989         (have_associative): New variable.
33990         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33991         way also for ksh and zsh.
33992         (func_init_sed_convert_to_cache_statements): New function, extracted
33993         from func_cache_lookup_module. Add support for associative arrays.
33994         Don't set the c_MODULE_cached variable here. Ignore all lines before
33995         the first field header. Remove only the final newline, not all trailing
33996         newlines. Support empty fields correctly. Limit the use of 'eval' to
33997         assignments.
33998         (func_get_description, func_get_status, func_get_notice,
33999         func_get_applicability, func_get_filelist, func_get_dependencies,
34000         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34001         func_get_automake_snippet, func_get_include_directive,
34002         func_get_link_directive, func_get_license, func_get_maintainer):
34003         Update documentation. List the unoptimized code first. Add support for
34004         associative arrays. Limit the use of 'eval' to assignments.
34005         (func_get_applicability): Undo stylistic pessimisations.
34006         (func_get_automake_snippet, func_get_include_directive): Reduce code
34007         duplication.
34008         (func_modules_transitive_closure, func_modules_add_dummy,
34009         func_modules_notice, func_modules_to_filelist, func_add_file,
34010         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34011         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34012         func_create_testdir, func_create_megatestdir): Update documentation.
34013
34014 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34015
34016         * gnulib-tool (func_cache_lookup_module): Store the module name
34017         belonging to the cache variable; error out if two different
34018         module names map to the same cache variable name.
34019
34020 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34021
34022         gnulib-tool: Make caching optional.
34023         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34024         Update matching short versions of --no-changelog.
34025         (func_usage): Update.
34026         (sed_extract_cache_prog): Renamed from ...
34027         (sed_extract_prog): ... this; revert to old extraction script.
34028         (func_get_description, func_get_status)
34029         (func_get_notice, func_get_applicability, func_get_filelist)
34030         (func_get_dependencies, func_get_autoconf_early_snippet)
34031         (func_get_autoconf_snippet, func_get_automake_snippet)
34032         (func_get_include_directive, func_get_link_directive)
34033         (func_get_license, func_get_maintainer): If $do_cache is false,
34034         use old, non-caching extraction scripts.
34035         Suggestion by Bruno Haible.
34036
34037 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34038
34039         gnulib-tool: cache module metainformation.
34040         * gnulib-tool (sed_extract_prog): Match newline before each
34041         header, and rewrite header to a shell variable suffix.
34042         (func_cache_var, func_cache_lookup_module): New functions,
34043         to turn a module name into a cache variable prefix, and to
34044         look up and cache module metainformation.
34045         (func_get_description, func_get_status)
34046         (func_get_notice, func_get_applicability, func_get_filelist)
34047         (func_get_dependencies, func_get_autoconf_early_snippet)
34048         (func_get_autoconf_snippet, func_get_automake_snippet)
34049         (func_get_include_directive, func_get_link_directive)
34050         (func_get_license, func_get_maintainer): Use
34051         func_cache_lookup_module.
34052
34053 2010-02-07  Bruno Haible  <bruno@clisp.org>
34054
34055         fnctl: Fix missing dependency.
34056         * modules/fcntl (Depends-on): Add getdtablesize.
34057         Reported by John W. Eaton <jwe@gnu.org>.
34058
34059 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34060
34061         Argp: fix recognition of short alias options.
34062
34063         * lib/argp-parse.c (convert_options): Fix improper use of
34064         `|' between character values.
34065         * tests/test-argp.c (group1_option): New alias option
34066         --read (-r).
34067         (group1_parser): Special handling for 'r'.
34068         (test15): New test case.
34069         (test_fun): Add test15.
34070         * tests/test-argp-2.sh: Update expected --help and --usage
34071         outputs.
34072
34073 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34074
34075         * tests/test-argp.c: Fix indentation.
34076
34077 2010-02-04  Eric Blake  <ebb9@byu.net>
34078
34079         gettimeofday: expose type of second argument
34080         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34081         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34082         * tests/test-gettimeofday.c: Use it to silence warning.
34083         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34084         the issue.
34085
34086 2010-02-03  Jim Meyering  <meyering@redhat.com>
34087
34088         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34089         * lib/regcomp.c (TYPE_SIGNED): Define.
34090         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34091
34092         regcomp.c: avoid a new -Wshadow warning
34093         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34094
34095 2010-02-01  Jim Meyering  <meyering@redhat.com>
34096
34097         removing useless parentheses in cpp #define directives
34098         For motivation, see commit c0221df4, "define STREQ(a,b)
34099         consistently, removing useless parentheses"
34100         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34101         * lib/mountlist.c (MNT_IGNORE): Likewise.
34102         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34103
34104 2010-02-01  Eric Blake  <ebb9@byu.net>
34105
34106         sys_time: use link-warning
34107         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34108         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34109         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34110         * modules/sys_time (Depends-on): Add warn-on-use.
34111         (Makefile.am): Always build replacement.
34112         (configure.ac): Update substitutions.
34113         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34114         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34115         bother with SYS_TIME_H.
34116         * modules/gettimeofday (configure.ac): Declare indicator.
34117         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34118         in use.
34119
34120         closein-tests: silence compiler warning
34121         * tests/test-closein.c (main): Ignore fread result.
34122         * modules/closein-tests (Depends-on): Add ignore-value.
34123
34124         tests: silence warning about system return
34125         * tests/test-areadlink-with-size.c (main): Ignore system result.
34126         * tests/test-areadlink.c (main): Likewise.
34127         * tests/test-areadlinkat-with-size.c (main): Likewise.
34128         * tests/test-areadlinkat.c (main): Likewise.
34129         * tests/test-canonicalize-lgpl.c (main): Likewise.
34130         * tests/test-canonicalize.c (main): Likewise.
34131         * tests/test-chown.c (main): Likewise.
34132         * tests/test-fchownat.c (main): Likewise.
34133         * tests/test-fdutimensat.c (main): Likewise.
34134         * tests/test-fstatat.c (main): Likewise.
34135         * tests/test-futimens.c (main): Likewise.
34136         * tests/test-lchown.c (main): Likewise.
34137         * tests/test-link.c (main): Likewise.
34138         * tests/test-linkat.c (main): Likewise.
34139         * tests/test-lstat.c (main): Likewise.
34140         * tests/test-mkdir.c (main): Likewise.
34141         * tests/test-mkdirat.c (main): Likewise.
34142         * tests/test-mkfifo.c (main): Likewise.
34143         * tests/test-mkfifoat.c (main): Likewise.
34144         * tests/test-mknod.c (main): Likewise.
34145         * tests/test-readlink.c (main): Likewise.
34146         * tests/test-remove.c (main): Likewise.
34147         * tests/test-rename.c (main): Likewise.
34148         * tests/test-renameat.c (main): Likewise.
34149         * tests/test-rmdir.c (main): Likewise.
34150         * tests/test-symlink.c (main): Likewise.
34151         * tests/test-symlinkat.c (main): Likewise.
34152         * tests/test-unlink.c (main): Likewise.
34153         * tests/test-unlinkat.c (main): Likewise.
34154         * tests/test-utimens.c (main): Likewise.
34155         * tests/test-utimensat.c (main): Likewise.
34156         * modules/areadlink-tests (Depends-on): Add ignore-value.
34157         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34158         * modules/areadlinkat-tests (Depends-on): Likewise.
34159         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34160         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34161         * modules/canonicalize-tests (Depends-on): Likewise.
34162         * modules/chown-tests (Depends-on): Likewise.
34163         * modules/fdutimensat-tests (Depends-on): Likewise.
34164         * modules/futimens-tests (Depends-on): Likewise.
34165         * modules/lchown-tests (Depends-on): Likewise.
34166         * modules/link-tests (Depends-on): Likewise.
34167         * modules/linkat-tests (Depends-on): Likewise.
34168         * modules/lstat-tests (Depends-on): Likewise.
34169         * modules/mkdir-tests (Depends-on): Likewise.
34170         * modules/mkfifo-tests (Depends-on): Likewise.
34171         * modules/mkfifoat-tests (Depends-on): Likewise.
34172         * modules/mknod-tests (Depends-on): Likewise.
34173         * modules/openat-tests (Depends-on): Likewise.
34174         * modules/readlink-tests (Depends-on): Likewise.
34175         * modules/remove-tests (Depends-on): Likewise.
34176         * modules/rename-tests (Depends-on): Likewise.
34177         * modules/renameat-tests (Depends-on): Likewise.
34178         * modules/rmdir-tests (Depends-on): Likewise.
34179         * modules/symlink-tests (Depends-on): Likewise.
34180         * modules/symlinkat-tests (Depends-on): Likewise.
34181         * modules/unlink-tests (Depends-on): Likewise.
34182         * modules/utimens-tests (Depends-on): Likewise.
34183         * modules/utimensat-tests (Depends-on): Likewise.
34184
34185 2010-01-31  Bruno Haible  <bruno@clisp.org>
34186
34187         Perform the same test for many <math.h> functions.
34188         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34189         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34190         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34191         of gl_MATHFUNC.
34192         * modules/acos (configure.ac): Likewise.
34193         * modules/asin (configure.ac): Likewise.
34194         * modules/atan (configure.ac): Likewise.
34195         * modules/atan2 (configure.ac): Likewise.
34196         * modules/cbrt (configure.ac): Likewise.
34197         * modules/copysign (configure.ac): Likewise.
34198         * modules/cos (configure.ac): Likewise.
34199         * modules/cosh (configure.ac): Likewise.
34200         * modules/erf (configure.ac): Likewise.
34201         * modules/erfc (configure.ac): Likewise.
34202         * modules/exp (configure.ac): Likewise.
34203         * modules/fmod (configure.ac): Likewise.
34204         * modules/hypot (configure.ac): Likewise.
34205         * modules/j0 (configure.ac): Likewise.
34206         * modules/j1 (configure.ac): Likewise.
34207         * modules/jn (configure.ac): Likewise.
34208         * modules/lgamma (configure.ac): Likewise.
34209         * modules/log (configure.ac): Likewise.
34210         * modules/log10 (configure.ac): Likewise.
34211         * modules/log1p (configure.ac): Likewise.
34212         * modules/pow (configure.ac): Likewise.
34213         * modules/remainder (configure.ac): Likewise.
34214         * modules/sin (configure.ac): Likewise.
34215         * modules/sinh (configure.ac): Likewise.
34216         * modules/tan (configure.ac): Likewise.
34217         * modules/tanh (configure.ac): Likewise.
34218         * modules/y0 (configure.ac): Likewise.
34219         * modules/y1 (configure.ac): Likewise.
34220         * modules/yn (configure.ac): Likewise.
34221         Suggested by Paolo Bonzini.
34222
34223 2010-01-31  Bruno Haible  <bruno@clisp.org>
34224
34225         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34226
34227 2010-01-31  Bruno Haible  <bruno@clisp.org>
34228
34229         Work around getdelim() bug on FreeBSD 8.0.
34230         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34231         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34232         not work.
34233         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34234         is 1.
34235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34236         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34237         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34238         a non-zero size.
34239         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34240
34241 2010-01-31  Bruno Haible  <bruno@clisp.org>
34242
34243         Work around getline() bug on FreeBSD 8.0.
34244         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34245         and a non-zero size.
34246         * tests/test-getline.c (main): Likewise.
34247         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34248         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34249
34250 2010-01-28  Eric Blake  <ebb9@byu.net>
34251
34252         regex: fix build failure
34253         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34254         platforms.
34255
34256 2010-01-28  Jim Meyering  <meyering@redhat.com>
34257
34258         regex: do not ignore memory allocation failure
34259         * lib/regex_internal.c (create_cd_newstate): Detect
34260         re_node_set_init_copy failure.   Extracted from glibc commit
34261         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34262
34263         regex: sync more white-space changes from libc
34264         * lib/regex_internal.c: White-space only changes.
34265         * lib/regexec.c: Likewise.
34266
34267         regex: add many uses of __attribute_warn_unused_result__
34268         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34269         * lib/regexec.c: Likewise.
34270         Extracted from a messy glibc commit.
34271
34272         regcomp.c: spelling and merge-artifact from glibc
34273         * lib/regcomp.c: Merge remainder of glibc's
34274         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34275
34276         regcomp.c: sync white-space changes from glibc
34277         * lib/regcomp.c: Merge to accommodate white space
34278         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34279
34280         regcomp.c: do not ignore internal return values
34281         * lib/regcomp.c: Do not ignore internal return values.
34282         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34283         but without its white-space changes and spelling fixes.
34284
34285         regex_internal.h: define __attribute_warn_unused_result__
34286         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34287
34288         maint: add a syntax-check rule to check for vulnerable Makefile.in
34289         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34290
34291 2010-01-27  Jim Meyering  <meyering@redhat.com>
34292
34293         ncftpput-ftp: clean up spaces
34294         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34295         Remove trailing blanks.
34296
34297 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34298
34299         * build-aux/git-version-gen: Fix copyright statement.
34300         * build-aux/gnupload: Likewise.
34301         * tests/test-arcfour.c: Likewise.
34302         * tests/test-arctwo.c: Likewise.
34303         * tests/test-count-one-bits.c: Likewise.
34304         * tests/test-crc.c: Likewise.
34305         * tests/test-des.c: Likewise.
34306         * tests/test-gc-arcfour.c: Likewise.
34307         * tests/test-gc-arctwo.c: Likewise.
34308         * tests/test-gc-des.c: Likewise.
34309         * tests/test-gc-hmac-md5.c: Likewise.
34310         * tests/test-gc-hmac-sha1.c: Likewise.
34311         * tests/test-gc-md2.c: Likewise.
34312         * tests/test-gc-md4.c: Likewise.
34313         * tests/test-gc-md5.c: Likewise.
34314         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34315         * tests/test-gc-rijndael.c: Likewise.
34316         * tests/test-gc-sha1.c: Likewise.
34317         * tests/test-gc.c: Likewise.
34318         * tests/test-gethostname.c: Likewise.
34319         * tests/test-gettimeofday.c: Likewise.
34320         * tests/test-hash.c: Likewise.
34321         * tests/test-hmac-md5.c: Likewise.
34322         * tests/test-hmac-sha1.c: Likewise.
34323         * tests/test-md2.c: Likewise.
34324         * tests/test-md4.c: Likewise.
34325         * tests/test-md5.c: Likewise.
34326         * tests/test-memchr.c: Likewise.
34327         * tests/test-memchr2.c: Likewise.
34328         * tests/test-memcmp.c: Likewise.
34329         * tests/test-memmem.c: Likewise.
34330         * tests/test-memrchr.c: Likewise.
34331         * tests/test-rawmemchr.c: Likewise.
34332         * tests/test-read-file.c: Likewise.
34333         * tests/test-rijndael.c: Likewise.
34334         * tests/test-sockets.c: Likewise.
34335         * tests/test-strchrnul.c: Likewise.
34336         * tests/test-strstr.c: Likewise.
34337         * tests/test-strtod.c: Likewise.
34338         * build-aux/ncftpput-ftp: Likewise.
34339
34340 2010-01-26  Eric Blake  <ebb9@byu.net>
34341
34342         ignore-value: update recommended header name
34343         * modules/ignore-value (Include): Only use <> for headers that
34344         exist in glibc.
34345
34346 2010-01-26  Jim Meyering  <meyering@redhat.com>
34347
34348         test-userspec.c: avoid compiler warnings
34349         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34350         and "initialization discards qualifiers..." warnings.
34351         Put the first "uid" in its own scope, and make char* members "const".
34352
34353 2010-01-25  Bruno Haible  <bruno@clisp.org>
34354
34355         gnulib-tool: Make warning diagnostics consistent.
34356         * gnulib-tool (func_warning): New function.
34357         Use it everywhere where gnulib-tool produces output to stderr and it is
34358         not a fatal error.
34359
34360 2010-01-25  Bruno Haible  <bruno@clisp.org>
34361
34362         Fix test dependencies.
34363         * modules/xstrtol-tests (Depends-on): Add inttypes.
34364         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34365
34366 2010-01-25 Pádraig Brady <P@draigBrady.com>
34367
34368         syntax-check: detect incorrect boolean macro values in config.h
34369         * modules/maintainer-makefile (configure.ac): Parameterize the location
34370         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34371         The logic is from Eric Blake and the location indicated by Jim Meyering.
34372         Note the more natural CONFIG_HEADER name is prohibited by automake
34373         for backwards compatibility reasons.
34374         * top/maint.mk (sc_Wundef_boolean): New rule.
34375
34376 2010-01-25  Jim Meyering  <meyering@redhat.com>
34377
34378         bootstrap: detect MacOS 10.6's shasum, too
34379         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34380         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34381
34382 2010-01-23  Jim Meyering  <meyering@redhat.com>
34383
34384         xstrtoll: new module
34385         * modules/xstrtoll: New file.
34386         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34387         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34388         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34389         ./configure fails if you use this module and lack "long long".
34390         * modules/xstrtoll-tests: New module.
34391         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34392         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34393         new init.sh-based test framework.
34394
34395 2010-01-24  Bruno Haible  <bruno@clisp.org>
34396
34397         Tests for module 'yn'.
34398         * modules/yn-tests: New file.
34399         * tests/test-yn.c: New file.
34400
34401         Tests for module 'y1'.
34402         * modules/y1-tests: New file.
34403         * tests/test-y1.c: New file.
34404
34405         Tests for module 'y0'.
34406         * modules/y0-tests: New file.
34407         * tests/test-y0.c: New file.
34408
34409         Tests for module 'tanh'.
34410         * modules/tanh-tests: New file.
34411         * tests/test-tanh.c: New file.
34412
34413         Tests for module 'tan'.
34414         * modules/tan-tests: New file.
34415         * tests/test-tan.c: New file.
34416
34417         Tests for module 'sqrt'.
34418         * modules/sqrt-tests: New file.
34419         * tests/test-sqrt.c: New file.
34420
34421         Tests for module 'sinh'.
34422         * modules/sinh-tests: New file.
34423         * tests/test-sinh.c: New file.
34424
34425         Tests for module 'sin'.
34426         * modules/sin-tests: New file.
34427         * tests/test-sin.c: New file.
34428
34429         Tests for module 'rint'.
34430         * modules/rint-tests: New file.
34431         * tests/test-rint.c: New file.
34432
34433         Tests for module 'remainder'.
34434         * modules/remainder-tests: New file.
34435         * tests/test-remainder.c: New file.
34436
34437         Tests for module 'pow'.
34438         * modules/pow-tests: New file.
34439         * tests/test-pow.c: New file.
34440
34441         Tests for module 'nextafter'.
34442         * modules/nextafter-tests: New file.
34443         * tests/test-nextafter.c: New file.
34444
34445         Tests for module 'modf'.
34446         * modules/modf-tests: New file.
34447         * tests/test-modf.c: New file.
34448
34449         Tests for module 'logb'.
34450         * modules/logb-tests: New file.
34451         * tests/test-logb.c: New file.
34452
34453         Tests for module 'log1p'.
34454         * modules/log1p-tests: New file.
34455         * tests/test-log1p.c: New file.
34456
34457         Tests for module 'log10'.
34458         * modules/log10-tests: New file.
34459         * tests/test-log10.c: New file.
34460
34461         Tests for module 'log'.
34462         * modules/log-tests: New file.
34463         * tests/test-log.c: New file.
34464
34465         Tests for module 'lgamma'.
34466         * modules/lgamma-tests: New file.
34467         * tests/test-lgamma.c: New file.
34468
34469         Tests for module 'ldexp'.
34470         * modules/ldexp-tests: New file.
34471         * tests/test-ldexp.c: New file.
34472
34473         Tests for module 'jn'.
34474         * modules/jn-tests: New file.
34475         * tests/test-jn.c: New file.
34476
34477         Tests for module 'j1'.
34478         * modules/j1-tests: New file.
34479         * tests/test-j1.c: New file.
34480
34481         Tests for module 'j0'.
34482         * modules/j0-tests: New file.
34483         * tests/test-j0.c: New file.
34484
34485         Tests for module 'hypot'.
34486         * modules/hypot-tests: New file.
34487         * tests/test-hypot.c: New file.
34488
34489         Tests for module 'fmod'.
34490         * modules/fmod-tests: New file.
34491         * tests/test-fmod.c: New file.
34492
34493         Tests for module 'fabs'.
34494         * modules/fabs-tests: New file.
34495         * tests/test-fabs.c: New file.
34496
34497         Tests for module 'exp'.
34498         * modules/exp-tests: New file.
34499         * tests/test-exp.c: New file.
34500
34501         Tests for module 'erfc'.
34502         * modules/erfc-tests: New file.
34503         * tests/test-erfc.c: New file.
34504
34505         Tests for module 'erf'.
34506         * modules/erf-tests: New file.
34507         * tests/test-erf.c: New file.
34508
34509         Tests for module 'cosh'.
34510         * modules/cosh-tests: New file.
34511         * tests/test-cosh.c: New file.
34512
34513         Tests for module 'cos'.
34514         * modules/cos-tests: New file.
34515         * tests/test-cos.c: New file.
34516
34517         Tests for module 'copysign'.
34518         * modules/copysign-tests: New file.
34519         * tests/test-copysign.c: New file.
34520
34521         Tests for module 'cbrt'.
34522         * modules/cbrt-tests: New file.
34523         * tests/test-cbrt.c: New file.
34524
34525         Tests for module 'atan2'.
34526         * modules/atan2-tests: New file.
34527         * tests/test-atan2.c: New file.
34528
34529         Tests for module 'atan'.
34530         * modules/atan-tests: New file.
34531         * tests/test-atan.c: New file.
34532
34533         Tests for module 'asin'.
34534         * modules/asin-tests: New file.
34535         * tests/test-asin.c: New file.
34536
34537         Tests for module 'acos'.
34538         * modules/acos-tests: New file.
34539         * tests/test-acos.c: New file.
34540
34541 2010-01-24  Bruno Haible  <bruno@clisp.org>
34542
34543         Fix tests for common <math.h> functions.
34544         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34545         code snippet that references the function pointer, rather than merely
34546         calling the function. Substitute the FUNC_LIBM variable.
34547         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34548         * modules/acos (configure.ac): Likewise.
34549         * modules/asin (configure.ac): Likewise.
34550         * modules/atan (configure.ac): Likewise.
34551         * modules/atan2 (configure.ac): Likewise.
34552         * modules/cbrt (configure.ac): Likewise.
34553         * modules/copysign (configure.ac): Likewise.
34554         * modules/cos (configure.ac): Likewise.
34555         * modules/cosh (configure.ac): Likewise.
34556         * modules/erf (configure.ac): Likewise.
34557         * modules/erfc (configure.ac): Likewise.
34558         * modules/exp (configure.ac): Likewise.
34559         * modules/fabs (configure.ac): Likewise.
34560         * modules/fmod (configure.ac): Likewise.
34561         * modules/hypot (configure.ac): Likewise.
34562         * modules/j0 (configure.ac): Likewise.
34563         * modules/j1 (configure.ac): Likewise.
34564         * modules/jn (configure.ac): Likewise.
34565         * modules/ldexp (configure.ac): Likewise.
34566         * modules/lgamma (configure.ac): Likewise.
34567         * modules/log (configure.ac): Likewise.
34568         * modules/log10 (configure.ac): Likewise.
34569         * modules/log1p (configure.ac): Likewise.
34570         * modules/logb (configure.ac): Likewise.
34571         * modules/modf (configure.ac): Likewise.
34572         * modules/nextafter (configure.ac): Likewise.
34573         * modules/pow (configure.ac): Likewise.
34574         * modules/remainder (configure.ac): Likewise.
34575         * modules/rint (configure.ac): Likewise.
34576         * modules/sin (configure.ac): Likewise.
34577         * modules/sinh (configure.ac): Likewise.
34578         * modules/tan (configure.ac): Likewise.
34579         * modules/tanh (configure.ac): Likewise.
34580         * modules/y0 (configure.ac): Likewise.
34581         * modules/y1 (configure.ac): Likewise.
34582         * modules/yn (configure.ac): Likewise.
34583
34584 2010-01-24  Bruno Haible  <bruno@clisp.org>
34585
34586         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34587         * tests/test-acosl.c (x): New variable.
34588         (main): Store argument in x and fetch it from x.
34589         * tests/test-asinl.c (x): New variable.
34590         (main): Store argument in x and fetch it from x.
34591         * tests/test-atanl.c (x): New variable.
34592         (main): Store argument in x and fetch it from x.
34593         * tests/test-cosl.c (x): New variable.
34594         (main): Store argument in x and fetch it from x.
34595         * tests/test-expl.c (x): New variable.
34596         (main): Store argument in x and fetch it from x.
34597         * tests/test-logl.c (x): New variable.
34598         (main): Store argument in x and fetch it from x.
34599         * tests/test-sinl.c (x): New variable.
34600         (main): Store argument in x and fetch it from x.
34601         * tests/test-sqrtl.c (x): New variable.
34602         (main): Store argument in x and fetch it from x.
34603         * tests/test-tanl.c (x): New variable.
34604         (main): Store argument in x and fetch it from x.
34605
34606 2010-01-24  Bruno Haible  <bruno@clisp.org>
34607
34608         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34609         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34610         assignments to the initial TESTS_ENVIRONMENT.
34611         * doc/gnulib.texi (Unit test modules): Document it.
34612         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34613         TESTS_ENVIRONMENT.
34614         * modules/btowc-tests (Makefile.am): Likewise.
34615         * modules/c-stack-tests (Makefile.am): Likewise.
34616         * modules/c-strcase-tests (Makefile.am): Likewise.
34617         * modules/copy-file-tests (Makefile.am): Likewise.
34618         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34619         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34620         * modules/mbrtowc-tests (Makefile.am): Likewise.
34621         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34622         * modules/mbscasestr-tests (Makefile.am): Likewise.
34623         * modules/mbschr-tests (Makefile.am): Likewise.
34624         * modules/mbscspn-tests (Makefile.am): Likewise.
34625         * modules/mbsinit-tests (Makefile.am): Likewise.
34626         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34627         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34628         * modules/mbspbrk-tests (Makefile.am): Likewise.
34629         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34630         * modules/mbsrchr-tests (Makefile.am): Likewise.
34631         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34632         * modules/mbsspn-tests (Makefile.am): Likewise.
34633         * modules/mbsstr-tests (Makefile.am): Likewise.
34634         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34635         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34636         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34637         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34638         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34639         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34640         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34641         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34642         * modules/wcrtomb-tests (Makefile.am): Likewise.
34643         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34644         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34645         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34646         assignments from TESTS_ENVIRONMENT.
34647         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34648         augmentation.
34649         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34650         * modules/atexit-tests (Makefile.am): Likewise.
34651         * modules/binary-io-tests (Makefile.am): Likewise.
34652         * modules/closein-tests (Makefile.am): Likewise.
34653         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34654         * modules/exclude-tests (Makefile.am): Likewise.
34655         * modules/fflush-tests (Makefile.am): Likewise.
34656         * modules/fpending-tests (Makefile.am): Likewise.
34657         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34658         * modules/freadahead-tests (Makefile.am): Likewise.
34659         * modules/freadptr-tests (Makefile.am): Likewise.
34660         * modules/freadseek-tests (Makefile.am): Likewise.
34661         * modules/fseek-tests (Makefile.am): Likewise.
34662         * modules/fseeko-tests (Makefile.am): Likewise.
34663         * modules/ftell-tests (Makefile.am): Likewise.
34664         * modules/ftello-tests (Makefile.am): Likewise.
34665         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34666         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34667         * modules/lseek-tests (Makefile.am): Likewise.
34668         * modules/parse-duration-tests (Makefile.am): Likewise.
34669         * modules/perror-tests (Makefile.am): Likewise.
34670         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34671         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34672         * modules/pipe-tests (Makefile.am): Likewise.
34673         * modules/pread-tests (Makefile.am): Likewise.
34674         * modules/printf-posix-tests (Makefile.am): Likewise.
34675         * modules/select-tests (Makefile.am): Likewise.
34676         * modules/sigpipe-tests (Makefile.am): Likewise.
34677         * modules/tsearch-tests (Makefile.am): Likewise.
34678         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34679         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34680         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34681         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34682         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34683         * modules/version-etc-tests (Makefile.am): Likewise.
34684         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34685         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34686         * modules/xalloc-die-tests (Makefile.am): Likewise.
34687         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34688         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34689         * modules/xstrtol-tests (Makefile.am): Likewise.
34690         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34691         * modules/yesno-tests (Makefile.am): Likewise.
34692         Suggested by Jim Meyering.
34693
34694 2010-01-24  Bruno Haible  <bruno@clisp.org>
34695
34696         More documentation.
34697         * doc/gnulib.texi (Writing modules): New chapter.
34698         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34699         the new chapter.
34700
34701 2010-01-24  Jim Meyering  <meyering@redhat.com>
34702
34703         maint.mk: do not prepend "./" after filtering
34704         * top/maint.mk (_prepend_srcdir_prefix): New variable
34705         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34706         "./" when $(srcdir) is ".".
34707
34708         define STREQ(a,b) consistently, removing useless parentheses
34709         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34710         since the only risk is that "a" or "b" contains an unparenthesized
34711         comma, but if either did that, STREQ would have 3 or more arguments.
34712         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34713         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34714         * lib/hash-triple.c (STREQ): Likewise.
34715         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34716         * lib/getugroups.c (STREQ): Likewise.
34717
34718 2010-01-23  Jim Meyering  <meyering@redhat.com>
34719
34720         maint.mk: fix syntax-check in a non-srcdir build directory
34721         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34722         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34723
34724 2010-01-22  Jim Meyering  <meyering@redhat.com>
34725
34726         userspec: add unit tests
34727         * tests/test-userspec.c: New file.
34728         * modules/userspec-tests: Likewise.
34729
34730 2010-01-21  Jim Meyering  <meyering@redhat.com>
34731
34732         maint.mk: handle source file names containing "." robustly
34733         * top/maint.mk (_dot_escaped_srcdir): Define.
34734         (VC_LIST): Use it in LHS of sed substitution.
34735
34736 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34737
34738         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34739         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34740         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34741         from a non-srcdir build.
34742
34743 2010-01-20  Eric Blake  <ebb9@byu.net>
34744
34745         warn-on-use: use instead of link-warning
34746         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34747         * modules/unistd (Depends-on, Makefile.am): Likewise.
34748         * modules/arpa_inet (Depends-on): Replace link-warning with
34749         warn-on-use.
34750         (Makefile.am): Update rules accordingly.
34751         * modules/ctype (Depends-on, Makefile.am): Likewise.
34752         * modules/dirent (Depends-on, Makefile.am): Likewise.
34753         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34754         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34755         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34756         * modules/locale (Depends-on, Makefile.am): Likewise.
34757         * modules/math (Depends-on, Makefile.am): Likewise.
34758         * modules/search (Depends-on, Makefile.am): Likewise.
34759         * modules/signal (Depends-on, Makefile.am): Likewise.
34760         * modules/spawn (Depends-on, Makefile.am): Likewise.
34761         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34762         * modules/string (Depends-on, Makefile.am): Likewise.
34763         * modules/strings (Depends-on, Makefile.am): Likewise.
34764         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34765         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34766         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34767         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34768         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34769         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34770         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34771         * modules/wchar (Depends-on, Makefile.am): Likewise.
34772         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34773         should be poisoned.
34774         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34775         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34776         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34777         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34778         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34779         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34780         * m4/math_h.m4 (gl_MATH_H): Likewise.
34781         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34782         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34783         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34784         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34785         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34786         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34787         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34788         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34789         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34790         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34791         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34792         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34793         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34794         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34795         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34796         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34797         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34798         GL_LINK_WARNING.
34799         * lib/ctype.in.h: Likewise.
34800         * lib/dirent.in.h: Likewise.
34801         * lib/fcntl.in.h: Likewise.
34802         * lib/inttypes.in.h: Likewise.
34803         * lib/langinfo.in.h: Likewise.
34804         * lib/locale.in.h: Likewise.
34805         * lib/math.in.h: Likewise.
34806         * lib/search.in.h: Likewise.
34807         * lib/signal.in.h: Likewise.
34808         * lib/spawn.in.h: Likewise.
34809         * lib/stdio.in.h: Likewise.
34810         * lib/stdlib.in.h: Likewise.
34811         * lib/string.in.h: Likewise.
34812         * lib/strings.in.h: Likewise.
34813         * lib/sys_file.in.h: Likewise.
34814         * lib/sys_ioctl.in.h: Likewise.
34815         * lib/sys_select.in.h: Likewise.
34816         * lib/sys_socket.in.h: Likewise.
34817         * lib/sys_stat.in.h: Likewise.
34818         * lib/sys_times.in.h: Likewise.
34819         * lib/sys_utsname.in.h: Likewise.
34820         * lib/unistd.in.h: Likewise.
34821         * lib/wchar.in.h: Likewise.
34822
34823 2010-01-20  Bruno Haible  <bruno@clisp.org>
34824
34825         Avoid duplicate -lm.
34826         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34827         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34828         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34829         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34830         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34831         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34832         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34833         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34834         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34835         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34836         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34837         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34838         Reported by Paolo Bonzini.
34839
34840 2010-01-19  Bruno Haible  <bruno@clisp.org>
34841
34842         langinfo, nl_langinfo: Relicense under LGPLv2+.
34843         * modules/langinfo (License): Change to LGPLv2+.
34844         * modules/nl_langinfo (License): Likewise.
34845         Patch by David Lutterkort <lutter@redhat.com>.
34846
34847 2010-01-19  Bruno Haible  <bruno@clisp.org>
34848
34849         Avoid compilation error with cc on OSF/1 5.1.
34850         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34851         statement, not before.
34852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34853
34854 2010-01-18  Bruno Haible  <bruno@clisp.org>
34855
34856         Avoid a link error due to the __printf__ symbol.
34857         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34858         and 2.6.x.
34859         (__format__, __printf__): Remove definitions.
34860         * lib/argp-fmtstream.h: Likewise.
34861         * lib/argp.h: Likewise.
34862         * lib/error.h: Likewise.
34863         * lib/vasnprintf.h: Likewise.
34864         * lib/xprintf.h: Likewise.
34865         * lib/xvasprintf.h: Likewise.
34866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34867
34868 2010-01-18  Bruno Haible  <bruno@clisp.org>
34869
34870         Tests for module 'tanl'.
34871         * modules/tanl-tests: New file.
34872         * tests/test-tanl.c: New file.
34873
34874         Tests for module 'sqrtl'.
34875         * modules/sqrtl-tests: New file.
34876         * tests/test-sqrtl.c: New file.
34877
34878         Tests for module 'sinl'.
34879         * modules/sinl-tests: New file.
34880         * tests/test-sinl.c: New file.
34881
34882         Tests for module 'logl'.
34883         * modules/logl-tests: New file.
34884         * tests/test-logl.c: New file.
34885
34886         Tests for module 'expl'.
34887         * modules/expl-tests: New file.
34888         * tests/test-expl.c: New file.
34889
34890         Tests for module 'cosl'.
34891         * modules/cosl-tests: New file.
34892         * tests/test-cosl.c: New file.
34893
34894         Tests for module 'atanl'.
34895         * modules/atanl-tests: New file.
34896         * tests/test-atanl.c: New file.
34897
34898         Tests for module 'asinl'.
34899         * modules/asinl-tests: New file.
34900         * tests/test-asinl.c: New file.
34901
34902         Tests for module 'acosl'.
34903         * modules/acosl-tests: New file.
34904         * tests/test-acosl.c: New file.
34905
34906         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34907         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34908         tanl): Use the standard gnulib idiom.
34909         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34910         * lib/sinl.c: Likewise.
34911         * lib/tanl.c: Don't include trigl.c.
34912         (kernel_tanl): Make static.
34913         * lib/sincosl.c: Include trigl.h first.
34914         * lib/trigl.c: Likewise.
34915         * m4/acosl.m4: New file.
34916         * m4/asinl.m4: New file.
34917         * m4/atanl.m4: New file.
34918         * m4/cosl.m4: New file.
34919         * m4/expl.m4: New file.
34920         * m4/logl.m4: New file.
34921         * m4/sinl.m4: New file.
34922         * m4/sqrtl.m4: New file.
34923         * m4/tanl.m4: New file.
34924         * m4/mathl.m4: Remove file.
34925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34926         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34927         Don't initialize GNULIB_MATHL.
34928         * modules/acosl: New file.
34929         * modules/asinl: New file.
34930         * modules/atanl: New file.
34931         * modules/cosl: New file.
34932         * modules/expl: New file.
34933         * modules/logl: New file.
34934         * modules/sinl: New file.
34935         * modules/sqrtl: New file.
34936         * modules/tanl: New file.
34937         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34938         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34939         substitute GNULIB_MATHL.
34940         * modules/mathl: Rewritten.
34941         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34942         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34943         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34944         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34945         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34946         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34947         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34948         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34949         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34950
34951 2010-01-18  Bruno Haible  <bruno@clisp.org>
34952
34953         sqrt: Make gl_FUNC_SQRT requirable.
34954         * m4/sqrt.m4: New file.
34955         * modules/sqrt (Files): Add it.
34956         (configure.ac): Invoke gl_FUNC_SQRT.
34957
34958 2010-01-18  Bruno Haible  <bruno@clisp.org>
34959
34960         New modules for common <math.h> functions.
34961         * m4/mathfunc.m4: New file.
34962         * modules/acos: New file.
34963         * modules/asin: New file.
34964         * modules/atan: New file.
34965         * modules/atan2: New file.
34966         * modules/cbrt: New file.
34967         * modules/copysign: New file.
34968         * modules/cos: New file.
34969         * modules/cosh: New file.
34970         * modules/erf: New file.
34971         * modules/erfc: New file.
34972         * modules/exp: New file.
34973         * modules/fabs: New file.
34974         * modules/fmod: New file.
34975         * modules/hypot: New file.
34976         * modules/j0: New file.
34977         * modules/j1: New file.
34978         * modules/jn: New file.
34979         * modules/ldexp: New file.
34980         * modules/lgamma: New file.
34981         * modules/log: New file.
34982         * modules/log10: New file.
34983         * modules/log1p: New file.
34984         * modules/logb: New file.
34985         * modules/modf: New file.
34986         * modules/nextafter: New file.
34987         * modules/pow: New file.
34988         * modules/remainder: New file.
34989         * modules/rint: New file.
34990         * modules/sin: New file.
34991         * modules/sinh: New file.
34992         * modules/sqrt: New file.
34993         * modules/tan: New file.
34994         * modules/tanh: New file.
34995         * modules/y0: New file.
34996         * modules/y1: New file.
34997         * modules/yn: New file.
34998         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34999         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35000         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35001         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35002         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35003         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35004         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35005         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35006         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35007         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35008         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35009         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35010         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35011         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35012         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35013         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35014         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35015         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35016         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35017         * doc/posix-functions/log.texi: Mention the 'log' module.
35018         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35019         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35020         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35021         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35022         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35023         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35024         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35025         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35026         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35027         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35028         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35029         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35030         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35031         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35032         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35033         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35034
35035 2010-01-18  Jim Meyering  <meyering@redhat.com>
35036
35037         ignore-value: relax license to LGPLv2+
35038         * modules/ignore-value (License): Relax to LGPLv2+.
35039
35040         getdate: don't leak when TZ contains two or more '"'s
35041         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35042         double quote in TZ after the first one.
35043
35044         readtokens: do not leak internal token_lengths buffer
35045         * lib/readtokens.c (readtokens): Free the local, lengths,
35046         when the supplied "token_lengths" parameter is NULL.
35047
35048 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35049
35050         Fix a couple of missing LIBTHREAD link failures on AIX.
35051         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35052         $(LIBTHREAD).
35053         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35054
35055         Link test-poll against INET_PTON_LIB.
35056         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35057         for inet_pton on Solaris 10.
35058
35059 2010-01-17  Bruno Haible  <bruno@clisp.org>
35060
35061         unistdio/*-sprintf: Fix typo in module description.
35062         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35063         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35064         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35065         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35066         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35067         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35068         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35069         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35070
35071 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35072
35073         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35074         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35075         variables in shell case patterns, for AIX and HP-UX ksh.
35076
35077         Split large sed scripts, for HP-UX sed.
35078         * modules/stdio: Split sed scripts around 50 sed commands,
35079         to avoid HP-UX limit of 99 commands, in the near future.
35080         * modules/string: Likewise.
35081         * modules/unistd: Likewise.
35082
35083         gnulib-tool: avoid writing in the current directory.
35084         * gnulib-tool (func_emit_lib_Makefile_am)
35085         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35086         not in the current directory, so concurrent gnulib-tool
35087         instances do not interfere.
35088
35089 2010-01-16  Jim Meyering  <meyering@redhat.com>
35090
35091         doc: update users.txt
35092         * users.txt: Add grep.
35093         (diffutils, gzip): Update URLs.
35094
35095 2010-01-12  Bruno Haible  <bruno@clisp.org>
35096
35097         posix_spawn: Avoid test failure on Cygwin.
35098         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35099         characters.
35100         Reported by Simon Josefsson.
35101
35102 2010-01-12  Bruno Haible  <bruno@clisp.org>
35103
35104         * tests/test-cond.c (main): When skipping the test, show the reason.
35105
35106 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35107
35108         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35109
35110 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35111
35112         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35113         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35114
35115 2010-01-12  Eric Blake  <ebb9@byu.net>
35116
35117         build: guarantee AS_VAR_IF
35118         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35119         (gl_AS_VAR_IF): Move...
35120         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35121         Reported by Simon Josefsson.
35122
35123 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35124
35125         * lib/stdio.in.h: Fix typo.
35126
35127 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35128
35129         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35130         libgpg-error.
35131
35132 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35133
35134         * tests/test-xalloc-die.sh: Use $EXEEXT.
35135
35136 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35137             Bruno Haible  <bruno@clisp.org>
35138
35139         getlogin, getlogin_r: Avoid test failure.
35140         * tests/test-getlogin.c: Include <stdio.h>.
35141         (main): Skip the test when the function fails because stdin is not a
35142         tty.
35143         * tests/test-getlogin_r.c: Include <stdio.h>.
35144         (main): Skip the test when the function fails because stdin is not a
35145         tty.
35146
35147 2010-01-11  Eric Blake  <ebb9@byu.net>
35148
35149         tests: avoid more large file warnings
35150         * tests/test-fflush.c: Avoid warning about ftell use.
35151         * tests/test-fseek.c: Avoid warning about fseek use.
35152
35153 2010-01-10  Bruno Haible  <bruno@clisp.org>
35154
35155         nproc: Work better on Linux when /proc and /sys are not mounted.
35156         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35157         as lower bound when, on glibc/Linux systems,
35158         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35159         Suggested by Pádraig Brady <P@draigbrady.com>.
35160         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35161
35162         nproc: Refactor.
35163         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35164         extracted from num_processors.
35165         (num_processors): Call it.
35166
35167 2010-01-11  Jim Meyering  <meyering@redhat.com>
35168
35169         utimecmp: avoid new warning from upcoming gcc-4.5.0
35170         * lib/utimecmp.c (BILLION): Define using #define rather than an
35171         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35172
35173 2010-01-11  Eric Blake  <ebb9@byu.net>
35174
35175         math: add portability warnings for classification macros
35176         * modules/math (Depends-on): Add warn-on-use.
35177         (Makefile.am): Provide new substitutions.
35178         * m4/math_h.m4 (gl_MATH_H): Require inline.
35179         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35180         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35181         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35182         implement warnings.
35183
35184         unistd: warn on use of environ without module
35185         * modules/unistd (Depends-on): Add warn-on-use.
35186         (Makefile.am): Provide new substitutions.
35187         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35188         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35189
35190         stdio: warn on suspicious uses
35191         * modules/stdio (Depends-on): Add warn-on-use.
35192         (Makefile.am): Provide new substitutions.
35193         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35194         fseeko.
35195         * lib/stdio.in.h (gets): Always warn on use.
35196         (fseek, ftell): Adjust when warnings are issued, and honor
35197         _GL_NO_LARGE_FILES as a way to silence the warning.
35198         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35199         any warning about large file offsets.
35200         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35201         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35202         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35203         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35204         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35205         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35206         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35207         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35208
35209         warn-on-use: new module
35210         * modules/warn-on-use: New file.
35211         * build-aux/warn-on-use.h: Likewise.
35212         * m4/warn-on-use.m4: Likewise.
35213         * MODULES.html.sh (Support for building): Mention it.
35214
35215 2010-01-10  Bruno Haible  <bruno@clisp.org>
35216
35217         Tests for module 'unistr/u32-strdup'.
35218         * modules/unistr/u32-strdup-tests: New file.
35219         * tests/unistr/test-u32-strdup.c: New file.
35220
35221         Tests for module 'unistr/u16-strdup'.
35222         * modules/unistr/u16-strdup-tests: New file.
35223         * tests/unistr/test-u16-strdup.c: New file.
35224
35225         Tests for module 'unistr/u8-strdup'.
35226         * modules/unistr/u8-strdup-tests: New file.
35227         * tests/unistr/test-u8-strdup.c: New file.
35228         * tests/unistr/test-strdup.h: New file.
35229
35230         Tests for module 'unistr/u32-strncmp'.
35231         * modules/unistr/u32-strncmp-tests: New file.
35232         * tests/unistr/test-u32-strncmp.c: New file.
35233
35234         Tests for module 'unistr/u16-strncmp'.
35235         * modules/unistr/u16-strncmp-tests: New file.
35236         * tests/unistr/test-u16-strncmp.c: New file.
35237
35238         Tests for module 'unistr/u8-strncmp'.
35239         * modules/unistr/u8-strncmp-tests: New file.
35240         * tests/unistr/test-u8-strncmp.c: New file.
35241         * tests/unistr/test-strncmp.h: New file.
35242
35243         Tests for module 'unistr/u32-strcoll'.
35244         * modules/unistr/u32-strcoll-tests: New file.
35245         * tests/unistr/test-u32-strcoll.c: New file.
35246
35247         Tests for module 'unistr/u16-strcoll'.
35248         * modules/unistr/u16-strcoll-tests: New file.
35249         * tests/unistr/test-u16-strcoll.c: New file.
35250
35251         Tests for module 'unistr/u8-strcoll'.
35252         * modules/unistr/u8-strcoll-tests: New file.
35253         * tests/unistr/test-u8-strcoll.c: New file.
35254
35255         Tests for module 'unistr/u32-strcmp'.
35256         * modules/unistr/u32-strcmp-tests: New file.
35257         * tests/unistr/test-u32-strcmp.c: New file.
35258         * tests/unistr/test-u32-strcmp.h: New file.
35259
35260         Tests for module 'unistr/u16-strcmp'.
35261         * modules/unistr/u16-strcmp-tests: New file.
35262         * tests/unistr/test-u16-strcmp.c: New file.
35263         * tests/unistr/test-u16-strcmp.h: New file.
35264
35265         Tests for module 'unistr/u8-strcmp'.
35266         * modules/unistr/u8-strcmp-tests: New file.
35267         * tests/unistr/test-u8-strcmp.c: New file.
35268         * tests/unistr/test-u8-strcmp.h: New file.
35269         * tests/unistr/test-strcmp.h: New file.
35270
35271         Tests for module 'unistr/u32-strncat'.
35272         * modules/unistr/u32-strncat-tests: New file.
35273         * tests/unistr/test-u32-strncat.c: New file.
35274
35275         Tests for module 'unistr/u16-strncat'.
35276         * modules/unistr/u16-strncat-tests: New file.
35277         * tests/unistr/test-u16-strncat.c: New file.
35278
35279         Tests for module 'unistr/u8-strncat'.
35280         * modules/unistr/u8-strncat-tests: New file.
35281         * tests/unistr/test-u8-strncat.c: New file.
35282         * tests/unistr/test-strncat.h: New file.
35283
35284         Tests for module 'unistr/u32-strcat'.
35285         * modules/unistr/u32-strcat-tests: New file.
35286         * tests/unistr/test-u32-strcat.c: New file.
35287
35288         Tests for module 'unistr/u16-strcat'.
35289         * modules/unistr/u16-strcat-tests: New file.
35290         * tests/unistr/test-u16-strcat.c: New file.
35291
35292         Tests for module 'unistr/u8-strcat'.
35293         * modules/unistr/u8-strcat-tests: New file.
35294         * tests/unistr/test-u8-strcat.c: New file.
35295         * tests/unistr/test-strcat.h: New file.
35296
35297         Tests for module 'unistr/u32-stpncpy'.
35298         * modules/unistr/u32-stpncpy-tests: New file.
35299         * tests/unistr/test-u32-stpncpy.c: New file.
35300
35301         Tests for module 'unistr/u16-stpncpy'.
35302         * modules/unistr/u16-stpncpy-tests: New file.
35303         * tests/unistr/test-u16-stpncpy.c: New file.
35304
35305         Tests for module 'unistr/u8-stpncpy'.
35306         * modules/unistr/u8-stpncpy-tests: New file.
35307         * tests/unistr/test-u8-stpncpy.c: New file.
35308         * tests/unistr/test-stpncpy.h: New file.
35309
35310         Tests for module 'unistr/u32-strncpy'.
35311         * modules/unistr/u32-strncpy-tests: New file.
35312         * tests/unistr/test-u32-strncpy.c: New file.
35313
35314         Tests for module 'unistr/u16-strncpy'.
35315         * modules/unistr/u16-strncpy-tests: New file.
35316         * tests/unistr/test-u16-strncpy.c: New file.
35317
35318         Tests for module 'unistr/u8-strncpy'.
35319         * modules/unistr/u8-strncpy-tests: New file.
35320         * tests/unistr/test-u8-strncpy.c: New file.
35321         * tests/unistr/test-strncpy.h: New file.
35322
35323         Tests for module 'unistr/u32-stpcpy'.
35324         * modules/unistr/u32-stpcpy-tests: New file.
35325         * tests/unistr/test-u32-stpcpy.c: New file.
35326
35327         Tests for module 'unistr/u16-stpcpy'.
35328         * modules/unistr/u16-stpcpy-tests: New file.
35329         * tests/unistr/test-u16-stpcpy.c: New file.
35330
35331         Tests for module 'unistr/u8-stpcpy'.
35332         * modules/unistr/u8-stpcpy-tests: New file.
35333         * tests/unistr/test-u8-stpcpy.c: New file.
35334         * tests/unistr/test-stpcpy.h: New file.
35335
35336         Tests for module 'unistr/u32-strcpy'.
35337         * modules/unistr/u32-strcpy-tests: New file.
35338         * tests/unistr/test-u32-strcpy.c: New file.
35339
35340         Tests for module 'unistr/u16-strcpy'.
35341         * modules/unistr/u16-strcpy-tests: New file.
35342         * tests/unistr/test-u16-strcpy.c: New file.
35343
35344         Tests for module 'unistr/u8-strcpy'.
35345         * modules/unistr/u8-strcpy-tests: New file.
35346         * tests/unistr/test-u8-strcpy.c: New file.
35347         * tests/unistr/test-strcpy.h: New file.
35348
35349         Tests for module 'unistr/u32-strnlen'.
35350         * modules/unistr/u32-strnlen-tests: New file.
35351         * tests/unistr/test-u32-strnlen.c: New file.
35352
35353         Tests for module 'unistr/u16-strnlen'.
35354         * modules/unistr/u16-strnlen-tests: New file.
35355         * tests/unistr/test-u16-strnlen.c: New file.
35356
35357         Tests for module 'unistr/u8-strnlen'.
35358         * modules/unistr/u8-strnlen-tests: New file.
35359         * tests/unistr/test-u8-strnlen.c: New file.
35360         * tests/unistr/test-strnlen.h: New file.
35361
35362         Tests for module 'unistr/u32-strlen'.
35363         * modules/unistr/u32-strlen-tests: New file.
35364         * tests/unistr/test-u32-strlen.c: New file.
35365
35366         Tests for module 'unistr/u16-strlen'.
35367         * modules/unistr/u16-strlen-tests: New file.
35368         * tests/unistr/test-u16-strlen.c: New file.
35369
35370         Tests for module 'unistr/u8-strlen'.
35371         * modules/unistr/u8-strlen-tests: New file.
35372         * tests/unistr/test-u8-strlen.c: New file.
35373
35374         Tests for module 'unistr/u32-prev'.
35375         * modules/unistr/u32-prev-tests: New file.
35376         * tests/unistr/test-u32-prev.c: New file.
35377
35378         Tests for module 'unistr/u16-prev'.
35379         * modules/unistr/u16-prev-tests: New file.
35380         * tests/unistr/test-u16-prev.c: New file.
35381
35382         Tests for module 'unistr/u8-prev'.
35383         * modules/unistr/u8-prev-tests: New file.
35384         * tests/unistr/test-u8-prev.c: New file.
35385
35386         Tests for module 'unistr/u32-next'.
35387         * modules/unistr/u32-next-tests: New file.
35388         * tests/unistr/test-u32-next.c: New file.
35389
35390         Tests for module 'unistr/u16-next'.
35391         * modules/unistr/u16-next-tests: New file.
35392         * tests/unistr/test-u16-next.c: New file.
35393
35394         Tests for module 'unistr/u8-next'.
35395         * modules/unistr/u8-next-tests: New file.
35396         * tests/unistr/test-u8-next.c: New file.
35397
35398         Tests for module 'unistr/u32-strmbtouc'.
35399         * modules/unistr/u32-strmbtouc-tests: New file.
35400         * tests/unistr/test-u32-strmbtouc.c: New file.
35401
35402         Tests for module 'unistr/u16-strmbtouc'.
35403         * modules/unistr/u16-strmbtouc-tests: New file.
35404         * tests/unistr/test-u16-strmbtouc.c: New file.
35405
35406         Tests for module 'unistr/u8-strmbtouc'.
35407         * modules/unistr/u8-strmbtouc-tests: New file.
35408         * tests/unistr/test-u8-strmbtouc.c: New file.
35409
35410         Tests for module 'unistr/u32-strmblen'.
35411         * modules/unistr/u32-strmblen-tests: New file.
35412         * tests/unistr/test-u32-strmblen.c: New file.
35413
35414         Tests for module 'unistr/u16-strmblen'.
35415         * modules/unistr/u16-strmblen-tests: New file.
35416         * tests/unistr/test-u16-strmblen.c: New file.
35417
35418         Tests for module 'unistr/u8-strmblen'.
35419         * modules/unistr/u8-strmblen-tests: New file.
35420         * tests/unistr/test-u8-strmblen.c: New file.
35421
35422         Tests for module 'unistr/u32-cpy-alloc'.
35423         * modules/unistr/u32-cpy-alloc-tests: New file.
35424         * tests/unistr/test-u32-cpy-alloc.c: New file.
35425
35426         Tests for module 'unistr/u16-cpy-alloc'.
35427         * modules/unistr/u16-cpy-alloc-tests: New file.
35428         * tests/unistr/test-u16-cpy-alloc.c: New file.
35429
35430         Tests for module 'unistr/u8-cpy-alloc'.
35431         * modules/unistr/u8-cpy-alloc-tests: New file.
35432         * tests/unistr/test-u8-cpy-alloc.c: New file.
35433         * tests/unistr/test-cpy-alloc.h: New file.
35434
35435         Tests for module 'unistr/u32-mbsnlen'.
35436         * modules/unistr/u32-mbsnlen-tests: New file.
35437         * tests/unistr/test-u32-mbsnlen.c: New file.
35438
35439         Tests for module 'unistr/u16-mbsnlen'.
35440         * modules/unistr/u16-mbsnlen-tests: New file.
35441         * tests/unistr/test-u16-mbsnlen.c: New file.
35442
35443         Tests for module 'unistr/u8-mbsnlen'.
35444         * modules/unistr/u8-mbsnlen-tests: New file.
35445         * tests/unistr/test-u8-mbsnlen.c: New file.
35446
35447         Tests for module 'unistr/u32-chr'.
35448         * modules/unistr/u32-chr-tests: New file.
35449         * tests/unistr/test-u32-chr.c: New file.
35450
35451         Tests for module 'unistr/u16-chr'.
35452         * modules/unistr/u16-chr-tests: New file.
35453         * tests/unistr/test-u16-chr.c: New file.
35454
35455         Tests for module 'unistr/u8-chr'.
35456         * modules/unistr/u8-chr-tests: New file.
35457         * tests/unistr/test-u8-chr.c: New file.
35458         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35459
35460         Tests for module 'unistr/u32-cmp2'.
35461         * modules/unistr/u32-cmp2-tests: New file.
35462         * tests/unistr/test-u32-cmp2.c: New file.
35463
35464         Tests for module 'unistr/u16-cmp2'.
35465         * modules/unistr/u16-cmp2-tests: New file.
35466         * tests/unistr/test-u16-cmp2.c: New file.
35467
35468         Tests for module 'unistr/u8-cmp2'.
35469         * modules/unistr/u8-cmp2-tests: New file.
35470         * tests/unistr/test-u8-cmp2.c: New file.
35471         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35472
35473         Tests for module 'unistr/u32-cmp'.
35474         * modules/unistr/u32-cmp-tests: New file.
35475         * tests/unistr/test-u32-cmp.c: New file.
35476
35477         Tests for module 'unistr/u16-cmp'.
35478         * modules/unistr/u16-cmp-tests: New file.
35479         * tests/unistr/test-u16-cmp.c: New file.
35480
35481         Tests for module 'unistr/u8-cmp'.
35482         * modules/unistr/u8-cmp-tests: New file.
35483         * tests/unistr/test-u8-cmp.c: New file.
35484         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35485
35486         Tests for module 'unistr/u32-set'.
35487         * modules/unistr/u32-set-tests: New file.
35488         * tests/unistr/test-u32-set.c: New file.
35489
35490         Tests for module 'unistr/u16-set'.
35491         * modules/unistr/u16-set-tests: New file.
35492         * tests/unistr/test-u16-set.c: New file.
35493
35494         Tests for module 'unistr/u8-set'.
35495         * modules/unistr/u8-set-tests: New file.
35496         * tests/unistr/test-u8-set.c: New file.
35497         * tests/unistr/test-set.h: New file.
35498
35499         Tests for module 'unistr/u32-move'.
35500         * modules/unistr/u32-move-tests: New file.
35501         * tests/unistr/test-u32-move.c: New file.
35502
35503         Tests for module 'unistr/u16-move'.
35504         * modules/unistr/u16-move-tests: New file.
35505         * tests/unistr/test-u16-move.c: New file.
35506
35507         Tests for module 'unistr/u8-move'.
35508         * modules/unistr/u8-move-tests: New file.
35509         * tests/unistr/test-u8-move.c: New file.
35510         * tests/unistr/test-move.h: New file.
35511
35512         Tests for module 'unistr/u32-cpy'.
35513         * modules/unistr/u32-cpy-tests: New file.
35514         * tests/unistr/test-u32-cpy.c: New file.
35515
35516         Tests for module 'unistr/u16-cpy'.
35517         * modules/unistr/u16-cpy-tests: New file.
35518         * tests/unistr/test-u16-cpy.c: New file.
35519
35520         Tests for module 'unistr/u8-cpy'.
35521         * modules/unistr/u8-cpy-tests: New file.
35522         * tests/unistr/test-u8-cpy.c: New file.
35523         * tests/unistr/test-cpy.h: New file.
35524
35525 2010-01-09  Bruno Haible  <bruno@clisp.org>
35526
35527         Tests for module 'unistr/u32-uctomb'.
35528         * modules/unistr/u32-uctomb-tests: New file.
35529         * tests/unistr/test-u32-uctomb.c: New file.
35530
35531         Tests for module 'unistr/u16-uctomb'.
35532         * modules/unistr/u16-uctomb-tests: New file.
35533         * tests/unistr/test-u16-uctomb.c: New file.
35534
35535         Tests for module 'unistr/u8-uctomb'.
35536         * modules/unistr/u8-uctomb-tests: New file.
35537         * tests/unistr/test-u8-uctomb.c: New file.
35538
35539         Tests for module 'unistr/u32-mbtoucr'.
35540         * modules/unistr/u32-mbtoucr-tests: New file.
35541         * tests/unistr/test-u32-mbtoucr.c: New file.
35542
35543         Tests for module 'unistr/u16-mbtoucr'.
35544         * modules/unistr/u16-mbtoucr-tests: New file.
35545         * tests/unistr/test-u16-mbtoucr.c: New file.
35546
35547         Tests for module 'unistr/u8-mbtoucr'.
35548         * modules/unistr/u8-mbtoucr-tests: New file.
35549         * tests/unistr/test-u8-mbtoucr.c: New file.
35550
35551         Tests for module 'unistr/u32-mbtouc'.
35552         * modules/unistr/u32-mbtouc-tests: New file.
35553         * tests/unistr/test-u32-mbtouc.c: New file.
35554
35555         Tests for module 'unistr/u16-mbtouc'.
35556         * modules/unistr/u16-mbtouc-tests: New file.
35557         * tests/unistr/test-u16-mbtouc.c: New file.
35558
35559         Tests for module 'unistr/u8-mbtouc'.
35560         * modules/unistr/u8-mbtouc-tests: New file.
35561         * tests/unistr/test-u8-mbtouc.c: New file.
35562
35563         Tests for module 'unistr/u32-mbtouc-unsafe'.
35564         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35565         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35566         * tests/unistr/test-u32-mbtouc.h: New file.
35567
35568         Tests for module 'unistr/u16-mbtouc-unsafe'.
35569         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35570         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35571         * tests/unistr/test-u16-mbtouc.h: New file.
35572
35573         Tests for module 'unistr/u8-mbtouc-unsafe'.
35574         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35575         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35576         * tests/unistr/test-u8-mbtouc.h: New file.
35577
35578         Tests for module 'unistr/u32-mblen'.
35579         * modules/unistr/u32-mblen-tests: New file.
35580         * tests/unistr/test-u32-mblen.c: New file.
35581
35582         Tests for module 'unistr/u16-mblen'.
35583         * modules/unistr/u16-mblen-tests: New file.
35584         * tests/unistr/test-u16-mblen.c: New file.
35585
35586         Tests for module 'unistr/u8-mblen'.
35587         * modules/unistr/u8-mblen-tests: New file.
35588         * tests/unistr/test-u8-mblen.c: New file.
35589
35590         Tests for module 'unistr/u32-to-u16'.
35591         * modules/unistr/u32-to-u16-tests: New file.
35592         * tests/unistr/test-u32-to-u16.c: New file.
35593
35594         Tests for module 'unistr/u32-to-u8'.
35595         * modules/unistr/u32-to-u8-tests: New file.
35596         * tests/unistr/test-u32-to-u8.c: New file.
35597
35598         Tests for module 'unistr/u16-to-u32'.
35599         * modules/unistr/u16-to-u32-tests: New file.
35600         * tests/unistr/test-u16-to-u32.c: New file.
35601
35602         Tests for module 'unistr/u16-to-u8'.
35603         * modules/unistr/u16-to-u8-tests: New file.
35604         * tests/unistr/test-u16-to-u8.c: New file.
35605
35606         Tests for module 'unistr/u8-to-u32'.
35607         * modules/unistr/u8-to-u32-tests: New file.
35608         * tests/unistr/test-u8-to-u32.c: New file.
35609
35610         Tests for module 'unistr/u8-to-u16'.
35611         * modules/unistr/u8-to-u16-tests: New file.
35612         * tests/unistr/test-u8-to-u16.c: New file.
35613
35614         Tests for module 'unistr/u32-check'.
35615         * modules/unistr/u32-check-tests: New file.
35616         * tests/unistr/test-u32-check.c: New file.
35617
35618         Tests for module 'unistr/u16-check'.
35619         * modules/unistr/u16-check-tests: New file.
35620         * tests/unistr/test-u16-check.c: New file.
35621
35622         Tests for module 'unistr/u8-check'.
35623         * modules/unistr/u8-check-tests: New file.
35624         * tests/unistr/test-u8-check.c: New file.
35625
35626         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35627         (category_equals): New function.
35628         (main): Add more tests.
35629         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35630
35631         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35632
35633 2010-01-10  Bruno Haible  <bruno@clisp.org>
35634
35635         unistr/u*-strcoll: Try harder to distinguish different strings.
35636         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35637         compare s1 and s2 to see if they are different.
35638
35639 2010-01-10  Bruno Haible  <bruno@clisp.org>
35640
35641         unistr/u*-stpncpy: Fix the return value.
35642         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35643         description of the return value consistent with stpncpy in glibc.
35644         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35645         written non-NUL unit.
35646
35647 2010-01-10  Bruno Haible  <bruno@clisp.org>
35648
35649         unistr/u*-next: Add missing dependencies.
35650         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35651         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35652         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35653
35654 2010-01-10  Bruno Haible  <bruno@clisp.org>
35655
35656         unistr/u8-mbsnlen: Fix return value for incomplete character.
35657         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35658         u8_mblen.
35659         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35660         Remove unistr/u8-mblen.
35661         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35662         u16_mblen.
35663         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35664         Remove unistr/u16-mblen.
35665
35666 2010-01-10  Bruno Haible  <bruno@clisp.org>
35667
35668         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35669         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35670         Reported by Brian Gough <bjg@gnu.org> and
35671         Chris Clayton <chris2553@googlemail.com> via
35672         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35673
35674 2010-01-09  Bruno Haible  <bruno@clisp.org>
35675
35676         unistr/u16-to-u32: Reject invalid input.
35677         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35678         u16_mbtouc.
35679         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35680         Remove unistr/u16-mbtouc.
35681
35682         unistr/u16-to-u8: Reject invalid input.
35683         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35684         u16_mbtouc.
35685         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35686         Remove unistr/u16-mbtouc.
35687
35688         unistr/u8-to-u32: Reject invalid input.
35689         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35690         u8_mbtouc.
35691         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35692         Remove unistr/u8-mbtouc.
35693
35694         unistr/u8-to-u16: Reject invalid input.
35695         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35696         u8_mbtouc.
35697         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35698         Remove unistr/u8-mbtouc.
35699
35700 2010-01-09  Bruno Haible  <bruno@clisp.org>
35701
35702         Tests for module 'getlogin'.
35703         * modules/getlogin-tests: New file.
35704         * tests/test-getlogin.c: New file.
35705
35706         New module 'getlogin'.
35707         * lib/unistd.in.h (getlogin): New declaration.
35708         * lib/getlogin.c: New file.
35709         * m4/getlogin.m4: New file.
35710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35711         HAVE_GETLOGIN.
35712         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35713         HAVE_GETLOGIN.
35714         * modules/getlogin: New file.
35715         * doc/posix-functions/getlogin.texi: Mention the new module.
35716         Reported by John W. Eaton <jwe@gnu.org>.
35717
35718 2010-01-09  Bruno Haible  <bruno@clisp.org>
35719
35720         getlogin_r: Support for native Windows.
35721         * lib/getlogin_r.c: Include <windows.h>
35722         (getlogin_r): Implement for native Windows.
35723         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35724         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35725         via John W. Eaton <jwe@gnu.org>.
35726
35727 2010-01-09  Bruno Haible  <bruno@clisp.org>
35728
35729         getlogin_r: Small fixes.
35730         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35731         succeeds.
35732         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35733         before testing whether getlogin_r is declared. No need to set
35734         HAVE_DECL_GETLOGIN_R to 1.
35735         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35736
35737 2010-01-09  Bruno Haible  <bruno@clisp.org>
35738
35739         * lib/unistd.in.h (getlogin_r): Add comment.
35740
35741 2010-01-09  Bruno Haible  <bruno@clisp.org>
35742
35743         Tests for module 'getlogin_r'.
35744         * modules/getlogin_r-tests: New file.
35745         * tests/test-getlogin_r.c: New file.
35746
35747 2010-01-09  Jim Meyering  <meyering@redhat.com>
35748
35749         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35750         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35751         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35752
35753 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35754
35755         * lib/dup2.c (rpl_dup2): Improve comment.
35756
35757 2010-01-08  Eric Blake  <ebb9@byu.net>
35758
35759         maint.mk: allow packages to add makefile @@ exceptions
35760         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35761         (sc_makefile_check): Rename...
35762         (sc_makefile_at_at_check): ...to this, and use hook.
35763
35764         dup2: work around mingw bug
35765         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35766         Reported by Simon Josefsson.
35767
35768 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35769
35770         glob: Fix C++ compilation.
35771         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35772         C++.
35773
35774 2010-01-07  Bruno Haible  <bruno@clisp.org>
35775
35776         Fix indentation of wctype.in.h, broken since 2007-01-06.
35777         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35778
35779 2010-01-07  Bruno Haible  <bruno@clisp.org>
35780
35781         mbslen: Avoid collision with system function.
35782         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35783         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35784         * m4/mbslen.m4: New file.
35785         * modules/mbslen (Files): Add it.
35786         (configure.ac): Invoke gl_MBSLEN.
35787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35788         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35789         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35790         via Ian Beckwith <ianb@erislabs.net>.
35791
35792 2010-01-07  Bruno Haible  <bruno@clisp.org>
35793
35794         dirent: Document the last fix.
35795         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35796
35797 2010-01-07  Bruno Haible  <bruno@clisp.org>
35798
35799         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35800         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35801         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35802         va_list are defined.
35803         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35804         Reported by Eric Blake.
35805
35806 2010-01-07  Bruno Haible  <bruno@clisp.org>
35807
35808         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35809         * modules/xlist (Depends-on): Add 'list',
35810         * modules/xoset (Depends-on): Add 'oset'.
35811         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35812
35813 2010-01-07  Bruno Haible  <bruno@clisp.org>
35814
35815         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35816         * doc/posix-functions/strncasecmp.texi: Likewise.
35817
35818 2010-01-07  Bruno Haible  <bruno@clisp.org>
35819
35820         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35821
35822 2010-01-07  John W. Eaton  <jwe@octave.org>
35823
35824         wctype: allow C++ use
35825         * lib/wctype.in.h: Add extern "C" block for C++.
35826
35827 2010-01-06  Eric Blake  <ebb9@byu.net>
35828
35829         maint.mk: detect incorrect GFDL usage
35830         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35831
35832 2010-01-06  Jim Meyering  <meyering@redhat.com>
35833         and Eric Blake  <ebb9@byu.net>
35834
35835         maint.mk: ignore multi-line copyright in NEWS
35836         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35837
35838 2010-01-06  Eric Blake  <ebb9@byu.net>
35839
35840         select: add missing dependency
35841         * modules/select-tests (Depends-on): Move sockets dependency...
35842         * modules/select (Depends-on): ...here.
35843         Reported by Ian Beckwith.
35844
35845         doc: regenerate INSTALL
35846         * doc/INSTALL: Reflect recent autoconf update.
35847         * doc/INSTALL.ISO: Likewise.
35848         * doc/INSTALL.UTF-8: Likewise.
35849
35850         pread: fix compilation on glibc
35851         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35852         Reported by Ralf Wildenhues.
35853
35854         dirent: fix test failure
35855         * lib/dirent.in.h (includes): Guarantee ino_t.
35856         Reported by Ralf Wildenhues.
35857
35858 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35859
35860         linkat, renameat: avoid bad free
35861         * lib/at-func2.c (at_func2): Fix typo.
35862         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35863
35864 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35865
35866         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35867         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35868         to avoid failure of symlink test later.
35869
35870 2010-01-06  Eric Blake  <ebb9@byu.net>
35871
35872         stdio, unistd: guarantee ssize_t
35873         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35874         2008 are exposed when needed.
35875         * lib/stdio.in.h (includes): Likewise.
35876         Reported by Ralf Wildenhues.
35877
35878 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35879
35880         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35881         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35882         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35883
35884 2010-01-06  Jim Meyering  <meyering@redhat.com>
35885
35886         readtokens: this module *does* require xalloc.h
35887         It uses only functions that were omitted by the old syntax-check rule.
35888         * lib/readtokens.c: Include "xalloc.h" once again.
35889         * modules/readtokens (Depends-on): Add xalloc.
35890         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35891
35892 2010-01-05  Eric Blake  <ebb9@byu.net>
35893
35894         maint: support 'make announcement' from a VPATH build
35895         * top/maint.mk (announcement): Look for correct NEWS file.
35896
35897 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35898
35899         utimens (fdutimens): ignore a negative FD, per contract
35900         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35901         when we have a valid file descriptor.  Otherwise, using a brand
35902         new glibc (with just-patched futimens that now fails with EBADF)
35903         would cause this function to fail with ENOSYS.
35904         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35905         See also http://bugzilla.redhat.com/552320.
35906
35907 2010-01-05  Eric Blake  <ebb9@byu.net>
35908
35909         strcase: document what it provides
35910         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35911         gnulib module.
35912         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35913         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35914
35915 2010-01-05  Jim Meyering  <meyering@redhat.com>
35916
35917         maint: remove useless inclusions of "xalloc.h"
35918         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35919         * lib/readtokens.c: Likewise.
35920         * lib/same.c: Likewise.
35921         * modules/getloadavg (Depends-on): Remove xalloc.
35922         * modules/readtokens: Likewise.
35923         * modules/same: Likewise.
35924
35925         maint.mk: include 4 more function names in alloca.h-checking regexp
35926         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35927         regexp.  Before, we would give a false-positive (saying alloca.h
35928         is included unnecessarily) when the only uses involved omitted symbols.
35929
35930         xalloc.h: use consistent formatting
35931         * lib/xalloc.h: Move declarations to start in the first column.
35932
35933 2010-01-05  Eric Blake  <ebb9@byu.net>
35934
35935         mkdir: avoid xalloc
35936         * lib/mkdir.c (includes): Drop unused header.
35937         Reported by John W. Eaton.
35938
35939 2010-01-04  Jim Meyering  <meyering@redhat.com>
35940
35941         nl_langinfo: avoid configure-time syntax error
35942         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35943         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35944         the empty string.  Don't let that provoke a shell syntax error.
35945
35946         regcomp, regexec, fnmatch: avoid array bounds read error
35947         * lib/regcomp.c (build_equiv_class): From glibc:
35948         Use only the low 24 bits of a findidx return value as an index
35949         into the weights array.  Patch by Ulrich Drepper:
35950         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35951         * lib/regexec.c (check_node_accept_bytes): Likewise.
35952         * lib/fnmatch_loop.c (FCT): Likewise.
35953
35954         regcomp: skip collseq lookup when there are no rules
35955         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35956         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35957
35958         regcomp: recognize ill-formed { } expressions
35959         * lib/regcomp.c (parse_dup_op): From glibc:
35960         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35961
35962         regcomp: fix typo in comment
35963         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35964         s/satisfy/satisfies/.
35965
35966         regcomp: sync from glibc: remove dead store
35967         * lib/regcomp.c (duplicate_node_closure): Remove useless
35968         search_duplicated_node call and dead store.
35969
35970         regcomp: sync from glibc; always use nl_langinfo
35971         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35972         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35973         * modules/regex (Depends-on): Add nl_langinfo.
35974
35975 2010-01-04  Eric Blake  <ebb9@byu.net>
35976
35977         fdopendir: fix configure test
35978         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35979
35980 2010-01-01  Bruno Haible  <bruno@clisp.org>
35981
35982         wchar: Remove unused configure check.
35983         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35984
35985 2010-01-01  Eric Blake  <ebb9@byu.net>
35986
35987         headers: make check of system header explicit
35988         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35989         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35990         ourselves.
35991         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35992         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35993         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35994         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35995         internals.
35996         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35997         missing.
35998         Suggested by Bruno Haible.
35999
36000 2010-01-01  Jim Meyering  <meyering@redhat.com>
36001
36002         ChangeLog: tweak to eliminate unnecessary copyright line
36003         * ChangeLog: Remove a copyright line that was mistakenly updated
36004         by today's update-copyright run.  Reported by Eric Blake.
36005
36006         test-update-copyright: don't let envvar setting cause test failure
36007         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36008
36009 2010-01-01  Bruno Haible  <bruno@clisp.org>
36010
36011         localename: Avoid gcc warning.
36012         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36013         function if it is not used.
36014
36015 2010-01-01  Jim Meyering  <meyering@redhat.com>
36016
36017         update nearly all FSF copyright year lists to include 2010
36018         Use the same procedure as for 2009, outlined in
36019         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36020
36021         version-etc: set COPYRIGHT_YEAR to 2010
36022         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36023
36024 2009-12-31  Eric Blake  <ebb9@byu.net>
36025
36026         doc: correct availability of cygwin 1.5.x getopt
36027         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36028         variables.
36029         * doc/posix-functions/opterr.texi (opterr): Likewise.
36030         * doc/posix-functions/optind.texi (optind): Likewise.
36031         * doc/posix-functions/optopt.texi (optopt): Likewise.
36032         * doc/posix-functions/tzname.texi (tzname): Likewise.
36033
36034         openat: update maintainer
36035         * modules/openat (Maintainer): Add myself.
36036
36037         utimens: avoid shadowing warning
36038         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36039         buffers into one, to avoid shadowing, as well as avoiding a
36040         redundant stat.
36041         Reported by Jim Meyering.
36042
36043         test-dup2: avoid compiler warning
36044         * tests/test-dup2.c (is_inheritable): Only define if used.
36045
36046 2010-01-01  Bruno Haible  <bruno@clisp.org>
36047
36048         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36049         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36050         defined, use wctomb instead of wcrtomb.
36051
36052 2010-01-01  Bruno Haible  <bruno@clisp.org>
36053
36054         iconv: Reject native Solaris iconv.
36055         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36056         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36057
36058 2009-12-31  Bruno Haible  <bruno@clisp.org>
36059
36060         * tests/test-signal.c (main): Remove test of 'SIG'.
36061
36062 2009-12-31  Bruno Haible  <bruno@clisp.org>
36063
36064         spawn: Fix incomplete fix.
36065         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36066         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36067         warnings for GNULIB_POSIXCHECK again.
36068         Reported by Eric Blake.
36069
36070 2009-12-31  Bruno Haible  <bruno@clisp.org>
36071
36072         Avoid namespace pollution on glibc systems.
36073         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36074         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36075         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36076         glibc systems.
36077
36078 2009-12-31  Bruno Haible  <bruno@clisp.org>
36079
36080         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36081         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36082         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36083         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36084         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36085         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36086         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36087
36088 2009-12-31  Bruno Haible  <bruno@clisp.org>
36089
36090         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36091         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36092         afterwards.
36093
36094 2009-12-31  Bruno Haible  <bruno@clisp.org>
36095
36096         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36097         SYS_UTSNAME_H.
36098
36099 2009-12-31  Bruno Haible  <bruno@clisp.org>
36100
36101         spawn: Fix misapplied patch.
36102         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36103         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36104         warnings for GNULIB_POSIXCHECK.
36105
36106 2009-12-31  Bruno Haible  <bruno@clisp.org>
36107
36108         times: Update after sys_times changed.
36109         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36110         * modules/times (Files): Add it.
36111         (configure.ac): Invoke gl_FUNC_TIMES.
36112
36113 2009-12-31  Bruno Haible  <bruno@clisp.org>
36114
36115         Use AC_C_INLINE where necessary.
36116         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36117         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36118         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36119         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36120         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36121         * m4/mbiter.m4 (gl_MBITER): Likewise.
36122         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36123         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36124         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36125         * modules/u64 (configure.ac): Likewise.
36126
36127 2009-12-31  Bruno Haible  <bruno@clisp.org>
36128
36129         Use AC_C_INLINE instead of module 'inline' where possible.
36130         * modules/inline (Description): Clarify purpose.
36131         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36132         * modules/count-one-bits (Depends-on): Remove inline.
36133         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36134         * modules/openat (Depends-on): Remove inline.
36135         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36136         instead of depending on module 'inline'.
36137         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36138         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36139         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36140         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36141         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36142         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36143         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36144         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36145         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36146         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36147         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36148         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36149         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36150         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36151         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36152         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36153         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36154         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36155         Likewise.
36156         * modules/unictype/property-ascii-hex-digit (Depends-on,
36157         configure.ac): Likewise.
36158         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36159         configure.ac): Likewise.
36160         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36161         configure.ac): Likewise.
36162         * modules/unictype/property-bidi-block-separator (Depends-on,
36163         configure.ac): Likewise.
36164         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36165         configure.ac): Likewise.
36166         * modules/unictype/property-bidi-common-separator (Depends-on,
36167         configure.ac): Likewise.
36168         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36169         Likewise.
36170         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36171         configure.ac): Likewise.
36172         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36173         configure.ac): Likewise.
36174         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36175         configure.ac): Likewise.
36176         * modules/unictype/property-bidi-european-digit (Depends-on,
36177         configure.ac): Likewise.
36178         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36179         configure.ac): Likewise.
36180         * modules/unictype/property-bidi-left-to-right (Depends-on,
36181         configure.ac): Likewise.
36182         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36183         configure.ac): Likewise.
36184         * modules/unictype/property-bidi-other-neutral (Depends-on,
36185         configure.ac): Likewise.
36186         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36187         Likewise.
36188         * modules/unictype/property-bidi-segment-separator (Depends-on,
36189         configure.ac): Likewise.
36190         * modules/unictype/property-bidi-whitespace (Depends-on,
36191         configure.ac): Likewise.
36192         * modules/unictype/property-combining (Depends-on, configure.ac):
36193         Likewise.
36194         * modules/unictype/property-composite (Depends-on, configure.ac):
36195         Likewise.
36196         * modules/unictype/property-currency-symbol (Depends-on,
36197         configure.ac): Likewise.
36198         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36199         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36200         Likewise.
36201         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36202         configure.ac): Likewise.
36203         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36204         Likewise.
36205         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36206         Likewise.
36207         * modules/unictype/property-extender (Depends-on, configure.ac):
36208         Likewise.
36209         * modules/unictype/property-format-control (Depends-on, configure.ac):
36210         Likewise.
36211         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36212         Likewise.
36213         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36214         Likewise.
36215         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36216         Likewise.
36217         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36218         Likewise.
36219         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36220         Likewise.
36221         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36222         Likewise.
36223         * modules/unictype/property-id-start (Depends-on, configure.ac):
36224         Likewise.
36225         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36226         Likewise.
36227         * modules/unictype/property-ids-binary-operator (Depends-on,
36228         configure.ac): Likewise.
36229         * modules/unictype/property-ids-trinary-operator (Depends-on,
36230         configure.ac): Likewise.
36231         * modules/unictype/property-ignorable-control (Depends-on,
36232         configure.ac): Likewise.
36233         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36234         Likewise.
36235         * modules/unictype/property-join-control (Depends-on, configure.ac):
36236         Likewise.
36237         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36238         Likewise.
36239         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36240         Likewise.
36241         * modules/unictype/property-logical-order-exception (Depends-on,
36242         configure.ac): Likewise.
36243         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36244         Likewise.
36245         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36246         * modules/unictype/property-non-break (Depends-on, configure.ac):
36247         Likewise.
36248         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36249         Likewise.
36250         * modules/unictype/property-numeric (Depends-on, configure.ac):
36251         Likewise.
36252         * modules/unictype/property-other-alphabetic (Depends-on,
36253         configure.ac): Likewise.
36254         * modules/unictype/property-other-default-ignorable-code-point
36255         (Depends-on, configure.ac): Likewise.
36256         * modules/unictype/property-other-grapheme-extend (Depends-on,
36257         configure.ac): Likewise.
36258         * modules/unictype/property-other-id-continue (Depends-on,
36259         configure.ac): Likewise.
36260         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36261         Likewise.
36262         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36263         Likewise.
36264         * modules/unictype/property-other-math (Depends-on, configure.ac):
36265         Likewise.
36266         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36267         Likewise.
36268         * modules/unictype/property-paired-punctuation (Depends-on,
36269         configure.ac): Likewise.
36270         * modules/unictype/property-paragraph-separator (Depends-on,
36271         configure.ac): Likewise.
36272         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36273         Likewise.
36274         * modules/unictype/property-pattern-white-space (Depends-on,
36275         configure.ac): Likewise.
36276         * modules/unictype/property-private-use (Depends-on, configure.ac):
36277         Likewise.
36278         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36279         Likewise.
36280         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36281         Likewise.
36282         * modules/unictype/property-radical (Depends-on, configure.ac):
36283         Likewise.
36284         * modules/unictype/property-sentence-terminal (Depends-on,
36285         configure.ac): Likewise.
36286         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36287         Likewise.
36288         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36289         * modules/unictype/property-terminal-punctuation (Depends-on,
36290         configure.ac): Likewise.
36291         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36292         Likewise.
36293         * modules/unictype/property-unassigned-code-value (Depends-on,
36294         configure.ac): Likewise.
36295         * modules/unictype/property-unified-ideograph (Depends-on,
36296         configure.ac): Likewise.
36297         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36298         Likewise.
36299         * modules/unictype/property-variation-selector (Depends-on,
36300         configure.ac): Likewise.
36301         * modules/unictype/property-white-space (Depends-on, configure.ac):
36302         Likewise.
36303         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36304         Likewise.
36305         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36306         Likewise.
36307         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36308         Likewise.
36309         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36310         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36311         Likewise.
36312
36313 2009-12-31  Bruno Haible  <bruno@clisp.org>
36314
36315         Remove unnecessary AC_C_INLINE invocation.
36316         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36317         since 2009-08-21.
36318
36319 2009-12-31  Jim Meyering  <meyering@redhat.com>
36320
36321         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36322         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36323         With this change, we can all remove the gpg_key_ID = ... definition
36324         from our respective cfg.mk files.
36325
36326         maint.mk: create announcement template in ~/, not in /tmp
36327         * top/maint.mk (emit_upload_commands): Adjust.
36328         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36329         Remove temporary file, .ci-msg.
36330
36331 2009-12-31  Eric Blake  <ebb9@byu.net>
36332
36333         link-warning: always build headers with link warnings
36334         * modules/arpa_inet (Makefile.am): Always build replacement
36335         header.
36336         * modules/ctype (Makefile.am): Likewise.
36337         * modules/dirent (Makefile.am): Likewise.
36338         * modules/inttypes (Makefile.am): Likewise.
36339         * modules/langinfo (Makefile.am): Likewise.
36340         * modules/locale (Makefile.am): Likewise.
36341         * modules/spawn (Makefile.am): Likewise.
36342         * modules/sys_file (Makefile.am): Likewise.
36343         * modules/sys_ioctl (Makefile.am): Likewise.
36344         * modules/sys_select (Makefile.am): Likewise.
36345         * modules/sys_socket (Makefile.am): Likewise.
36346         * modules/sys_times (Makefile.am): Likewise.
36347         * modules/sys_utsname (Makefile.am): Likewise.
36348         * modules/sys_wait (Makefile.am): Likewise.
36349         * modules/wchar (Makefile.am): Likewise.
36350         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36351         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36352         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36353         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36354         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36355         Likewise.
36356         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36357         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36358         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36359         Likewise.
36360         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36361         Likewise.
36362         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36363         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36364         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36365         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36366         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36367         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36368         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36369         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36370         (gl_WCHAR_H_DEFAULTS): Likewise.
36371
36372 2009-12-31  Eric Blake  <ebb9@byu.net>
36373
36374         signal, spawn: use link warnings
36375         * lib/signal.in.h (sigset_t): Make unconditional.
36376         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36377         (sigpending, sigprocmask, sigaction): Add link warnings.
36378         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36379         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36380         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36381         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36382         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36383         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36384         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36385         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36386         (posix_spawn_file_actions_destroy)
36387         (posix_spawn_file_actions_addopen)
36388         (posix_spawn_file_actions_addclose)
36389         (posix_spawn_file_actions_adddup2): Likewise.
36390         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36391         * tests/test-signal.c (main): Enhance test.
36392
36393         spawn: improve wrapper support
36394         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36395         (gl_SPAWN_H_DEFAULTS): New defaults.
36396         * modules/spawn (Makefile.am): Substitute them.
36397         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36398         Only declare if missing or broken.
36399
36400         sys_times, sys_utsname: use include_next
36401         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36402         header.
36403         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36404         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36405         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36406         * modules/sys_times (Depends-on): Add include_next.
36407         (Makefile.am): Substitute additional values.
36408         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36409         * lib/sys_times.in.h (includes): Include native header, if
36410         available.
36411         * lib/sys_utsname.in.h (includes): Likewise.
36412         * tests/test-sys_times.c (main): Enhance test.
36413
36414         fdutimensat: revert prior patch
36415         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36416         utimens.h.
36417         Reported by Bruno Haible.
36418
36419 2009-12-30  Eric Blake  <ebb9@byu.net>
36420
36421         sys_wait: drop link-warning dependency
36422         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36423         link-warning efforts.
36424         * lib/sys_wait.in.h: Likewise.
36425
36426         fdutimensat: remove bogus dependency
36427         * modules/fdutimensat (Depends-on): Drop inline.
36428
36429         unistd: fix typo
36430         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36431
36432 2009-12-30  Bruno Haible  <bruno@clisp.org>
36433
36434         Fix compilation error with Solaris cc.
36435         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36436         * lib/unicase/u16-is-invariant.c: Likewise.
36437         * lib/unicase/u32-is-invariant.c: Likewise.
36438         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36439
36440 2009-12-30  Bruno Haible  <bruno@clisp.org>
36441
36442         Fix test crash.
36443         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36444         locales.
36445         Reported by Simon Josefsson <simon@josefsson.org>.
36446
36447 2009-12-30  Bruno Haible  <bruno@clisp.org>
36448
36449         Fix compilation error on most platforms.
36450         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36451         Reported by Simon Josefsson <simon@josefsson.org>
36452         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36453
36454 2009-12-30  Eric Blake  <ebb9@byu.net>
36455
36456         futimens, utimensat: work around ntfs-3g bug
36457         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36458         a ctime bug is present, and expand workaround to cover ntfs-3g.
36459         * lib/utimens.c (fdutimens, lutimens): Likewise.
36460         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36461         (validate_timespec): Adjust return value.
36462         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36463         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36464         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36465
36466 2009-12-29  Eric Blake  <ebb9@byu.net>
36467
36468         link-warning: make usage consistent
36469         * modules/ctype (Depends-on): Add link-warning.
36470         (Makefile.am): Update rules accordingly.
36471         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36472         * modules/locale (Depends-on, Makefile.am): Likewise.
36473         * modules/sys_file (Makefile.am): Likewise.
36474         * modules/getopt-posix (Makefile.am): Delete unused link warning
36475         efforts.
36476         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36477         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36478         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36479         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36480
36481         stdio: remove unused variables
36482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36483         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36484         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36485
36486         tests: test more substitute headers
36487         * modules/ctype-tests: New file.
36488         * modules/dirent-tests: Likewise.
36489         * modules/spawn-tests: Likewise.
36490         * modules/sys_file-tests: Likewise.
36491         * modules/sys_ioctl-tests: Likewise.
36492         * modules/sys_wait-tests: Likewise.
36493         * tests/test-ctype.c: Likewise.
36494         * tests/test-dirent.c: Likewise.
36495         * tests/test-spawn.c: Likewise.
36496         * tests/test-sys_file.c: Likewise.
36497         * tests/test-sys_ioctl.c: Likewise.
36498         * tests/test-sys_wait.c: Likewise.
36499         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36500         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36501         whether or not flock is in use.
36502
36503         tests: remove License section from module
36504         * modules/arpa_inet-tests: Remove unneeded section.
36505         * modules/byteswap-tests: Likewise.
36506         * modules/ceilf-tests: Likewise.
36507         * modules/ceill-tests: Likewise.
36508         * modules/crypto/des-tests: Likewise.
36509         * modules/crypto/gc-arcfour-tests: Likewise.
36510         * modules/crypto/gc-arctwo-tests: Likewise.
36511         * modules/crypto/gc-des-tests: Likewise.
36512         * modules/crypto/gc-hmac-md5-tests: Likewise.
36513         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36514         * modules/crypto/gc-md2-tests: Likewise.
36515         * modules/crypto/gc-md4-tests: Likewise.
36516         * modules/crypto/gc-md5-tests: Likewise.
36517         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36518         * modules/crypto/gc-rijndael-tests: Likewise.
36519         * modules/crypto/gc-sha1-tests: Likewise.
36520         * modules/crypto/gc-tests: Likewise.
36521         * modules/crypto/md2-tests: Likewise.
36522         * modules/crypto/md4-tests: Likewise.
36523         * modules/fcntl-h-tests: Likewise.
36524         * modules/floorf-tests: Likewise.
36525         * modules/floorl-tests: Likewise.
36526         * modules/frexp-nolibm-tests: Likewise.
36527         * modules/frexp-tests: Likewise.
36528         * modules/frexpl-nolibm-tests: Likewise.
36529         * modules/frexpl-tests: Likewise.
36530         * modules/getaddrinfo-tests: Likewise.
36531         * modules/inttypes-tests: Likewise.
36532         * modules/isfinite-tests: Likewise.
36533         * modules/isinf-tests: Likewise.
36534         * modules/ldexpl-tests: Likewise.
36535         * modules/locale-tests: Likewise.
36536         * modules/math-tests: Likewise.
36537         * modules/netdb-tests: Likewise.
36538         * modules/netinet_in-tests: Likewise.
36539         * modules/printf-frexp-tests: Likewise.
36540         * modules/printf-frexpl-tests: Likewise.
36541         * modules/priv-set-tests: Likewise.
36542         * modules/random_r-tests: Likewise.
36543         * modules/round-tests: Likewise.
36544         * modules/roundf-tests: Likewise.
36545         * modules/roundl-tests: Likewise.
36546         * modules/search-tests: Likewise.
36547         * modules/select-tests: Likewise.
36548         * modules/signal-tests: Likewise.
36549         * modules/stdbool-tests: Likewise.
36550         * modules/stddef-tests: Likewise.
36551         * modules/stdint-tests: Likewise.
36552         * modules/stdio-tests: Likewise.
36553         * modules/stdlib-tests: Likewise.
36554         * modules/string-tests: Likewise.
36555         * modules/strings-tests: Likewise.
36556         * modules/sys_select-tests: Likewise.
36557         * modules/sys_socket-tests: Likewise.
36558         * modules/sys_stat-tests: Likewise.
36559         * modules/sys_time-tests: Likewise.
36560         * modules/sys_utsname-tests: Likewise.
36561         * modules/sysexits-tests: Likewise.
36562         * modules/time-tests: Likewise.
36563         * modules/trunc-tests: Likewise.
36564         * modules/truncf-tests: Likewise.
36565         * modules/truncl-tests: Likewise.
36566         * modules/tsearch-tests: Likewise.
36567         * modules/unistd-tests: Likewise.
36568         * modules/wchar-tests: Likewise.
36569         * modules/wctype-tests: Likewise.
36570
36571         tests: fix license on several tests
36572         * tests/test-des.c: Update to GPLv3+.
36573         * tests/test-flock.c: Likewise.
36574         * tests/test-fsync.c: Likewise.
36575         * tests/test-futimens.h: Likewise.
36576         * tests/test-gc-arcfour.c: Likewise.
36577         * tests/test-gc-arctwo.c: Likewise.
36578         * tests/test-gc-des.c: Likewise.
36579         * tests/test-gc-hmac-md5.c: Likewise.
36580         * tests/test-gc-hmac-sha1.c: Likewise.
36581         * tests/test-gc-md2.c: Likewise.
36582         * tests/test-gc-md4.c: Likewise.
36583         * tests/test-gc-md5.c: Likewise.
36584         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36585         * tests/test-gc-rijndael.c: Likewise.
36586         * tests/test-gc-sha1.c: Likewise.
36587         * tests/test-gc.c: Likewise.
36588         * tests/test-getcwd.c: Likewise.
36589         * tests/test-link.c: Likewise.
36590         * tests/test-link.h: Likewise.
36591         * tests/test-lutimens.h: Likewise.
36592         * tests/test-md2.c: Likewise.
36593         * tests/test-md4.c: Likewise.
36594         * tests/test-mkdir.h: Likewise.
36595         * tests/test-rename.c: Likewise.
36596         * tests/test-rename.h: Likewise.
36597         * tests/test-safe-alloc.c: Likewise.
36598         * tests/test-utimens-common.h: Likewise.
36599         * tests/test-utimens.h: Likewise.
36600
36601         maint: sync license texts
36602         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36603         * doc/gpl-3.0.texi: Revert copyright year update.
36604         * doc/lgpl-3.0.texi: Likewise.
36605
36606 2009-12-29  Jim Meyering  <meyering@redhat.com>
36607
36608         update nearly all FSF copyright year lists to include 2009
36609         The files named by the following are exempted:
36610             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36611               test -f "$dst" && { echo "$dst"; continue; }
36612               test -d "$dst" || continue
36613               echo "$dst"/$(basename "$src")
36614             done > exempt
36615             git ls-files tests/unictype >> exempt
36616         In the remaining files, convert to all-interval notation if
36617         - there is already at least one year interval like 2000-2003
36618         - the file is maintained by me
36619         - the file is in lib/uni*/, where that style already prevails
36620         Otherwise, use update-copyright's default.
36621
36622 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36623         and Eric Blake  <ebb9@byu.net>
36624
36625         tests: don't require debug system() to pass
36626         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36627         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36628         * tests/test-unlink.h (test_unlink_func): Likewise.
36629         * tests/test-fstatat.c (main): ...into callers.
36630         * tests/test-lstat.c (main): Likewise.
36631         * tests/test-rmdir.c (main): Likewise.
36632         * tests/test-unlink.c (main): Likewise.
36633         * tests/test-unlinkat.c (main): Likewise.
36634         * tests/test-areadlink-with-size.c (main): Don't require a
36635         debug-only system call to pass, aiding cross-testing to mingw.
36636         * tests/test-areadlink.c (main): Likewise.
36637         * tests/test-areadlinkat-with-size.c (main): Likewise.
36638         * tests/test-areadlinkat.c (main): Likewise.
36639         * tests/test-canonicalize-lgpl.c (main): Likewise.
36640         * tests/test-canonicalize.c (main): Likewise.
36641         * tests/test-chown.c (main): Likewise.
36642         * tests/test-fchownat.c (main): Likewise.
36643         * tests/test-lchown.c (main): Likewise.
36644         * tests/test-fdutimensat.c (main): Likewise.
36645         * tests/test-futimens.c (main): Likewise.
36646         * tests/test-link.c (main): Likewise.
36647         * tests/test-linkat.c (main): Likewise.
36648         * tests/test-mkdir.c (main): Likewise.
36649         * tests/test-mkdirat.c (main): Likewise.
36650         * tests/test-mkfifo.c (main): Likewise.
36651         * tests/test-mkfifoat.c (main): Likewise.
36652         * tests/test-mknod.c (main): Likewise.
36653         * tests/test-readlink.c (main): Likewise.
36654         * tests/test-remove.c (main): Likewise.
36655         * tests/test-rename.c (main): Likewise.
36656         * tests/test-renameat.c (main): Likewise.
36657         * tests/test-symlink.c (main): Likewise.
36658         * tests/test-symlinkat.c (main): Likewise.
36659         * tests/test-utimens.c (main): Likewise.
36660         * tests/test-utimensat.c (main): Likewise.
36661
36662 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36663
36664         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36665         on $(UNUSED_PARAMETER_H) to avoid build failure.
36666
36667 2009-12-28  Jim Meyering  <meyering@redhat.com>
36668
36669         update-copyright: you may specify a max. line length other than 72
36670         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36671
36672         maint: use consistent FSF copyright line syntax
36673         * lib/posixtm.c: Add missing comma in FSF copyright line.
36674         * lib/posixtm.h: Likewise.
36675         * lib/getugroups.c: Add missing ", Inc.".
36676
36677         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36678         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36679         FSF copyright line.  Remove trailing blanks.
36680
36681 2009-12-28  Eric Blake  <ebb9@byu.net>
36682
36683         test-dup2: reduce dependencies
36684         * modules/cloexec (Configure.ac): Set witness.
36685         * modules/dup2-tests (Depends-on): Drop cloexec.
36686         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36687         not present.
36688         Suggested by Bruno Haible.
36689
36690 2009-12-26  Bruno Haible  <bruno@clisp.org>
36691
36692         Remove an unneeded dependency.
36693         * modules/fseterr (Depends-on): Remove dup2.
36694
36695 2009-12-26  Eric Blake  <ebb9@byu.net>
36696
36697         tests: use macros.h in more places
36698         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36699         (ASSERT_STREAM): Provide default of stderr.
36700         * tests/test-dirent-safer.c: Include macros.h, using alternate
36701         stream for assertions.
36702         * tests/test-dup-safer.c: Likewise.
36703         * tests/test-freopen-safer.c: Likewise.
36704         * tests/test-getopt.c: Likewise.
36705         * tests/test-openat-safer.c: Likewise.
36706         * tests/test-pipe.c: Likewise.
36707         * tests/test-popen-safer.c: Likewise.
36708         * modules/dirent-safer-tests (Files): Include macros.h.
36709         * modules/unistd-safer-tests (Files): Likewise.
36710         * modules/freopen-safer-tests (Files): Likewise.
36711         * modules/getopt-posix-tests (Files): Likewise.
36712         * modules/openat-safer-tests (Files): Likewise.
36713         * modules/pipe-tests (Files): Likewise.
36714
36715 2009-12-26  Bruno Haible  <bruno@clisp.org>
36716
36717         javacomp: Portability fix.
36718         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36719         that it also works on Solaris.
36720
36721 2009-12-26  Bruno Haible  <bruno@clisp.org>
36722
36723         localename: Fix storage allocation of gl_locale_name_thread's result.
36724         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36725         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36726         all platforms that have 'uselocale'.
36727         (gl_locale_name_thread_unsafe): New function, extracted from
36728         gl_locale_name_thread.
36729         (gl_locale_name_thread): Call struniq on all platforms that have
36730         'uselocale'.
36731         * tests/test-localename.c (test_locale_name_thread): Check that the
36732         resulting strings are permanently allocated.
36733         * modules/localename-tests (Depends-on): Add strdup.
36734
36735 2009-12-26  Bruno Haible  <bruno@clisp.org>
36736
36737         * tests/test-localename.c (categories): Fill in the strings.
36738
36739 2009-12-26  Jim Meyering  <meyering@redhat.com>
36740
36741         isdir: complete the removal of m4/isdir.m4
36742         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36743
36744         isdir: clean up, since at least grep still uses it
36745         * lib/isdir.c: Include "isdir.h".
36746         (S_ISDIR): Remove now-unneeded definition.
36747         * modules/isdir (Files): Add lib/isdir.h.
36748         * lib/isdir.h: New file, with declaration.
36749         * m4/isdir.m4: Remove file -- unneeded.
36750
36751 2009-12-25  Bruno Haible  <bruno@clisp.org>
36752
36753         selinux-h: Make generated .h files standalone.
36754         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36755         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36756         * lib/se-selinux.in.h: Likewise.
36757         * modules/selinux-h (Depends-on): Add unused-parameter.
36758         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36759         selinux/selinux.h and selinux/context.h.
36760         Suggested by Eric Blake.
36761
36762 2009-12-25  Bruno Haible  <bruno@clisp.org>
36763
36764         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36765         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36766         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36767         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36768         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36769
36770 2009-12-24  Bruno Haible  <bruno@clisp.org>
36771
36772         openat: Fix warning.
36773         * lib/openat-proc.c: Include <unistd.h>.
36774
36775 2009-12-24  Bruno Haible  <bruno@clisp.org>
36776
36777         New module 'unused-parameter'.
36778         * build-aux/unused-parameter.h: New file, extracted from earlier
36779         gnulib-common.m4.
36780         * modules/unused-parameter: New file.
36781         * lib/unistr.h: Include unused-parameter.h.
36782         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36783         _GL_UNUSED.
36784         * modules/unistr/base (Depends-on): Add unused-parameter.
36785
36786 2009-12-24  Bruno Haible  <bruno@clisp.org>
36787
36788         Add missing dependencies to 'extensions' module.
36789         * m4/extensions.m4: Add comment.
36790         * modules/accept4 (Depends-on): Add extensions.
36791         * modules/dup3 (Depends-on): Likewise.
36792         * modules/fcntl (Depends-on): Likewise.
36793         * modules/futimens (Depends-on): Likewise.
36794         * modules/mknod (Depends-on): Likewise.
36795         * modules/pipe2 (Depends-on): Likewise.
36796         * modules/stat-time (Depends-on): Likewise.
36797         * modules/strcasestr-simple (Depends-on): Likewise.
36798         * modules/strsignal (Depends-on): Likewise.
36799         * modules/utimensat (Depends-on): Likewise.
36800         * modules/localcharset (Depends-on): Likewise. Needed because of
36801         gl_FCNTL_O_FLAGS.
36802         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36803         AC_TYPE_MBSTATE_T.
36804         * modules/wcsnrtombs (Depends-on): Likewise.
36805         * modules/wcsrtombs (Depends-on): Likewise.
36806
36807 2009-12-24  Bruno Haible  <bruno@clisp.org>
36808
36809         binary-io: Avoid gcc warning due to SET_BINARY.
36810         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36811         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36812
36813 2009-12-24  Bruno Haible  <bruno@clisp.org>
36814
36815         Avoid future namespace pollution on glibc systems.
36816         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36817         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36818         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36819         glibc systems.
36820
36821 2009-12-24  Bruno Haible  <bruno@clisp.org>
36822
36823         Refactor common macros used in tests.
36824         * tests/macros.h: New file.
36825         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36826         and/or <stdlib.h>, if appropriate.
36827         (ASSERT, SIZEOF): Remove macros.
36828         * tests/test-areadlink-with-size.c: Likewise.
36829         * tests/test-areadlinkat.c: Likewise.
36830         * tests/test-areadlinkat-with-size.c: Likewise.
36831         * tests/test-argmatch.c: Likewise.
36832         * tests/test-argv-iter.c: Likewise.
36833         * tests/test-array-mergesort.c: Likewise.
36834         * tests/test-array_list.c: Likewise.
36835         * tests/test-array_oset.c: Likewise.
36836         * tests/test-avltree_list.c: Likewise.
36837         * tests/test-avltree_oset.c: Likewise.
36838         * tests/test-avltreehash_list.c: Likewise.
36839         * tests/test-base64.c: Likewise.
36840         * tests/test-binary-io.c: Likewise.
36841         * tests/test-bitrotate.c: Likewise.
36842         * tests/test-btowc.c: Likewise.
36843         * tests/test-byteswap.c: Likewise.
36844         * tests/test-c-ctype.c: Likewise.
36845         * tests/test-c-stack.c: Likewise.
36846         * tests/test-c-strcasecmp.c: Likewise.
36847         * tests/test-c-strcasestr.c: Likewise.
36848         * tests/test-c-strncasecmp.c: Likewise.
36849         * tests/test-c-strstr.c: Likewise.
36850         * tests/test-canonicalize-lgpl.c: Likewise.
36851         * tests/test-canonicalize.c: Likewise.
36852         * tests/test-carray_list.c: Likewise.
36853         * tests/test-ceilf1.c: Likewise.
36854         * tests/test-ceilf2.c: Likewise.
36855         * tests/test-ceill.c: Likewise.
36856         * tests/test-chown.c: Likewise.
36857         * tests/test-cloexec.c: Likewise.
36858         * tests/test-copy-acl.c: Likewise.
36859         * tests/test-copy-file.c: Likewise.
36860         * tests/test-count-one-bits.c: Likewise.
36861         * tests/test-dprintf-posix.c: Likewise.
36862         * tests/test-dup2.c: Likewise.
36863         * tests/test-dup3.c: Likewise.
36864         * tests/test-duplocale.c: Likewise.
36865         * tests/test-fbufmode.c: Likewise.
36866         * tests/test-fchdir.c: Likewise.
36867         * tests/test-fchownat.c: Likewise.
36868         * tests/test-fcntl-safer.c: Likewise.
36869         * tests/test-fcntl.c: Likewise.
36870         * tests/test-fdopendir.c: Likewise.
36871         * tests/test-fdutimensat.c: Likewise.
36872         * tests/test-fflush2.c: Likewise.
36873         * tests/test-file-has-acl.c: Likewise.
36874         * tests/test-filevercmp.c: Likewise.
36875         * tests/test-flock.c: Likewise.
36876         * tests/test-floorf1.c: Likewise.
36877         * tests/test-floorf2.c: Likewise.
36878         * tests/test-floorl.c: Likewise.
36879         * tests/test-fnmatch.c: Likewise.
36880         * tests/test-fopen.h: Likewise.
36881         * tests/test-fpending.c: Likewise.
36882         * tests/test-fprintf-posix.c: Likewise.
36883         * tests/test-fpurge.c: Likewise.
36884         * tests/test-freadable.c: Likewise.
36885         * tests/test-freadahead.c: Likewise.
36886         * tests/test-freading.c: Likewise.
36887         * tests/test-freadptr.c: Likewise.
36888         * tests/test-freadptr2.c: Likewise.
36889         * tests/test-freadseek.c: Likewise.
36890         * tests/test-freopen.c: Likewise.
36891         * tests/test-frexp.c: Likewise.
36892         * tests/test-frexpl.c: Likewise.
36893         * tests/test-fseek.c: Likewise.
36894         * tests/test-fseeko.c: Likewise.
36895         * tests/test-fstatat.c: Likewise.
36896         * tests/test-fstrcmp.c: Likewise.
36897         * tests/test-fsync.c: Likewise.
36898         * tests/test-ftell.c: Likewise.
36899         * tests/test-ftello.c: Likewise.
36900         * tests/test-func.c: Likewise.
36901         * tests/test-futimens.c: Likewise.
36902         * tests/test-fwritable.c: Likewise.
36903         * tests/test-fwriting.c: Likewise.
36904         * tests/test-getcwd.c: Likewise.
36905         * tests/test-getdate.c: Likewise.
36906         * tests/test-getdelim.c: Likewise.
36907         * tests/test-getdtablesize.c: Likewise.
36908         * tests/test-getgroups.c: Likewise.
36909         * tests/test-getline.c: Likewise.
36910         * tests/test-getndelim2.c: Likewise.
36911         * tests/test-glob.c: Likewise.
36912         * tests/test-hash.c: Likewise.
36913         * tests/test-i-ring.c: Likewise.
36914         * tests/test-iconv-utf.c: Likewise.
36915         * tests/test-iconv.c: Likewise.
36916         * tests/test-idpriv-drop.c: Likewise.
36917         * tests/test-idpriv-droptemp.c: Likewise.
36918         * tests/test-inet_ntop.c: Likewise.
36919         * tests/test-inet_pton.c: Likewise.
36920         * tests/test-isblank.c: Likewise.
36921         * tests/test-isfinite.c: Likewise.
36922         * tests/test-isinf.c: Likewise.
36923         * tests/test-isnan.c: Likewise.
36924         * tests/test-isnand.h: Likewise.
36925         * tests/test-isnanf.h: Likewise.
36926         * tests/test-isnanl.h: Likewise.
36927         * tests/test-lchown.c: Likewise.
36928         * tests/test-ldexpl.c: Likewise.
36929         * tests/test-link.c: Likewise.
36930         * tests/test-linkat.c: Likewise.
36931         * tests/test-linked_list.c: Likewise.
36932         * tests/test-linkedhash_list.c: Likewise.
36933         * tests/test-localename.c: Likewise.
36934         * tests/test-lseek.c: Likewise.
36935         * tests/test-lstat.c: Likewise.
36936         * tests/test-mbmemcasecmp.c: Likewise.
36937         * tests/test-mbmemcasecoll.c: Likewise.
36938         * tests/test-mbrtowc.c: Likewise.
36939         * tests/test-mbscasecmp.c: Likewise.
36940         * tests/test-mbscasestr1.c: Likewise.
36941         * tests/test-mbscasestr2.c: Likewise.
36942         * tests/test-mbscasestr3.c: Likewise.
36943         * tests/test-mbscasestr4.c: Likewise.
36944         * tests/test-mbschr.c: Likewise.
36945         * tests/test-mbscspn.c: Likewise.
36946         * tests/test-mbsinit.c: Likewise.
36947         * tests/test-mbsncasecmp.c: Likewise.
36948         * tests/test-mbsnrtowcs.c: Likewise.
36949         * tests/test-mbspbrk.c: Likewise.
36950         * tests/test-mbspcasecmp.c: Likewise.
36951         * tests/test-mbsrchr.c: Likewise.
36952         * tests/test-mbsrtowcs.c: Likewise.
36953         * tests/test-mbsspn.c: Likewise.
36954         * tests/test-mbsstr1.c: Likewise.
36955         * tests/test-mbsstr2.c: Likewise.
36956         * tests/test-mbsstr3.c: Likewise.
36957         * tests/test-memchr.c: Likewise.
36958         * tests/test-memchr2.c: Likewise.
36959         * tests/test-memcmp.c: Likewise.
36960         * tests/test-memmem.c: Likewise.
36961         * tests/test-memrchr.c: Likewise.
36962         * tests/test-mkdir.c: Likewise.
36963         * tests/test-mkdirat.c: Likewise.
36964         * tests/test-mkfifo.c: Likewise.
36965         * tests/test-mkfifoat.c: Likewise.
36966         * tests/test-mknod.c: Likewise.
36967         * tests/test-nanosleep.c: Likewise.
36968         * tests/test-nl_langinfo.c: Likewise.
36969         * tests/test-obstack-printf.c: Likewise.
36970         * tests/test-open.c: Likewise.
36971         * tests/test-openat.c: Likewise.
36972         * tests/test-pipe-filter-gi1.c: Likewise.
36973         * tests/test-pipe-filter-gi2-main.c: Likewise.
36974         * tests/test-pipe-filter-ii1.c: Likewise.
36975         * tests/test-pipe-filter-ii2-main.c: Likewise.
36976         * tests/test-pipe2.c: Likewise.
36977         * tests/test-popen.h: Likewise.
36978         * tests/test-posixtm.c: Likewise.
36979         * tests/test-pread.c: Likewise.
36980         * tests/test-printf-frexp.c: Likewise.
36981         * tests/test-printf-frexpl.c: Likewise.
36982         * tests/test-printf-posix.c: Likewise.
36983         * tests/test-priv-set.c: Likewise.
36984         * tests/test-quotearg.c: Likewise.
36985         * tests/test-random_r.c: Likewise.
36986         * tests/test-rawmemchr.c: Likewise.
36987         * tests/test-rbtree_list.c: Likewise.
36988         * tests/test-rbtree_oset.c: Likewise.
36989         * tests/test-rbtreehash_list.c: Likewise.
36990         * tests/test-readlink.c: Likewise.
36991         * tests/test-remove.c: Likewise.
36992         * tests/test-rename.c: Likewise.
36993         * tests/test-renameat.c: Likewise.
36994         * tests/test-rmdir.c: Likewise.
36995         * tests/test-round1.c: Likewise.
36996         * tests/test-roundf1.c: Likewise.
36997         * tests/test-roundl.c: Likewise.
36998         * tests/test-safe-alloc.c: Likewise.
36999         * tests/test-sameacls.c: Likewise.
37000         * tests/test-set-mode-acl.c: Likewise.
37001         * tests/test-setenv.c: Likewise.
37002         * tests/test-sigaction.c: Likewise.
37003         * tests/test-signbit.c: Likewise.
37004         * tests/test-sleep.c: Likewise.
37005         * tests/test-snprintf-posix.c: Likewise.
37006         * tests/test-snprintf.c: Likewise.
37007         * tests/test-sprintf-posix.c: Likewise.
37008         * tests/test-stat-time.c: Likewise.
37009         * tests/test-stat.c: Likewise.
37010         * tests/test-strcasestr.c: Likewise.
37011         * tests/test-strchrnul.c: Likewise.
37012         * tests/test-strerror.c: Likewise.
37013         * tests/test-striconv.c: Likewise.
37014         * tests/test-striconveh.c: Likewise.
37015         * tests/test-striconveha.c: Likewise.
37016         * tests/test-strsignal.c: Likewise.
37017         * tests/test-strstr.c: Likewise.
37018         * tests/test-strtod.c: Likewise.
37019         * tests/test-strverscmp.c: Likewise.
37020         * tests/test-symlink.c: Likewise.
37021         * tests/test-symlinkat.c: Likewise.
37022         * tests/test-trunc1.c: Likewise.
37023         * tests/test-trunc2.c: Likewise.
37024         * tests/test-truncf1.c: Likewise.
37025         * tests/test-truncf2.c: Likewise.
37026         * tests/test-truncl.c: Likewise.
37027         * tests/test-uname.c: Likewise.
37028         * tests/test-unlink.c: Likewise.
37029         * tests/test-unlinkat.c: Likewise.
37030         * tests/test-unsetenv.c: Likewise.
37031         * tests/test-usleep.c: Likewise.
37032         * tests/test-utimens.c: Likewise.
37033         * tests/test-utimensat.c: Likewise.
37034         * tests/test-vasnprintf-posix.c: Likewise.
37035         * tests/test-vasnprintf-posix2.c: Likewise.
37036         * tests/test-vasnprintf.c: Likewise.
37037         * tests/test-vasprintf-posix.c: Likewise.
37038         * tests/test-vasprintf.c: Likewise.
37039         * tests/test-vdprintf-posix.c: Likewise.
37040         * tests/test-vfprintf-posix.c: Likewise.
37041         * tests/test-vprintf-posix.c: Likewise.
37042         * tests/test-vsnprintf-posix.c: Likewise.
37043         * tests/test-vsnprintf.c: Likewise.
37044         * tests/test-vsprintf-posix.c: Likewise.
37045         * tests/test-wcrtomb.c: Likewise.
37046         * tests/test-wcsnrtombs.c: Likewise.
37047         * tests/test-wcsrtombs.c: Likewise.
37048         * tests/test-wctype.c: Likewise.
37049         * tests/test-wcwidth.c: Likewise.
37050         * tests/test-xfprintf-posix.c: Likewise.
37051         * tests/test-xmemdup0.c: Likewise.
37052         * tests/test-xprintf-posix.c: Likewise.
37053         * tests/test-xvasprintf.c: Likewise.
37054         * tests/unicase/test-locale-language.c: Likewise.
37055         * tests/unicase/test-mapping-part1.h: Likewise.
37056         * tests/unicase/test-predicate-part1.h: Likewise.
37057         * tests/unicase/test-u8-casecmp.c: Likewise.
37058         * tests/unicase/test-u8-casecoll.c: Likewise.
37059         * tests/unicase/test-u8-casefold.c: Likewise.
37060         * tests/unicase/test-u8-is-cased.c: Likewise.
37061         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37062         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37063         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37064         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37065         * tests/unicase/test-u8-tolower.c: Likewise.
37066         * tests/unicase/test-u8-totitle.c: Likewise.
37067         * tests/unicase/test-u8-toupper.c: Likewise.
37068         * tests/unicase/test-u16-casecmp.c: Likewise.
37069         * tests/unicase/test-u16-casecoll.c: Likewise.
37070         * tests/unicase/test-u16-casefold.c: Likewise.
37071         * tests/unicase/test-u16-is-cased.c: Likewise.
37072         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37073         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37074         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37075         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37076         * tests/unicase/test-u16-tolower.c: Likewise.
37077         * tests/unicase/test-u16-totitle.c: Likewise.
37078         * tests/unicase/test-u16-toupper.c: Likewise.
37079         * tests/unicase/test-u32-casecmp.c: Likewise.
37080         * tests/unicase/test-u32-casecoll.c: Likewise.
37081         * tests/unicase/test-u32-casefold.c: Likewise.
37082         * tests/unicase/test-u32-is-cased.c: Likewise.
37083         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37084         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37085         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37086         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37087         * tests/unicase/test-u32-tolower.c: Likewise.
37088         * tests/unicase/test-u32-totitle.c: Likewise.
37089         * tests/unicase/test-u32-toupper.c: Likewise.
37090         * tests/unicase/test-ulc-casecmp.c: Likewise.
37091         * tests/unicase/test-ulc-casecoll.c: Likewise.
37092         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37093         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37094         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37095         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37096         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37097         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37098         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37099         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37100         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37101         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37102         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37103         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37104         * tests/unictype/test-bidi_byname.c: Likewise.
37105         * tests/unictype/test-bidi_name.c: Likewise.
37106         * tests/unictype/test-bidi_of.c: Likewise.
37107         * tests/unictype/test-bidi_test.c: Likewise.
37108         * tests/unictype/test-block_list.c: Likewise.
37109         * tests/unictype/test-block_of.c: Likewise.
37110         * tests/unictype/test-block_test.c: Likewise.
37111         * tests/unictype/test-categ_and.c: Likewise.
37112         * tests/unictype/test-categ_and_not.c: Likewise.
37113         * tests/unictype/test-categ_byname.c: Likewise.
37114         * tests/unictype/test-categ_name.c: Likewise.
37115         * tests/unictype/test-categ_none.c: Likewise.
37116         * tests/unictype/test-categ_of.c: Likewise.
37117         * tests/unictype/test-categ_or.c: Likewise.
37118         * tests/unictype/test-categ_test_withtable.c: Likewise.
37119         * tests/unictype/test-combining.c: Likewise.
37120         * tests/unictype/test-decdigit.c: Likewise.
37121         * tests/unictype/test-digit.c: Likewise.
37122         * tests/unictype/test-mirror.c: Likewise.
37123         * tests/unictype/test-numeric.c: Likewise.
37124         * tests/unictype/test-pr_byname.c: Likewise.
37125         * tests/unictype/test-pr_test.c: Likewise.
37126         * tests/unictype/test-predicate-part1.h: Likewise.
37127         * tests/unictype/test-scripts.c: Likewise.
37128         * tests/unictype/test-sy_c_ident.c: Likewise.
37129         * tests/unictype/test-sy_java_ident.c: Likewise.
37130         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37131         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37132         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37133         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37134         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37135         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37136         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37137         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37138         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37139         * tests/uninorm/test-compat-decomposition.c: Likewise.
37140         * tests/uninorm/test-composition.c: Likewise.
37141         * tests/uninorm/test-decomposing-form.c: Likewise.
37142         * tests/uninorm/test-decomposition.c: Likewise.
37143         * tests/uninorm/test-u8-nfc.c: Likewise.
37144         * tests/uninorm/test-u8-nfd.c: Likewise.
37145         * tests/uninorm/test-u8-nfkc.c: Likewise.
37146         * tests/uninorm/test-u8-nfkd.c: Likewise.
37147         * tests/uninorm/test-u8-normcmp.c: Likewise.
37148         * tests/uninorm/test-u8-normcoll.c: Likewise.
37149         * tests/uninorm/test-u16-nfc.c: Likewise.
37150         * tests/uninorm/test-u16-nfd.c: Likewise.
37151         * tests/uninorm/test-u16-nfkc.c: Likewise.
37152         * tests/uninorm/test-u16-nfkd.c: Likewise.
37153         * tests/uninorm/test-u16-normcmp.c: Likewise.
37154         * tests/uninorm/test-u16-normcoll.c: Likewise.
37155         * tests/uninorm/test-u32-nfc.c: Likewise.
37156         * tests/uninorm/test-u32-nfd.c: Likewise.
37157         * tests/uninorm/test-u32-nfkc.c: Likewise.
37158         * tests/uninorm/test-u32-nfkd.c: Likewise.
37159         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37160         * tests/uninorm/test-u32-normcmp.c: Likewise.
37161         * tests/uninorm/test-u32-normcoll.c: Likewise.
37162         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37163         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37164         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37165         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37166         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37167         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37168         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37169         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37170         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37171         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37172         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37173         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37174         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37175         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37176         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37177         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37178         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37179         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37180         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37181         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37182         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37183         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37184         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37185         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37186         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37187         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37188         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37189         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37190         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37191         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37192         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37193         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37194         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37195         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37196         * tests/uniwidth/test-u8-width.c: Likewise.
37197         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37198         * tests/uniwidth/test-u16-width.c: Likewise.
37199         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37200         * tests/uniwidth/test-u32-width.c: Likewise.
37201         * tests/uniwidth/test-uc_width.c: Likewise.
37202         * tests/uniwidth/test-uc_width2.c: Likewise.
37203         * modules/acl-tests (Files): Add tests/macros.h.
37204         * modules/areadlink-tests (Files): Likewise.
37205         * modules/areadlink-with-size-tests (Files): Likewise.
37206         * modules/areadlinkat-tests (Files): Likewise.
37207         * modules/areadlinkat-with-size-tests (Files): Likewise.
37208         * modules/argmatch-tests (Files): Likewise.
37209         * modules/argv-iter-tests (Files): Likewise.
37210         * modules/array-list-tests (Files): Likewise.
37211         * modules/array-mergesort-tests (Files): Likewise.
37212         * modules/array-oset-tests (Files): Likewise.
37213         * modules/avltree-list-tests (Files): Likewise.
37214         * modules/avltree-oset-tests (Files): Likewise.
37215         * modules/avltreehash-list-tests (Files): Likewise.
37216         * modules/base64-tests (Files): Likewise.
37217         * modules/binary-io-tests (Files): Likewise.
37218         * modules/bitrotate-tests (Files): Likewise.
37219         * modules/btowc-tests (Files): Likewise.
37220         * modules/byteswap-tests (Files): Likewise.
37221         * modules/c-ctype-tests (Files): Likewise.
37222         * modules/c-stack-tests (Files): Likewise.
37223         * modules/c-strcase-tests (Files): Likewise.
37224         * modules/c-strcasestr-tests (Files): Likewise.
37225         * modules/c-strstr-tests (Files): Likewise.
37226         * modules/canonicalize-lgpl-tests (Files): Likewise.
37227         * modules/canonicalize-tests (Files): Likewise.
37228         * modules/carray-list-tests (Files): Likewise.
37229         * modules/ceilf-tests (Files): Likewise.
37230         * modules/ceill-tests (Files): Likewise.
37231         * modules/chown-tests (Files): Likewise.
37232         * modules/cloexec-tests (Files): Likewise.
37233         * modules/copy-file-tests (Files): Likewise.
37234         * modules/count-one-bits-tests (Files): Likewise.
37235         * modules/dprintf-posix-tests (Files): Likewise.
37236         * modules/dup2-tests (Files): Likewise.
37237         * modules/dup3-tests (Files): Likewise.
37238         * modules/duplocale-tests (Files): Likewise.
37239         * modules/fbufmode-tests (Files): Likewise.
37240         * modules/fchdir-tests (Files): Likewise.
37241         * modules/fcntl-safer-tests (Files): Likewise.
37242         * modules/fcntl-tests (Files): Likewise.
37243         * modules/fdopendir-tests (Files): Likewise.
37244         * modules/fdutimensat-tests (Files): Likewise.
37245         * modules/fflush-tests (Files): Likewise.
37246         * modules/filevercmp-tests (Files): Likewise.
37247         * modules/flock-tests (Files): Likewise.
37248         * modules/floorf-tests (Files): Likewise.
37249         * modules/floorl-tests (Files): Likewise.
37250         * modules/fnmatch-tests (Files): Likewise.
37251         * modules/fopen-safer-tests (Files): Likewise.
37252         * modules/fopen-tests (Files): Likewise.
37253         * modules/fpending-tests (Files): Likewise.
37254         * modules/fprintf-posix-tests (Files): Likewise.
37255         * modules/fpurge-tests (Files): Likewise.
37256         * modules/freadable-tests (Files): Likewise.
37257         * modules/freadahead-tests (Files): Likewise.
37258         * modules/freading-tests (Files): Likewise.
37259         * modules/freadptr-tests (Files): Likewise.
37260         * modules/freadseek-tests (Files): Likewise.
37261         * modules/freopen-tests (Files): Likewise.
37262         * modules/frexp-nolibm-tests (Files): Likewise.
37263         * modules/frexp-tests (Files): Likewise.
37264         * modules/frexpl-nolibm-tests (Files): Likewise.
37265         * modules/frexpl-tests (Files): Likewise.
37266         * modules/fseek-tests (Files): Likewise.
37267         * modules/fseeko-tests (Files): Likewise.
37268         * modules/fstrcmp-tests (Files): Likewise.
37269         * modules/fsync-tests (Files): Likewise.
37270         * modules/ftell-tests (Files): Likewise.
37271         * modules/ftello-tests (Files): Likewise.
37272         * modules/func-tests (Files): Likewise.
37273         * modules/futimens-tests (Files): Likewise.
37274         * modules/fwritable-tests (Files): Likewise.
37275         * modules/fwriting-tests (Files): Likewise.
37276         * modules/getcwd-tests (Files): Likewise.
37277         * modules/getdate-tests (Files): Likewise.
37278         * modules/getdelim-tests (Files): Likewise.
37279         * modules/getdtablesize-tests (Files): Likewise.
37280         * modules/getgroups-tests (Files): Likewise.
37281         * modules/getline-tests (Files): Likewise.
37282         * modules/getndelim2-tests (Files): Likewise.
37283         * modules/glob-tests (Files): Likewise.
37284         * modules/hash-tests (Files): Likewise.
37285         * modules/i-ring-tests (Files): Likewise.
37286         * modules/iconv-tests (Files): Likewise.
37287         * modules/iconv_open-utf-tests (Files): Likewise.
37288         * modules/idpriv-drop-tests (Files): Likewise.
37289         * modules/idpriv-droptemp-tests (Files): Likewise.
37290         * modules/inet_ntop-tests (Files): Likewise.
37291         * modules/inet_pton-tests (Files): Likewise.
37292         * modules/isblank-tests (Files): Likewise.
37293         * modules/isfinite-tests (Files): Likewise.
37294         * modules/isinf-tests (Files): Likewise.
37295         * modules/isnan-tests (Files): Likewise.
37296         * modules/isnand-nolibm-tests (Files): Likewise.
37297         * modules/isnand-tests (Files): Likewise.
37298         * modules/isnanf-nolibm-tests (Files): Likewise.
37299         * modules/isnanf-tests (Files): Likewise.
37300         * modules/isnanl-nolibm-tests (Files): Likewise.
37301         * modules/isnanl-tests (Files): Likewise.
37302         * modules/lchown-tests (Files): Likewise.
37303         * modules/ldexpl-tests (Files): Likewise.
37304         * modules/link-tests (Files): Likewise.
37305         * modules/linkat-tests (Files): Likewise.
37306         * modules/linked-list-tests (Files): Likewise.
37307         * modules/linkedhash-list-tests (Files): Likewise.
37308         * modules/localename-tests (Files): Likewise.
37309         * modules/lseek-tests (Files): Likewise.
37310         * modules/lstat-tests (Files): Likewise.
37311         * modules/mbmemcasecmp-tests (Files): Likewise.
37312         * modules/mbmemcasecoll-tests (Files): Likewise.
37313         * modules/mbrtowc-tests (Files): Likewise.
37314         * modules/mbscasecmp-tests (Files): Likewise.
37315         * modules/mbscasestr-tests (Files): Likewise.
37316         * modules/mbschr-tests (Files): Likewise.
37317         * modules/mbscspn-tests (Files): Likewise.
37318         * modules/mbsinit-tests (Files): Likewise.
37319         * modules/mbsncasecmp-tests (Files): Likewise.
37320         * modules/mbsnrtowcs-tests (Files): Likewise.
37321         * modules/mbspbrk-tests (Files): Likewise.
37322         * modules/mbspcasecmp-tests (Files): Likewise.
37323         * modules/mbsrchr-tests (Files): Likewise.
37324         * modules/mbsrtowcs-tests (Files): Likewise.
37325         * modules/mbsspn-tests (Files): Likewise.
37326         * modules/mbsstr-tests (Files): Likewise.
37327         * modules/memchr-tests (Files): Likewise.
37328         * modules/memchr2-tests (Files): Likewise.
37329         * modules/memcmp-tests (Files): Likewise.
37330         * modules/memmem-tests (Files): Likewise.
37331         * modules/memrchr-tests (Files): Likewise.
37332         * modules/mkdir-tests (Files): Likewise.
37333         * modules/mkfifo-tests (Files): Likewise.
37334         * modules/mkfifoat-tests (Files): Likewise.
37335         * modules/mknod-tests (Files): Likewise.
37336         * modules/nanosleep-tests (Files): Likewise.
37337         * modules/nl_langinfo-tests (Files): Likewise.
37338         * modules/obstack-printf-tests (Files): Likewise.
37339         * modules/open-tests (Files): Likewise.
37340         * modules/openat-tests (Files): Likewise.
37341         * modules/pipe-filter-gi-tests (Files): Likewise.
37342         * modules/pipe-filter-ii-tests (Files): Likewise.
37343         * modules/pipe2-tests (Files): Likewise.
37344         * modules/popen-safer-tests (Files): Likewise.
37345         * modules/popen-tests (Files): Likewise.
37346         * modules/posixtm-tests (Files): Likewise.
37347         * modules/pread-tests (Files): Likewise.
37348         * modules/printf-frexp-tests (Files): Likewise.
37349         * modules/printf-frexpl-tests (Files): Likewise.
37350         * modules/printf-posix-tests (Files): Likewise.
37351         * modules/priv-set-tests (Files): Likewise.
37352         * modules/quotearg-tests (Files): Likewise.
37353         * modules/random_r-tests (Files): Likewise.
37354         * modules/rawmemchr-tests (Files): Likewise.
37355         * modules/rbtree-list-tests (Files): Likewise.
37356         * modules/rbtree-oset-tests (Files): Likewise.
37357         * modules/rbtreehash-list-tests (Files): Likewise.
37358         * modules/readlink-tests (Files): Likewise.
37359         * modules/remove-tests (Files): Likewise.
37360         * modules/rename-tests (Files): Likewise.
37361         * modules/renameat-tests (Files): Likewise.
37362         * modules/rmdir-tests (Files): Likewise.
37363         * modules/round-tests (Files): Likewise.
37364         * modules/roundf-tests (Files): Likewise.
37365         * modules/roundl-tests (Files): Likewise.
37366         * modules/safe-alloc-tests (Files): Likewise.
37367         * modules/setenv-tests (Files): Likewise.
37368         * modules/sigaction-tests (Files): Likewise.
37369         * modules/signbit-tests (Files): Likewise.
37370         * modules/sleep-tests (Files): Likewise.
37371         * modules/snprintf-posix-tests (Files): Likewise.
37372         * modules/snprintf-tests (Files): Likewise.
37373         * modules/sprintf-posix-tests (Files): Likewise.
37374         * modules/stat-tests (Files): Likewise.
37375         * modules/stat-time-tests (Files): Likewise.
37376         * modules/strcasestr-tests (Files): Likewise.
37377         * modules/strchrnul-tests (Files): Likewise.
37378         * modules/strerror-tests (Files): Likewise.
37379         * modules/striconv-tests (Files): Likewise.
37380         * modules/striconveh-tests (Files): Likewise.
37381         * modules/striconveha-tests (Files): Likewise.
37382         * modules/strsignal-tests (Files): Likewise.
37383         * modules/strstr-tests (Files): Likewise.
37384         * modules/strtod-tests (Files): Likewise.
37385         * modules/strverscmp-tests (Files): Likewise.
37386         * modules/symlink-tests (Files): Likewise.
37387         * modules/symlinkat-tests (Files): Likewise.
37388         * modules/trunc-tests (Files): Likewise.
37389         * modules/truncf-tests (Files): Likewise.
37390         * modules/truncl-tests (Files): Likewise.
37391         * modules/uname-tests (Files): Likewise.
37392         * modules/unicase/cased-tests (Files): Likewise.
37393         * modules/unicase/ignorable-tests (Files): Likewise.
37394         * modules/unicase/locale-language-tests (Files): Likewise.
37395         * modules/unicase/tolower-tests (Files): Likewise.
37396         * modules/unicase/totitle-tests (Files): Likewise.
37397         * modules/unicase/toupper-tests (Files): Likewise.
37398         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37399         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37400         * modules/unicase/u8-casefold-tests (Files): Likewise.
37401         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37402         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37403         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37404         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37405         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37406         * modules/unicase/u8-tolower-tests (Files): Likewise.
37407         * modules/unicase/u8-totitle-tests (Files): Likewise.
37408         * modules/unicase/u8-toupper-tests (Files): Likewise.
37409         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37410         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37411         * modules/unicase/u16-casefold-tests (Files): Likewise.
37412         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37413         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37414         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37415         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37416         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37417         * modules/unicase/u16-tolower-tests (Files): Likewise.
37418         * modules/unicase/u16-totitle-tests (Files): Likewise.
37419         * modules/unicase/u16-toupper-tests (Files): Likewise.
37420         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37421         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37422         * modules/unicase/u32-casefold-tests (Files): Likewise.
37423         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37424         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37425         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37426         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37427         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37428         * modules/unicase/u32-tolower-tests (Files): Likewise.
37429         * modules/unicase/u32-totitle-tests (Files): Likewise.
37430         * modules/unicase/u32-toupper-tests (Files): Likewise.
37431         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37432         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37433         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37434         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37435         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37436         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37437         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37438         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37439         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37440         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37441         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37442         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37443         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37444         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37445         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37446         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37447         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37448         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37449         * modules/unictype/block-list-tests (Files): Likewise.
37450         * modules/unictype/block-of-tests (Files): Likewise.
37451         * modules/unictype/block-test-tests (Files): Likewise.
37452         * modules/unictype/category-C-tests (Files): Likewise.
37453         * modules/unictype/category-Cc-tests (Files): Likewise.
37454         * modules/unictype/category-Cf-tests (Files): Likewise.
37455         * modules/unictype/category-Cn-tests (Files): Likewise.
37456         * modules/unictype/category-Co-tests (Files): Likewise.
37457         * modules/unictype/category-Cs-tests (Files): Likewise.
37458         * modules/unictype/category-L-tests (Files): Likewise.
37459         * modules/unictype/category-Ll-tests (Files): Likewise.
37460         * modules/unictype/category-Lm-tests (Files): Likewise.
37461         * modules/unictype/category-Lo-tests (Files): Likewise.
37462         * modules/unictype/category-Lt-tests (Files): Likewise.
37463         * modules/unictype/category-Lu-tests (Files): Likewise.
37464         * modules/unictype/category-M-tests (Files): Likewise.
37465         * modules/unictype/category-Mc-tests (Files): Likewise.
37466         * modules/unictype/category-Me-tests (Files): Likewise.
37467         * modules/unictype/category-Mn-tests (Files): Likewise.
37468         * modules/unictype/category-N-tests (Files): Likewise.
37469         * modules/unictype/category-Nd-tests (Files): Likewise.
37470         * modules/unictype/category-Nl-tests (Files): Likewise.
37471         * modules/unictype/category-No-tests (Files): Likewise.
37472         * modules/unictype/category-P-tests (Files): Likewise.
37473         * modules/unictype/category-Pc-tests (Files): Likewise.
37474         * modules/unictype/category-Pd-tests (Files): Likewise.
37475         * modules/unictype/category-Pe-tests (Files): Likewise.
37476         * modules/unictype/category-Pf-tests (Files): Likewise.
37477         * modules/unictype/category-Pi-tests (Files): Likewise.
37478         * modules/unictype/category-Po-tests (Files): Likewise.
37479         * modules/unictype/category-Ps-tests (Files): Likewise.
37480         * modules/unictype/category-S-tests (Files): Likewise.
37481         * modules/unictype/category-Sc-tests (Files): Likewise.
37482         * modules/unictype/category-Sk-tests (Files): Likewise.
37483         * modules/unictype/category-Sm-tests (Files): Likewise.
37484         * modules/unictype/category-So-tests (Files): Likewise.
37485         * modules/unictype/category-Z-tests (Files): Likewise.
37486         * modules/unictype/category-Zl-tests (Files): Likewise.
37487         * modules/unictype/category-Zp-tests (Files): Likewise.
37488         * modules/unictype/category-Zs-tests (Files): Likewise.
37489         * modules/unictype/category-and-not-tests (Files): Likewise.
37490         * modules/unictype/category-and-tests (Files): Likewise.
37491         * modules/unictype/category-byname-tests (Files): Likewise.
37492         * modules/unictype/category-name-tests (Files): Likewise.
37493         * modules/unictype/category-none-tests (Files): Likewise.
37494         * modules/unictype/category-of-tests (Files): Likewise.
37495         * modules/unictype/category-or-tests (Files): Likewise.
37496         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37497         * modules/unictype/combining-class-tests (Files): Likewise.
37498         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37499         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37500         * modules/unictype/ctype-blank-tests (Files): Likewise.
37501         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37502         * modules/unictype/ctype-digit-tests (Files): Likewise.
37503         * modules/unictype/ctype-graph-tests (Files): Likewise.
37504         * modules/unictype/ctype-lower-tests (Files): Likewise.
37505         * modules/unictype/ctype-print-tests (Files): Likewise.
37506         * modules/unictype/ctype-punct-tests (Files): Likewise.
37507         * modules/unictype/ctype-space-tests (Files): Likewise.
37508         * modules/unictype/ctype-upper-tests (Files): Likewise.
37509         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37510         * modules/unictype/decimal-digit-tests (Files): Likewise.
37511         * modules/unictype/digit-tests (Files): Likewise.
37512         * modules/unictype/mirror-tests (Files): Likewise.
37513         * modules/unictype/numeric-tests (Files): Likewise.
37514         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37515         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37516         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37517         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37518         Likewise.
37519         * modules/unictype/property-bidi-block-separator-tests (Files):
37520         Likewise.
37521         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37522         Likewise.
37523         * modules/unictype/property-bidi-common-separator-tests (Files):
37524         Likewise.
37525         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37526         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37527         Likewise.
37528         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37529         Likewise.
37530         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37531         Likewise.
37532         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37533         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37534         Likewise.
37535         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37536         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37537         Likewise.
37538         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37539         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37540         * modules/unictype/property-bidi-segment-separator-tests (Files):
37541         Likewise.
37542         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37543         * modules/unictype/property-byname-tests (Files): Likewise.
37544         * modules/unictype/property-combining-tests (Files): Likewise.
37545         * modules/unictype/property-composite-tests (Files): Likewise.
37546         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37547         * modules/unictype/property-dash-tests (Files): Likewise.
37548         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37549         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37550         Likewise.
37551         * modules/unictype/property-deprecated-tests (Files): Likewise.
37552         * modules/unictype/property-diacritic-tests (Files): Likewise.
37553         * modules/unictype/property-extender-tests (Files): Likewise.
37554         * modules/unictype/property-format-control-tests (Files): Likewise.
37555         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37556         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37557         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37558         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37559         * modules/unictype/property-hyphen-tests (Files): Likewise.
37560         * modules/unictype/property-id-continue-tests (Files): Likewise.
37561         * modules/unictype/property-id-start-tests (Files): Likewise.
37562         * modules/unictype/property-ideographic-tests (Files): Likewise.
37563         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37564         * modules/unictype/property-ids-trinary-operator-tests (Files):
37565         Likewise.
37566         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37567         * modules/unictype/property-iso-control-tests (Files): Likewise.
37568         * modules/unictype/property-join-control-tests (Files): Likewise.
37569         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37570         * modules/unictype/property-line-separator-tests (Files): Likewise.
37571         * modules/unictype/property-logical-order-exception-tests (Files):
37572         Likewise.
37573         * modules/unictype/property-lowercase-tests (Files): Likewise.
37574         * modules/unictype/property-math-tests (Files): Likewise.
37575         * modules/unictype/property-non-break-tests (Files): Likewise.
37576         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37577         * modules/unictype/property-numeric-tests (Files): Likewise.
37578         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37579         * modules/unictype/property-other-default-ignorable-code-point-tests
37580         (Files): Likewise.
37581         * modules/unictype/property-other-grapheme-extend-tests (Files):
37582         Likewise.
37583         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37584         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37585         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37586         * modules/unictype/property-other-math-tests (Files): Likewise.
37587         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37588         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37589         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37590         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37591         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37592         * modules/unictype/property-private-use-tests (Files): Likewise.
37593         * modules/unictype/property-punctuation-tests (Files): Likewise.
37594         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37595         * modules/unictype/property-radical-tests (Files): Likewise.
37596         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37597         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37598         * modules/unictype/property-space-tests (Files): Likewise.
37599         * modules/unictype/property-terminal-punctuation-tests (Files):
37600         Likewise.
37601         * modules/unictype/property-test-tests (Files): Likewise.
37602         * modules/unictype/property-titlecase-tests (Files): Likewise.
37603         * modules/unictype/property-unassigned-code-value-tests (Files):
37604         Likewise.
37605         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37606         * modules/unictype/property-uppercase-tests (Files): Likewise.
37607         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37608         * modules/unictype/property-white-space-tests (Files): Likewise.
37609         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37610         * modules/unictype/property-xid-start-tests (Files): Likewise.
37611         * modules/unictype/property-zero-width-tests (Files): Likewise.
37612         * modules/unictype/scripts-tests (Files): Likewise.
37613         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37614         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37615         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37616         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37617         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37618         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37619         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37620         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37621         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37622         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37623         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37624         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37625         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37626         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37627         * modules/uninorm/composition-tests (Files): Likewise.
37628         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37629         * modules/uninorm/decomposition-tests (Files): Likewise.
37630         * modules/uninorm/filter-tests (Files): Likewise.
37631         * modules/uninorm/nfc-tests (Files): Likewise.
37632         * modules/uninorm/nfd-tests (Files): Likewise.
37633         * modules/uninorm/nfkc-tests (Files): Likewise.
37634         * modules/uninorm/nfkd-tests (Files): Likewise.
37635         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37636         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37637         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37638         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37639         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37640         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37641         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37642         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37643         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37644         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37645         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37646         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37647         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37648         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37649         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37650         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37651         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37652         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37653         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37654         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37655         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37656         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37657         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37658         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37659         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37660         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37661         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37662         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37663         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37664         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37665         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37666         * modules/uniwidth/u8-width-tests (Files): Likewise.
37667         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37668         * modules/uniwidth/u16-width-tests (Files): Likewise.
37669         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37670         * modules/uniwidth/u32-width-tests (Files): Likewise.
37671         * modules/uniwidth/width-tests (Files): Likewise.
37672         * modules/unlink-tests (Files): Likewise.
37673         * modules/unsetenv-tests (Files): Likewise.
37674         * modules/usleep-tests (Files): Likewise.
37675         * modules/utimens-tests (Files): Likewise.
37676         * modules/utimensat-tests (Files): Likewise.
37677         * modules/vasnprintf-posix-tests (Files): Likewise.
37678         * modules/vasnprintf-tests (Files): Likewise.
37679         * modules/vasprintf-posix-tests (Files): Likewise.
37680         * modules/vasprintf-tests (Files): Likewise.
37681         * modules/vdprintf-posix-tests (Files): Likewise.
37682         * modules/vfprintf-posix-tests (Files): Likewise.
37683         * modules/vprintf-posix-tests (Files): Likewise.
37684         * modules/vsnprintf-posix-tests (Files): Likewise.
37685         * modules/vsnprintf-tests (Files): Likewise.
37686         * modules/vsprintf-posix-tests (Files): Likewise.
37687         * modules/wcrtomb-tests (Files): Likewise.
37688         * modules/wcsnrtombs-tests (Files): Likewise.
37689         * modules/wcsrtombs-tests (Files): Likewise.
37690         * modules/wctype-tests (Files): Likewise.
37691         * modules/wcwidth-tests (Files): Likewise.
37692         * modules/xmemdup0-tests (Files): Likewise.
37693         * modules/xprintf-posix-tests (Files): Likewise.
37694         * modules/xvasprintf-tests (Files): Likewise.
37695
37696 2009-12-24  Eric Blake  <ebb9@byu.net>
37697
37698         test-nanosleep: fix typo
37699         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37700         patch.
37701         Reported by Bruno Haible.
37702
37703 2009-12-24  Bruno Haible  <bruno@clisp.org>
37704
37705         Reduce namespace pollution on glibc systems.
37706         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37707         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37708         systems.
37709         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37710         <getopt.h> on glibc systems.
37711         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37712         systems.
37713         * lib/fcntl.c: Include <unistd.h> here instead.
37714
37715 2009-12-24  Bruno Haible  <bruno@clisp.org>
37716
37717         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37718
37719 2009-12-24  Eric Blake  <ebb9@byu.net>
37720
37721         tests: add signature checks
37722         * tests/signature.h (SIGNATURE_CHECK): New file.
37723         * modules/atexit-tests (Files): Use it.
37724         * modules/btowc-tests (Files): Likewise.
37725         * modules/canonicalize-lgpl-tests (Files): Likewise.
37726         * modules/ceilf-tests (Files): Likewise.
37727         * modules/ceill-tests (Files): Likewise.
37728         * modules/chown-tests (Files): Likewise.
37729         * modules/dprintf-posix-tests (Files): Likewise.
37730         * modules/dup2-tests (Files): Likewise.
37731         * modules/dup3-tests (Files): Likewise.
37732         * modules/duplocale-tests (Files): Likewise.
37733         * modules/fchdir-tests (Files): Likewise.
37734         * modules/fcntl-tests (Files): Likewise.
37735         * modules/fdopendir-tests (Files): Likewise.
37736         * modules/fflush-tests (Files): Likewise.
37737         * modules/flock-tests (Files): Likewise.
37738         * modules/floorf-tests (Files): Likewise.
37739         * modules/floorl-tests (Files): Likewise.
37740         * modules/fnmatch-tests (Files): Likewise.
37741         * modules/fopen-tests (Files): Likewise.
37742         * modules/fprintf-posix-tests (Files): Likewise.
37743         * modules/freopen-tests (Files): Likewise.
37744         * modules/frexp-nolibm-tests (Files): Likewise.
37745         * modules/frexp-tests (Files): Likewise.
37746         * modules/frexpl-nolibm-tests (Files): Likewise.
37747         * modules/frexpl-tests (Files): Likewise.
37748         * modules/fseek-tests (Files): Likewise.
37749         * modules/fseeko-tests (Files): Likewise.
37750         * modules/fsync-tests (Files): Likewise.
37751         * modules/ftell-tests (Files): Likewise.
37752         * modules/ftello-tests (Files): Likewise.
37753         * modules/futimens-tests (Files): Likewise.
37754         * modules/getaddrinfo-tests (Files): Likewise.
37755         * modules/getcwd-tests (Files): Likewise.
37756         * modules/getdelim-tests (Files): Likewise.
37757         * modules/getdtablesize-tests (Files): Likewise.
37758         * modules/getgroups-tests (Files): Likewise.
37759         * modules/gethostname-tests (Files): Likewise.
37760         * modules/getline-tests (Files): Likewise.
37761         * modules/getopt-posix-tests (Files): Likewise.
37762         * modules/gettimeofday-tests (Files): Likewise.
37763         * modules/glob-tests (Files): Likewise.
37764         * modules/iconv-tests (Files): Likewise.
37765         * modules/inet_ntop-tests (Files): Likewise.
37766         * modules/inet_pton-tests (Files): Likewise.
37767         * modules/isblank-tests (Files): Likewise.
37768         * modules/lchown-tests (Files): Likewise.
37769         * modules/ldexpl-tests (Files): Likewise.
37770         * modules/link-tests (Files): Likewise.
37771         * modules/linkat-tests (Files): Likewise.
37772         * modules/lseek-tests (Files): Likewise.
37773         * modules/lstat-tests (Files): Likewise.
37774         * modules/mbrtowc-tests (Files): Likewise.
37775         * modules/mbsinit-tests (Files): Likewise.
37776         * modules/mbsnrtowcs-tests (Files): Likewise.
37777         * modules/mbsrtowcs-tests (Files): Likewise.
37778         * modules/memchr-tests (Files): Likewise.
37779         * modules/memcmp-tests (Files): Likewise.
37780         * modules/memmem-tests (Files): Likewise.
37781         * modules/memrchr-tests (Files): Likewise.
37782         * modules/mkdir-tests (Files): Likewise.
37783         * modules/mkfifo-tests (Files): Likewise.
37784         * modules/mkfifoat-tests (Files): Likewise.
37785         * modules/mknod-tests (Files): Likewise.
37786         * modules/nanosleep-tests (Files): Likewise.
37787         * modules/nl_langinfo-tests (Files): Likewise.
37788         * modules/obstack-printf-tests (Files): Likewise.
37789         * modules/open-tests (Files): Likewise.
37790         * modules/openat-tests (Files): Likewise.
37791         * modules/perror-tests (Files): Likewise.
37792         * modules/pipe2-tests (Files): Likewise.
37793         * modules/poll-tests (Files): Likewise.
37794         * modules/popen-tests (Files): Likewise.
37795         * modules/posix_spawn-tests (Files): Likewise.
37796         * modules/posix_spawnp-tests (Files): Likewise.
37797         * modules/pread-tests (Files): Likewise.
37798         * modules/printf-posix-tests (Files): Likewise.
37799         * modules/pty-tests (Files): Likewise.
37800         * modules/random_r-tests (Files): Likewise.
37801         * modules/rawmemchr-tests (Files): Likewise.
37802         * modules/readlink-tests (Files): Likewise.
37803         * modules/remove-tests (Files): Likewise.
37804         * modules/rename-tests (Files): Likewise.
37805         * modules/renameat-tests (Files): Likewise.
37806         * modules/rmdir-tests (Files): Likewise.
37807         * modules/round-tests (Files): Likewise.
37808         * modules/roundf-tests (Files): Likewise.
37809         * modules/roundl-tests (Files): Likewise.
37810         * modules/select-tests (Files): Likewise.
37811         * modules/setenv-tests (Files): Likewise.
37812         * modules/sigaction-tests (Files): Likewise.
37813         * modules/sleep-tests (Files): Likewise.
37814         * modules/snprintf-posix-tests (Files): Likewise.
37815         * modules/snprintf-tests (Files): Likewise.
37816         * modules/sprintf-posix-tests (Files): Likewise.
37817         * modules/stat-tests (Files): Likewise.
37818         * modules/strcasestr-tests (Files): Likewise.
37819         * modules/strchrnul-tests (Files): Likewise.
37820         * modules/strerror-tests (Files): Likewise.
37821         * modules/strsignal-tests (Files): Likewise.
37822         * modules/strstr-tests (Files): Likewise.
37823         * modules/strtod-tests (Files): Likewise.
37824         * modules/strverscmp-tests (Files): Likewise.
37825         * modules/symlink-tests (Files): Likewise.
37826         * modules/symlinkat-tests (Files): Likewise.
37827         * modules/times-tests (Files): Likewise.
37828         * modules/trunc-tests (Files): Likewise.
37829         * modules/truncf-tests (Files): Likewise.
37830         * modules/truncl-tests (Files): Likewise.
37831         * modules/tsearch-tests (Files): Likewise.
37832         * modules/uname-tests (Files): Likewise.
37833         * modules/unlink-tests (Files): Likewise.
37834         * modules/unsetenv-tests (Files): Likewise.
37835         * modules/usleep-tests (Files): Likewise.
37836         * modules/utimensat-tests (Files): Likewise.
37837         * modules/vasprintf-tests (Files): Likewise.
37838         * modules/vdprintf-posix-tests (Files): Likewise.
37839         * modules/vfprintf-posix-tests (Files): Likewise.
37840         * modules/vprintf-posix-tests (Files): Likewise.
37841         * modules/vsnprintf-posix-tests (Files): Likewise.
37842         * modules/vsnprintf-tests (Files): Likewise.
37843         * modules/vsprintf-posix-tests (Files): Likewise.
37844         * modules/wcrtomb-tests (Files): Likewise.
37845         * modules/wcsnrtombs-tests (Files): Likewise.
37846         * modules/wcsrtombs-tests (Files): Likewise.
37847         * modules/wcwidth-tests (Files): Likewise.
37848         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37849         * tests/test-isinf.c (isinf): Likewise.
37850         * tests/test-isnan.c (isnan): Likewise.
37851         * tests/test-signbit.c (signbit): Likewise.
37852         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37853         declaration, either as macro or with correct signature.
37854         (select): Ensure function under test is declared with correct
37855         signature in correct header.
37856         * tests/test-atexit.c (atexit): Likewise.
37857         * tests/test-btowc.c (btowc): Likewise.
37858         * tests/test-canonicalize-lgpl.c (realpath)
37859         (canonicalize_file_name): Likewise.
37860         * tests/test-ceilf1.c (ceilf): Likewise.
37861         * tests/test-ceill.c (ceill): Likewise.
37862         * tests/test-chown.c (chown): Likewise.
37863         * tests/test-dprintf-posix.c (dprintf): Likewise.
37864         * tests/test-dup2.c (dup2): Likewise.
37865         * tests/test-dup3.c (dup3): Likewise.
37866         * tests/test-duplocale.c (duplocale): Likewise.
37867         * tests/test-fchdir.c (fchdir): Likewise.
37868         * tests/test-fchownat.c (fchownat): Likewise.
37869         * tests/test-fcntl.c (fcntl): Likewise.
37870         * tests/test-fdopendir.c (fdopendir): Likewise.
37871         * tests/test-fflush.c (fflush): Likewise.
37872         * tests/test-flock.c (flock): Likewise.
37873         * tests/test-floorf1.c (floorf): Likewise.
37874         * tests/test-floorl.c (floorl): Likewise.
37875         * tests/test-fnmatch.c (fnmatch): Likewise.
37876         * tests/test-fopen.c (fopen): Likewise.
37877         * tests/test-fprintf-posix.c (fprintf): Likewise.
37878         * tests/test-freopen.c (freopen): Likewise.
37879         * tests/test-frexp.c (frexp): Likewise.
37880         * tests/test-frexpl.c (frexpl): Likewise.
37881         * tests/test-fseek.c (fseek): Likewise.
37882         * tests/test-fseeko.c (fseeko): Likewise.
37883         * tests/test-fstatat.c (fstatat): Likewise.
37884         * tests/test-fsync.c (fsync): Likewise.
37885         * tests/test-ftell.c (ftell): Likewise.
37886         * tests/test-ftello.c (ftello): Likewise.
37887         * tests/test-futimens.c (futimens): Likewise.
37888         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37889         (gai_strerror): Likewise.
37890         * tests/test-getcwd.c (getcwd): Likewise.
37891         * tests/test-getdelim.c (getdelim): Likewise.
37892         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37893         * tests/test-getgroups.c (getgroups): Likewise.
37894         * tests/test-gethostname.c (gethostname): Likewise.
37895         * tests/test-getline.c (getline): Likewise.
37896         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37897         Likewise.
37898         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37899         * tests/test-glob.c (glob, globfree): Likewise.
37900         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37901         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37902         * tests/test-inet_pton.c (inet_pton): Likewise.
37903         * tests/test-isblank.c (isblank): Likewise.
37904         * tests/test-lchown.c (lchown): Likewise.
37905         * tests/test-ldexpl.c (ldexpl): Likewise.
37906         * tests/test-link.c (link): Likewise.
37907         * tests/test-linkat.c (linkat): Likewise.
37908         * tests/test-lseek.c (lseek): Likewise.
37909         * tests/test-lstat.c (lstat): Likewise.
37910         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37911         * tests/test-mbsinit.c (mbsinit): Likewise.
37912         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37913         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37914         * tests/test-memchr.c (memchr): Likewise.
37915         * tests/test-memcmp.c (memcmp): Likewise.
37916         * tests/test-memmem.c (memmem): Likewise.
37917         * tests/test-memrchr.c (memrchr): Likewise.
37918         * tests/test-mkdir.c (mkdir): Likewise.
37919         * tests/test-mkdirat.c (mkdirat): Likewise.
37920         * tests/test-mkfifo.c (mkfifo): Likewise.
37921         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37922         * tests/test-mknod.c (mknod): Likewise.
37923         * tests/test-nanosleep.c (nanosleep): Likewise.
37924         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37925         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37926         Likewise.
37927         * tests/test-open.c (open): Likewise.
37928         * tests/test-openat.c (openat): Likewise.
37929         * tests/test-perror.c (perror): Likewise.
37930         * tests/test-pipe2.c (pipe2): Likewise.
37931         * tests/test-poll.c (poll): Likewise.
37932         * tests/test-popen.c (popen, pclose): Likewise.
37933         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37934         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37935         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37936         (posix_spawn_file_actions_destroy)
37937         (posix_spawn_file_actions_addclose)
37938         (posix_spawn_file_actions_addopen)
37939         (posix_spawn_file_actions_adddup2): Likewise.
37940         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37941         * tests/test-pread.c (pread): Likewise.
37942         * tests/test-printf-posix.c (printf): Likewise.
37943         * tests/test-pty.c (openpty, forkpty): Likewise.
37944         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37945         (random_r): Likewise.
37946         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37947         * tests/test-readlink.c (readlink): Likewise.
37948         * tests/test-remove.c (remove): Likewise.
37949         * tests/test-rename.c (rename): Likewise.
37950         * tests/test-renameat.c (renameat): Likewise.
37951         * tests/test-rmdir.c (rmdir): Likewise.
37952         * tests/test-round1.c (round): Likewise.
37953         * tests/test-roundf1.c (roundf): Likewise.
37954         * tests/test-roundl.c (roundl): Likewise.
37955         * tests/test-setenv.c (setenv): Likewise.
37956         * tests/test-sigaction.c (sigaction): Likewise.
37957         * tests/test-sleep.c (sleep): Likewise.
37958         * tests/test-snprintf.c (snprintf): Likewise.
37959         * tests/test-sprintf-posix.c (sprintf): Likewise.
37960         * tests/test-stat.c (stat): Likewise.
37961         * tests/test-stpncpy.c (stpncpy): Likewise.
37962         * tests/test-strcasestr.c (strcasestr): Likewise.
37963         * tests/test-strchrnul.c (strchrnul): Likewise.
37964         * tests/test-strerror.c (strerror): Likewise.
37965         * tests/test-strsignal.c (strsignal): Likewise.
37966         * tests/test-strstr.c (strstr): Likewise.
37967         * tests/test-strtod.c (strtod): Likewise.
37968         * tests/test-strverscmp.c (strverscmp): Likewise.
37969         * tests/test-symlink.c (symlink): Likewise.
37970         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37971         * tests/test-times.c (times): Likewise.
37972         * tests/test-trunc1.c (trunc): Likewise.
37973         * tests/test-truncf1.c (truncf): Likewise.
37974         * tests/test-truncl.c (truncl): Likewise.
37975         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37976         Likewise.
37977         * tests/test-uname.c (uname): Likewise.
37978         * tests/test-unlink.c (unlink): Likewise.
37979         * tests/test-unlinkat.c (unlinkat): Likewise.
37980         * tests/test-unsetenv.c (unsetenv): Likewise.
37981         * tests/test-usleep.c (usleep): Likewise.
37982         * tests/test-utimensat.c (utimensat): Likewise.
37983         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37984         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37985         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37986         * tests/test-vprintf-posix.c (vprintf): Likewise.
37987         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37988         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37989         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37990         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37991         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37992         * tests/test-wcwidth.c (wcwidth): Likewise.
37993
37994         build: pull in conditional headers during GNULIB_POSIXCHECK
37995         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37996         definitions from any conditionally-included headers.
37997         * lib/stdlib.in.h (includes): Likewise.
37998         * lib/unistd.in.h (includes): Likewise.
37999
38000 2009-12-24  Bruno Haible  <bruno@clisp.org>
38001
38002         * tests/test-argv-iter.c: Include header file being tested immediately
38003         after config.h.
38004         * tests/test-base64.c: Likewise.
38005         * tests/test-flock.c: Likewise.
38006         * tests/test-fsync.c: Likewise.
38007         * tests/test-getdate.c: Likewise.
38008         * tests/test-getndelim2.c: Likewise.
38009         * tests/test-isfinite.c: Likewise.
38010         * tests/test-isinf.c: Likewise.
38011         * tests/test-strerror.c: Likewise.
38012         * tests/test-strsignal.c: Likewise.
38013
38014 2009-12-23  Eric Blake  <ebb9@byu.net>
38015
38016         unistd: work around cygwin bug
38017         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38018         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38019         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38020
38021 2009-12-23  Bruno Haible  <bruno@clisp.org>
38022
38023         localename: More tests.
38024         * tests/test-localename.c (SIZEOF): New macro.
38025         (categories): New variable.
38026         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38027         test_locale_name_default): Add test w.r.t. thread locale.
38028         (test_locale_name_thread): New function.
38029         (main): Invoke it.
38030
38031         localename: Make aware of thread locale.
38032         * lib/localename.h (gl_locale_name_thread): New declaration.
38033         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38034         behaviour with respect to thread locale.
38035         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38036         <langinfo.h>, glthread/lock.h.
38037         (SIZE_BITS): New macro.
38038         (string_hash): New function.
38039         (struct hash_node): New type.
38040         (HASH_TABLE_SIZE): New macro.
38041         (struniq_hash_table, struniq_lock): New variables.
38042         (struniq): New function.
38043         (gl_locale_name_thread): New function.
38044         (gl_locale_name): Invoke it.
38045         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38046         * modules/localename (Depends-on): Add lock.
38047         Reported by Mike Gran <spk121@yahoo.com>.
38048
38049 2009-12-23  Eric Blake  <ebb9@byu.net>
38050
38051         va-args: new module
38052         * modules/va-args: New file.
38053         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38054         * MODULES.html.sh (Core language properties): Mention it.
38055
38056         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38057         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38058         named alias for __attribute__((__unused__)).
38059         * lib/chown.c: Update client.
38060         * lib/fchmodat.c: Likewise.
38061         * lib/fts.c: Likewise.
38062         * lib/getdate.y: Likewise.
38063         * lib/getgroups.c: Likewise.
38064         * lib/getopt.c: Likewise.
38065         * lib/getugroups.c: Likewise.
38066         * lib/mkdir.c: Likewise.
38067         * lib/mkfifo.c: Likewise.
38068         * lib/mkfifoat.c: Likewise.
38069         * lib/mknod.c: Likewise.
38070         * lib/mknodat.c: Likewise.
38071         * lib/readlink.c: Likewise.
38072         * lib/se-context.in.h: Likewise.
38073         * lib/se-selinux.in.h: Likewise.
38074         * lib/sockets.c: Likewise.
38075         * lib/symlink.c: Likewise.
38076         * lib/symlinkat.c: Likewise.
38077         * lib/unicodeio.c: Likewise.
38078         * lib/unistr.h: Likewise.
38079         * tests/test-areadlink.c: Likewise.
38080         * tests/test-areadlinkat.c: Likewise.
38081         * tests/test-filenamecat.c: Likewise.
38082         * tests/test-fseeko.c: Likewise.
38083         * tests/test-ftello.c: Likewise.
38084         * tests/test-getdate.c: Likewise.
38085         * tests/test-getgroups.c: Likewise.
38086         * tests/test-gethostname.c: Likewise.
38087         * tests/test-quotearg.c: Likewise.
38088         * tests/test-version-etc.c: Likewise.
38089         * tests/test-xalloc-die.c: Likewise.
38090         * tests/test-xfprintf-posix.c: Likewise.
38091         * tests/test-xprintf-posix.c: Likewise.
38092         * tests/test-xvasprintf.c: Likewise.
38093
38094         tests: avoid compiler warnings
38095         * tests/test-fcntl.c (main): Delete unused parameters.
38096         * tests/test-freopen-safer.c (main): Likewise.
38097         * tests/test-xalloc-die.c (main): Mark unused parameters.
38098         * tests/test-fseeko.c (main): Likewise.
38099         * tests/test-ftello.c (main): Likewise.
38100         * tests/test-nanosleep.c (main): Avoid declaration warning.
38101         * tests/test-sleep.c (main): Likewise.
38102         * tests/test-unsetenv.c (main): Silence warning about string
38103         literal.
38104         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38105
38106 2009-12-23  Bruno Haible  <bruno@clisp.org>
38107
38108         * tests/test-localename.c (test_locale_name): New function, extracted
38109         from main. Also test mixed situations.
38110         (test_locale_name_posix, test_locale_name_environ,
38111         test_locale_name_default): New functions.
38112         (main): Invoke them all.
38113         * modules/localename-tests (configure.ac): Test for newlocale.
38114
38115 2009-12-23  Bruno Haible  <bruno@clisp.org>
38116
38117         unistd: Ensure getcwd gets declared before being overridden.
38118         * lib/unistd.in.h: Conditionally include <io.h>.
38119
38120 2009-12-22  Bruno Haible  <bruno@clisp.org>
38121
38122         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38123         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38124         (gl_WCHAR_H): Invoke it.
38125         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38126         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38127         Reported by Karl Berry <karl@freefriends.org>.
38128
38129 2009-12-22  Eric Blake  <ebb9@byu.net>
38130
38131         math, unistd: avoid redundant includes
38132         * lib/math.in.h (isnan): No need to re-include <math.h>.
38133         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38134
38135         getsubopt: work around cygwin bug
38136         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38137         avoid conflicting with system getsubopt.
38138         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38139         bug.
38140
38141         getopt: synchronize from glibc
38142         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38143         parameter order.  Adjust all callers.
38144         (_getopt_internal_r, main): Adjust quoting in error messages.
38145         Drop considerations for outdated POSIX 1003.2 error message.
38146         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38147         callers.
38148         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38149
38150         test-getopt: test stderr behavior
38151         * modules/getopt-posix-tests (Depends-on): Add dup2.
38152         * tests/test-getopt.c (ASSERT): Avoid stderr.
38153         (main): Move stderr to a temporary file.
38154         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38155         Instead, add parameter to inform caller if output occurred.
38156         (test_getopt): Adjust all existing tests to expect silence, and
38157         add new tests of leading ":".
38158         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38159         glibc shortcomings with leading "-:" or "+:" in optstring.
38160         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38161         Likewise.
38162         * doc/posix-functions/getopt.texi (getopt): Likewise.
38163
38164         test-getopt: enhance test
38165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38166         supports optind=0.
38167         * tests/test-getopt.c (OPTIND_MIN): Move...
38168         * tests/test-getopt.h (OPTIND_MIN): ...here.
38169         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38170         Require that optind=0 works, since modern BSD supports it in
38171         addition to optreset, and since coreutils expects it.
38172         (test_getopt_long_only): New test.
38173         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38174         glibc shortcomings with 'W;', and enforcement of optind=0.
38175         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38176         Likewise.
38177
38178 2009-12-21  Bruno Haible  <bruno@clisp.org>
38179
38180         localename: Improvements for MacOS X and Cygwin.
38181         * lib/localename.h (gl_locale_name_environ): New declaration.
38182         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38183         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38184         (gl_locale_name_posix): Invoke it.
38185         (gl_locale_name_default): Add comments. Use Windows native API also on
38186         Cygwin.
38187
38188 2009-12-21  Bruno Haible  <bruno@clisp.org>
38189
38190         Update list of Win32 locale ids.
38191         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38192         (LANG_SAMI): Renamed from LANG_SAAMI.
38193         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38194         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38195         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38196         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38197         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38198         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38199         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38200         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38201         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38202         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38203         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38204         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38205         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38206         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38207         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38208         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38209         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38210         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38211         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38212         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38213         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38214         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38215         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38216         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38217         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38218         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38219         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38220         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38221         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38222         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38223         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38224         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38225         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38226         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38227         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38228         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38229         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38230         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38231         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38232         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38233         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38234         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38235         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38236         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38237         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38238         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38239         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38240         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38241         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38242         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38243         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38244         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38245         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38246         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38247         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38248         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38249         Add more languages and countries for Sami, Sorbian. Add more countries
38250         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38251         for Pashto. Change country for Syriac, Tswana.
38252
38253 2009-12-21  Eric Blake  <ebb9@byu.net>
38254
38255         test-utimens: avoid spurious failure
38256         * tests/test-chown.h (nap): Factor...
38257         * tests/nap.h: ...into new file.
38258         * tests/test-lchown.h (nap): Avoid duplication.
38259         * tests/test-utimens-common.h (nap): Use shared implementation,
38260         necessary on file systems with 1-second resolution.
38261         * modules/chown-tests (Files): Include new file.
38262         * modules/fdutimensat-tests (Files): Likewise.
38263         * modules/futimens-tests (Files): Likewise.
38264         * modules/lchown-tests (Files): Likewise.
38265         * modules/openat-tests (Files): Likewise.
38266         * modules/utimens-tests (Files): Likewise.
38267         * modules/utimensat-tests (Files): Likewise.
38268
38269 2009-12-19  Eric Blake  <ebb9@byu.net>
38270
38271         futimens, utimensat: work around Linux bug
38272         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38273         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38274         * lib/utimensat.c (rpl_utimensat): Work around it.
38275         * lib/futimens.c (rpl_futimens): Adjust comment.
38276
38277         utimens: work around Linux ctime bug
38278         * lib/utimens.c (detect_ctime_bug): New helper function.
38279         (update_timespec): Differentiate between workaround needed for
38280         this bug vs. what is needed for systems that lack utimensat.
38281         (fdutimens, lutimens): Work around bug.
38282
38283         utimens: check for ctime update
38284         * tests/test-utimens-common.h (check_ctime): Define.
38285         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38286         * tests/test-futimens.h (test_futimens): Likewise.
38287         * tests/test-lutimens.h (test_lutimens): Likewise.
38288         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38289         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38290
38291 2009-12-19  Bruno Haible  <bruno@clisp.org>
38292
38293         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38294         * tests/test-dprintf-posix2.sh: New file.
38295         * tests/test-dprintf-posix2.c: New file.
38296         * modules/dprintf-posix-tests (Files): Add them.
38297         (configure.ac): Check for getrlimit and setrlimit.
38298         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38299
38300 2009-12-19  Bruno Haible  <bruno@clisp.org>
38301
38302         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38303         * tests/test-fprintf-posix3.sh: New file.
38304         * tests/test-fprintf-posix3.c: New file.
38305         * modules/fprintf-posix-tests (Files): Add them.
38306         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38307
38308 2009-12-19  Eric Blake  <ebb9@byu.net>
38309
38310         dirfd: fix prototype
38311         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38312         * lib/dirfd.c (dirfd): Likewise.
38313
38314         canonicalize: reduce memory usage
38315         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38316         allocation to size.
38317         Reported by Solar Designer <solar@openwall.com>.
38318
38319 2009-12-19  Bruno Haible  <bruno@clisp.org>
38320
38321         New module attribute 'Applicability'.
38322         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38323         * gnulib-tool: New option --extract-applicability.
38324         (func_usage): Document it.
38325         (sed_extract_prog): Recognize it.
38326         (func_get_applicability): New function.
38327         (func_import): Generalize handling of 'link-warning' module.
38328         * modules/link-warning (Applicability): New section.
38329         * modules/arg-nonnull (Applicability): New section.
38330         Repoted by Simon Josefsson <simon@josefsson.org>.
38331
38332 2009-12-19  Bruno Haible  <bruno@clisp.org>
38333
38334         fflush: tweak
38335         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38336         * lib/fseeko.c (rpl_fseeko): Likewise.
38337
38338 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38339
38340         * lib/gl_list.h: Fix typo in comment.
38341
38342 2009-12-16  Eric Blake  <ebb9@byu.net>
38343
38344         fcntl: use to simplify other modules
38345         * modules/cloexec (Depends-on): Add fcntl.
38346         * modules/fchdir (Depends-on): Likewise.
38347         * modules/fd-safer-flag (Depends-on): Likewise.
38348         * modules/unistd-safer (Depends-on): Likewise.
38349         * modules/dup3 (configure.ac): Set module indicator.
38350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38351         missing.
38352         * lib/fchdir.c (_gl_register_dup): Fix comment.
38353         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38354         * lib/dup-safer.c (dup_safer): Likewise.
38355         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38356         * lib/dup3.c (dup3): Likewise.
38357         * tests/test-fchdir.c (main): Enhance test.
38358         Fixes a dup_cloexec bug reported by Ondřej Vašík.
38359
38360         fcntl: port portions of fcntl to mingw
38361         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38362         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38363         replacement for mingw.
38364         * modules/fcntl (Description): Update.
38365         (Depends-on): Add dup2.
38366         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38367         * modules/fcntl-h (Makefile.am): Substitute it.
38368         * lib/fcntl.in.h (fcntl): Update declaration.
38369         (F_DUPFD, F_GETFD): New macros, when needed.
38370         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38371         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38372         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38373         we now guarantee.
38374
38375         fcntl: work around cygwin bug in F_DUPFD
38376         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38377         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38378         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38379         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38380         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38381
38382         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38383         * modules/fcntl (Files): List new files.
38384         (configure.ac): Run a test.
38385         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38386         * lib/fcntl.c (rpl_fcntl): Likewise.
38387         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38388         (gl_FCNTL_H): Always replace fcntl.h.
38389         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38390         * lib/fcntl.in.h (fcntl): Declare replacement.
38391         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38392         needed, plus a witness.
38393         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38394         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38395         * tests/test-fcntl.c: New file.
38396         * modules/fcntl-tests: Likewise.
38397
38398         binary-io: avoid potential compilation warning
38399         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38400         directives.
38401
38402         fflush: avoid compilation error on NetBSD
38403         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38404         between off_t and fpos_t, since the latter is sometimes a struct.
38405         * lib/fseeko.c (rpl_fseeko): Likewise.
38406         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38407
38408 2009-12-15  Eric Blake  <ebb9@byu.net>
38409
38410         fcntl-h, stdio, sys_ioctl: fix declarations
38411         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38412         function must not take arguments.
38413         * lib/sys_ioctl.in.h (ioctl): Likewise.
38414         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38415         (open): Add a link warning.
38416
38417 2009-12-15  Jim Meyering  <meyering@redhat.com>
38418
38419         areadlink, areadlink-with-size: relax license to LGPLv2+
38420         * modules/areadlink (License): Relax to LGPLv2+.
38421         * modules/areadlink-with-size (License): Likewise.
38422
38423 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38424             Bruno Haible  <bruno@clisp.org>
38425
38426         *printf: Fix memory leak.
38427         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38428         * lib/vfprintf.c (vfprintf): Likewise.
38429         * lib/dprintf.c (dprintf): Likewise.
38430         * lib/vdprintf.c (vdprintf): Likewise.
38431
38432 2009-12-14  Eric Blake  <ebb9@byu.net>
38433
38434         accept4: adjust module dependencies
38435         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38436
38437         utimens: one more try at avoiding compiler warning
38438         * lib/utimens.c (lutimens): Lower scope of result.
38439
38440 2009-12-13  Bruno Haible  <bruno@clisp.org>
38441
38442         Move the malloc checking from module 'list' to new module 'xlist'.
38443         * modules/xlist: New file.
38444         * lib/gl_xlist.h: New file.
38445         * lib/gl_xlist.c: New file.
38446         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38447         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38448         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38449         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38450         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38451         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38452         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38453         gl_sortedlist_nx_add): New declarations.
38454         (struct gl_list_implementation): Rename and change methods accordingly.
38455         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38456         (gl_list_nx_create): Renamed from gl_list_create.
38457         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38458         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38459         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38460         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38461         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38462         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38463         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38464         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38465         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38466         gl_list_create_empty.
38467         (gl_list_nx_create): Renamed from gl_list_create.
38468         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38469         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38470         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38471         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38472         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38473         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38474         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38475         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38476         * lib/gl_array_list.c: Don't include xalloc.h.
38477         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38478         NULL upon out-of-memory.
38479         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38480         out-of-memory.
38481         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38482         Change return type to 'int'.
38483         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38484         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38485         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38486         upon out-of-memory.
38487         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38488         upon out-of-memory.
38489         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38490         upon out-of-memory.
38491         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38492         upon out-of-memory.
38493         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38494         out-of-memory.
38495         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38496         Update.
38497         (gl_array_list_implementation): Update.
38498         * lib/gl_carray_list.c: Don't include xalloc.h.
38499         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38500         Return NULL upon out-of-memory.
38501         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38502         out-of-memory.
38503         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38504         Change return type to 'int'.
38505         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38506         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38507         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38508         upon out-of-memory.
38509         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38510         upon out-of-memory.
38511         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38512         out-of-memory.
38513         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38514         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38515         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38516         Update.
38517         (gl_carray_list_implementation): Update.
38518         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38519         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38520         gl_linked_create_empty. Return NULL upon out-of-memory.
38521         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38522         out-of-memory.
38523         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38524         Change return type to 'int'. Return -1 upon out-of-memory.
38525         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38526         out-of-memory.
38527         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38528         upon out-of-memory.
38529         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38530         upon out-of-memory.
38531         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38532         NULL upon out-of-memory.
38533         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38534         upon out-of-memory.
38535         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38536         out-of-memory.
38537         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38538         Update.
38539         * lib/gl_linked_list.c: Don't include xalloc.h.
38540         (gl_linked_list_implementation): Update.
38541         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38542         (add_to_bucket): Change return type to 'int'.
38543         (gl_linkedhash_list_implementation): Update.
38544         * lib/gl_anytree_list1.h (free_subtree): New function.
38545         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38546         gl_tree_create_empty. Return NULL upon out-of-memory.
38547         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38548         Change return type to 'int'. Return -1 upon out-of-memory.
38549         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38550         out-of-memory.
38551         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38552         (gl_tree_remove_node): New function, moved here from
38553         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38554         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38555         Update.
38556         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38557         malloc, not xmalloc. Return NULL upon out-of-memory.
38558         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38559         out-of-memory.
38560         (gl_tree_remove_node_from_tree): New function, extracted from
38561         gl_tree_remove_node.
38562         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38563         upon out-of-memory.
38564         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38565         out-of-memory.
38566         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38567         upon out-of-memory.
38568         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38569         upon out-of-memory.
38570         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38571         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38572         not xmalloc. Return NULL upon out-of-memory.
38573         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38574         out-of-memory.
38575         (gl_tree_remove_node_from_tree): New function, extracted from
38576         gl_tree_remove_node.
38577         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38578         upon out-of-memory.
38579         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38580         out-of-memory.
38581         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38582         upon out-of-memory.
38583         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38584         upon out-of-memory.
38585         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38586         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38587         gl_anytree_list1.h before gl_anyavltree_list2.h.
38588         (gl_avltree_list_implementation): Update.
38589         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38590         gl_anytree_list1.h before gl_anyavltree_list2.h.
38591         (gl_rbtree_list_implementation): Update.
38592         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38593         Change return type to 'int'. Return -1 upon out-of-memory. Use
38594         __builtin_expect.
38595         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38596         (gl_avltreehash_list_implementation): Update.
38597         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38598         (gl_rbtreehash_list_implementation): Update.
38599         * modules/array-list (Depends-on): Remove xalloc.
38600         * modules/carray-list (Depends-on): Likewise.
38601         * modules/linked-list (Depends-on): Likewise.
38602         * modules/linkedhash-list (Depends-on): Likewise.
38603         * modules/avltree-list (Depends-on): Likewise.
38604         * modules/rbtree-list (Depends-on): Likewise.
38605         * modules/avltreehash-list (Depends-on): Likewise.
38606         * modules/rbtreehash-list (Depends-on): Likewise.
38607
38608         * modules/xsublist: New file.
38609         * lib/gl_xsublist.h: New file.
38610         * lib/gl_xsublist.c: New file.
38611         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38612         (gl_sublist_nx_create): New declaration.
38613         * lib/gl_sublist.c: Don't include xalloc.h.
38614         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38615         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38616         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38617         Change return type to 'int'. Return -1 upon out-of-memory.
38618         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38619         upon out-of-memory.
38620         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38621         NULL upon out-of-memory.
38622         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38623         upon out-of-memory.
38624         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38625         NULL upon out-of-memory.
38626         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38627         NULL upon out-of-memory.
38628         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38629         upon out-of-memory.
38630         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38631         (gl_sublist_list_implementation): Update.
38632         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38633         upon out-of-memory.
38634         * modules/sublist (Depends-on): Remove xalloc.
38635
38636         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38637         * tests/test-carray_list.c: Likewise.
38638         * tests/test-linked_list.c: Likewise.
38639         * tests/test-linkedhash_list.c: Likewise.
38640         * tests/test-avltree_list.c: Likewise.
38641         * tests/test-rbtree_list.c: Likewise.
38642         * tests/test-avltreehash_list.c: Likewise.
38643         * tests/test-rbtreehash_list.c: Likewise.
38644         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38645         * modules/carray-list-tests (Makefile.am): Likewise.
38646         * modules/linked-list-tests (Makefile.am): Likewise.
38647         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38648         * modules/avltree-list-tests (Makefile.am): Likewise.
38649         * modules/rbtree-list-tests (Makefile.am): Likewise.
38650         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38651         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38652
38653         * NEWS: Mention the changes.
38654
38655         * lib/clean-temp.c: Include gl_xlist.h.
38656         * modules/clean-temp (Depends-on): Add xlist.
38657
38658         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38659         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38660
38661         * tests/test-array_oset.c: Include gl_xlist.h.
38662         * modules/array-oset-tests (Depends-on): Add xlist.
38663
38664         Reported by José E. Marchesi <jemarch@gnu.org>.
38665
38666 2009-12-13  Bruno Haible  <bruno@clisp.org>
38667
38668         Move the malloc checking from module 'oset' to new module 'xoset'.
38669         * modules/xoset: New file.
38670         * lib/gl_xoset.h: New file.
38671         * lib/gl_xoset.c: New file.
38672         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38673         declarations.
38674         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38675         (struct gl_oset_implementation): Rename and change methods accordingly.
38676         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38677         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38678         'int'. Mark as __warn_unused_result__.
38679         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38680         gl_oset_create_empty.
38681         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38682         'int'.
38683         * lib/gl_array_oset.c: Don't include xalloc.h.
38684         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38685         malloc, not xmalloc.
38686         (grow): Change return type to 'int'. Don't call xalloc_die.
38687         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38688         to 'int'.
38689         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38690         'int'.
38691         (gl_array_oset_implementation): Update.
38692         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38693         gl_tree_create_empty.
38694         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38695         'int'.
38696         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38697         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38698         xmalloc.
38699         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38700         not xmalloc.
38701         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38702         xmalloc.
38703         (gl_avltree_oset_implementation): Update.
38704         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38705         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38706         xmalloc.
38707         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38708         not xmalloc.
38709         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38710         xmalloc.
38711         (gl_rbtree_oset_implementation): Update.
38712         * modules/array-oset (Depends-on): Remove xalloc.
38713         * modules/avltree-oset (Depends-on): Likewise.
38714         * modules/rbtree-oset (Depends-on): Likewise.
38715         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38716         * tests/test-avltree_oset.c: Likewise.
38717         * tests/test-rbtree_oset.c: Likewise.
38718         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38719         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38720         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38721         * NEWS: Mention the change.
38722
38723 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38724
38725         maint.mk: allow a project to override release-prep commands
38726         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38727         commands into a new rule.
38728         (release-prep): New rule.
38729         (release-prep-hook): New overridable variable.
38730
38731 2009-12-13  Bruno Haible  <bruno@clisp.org>
38732
38733         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38734
38735 2009-12-13  Jim Meyering  <meyering@redhat.com>
38736
38737         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38738         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38739
38740 2009-12-12  Bruno Haible  <bruno@clisp.org>
38741
38742         duplocale: Tweak.
38743         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38744
38745 2009-12-12  Karl Berry  <karl@gnu.org>
38746
38747         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38748
38749 2009-12-12  Bruno Haible  <bruno@clisp.org>
38750
38751         * m4/po.m4: Undo incorrect untabification.
38752
38753 2009-12-12  Bruno Haible  <bruno@clisp.org>
38754
38755         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38756         * modules/c-strtod (Depends-on): Add locale.
38757         * modules/c-strtold (Depends-on): Likewise.
38758
38759 2009-12-12  Bruno Haible  <bruno@clisp.org>
38760
38761         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38762
38763 2009-12-11  Eric Blake  <ebb9@byu.net>
38764
38765         setenv: relax requirement in light of POSIX ruling
38766         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38767         not NULL.
38768         * tests/test-setenv.c (main): Relax test.
38769         * tests/test-unsetenv.c (main): Likewise.
38770         * doc/posix-functions/setenv.texi (setenv): Document this.
38771         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38772
38773 2009-12-11  Bruno Haible  <bruno@clisp.org>
38774
38775         New module 'fd-safer-flag'.
38776         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38777         * lib/dup-safer.c (dup_safer_flag): Remove function.
38778         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38779         * lib/fd-safer.c (fd_safer_flag): Remove function.
38780         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38781         * modules/cloexec (configure.ac): Drop indicator macro.
38782         * modules/fd-safer-flag: New file.
38783         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38784         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38785         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38786
38787 2009-12-11  Bruno Haible  <bruno@clisp.org>
38788
38789         Tests for module 'nl_langinfo'.
38790         * modules/nl_langinfo-tests: New file.
38791         * tests/test-nl_langinfo.sh: New file.
38792         * tests/test-nl_langinfo.c: New file.
38793
38794         New module 'nl_langinfo'.
38795         * lib/nl_langinfo.c: New file.
38796         * m4/nl_langinfo.m4: New file.
38797         * modules/nl_langinfo: New file.
38798         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38799
38800 2009-12-11  Bruno Haible  <bruno@clisp.org>
38801
38802         Tests for module 'langinfo'.
38803         * modules/langinfo-tests: New file.
38804         * tests/test-langinfo.c: New file.
38805
38806         New module 'langinfo'.
38807         * lib/langinfo.in.h: New file.
38808         * m4/langinfo_h.m4: New file.
38809         * modules/langinfo: New file.
38810         * doc/posix-headers/langinfo.texi: Mention the new module.
38811
38812 2009-12-11  Bruno Haible  <bruno@clisp.org>
38813
38814         * lib/config.charset: Untabify.
38815
38816 2009-12-11  Bruno Haible  <bruno@clisp.org>
38817
38818         * modules/unistd-safer (configure.ac): Drop indicator macro.
38819
38820 2009-12-11  Bruno Haible  <bruno@clisp.org>
38821
38822         Move pipe2-safer code to its own file.
38823         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38824         * lib/pipe-safer.c (pipe2_safer): Remove function.
38825         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38826         (Makefile.am): Add it to lib_SOURCES.
38827
38828 2009-12-10  Bruno Haible  <bruno@clisp.org>
38829
38830         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38831
38832 2009-12-10  Bruno Haible  <bruno@clisp.org>
38833
38834         Declare which arguments expect non-NULL values, for GCC and clang.
38835         * build-aux/arg-nonnull.h: New file.
38836         * modules/arg-nonnull: New file.
38837         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38838         (inet_ntop, inet_pton): Use it.
38839         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38840         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38841         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38842         (open, openat): Use it.
38843         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38844         (fnmatch): Use it.
38845         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38846         (getopt, getopt_long, getopt_long_only): Use it.
38847         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38848         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38849         Use it.
38850         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38851         (iconv_open): Use it.
38852         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38853         (strtoimax, strtoumax): Use it.
38854         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38855         (duplocale): Use it.
38856         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38857         (frexp, frexpl): Use it.
38858         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38859         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38860         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38861         (tsearch, tfind, tdelete, twalk): Use it.
38862         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38863         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38864         sigpending): Use it.
38865         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38866         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38867         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38868         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38869         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38870         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38871         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38872         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38873         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38874         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38875         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38876         Use it.
38877         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38878         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38879         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38880         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38881         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38882         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38883         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38884         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38885         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38886         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38887         strtoull, unsetenv): Use it.
38888         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38889         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38890         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38891         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38892         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38893         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38894         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38895         (strcasecmp, strncasecmp): Use it.
38896         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38897         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38898         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38899         rpl_setsockopt): Use it.
38900         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38901         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38902         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38903         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38904         (gettimeofday): Use it.
38905         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38906         (times): Use it.
38907         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38908         (uname): Use it.
38909         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38910         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38911         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38912         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38913         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38914         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38915         unlinkat, write): Use it.
38916         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38917         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38918         * lib/argv-iter.h: Include arg-nonnull.h.
38919         (_ATTRIBUTE_NONNULL_): Remove macro.
38920         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38921         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38922         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38923         optimization.
38924         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38925         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38926         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38927         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38928         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38929         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38930         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38931         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38932         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38933         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38934         * modules/dirent (Depends-on): Add arg-nonnull.
38935         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38936         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38937         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38938         * modules/fnmatch (Depends-on): Add arg-nonnull.
38939         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38940         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38941         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38942         * modules/glob (Depends-on): Add arg-nonnull.
38943         (Makefile.am): Insert arg-nonnull.h into glob.h.
38944         * modules/iconv_open (Depends-on): Add arg-nonnull.
38945         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38946         * modules/inttypes (Depends-on): Add arg-nonnull.
38947         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38948         * modules/locale (Depends-on): Add arg-nonnull.
38949         (Makefile.am): Insert arg-nonnull.h into locale.h.
38950         * modules/math (Depends-on): Add arg-nonnull.
38951         (Makefile.am): Insert arg-nonnull.h into math.h.
38952         * modules/netdb (Depends-on): Add arg-nonnull.
38953         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38954         * modules/search (Depends-on): Add arg-nonnull.
38955         (Makefile.am): Insert arg-nonnull.h into search.h.
38956         * modules/signal (Depends-on): Add arg-nonnull.
38957         (Makefile.am): Insert arg-nonnull.h into signal.h.
38958         * modules/spawn (Depends-on): Add arg-nonnull.
38959         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38960         * modules/stdio (Depends-on): Add arg-nonnull.
38961         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38962         * modules/stdlib (Depends-on): Add arg-nonnull.
38963         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38964         * modules/string (Depends-on): Add arg-nonnull.
38965         (Makefile.am): Insert arg-nonnull.h into string.h.
38966         * modules/strings (Depends-on): Add arg-nonnull.
38967         (Makefile.am): Insert arg-nonnull.h into strings.h.
38968         * modules/sys_socket (Depends-on): Add arg-nonnull.
38969         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38970         * modules/sys_stat (Depends-on): Add arg-nonnull.
38971         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38972         * modules/sys_time (Depends-on): Add arg-nonnull.
38973         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38974         * modules/sys_times (Depends-on): Add arg-nonnull.
38975         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38976         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38977         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38978         * modules/time (Depends-on): Add arg-nonnull.
38979         (Makefile.am): Insert arg-nonnull.h into time.h.
38980         * modules/unistd (Depends-on): Add arg-nonnull.
38981         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38982         * modules/wchar (Depends-on): Add arg-nonnull.
38983         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38984         * modules/argv-iter (Depends-on): Add arg-nonnull.
38985         * tests/test-canonicalize.c (null_ptr): New function.
38986         (main): Use it.
38987         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38988         (main): Use it.
38989         * tests/test-memmem.c (null_ptr): New function.
38990         (main): Use it.
38991         Reported by Jim Meyering.
38992
38993 2009-12-10  Bruno Haible  <bruno@clisp.org>
38994
38995         Use spaces for indentation, not tabs.
38996         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38997         * m4/*.m4: Untabify.
38998         * build-aux/*.h: Untabify.
38999         * tests/**/*.[hc]: Untabify.
39000         * README: New section "Indent with spaces, not TABs", based on
39001         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39002         * NEWS: Mention the change.
39003
39004 2009-12-10  Bruno Haible  <bruno@clisp.org>
39005
39006         pty test: Fix link error.
39007         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39008         test_pty_LDADD.
39009
39010 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39011
39012         * modules/pty: New file.
39013         * modules/pty-tests: New file.
39014         * m4/pty.m4: New file.
39015         * tests/test-pty.c: New file.
39016         * doc/glibc-headers/pty.texi: Modified.
39017         * doc/glibc-functions/forkpty.texi: Modified.
39018         * doc/glibc-functions/openpty.texi: Modified.
39019
39020 2009-12-10  Bruno Haible  <bruno@clisp.org>
39021
39022         Avoid syntax error in C++ mode.
39023         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39024
39025 2009-12-10  Bruno Haible  <bruno@clisp.org>
39026
39027         Use sed with option -e.
39028         * gnulib-tool (func_version, func_emit_copyright_notice,
39029         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39030         option -e to sed.
39031         * modules/link-warning (Makefile.am): Likewise.
39032
39033 2009-12-10  Jim Meyering  <meyering@redhat.com>
39034
39035         mgetgroups: do not write bytes beyond end of malloc'd buffer
39036         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39037         username, we call getgroups with a one-element-shorter buffer,
39038         but still told it the length was original, max_n_groups.
39039
39040 2009-12-09  Eric Blake  <ebb9@byu.net>
39041
39042         cloexec: relax license
39043         * modules/cloexec (Maintainer): Add myself.
39044         (License): Use LGPL, not GPL.
39045
39046         link-warning: optimize generation
39047         * modules/link-warning (Makefile.am): Reduce process usage.
39048
39049 2009-12-09  Bruno Haible  <bruno@clisp.org>
39050
39051         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39052         workaround was added on 2009-11-17.
39053
39054 2009-12-09  Jim Meyering  <meyering@redhat.com>
39055             Bruno Haible  <bruno@clisp.org>
39056
39057         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39058         * modules/link-warning (Makefile.am): Make the comment-removing sed
39059         command more robust in the face of bootstrap-prepended comment lines.
39060
39061 2009-12-09  Bruno Haible  <bruno@clisp.org>
39062
39063         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39064         most one group.
39065
39066 2009-12-09  Simon Josefsson <simon@josefsson.org>
39067             Bruno Haible  <bruno@clisp.org>
39068
39069         * build-aux/link-warning.h: Add copyright notice.
39070         * modules/link-warning (Makefile.am): Generate link-warning.h from
39071         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39072         * NEWS: Mention change in link-warning module.
39073         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39074         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39075         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39076         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39077         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39078         * modules/math (Makefile.am): Add dependency to math.h.
39079         * modules/search (Makefile.am): Add dependency to search.h.
39080         * modules/signal (Makefile.am): Add dependency to signal.h.
39081         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39082         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39083         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39084         * modules/string (Makefile.am): Add dependency to string.h.
39085         * modules/strings (Makefile.am): Add dependency to strings.h.
39086         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39087         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39088         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39089         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39090         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39091         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39092         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39093         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39094         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39095
39096 2009-12-09  Bruno Haible  <bruno@clisp.org>
39097
39098         fchdir: Optimize away rpl_fstat when possible.
39099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39100         REPLACE_OPEN_DIRECTORY.
39101         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39102
39103 2009-12-09  Bruno Haible  <bruno@clisp.org>
39104
39105         * lib/fchdir.c: Update comment.
39106
39107 2009-12-09  Bruno Haible  <bruno@clisp.org>
39108
39109         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39110
39111 2009-12-08  Eric Blake  <ebb9@byu.net>
39112
39113         fchdir: avoid memory leak on re-registration.
39114         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39115
39116 2009-12-08  Jim Meyering  <meyering@redhat.com>
39117
39118         init.sh: avoid Solaris 10 /bin/sh portability problem
39119         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39120         sourced script:
39121           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39122           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39123           bar
39124         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39125         and two tests used that idiom.
39126         * tests/init.sh: Update suggested usage comments.
39127         (path_prepend_): New function, to be used in place
39128         of the --src-path=DIR option.
39129         (setup_): Move PATH-prepending code into path_prepend_.
39130         * tests/test-pread.sh: Adapt to new usage.
39131         * tests/test-xalloc-die.sh: Likewise.
39132
39133 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39134
39135         * doc/gnulib.texi (Glibc pty.h): Add.
39136         * doc/glibc-functions/forkpty.texi: Add.
39137         * doc/glibc-functions/openpty.texi: Add.
39138         Suggested by Bruno Haible.
39139
39140 2009-12-08  Eric Blake  <ebb9@byu.net>
39141
39142         fchdir: fix logic bugs
39143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39144         * tests/test-fchdir.c (main): Enhance test.
39145         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39146         is in use.
39147
39148         dup2: fix logic bugs
39149         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39150         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39151         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39152         exists.
39153         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39154
39155 2009-12-07  Eric Blake  <ebb9@byu.net>
39156
39157         unlink: fix m4 detection
39158         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39159
39160         unistd-safer: add unit test
39161         * modules/unistd-safer-tests: New file.
39162         * tests/test-dup-safer.c: Likewise.
39163         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39164         * tests/test-dup2.c (setmode): Likewise.
39165         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39166
39167         cloexec: preserve text vs. binary across dup_cloexec
39168         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39169         mode.
39170         * modules/dup2-tests (Depends-on): Add binary-io.
39171         * modules/cloexec-tests (Depends-on): Likewise.
39172         * tests/test-dup2.c (setmode, is_mode): New helpers.
39173         (main): Add tests that translation mode is preserved.
39174         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39175         Reported by Bruno Haible.
39176
39177         mgetgroups: reduce duplicate listings
39178         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39179         resulting array.
39180         * tests/test-chown.h (test_chown): Simplify client.
39181         * tests/test-lchown.h (test_lchown): Likewise.
39182
39183 2009-12-06  Bruno Haible  <bruno@clisp.org>
39184
39185         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39186         value.
39187
39188 2009-12-06  Bruno Haible  <bruno@clisp.org>
39189
39190         * lib/progname.c: Include stdio.h, stdlib.h.
39191         (set_program_name): Reject a NULL argument.
39192
39193 2009-12-05  Eric Blake  <ebb9@byu.net>
39194
39195         pipe2-safer: new module
39196         * modules/pipe2-safer: New file.
39197         * lib/unistd-safer.h (pipe2_safer): New prototype.
39198         * lib/unistd--.h (pipe2): New wrapper.
39199         * lib/pipe-safer.c (pipe2_safer): New function.
39200         * modules/pipe (Depends-on): Add pipe2-safer.
39201         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39202
39203         stdlib-safer: preserve cloexec flag for mkostemp[s]
39204         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39205         fd_safer_flag.
39206
39207         unistd-safer: allow preservation of cloexec status via flag
39208         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39209         prototypes.
39210         * lib/dup-safer.c (dup_safer_flag): New function.
39211         * lib/fd-safer.c (fd_safer_flag): Likewise.
39212         * modules/cloexec (configure.ac): Set witness.
39213
39214         test-dup2: enhance test
39215         * modules/dup2-tests (Depends-on): Add cloexec.
39216         * tests/test-dup2.c (main): Enhance test.
39217
39218         cloexec: add dup_cloexec
39219         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39220         header and comments.
39221         * lib/cloexec.c (set_cloexec_flag): Add comments.
39222         (dup_cloexec): New function, with mingw implementation borrowed
39223         from...
39224         * lib/w32spawn.h (dup_noinherit): ...here.
39225         * modules/execute (Depends-on): Add cloexec.
39226         * modules/pipe (Depends-on): Likewise.
39227         * modules/cloexec (Depends-on): Add dup2.
39228         * modules/cloexec-tests (Files): New file.
39229         * tests/test-cloexec.c: Likewise.
39230
39231         test-xalloc-die: fix test for mingw
39232         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39233         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39234         directory and .exe suffix off argv[0] output.
39235
39236         test-fseeko: fix test for mingw
39237         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39238         than undefining fseek, so test will pass on mingw.
39239
39240 2009-12-05  Bruno Haible  <bruno@clisp.org>
39241
39242         * lib/progname.h (set_program_name): Clarify specification.
39243         * lib/progname.c (set_program_name): Likewise.
39244         Reported by Jim Meyering.
39245
39246 2009-12-05  Jim Meyering  <meyering@redhat.com>
39247
39248         maint.mk: backslash-escape parens in default regexp
39249         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39250         backslash-escape the literal parentheses.
39251
39252         maint.mk: news-date-check: use grep -E
39253         * top/maint.mk (today): Define a Make variable, not a...
39254         (news-date-check): ...shell variable.
39255         (news-date-regexp): Use the Make variable.
39256         Use grep's -E option.  Change the failing diagnostic to mention
39257         the variable, $(news-date-regexp).
39258
39259 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39260
39261         maintainer-makefile: allow customization of NEWS entry format
39262         * top/maint.mk (news-date-regexp): New overridable variable.
39263         (news-date-check): Use it.
39264
39265 2009-12-04  Eric Blake  <ebb9@byu.net>
39266
39267         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39268         * lib/mgetgroups.h (xgetgroups): New prototype.
39269         * lib/mgetgroups.c (xgetgroups): New wrapper.
39270         (mgetgroups): Handle ENOSYS.
39271         * modules/mgetgroups (Depends-on): Add realloc.
39272         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39273
39274         mgetgroups: avoid argument promotion issues with -1
39275         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39276         for invalid gid_t.
39277         * tests/test-chown.h (getegid, test_chown): Likewise.
39278         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39279
39280 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39281
39282         exclude: Fix header file problems.
39283         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39284
39285 2009-12-01  Jim Meyering  <meyering@redhat.com>
39286
39287         fts: fts_open: do not let an empty string cause immediate failure
39288         This is required in support of GNU rm, for which the command
39289         "rm A '' B" must process and remove both A and B, in spite of
39290         the empty string argument.
39291         * lib/fts.c (fts_open): Do not let the presence of an empty string
39292         cause fts_open to fail immediately.  Most fts-using tools must be
39293         able to process all arguments, in order, and can be expected to
39294         diagnose such arguments themselves.
39295
39296 2009-11-30  Eric Blake  <ebb9@byu.net>
39297
39298         utimens: fix compilation error
39299         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39300         Declare variable at right scope.
39301
39302 2009-11-29  Jim Meyering  <meyering@redhat.com>
39303
39304         bootstrap: handle perl-5.11's changed --version output
39305         * build-aux/bootstrap (get_version): Handle perl separately,
39306         since perl-5.11's --version output is different.
39307
39308 2009-11-28  Jim Meyering  <meyering@redhat.com>
39309
39310         userspec: depend on the inttostr module, too
39311         * modules/userspec (Depends-on): Add inttostr.
39312
39313         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39314         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39315         number of MAXUID when it evaluates to (uid_t) -1.
39316         Likewise for group ID.  Reported by Matt McCutchen in
39317         <http://savannah.gnu.org/bugs/?28113>
39318
39319         userspec: reformat to use spaces, not TABs
39320         * lib/userspec.c: Expand TABs to spaces.
39321         Add Emacs' "indent-tabs-mode: nil" hint.
39322
39323 2009-11-27  Eric Blake  <ebb9@byu.net>
39324
39325         getopt-gnu: flush out another BSD bug
39326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39327         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39328         flush out BSD bug.
39329         * tests/test-getopt.h (test_getopt): End lists with NULL.
39330         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39331         (test_getopt_long_posix): Enhance test.
39332         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39333         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39334         getopt-gnu.
39335         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39336         Likewise.
39337
39338 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39339
39340         * modules/idpriv-droptemp-tests (Notice): Fix text.
39341
39342 2009-11-27  Jim Meyering  <meyering@redhat.com>
39343
39344         test-xalloc-die: avoid spurious failure due to libtool argv difference
39345         In a libtool-enabled project, this test would fail due to a difference
39346         in the emitted program name, e.g.,
39347         -test-xalloc-die: memory exhausted
39348         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39349         Use program to avoid that.
39350         * modules/xalloc-die-tests (Depends-on): Add progname.
39351         * tests/test-xalloc-die.c: Include progname.h".
39352         (program_name): Remove decl.
39353         (main): Call set_program_name.
39354         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39355
39356 2009-11-26  Richard Jones  <rjones@redhat.com>
39357
39358         w32sock: leave win32 error in place.
39359         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39360
39361 2009-11-26  Eric Blake  <ebb9@byu.net>
39362
39363         init.sh: suggest to use skip_ and fail_ functions in comments
39364         * tests/init.sh: Add a sentence.
39365
39366 2009-11-25  Bruno Haible  <bruno@clisp.org>
39367
39368         init.sh: add documentation in comments
39369         * tests/init.sh: Add some developer and user documentation.
39370
39371 2009-11-26  Jim Meyering  <meyering@redhat.com>
39372
39373         init.sh: accommodate even those who specify bogus srcdir manually
39374         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39375         configure-time tests to be sanitized, so that there is no need to
39376         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39377         (with no double quotes) suffices.  However, since tests may be
39378         invoked manually, and since you may explicitly set srcdir to the
39379         name of a directory containing spaces, do quote its uses here.
39380         * tests/test-pread.sh: Likewise.
39381         Suggested by Bruno Haible.
39382
39383         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39384         * tests/test-pread.sh: Write no data into the pipe, because
39385         test-pread actually reads none.  This avoids a diagnostic,
39386         "bash: echo: write error: Broken pipe", that arises in the unusual
39387         event something is ignoring SIGPIPE, and might be interpreted
39388         as some sort of failure.  Reported by Bruno Haible.
39389
39390 2009-11-25  Jim Meyering  <meyering@redhat.com>
39391
39392         test-pread: cover failure with ESPIPE and EINVAL
39393         * tests/test-pread.c (main): Test for failure, too.
39394         * tests/test-pread.sh: Invoke with stdin on a pipe.
39395         Suggested by Eric Blake.
39396
39397         pread: improvement and fix
39398         * modules/pread (Depends-on): Depend on lseek, for portability to
39399         e.g., mingw.  Suggested by Eric Blake.
39400         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39401
39402         unistd.in.h: correct declaration of pread
39403         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39404         Reported by Richard W.M. Jones.
39405
39406         test-pread.sh: distribute the test script
39407         * modules/pread-tests (Files): Include test-pread.sh.
39408
39409         test-pread.sh: clean up
39410         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39411         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39412         That is unnecessary, since it's always ".".
39413         Suggestion from Eric Blake.
39414
39415         test-pread.sh: make executable
39416         * tests/test-pread.sh: Set executable bit.
39417         Reported by Eric Blake.
39418
39419         correct typo in test-pread.sh
39420         * tests/test-pread.sh: Add #! line.
39421
39422         test pread
39423         * tests/test-pread.c: New file.
39424         * tests/test-pread.sh: Likewise.
39425         * modules/pread-tests: Likewise.
39426
39427         pread: new module
39428         * modules/pread: New file.
39429         * lib/unistd.in.h (pread): Define/declare.
39430         * lib/pread.c (pread): New file.
39431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39432         * modules/unistd (Makefile.am): Substitute witnesses.
39433         * doc/posix-functions/pread.texi (pread): Update.
39434         * MODULES.html.sh: Add pread.
39435
39436 2009-11-25  Jim Meyering  <meyering@redhat.com>
39437
39438         tests/init.sh: new file to be used via most *.sh tests
39439         * tests/init.sh: New file.
39440
39441 2009-11-25  Eric Blake  <ebb9@byu.net>
39442
39443         utimens: work around older Linux failure with symlinks
39444         * lib/utimens.c (lutimensat_works_really): New variable.
39445         (fdutimens, lutimens): Use it to manage kernels that support
39446         nanosecond times on files, but not on symlinks.
39447         Reported by Ondřej Vašík.
39448
39449         utimes: fix configure grammar
39450         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39451
39452 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39453
39454         regex: Fix fastmap for multibyte character ranges.
39455         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39456         characters when a multibyte character range is included.
39457
39458 2009-11-22  Andy Wingo  <wingo@pobox.com>
39459
39460         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39461         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39462
39463 2009-11-24  Bruno Haible  <bruno@clisp.org>
39464
39465         doc: Most *_l functions exist in MacOS X 10.5.
39466         * doc/posix-functions/duplocale.texi: Update platforms list.
39467         * doc/posix-functions/freelocale.texi: Likewise.
39468         * doc/posix-functions/newlocale.texi: Likewise.
39469         * doc/posix-functions/uselocale.texi: Likewise.
39470         * doc/posix-functions/isalnum_l.texi: Likewise.
39471         * doc/posix-functions/isalpha_l.texi: Likewise.
39472         * doc/posix-functions/isblank_l.texi: Likewise.
39473         * doc/posix-functions/iscntrl_l.texi: Likewise.
39474         * doc/posix-functions/isdigit_l.texi: Likewise.
39475         * doc/posix-functions/isgraph_l.texi: Likewise.
39476         * doc/posix-functions/islower_l.texi: Likewise.
39477         * doc/posix-functions/isprint_l.texi: Likewise.
39478         * doc/posix-functions/ispunct_l.texi: Likewise.
39479         * doc/posix-functions/isspace_l.texi: Likewise.
39480         * doc/posix-functions/isupper_l.texi: Likewise.
39481         * doc/posix-functions/iswalnum_l.texi: Likewise.
39482         * doc/posix-functions/iswalpha_l.texi: Likewise.
39483         * doc/posix-functions/iswblank_l.texi: Likewise.
39484         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39485         * doc/posix-functions/iswctype_l.texi: Likewise.
39486         * doc/posix-functions/iswdigit_l.texi: Likewise.
39487         * doc/posix-functions/iswgraph_l.texi: Likewise.
39488         * doc/posix-functions/iswlower_l.texi: Likewise.
39489         * doc/posix-functions/iswprint_l.texi: Likewise.
39490         * doc/posix-functions/iswpunct_l.texi: Likewise.
39491         * doc/posix-functions/iswspace_l.texi: Likewise.
39492         * doc/posix-functions/iswupper_l.texi: Likewise.
39493         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39494         * doc/posix-functions/isxdigit_l.texi: Likewise.
39495         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39496         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39497         * doc/posix-functions/strcoll_l.texi: Likewise.
39498         * doc/posix-functions/strfmon_l.texi: Likewise.
39499         * doc/posix-functions/strftime_l.texi: Likewise.
39500         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39501         * doc/posix-functions/strxfrm_l.texi: Likewise.
39502         * doc/posix-functions/tolower_l.texi: Likewise.
39503         * doc/posix-functions/toupper_l.texi: Likewise.
39504         * doc/posix-functions/towctrans_l.texi: Likewise.
39505         * doc/posix-functions/towlower_l.texi: Likewise.
39506         * doc/posix-functions/towupper_l.texi: Likewise.
39507         * doc/posix-functions/wcscoll_l.texi: Likewise.
39508         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39509         * doc/posix-functions/wctrans_l.texi: Likewise.
39510         * doc/posix-functions/wctype_l.texi: Likewise.
39511         * doc/glibc-functions/strptime_l.texi: Likewise.
39512         * doc/glibc-functions/strtod_l.texi: Likewise.
39513         * doc/glibc-functions/strtof_l.texi: Likewise.
39514         * doc/glibc-functions/strtol_l.texi: Likewise.
39515         * doc/glibc-functions/strtold_l.texi: Likewise.
39516         * doc/glibc-functions/strtoll_l.texi: Likewise.
39517         * doc/glibc-functions/strtoul_l.texi: Likewise.
39518         * doc/glibc-functions/strtoull_l.texi: Likewise.
39519         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39520         * doc/glibc-functions/wcstod_l.texi: Likewise.
39521         * doc/glibc-functions/wcstof_l.texi: Likewise.
39522         * doc/glibc-functions/wcstol_l.texi: Likewise.
39523         * doc/glibc-functions/wcstold_l.texi: Likewise.
39524         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39525         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39526         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39527
39528 2009-11-24  Bruno Haible  <bruno@clisp.org>
39529
39530         duplocale: Fix logic bug.
39531         * lib/duplocale.c: Don't include <langinfo.h>.
39532         (_NL_LOCALE_NAME): Remove macro.
39533         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39534         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39535
39536 2009-11-23  Jim Meyering  <meyering@redhat.com>
39537
39538         test-update-copyright: don't hard-code /usr/bin/perl
39539         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39540         perl to print the current year.  Gilles Espinasse reported that
39541         the replaced use of perl was hard-coded as /usr/bin/perl.
39542
39543 2009-11-23  Bruno Haible  <bruno@clisp.org>
39544
39545         duplocale: Add support for glibc 2.3.x.
39546         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39547
39548 2009-11-22  Bruno Haible  <bruno@clisp.org>
39549
39550         vasnprintf: Tiny optimization.
39551         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39552         MacOS X.
39553
39554 2009-11-22  Bruno Haible  <bruno@clisp.org>
39555
39556         Tests for module 'duplocale'.
39557         * modules/duplocale-tests: New file.
39558         * tests/test-duplocale.c: New file.
39559
39560         New module 'duplocale'.
39561         * m4/duplocale.m4: New file.
39562         * lib/locale.in.h (duplocale): New declaration.
39563         * lib/duplocale.c: New file.
39564         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39565         gl_LOCALE_H_DEFAULTS): New macros.
39566         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39567         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39568         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39569         REPLACE_DUPLOCALE.
39570         * modules/duplocale: New file.
39571         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39572
39573 2009-11-22  Bruno Haible  <bruno@clisp.org>
39574
39575         * modules/locale-tests (configure.ac): Test for newlocale function.
39576         * tests/test-locale.c: When the system has extended locale functions,
39577         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39578
39579         locale: Make locale_t available when possible.
39580         * lib/locale.in.h: Include <xlocale.h> when it exists.
39581         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39582         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39583         * modules/locale (Depends-on): Add extensions.
39584         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39585         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39586
39587 2009-11-22  Bruno Haible  <bruno@clisp.org>
39588
39589         Add comments.
39590         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39591         invocation.
39592         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39593         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39594         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39595
39596 2009-11-22  Bruno Haible  <bruno@clisp.org>
39597
39598         error: account for the possibility of freopen (stdout).
39599         * lib/error.c: Include <unistd.h>.
39600         (flush_stdout): New function, extracted from error and error_at_line.
39601         Determine stdout's fd dynamically.
39602         (error, error_at_line): Invoke flush_stdout.
39603         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39604         * modules/error (Depends-on): Add unistd.
39605
39606 2009-11-22  Bruno Haible  <bruno@clisp.org>
39607
39608         diffseq: Add comment.
39609         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39610
39611 2009-11-22  Jim Meyering  <meyering@redhat.com>
39612
39613         c-stack: avoid defining an unused static function
39614         * lib/c-stack.c (find_stack_direction): Do not define this function
39615         when it will not be used.
39616
39617         diffseq: avoid spurious gcc warnings
39618         * lib/diffseq.h (IF_LINT2): Define.
39619         (compareseq): Use it to initialize two members of "part".
39620         This avoids two used-uninitialized warnings.
39621
39622 2009-11-21  Jim Meyering  <meyering@redhat.com>
39623
39624         c-stack: avoid "ignoring return value of `write'" warning
39625         * lib/c-stack.c: Include "ignore-value.h".
39626         (die): Explicitly ignore each write return value.
39627         * modules/c-stack (Depends-on): Add ignore-value.
39628
39629 2009-11-21  Bruno Haible  <bruno@clisp.org>
39630
39631         diffseq: reduce scope of variable 'best'.
39632         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39633         variable, earlier used for two different purposes.
39634
39635 2009-11-21  Jim Meyering  <meyering@redhat.com>
39636
39637         diffseq: remove useless assignment to "best"
39638         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39639         assignment.  At that point "best" is already guaranteed to be zero.
39640
39641 2009-11-20  Eric Blake  <ebb9@byu.net>
39642
39643         build: mention ftp redirector in release announcements
39644         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39645         values that used to come from cfg.mk; mention FTP redirect URL.
39646         * build-aux/announce-gen: Mention the mirror list.
39647         Suggested by Karl Berry.
39648
39649         nanosleep: improve port to mingw
39650         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39652         LIB_NANOSLEEP, but only when needed.
39653         * modules/select (Link): Document LIBSOCKET.
39654         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39655         enough.
39656
39657         nanosleep: work around cygwin bug
39658         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39659         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39660         bug.
39661         (getnow): Delete, not needed.
39662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39663         LIB_CLOCK_GETTIME.
39664         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39665         clock-time, gettime.
39666         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39667         bug.
39668         * modules/nanosleep-tests: New test.
39669         * tests/test-nanosleep.c: New file.
39670
39671         sleep: work around cygwin bug
39672         * lib/sleep.c (rpl_sleep): Work around the bug.
39673         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39674         (gl_PREREQ_SLEEP): Delete unused macro.
39675         * modules/sleep (Depends-on): Add verify.
39676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39677         * modules/unistd (Makefile.am): Substitute witness.
39678         * lib/unistd.in.h (sleep): Update prototype.
39679         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39680         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39681         * modules/sleep-tests (Depends-on): Check for alarm.
39682
39683 2009-11-20  Jim Meyering  <meyering@redhat.com>
39684
39685         maint.mk: improve sc_prohibit_magic_number_exit
39686         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39687         so it does not match uses like System.exit(1).
39688         Add comments showing how to correct all offenders.
39689
39690 2009-11-19  Eric Blake  <ebb9@byu.net>
39691
39692         xalloc-die-tests: add missing library
39693         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39694
39695         test-xvasprintf: silence compiler warnings
39696         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39697         empty string from gcc.
39698
39699 2009-11-19  Jim Meyering  <meyering@redhat.com>
39700
39701         xfreopen: new module, from coreutils
39702         * modules/xfreopen: New module.
39703         * lib/xfreopen.c: New file.
39704         * lib/xfreopen.h: New file.
39705         * MODULES.html.sh (File stream based Input/Output"): Add it.
39706
39707 2009-11-19  Eric Blake  <ebb9@byu.net>
39708
39709         manywarnings: depend on warnings
39710         * modules/manywarnings (Depends-on): Add warnings.
39711
39712         build: avoid compiler warnings
39713         * lib/select.c (rpl_select): Delete unused variable.
39714         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39715
39716 2009-11-18  Eric Blake  <ebb9@byu.net>
39717
39718         tests: avoid false negative with --with-packager
39719         * tests/test-version-etc.sh: Discard packager information.
39720         * tests/test-argp-version-etc-1.sh: Likewise.
39721         Reported by Mike Frysinger.
39722
39723         utimens: fix regression on Solaris
39724         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39725         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39726         can only change fd timestamps via futimesat.  Instead, use an
39727         additional witness macro to avoid BSD bug.
39728         Reported by Jim Meyering.
39729
39730 2009-11-17  Eric Blake  <ebb9@byu.net>
39731
39732         usleep: use it to simplify tests
39733         * modules/stat-time-tests (Depends-on): Add usleep.
39734         (configure.ac): Drop usleep check.
39735         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39736         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39737         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39738         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39739         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39740         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39741         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39742         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39743         Likewise.
39744         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39745         * tests/test-lchown.h (nap): Likewise.
39746         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39747         * tests/test-stat-time.c (nap): Likewise.
39748         * tests/test-utimens-common.h (nap): Update comments.
39749
39750         usleep: new module
39751         * modules/usleep: New file.
39752         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39753         * lib/usleep.c (usleep): Likewise.
39754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39755         * modules/unistd (Makefile.am): Substitute witnesses.
39756         * lib/unistd.in.h (usleep): Add declaration.
39757         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39758         * MODULES.html.sh (Date and time): Likewise.
39759         * modules/usleep-tests (Depends-on): New test.
39760         * tests/test-usleep.c: New file.
39761
39762         chown: work around OpenBSD bug
39763         * lib/chown.c (rpl_chown): Work around the bug.
39764         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39765         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39766         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39767         * modules/chown (Depends-on): Add stdbool.
39768         * modules/lchown (Depends-on): Likewise.
39769         * doc/posix-functions/chown.texi (chown): Document the bug.
39770         * doc/posix-functions/lchown.texi (lchown): Likewise.
39771         * tests/test-lchown.h (test_chown): Relax test.
39772
39773         mkstemp: avoid conflict with C++ keyword template
39774         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39775         * lib/mkostemp.c (mkostemp): Likewise.
39776         * lib/mkostemps.c (mkostemps): Likewise.
39777         * lib/mkstemp.c (mkstemp): Likewise.
39778         * lib/mkstemps.c (mkstemps): Likewise.
39779
39780         xalloc-die-tests: optimize
39781         * tests/test-xalloc-die.sh: Reduce number of processes.
39782
39783 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39784
39785         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39786         patch from ludo@gnu.org (Ludovic Courtès).
39787
39788 2009-11-17  Jim Meyering  <meyering@redhat.com>
39789
39790         version-etc: use proper license string
39791         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39792         * modules/version-etc-fsf: Likewise.
39793
39794 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39795
39796         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39797         printed to stdout.  Deal with EOL differences.
39798
39799 2009-11-17  Eric Blake  <ebb9@byu.net>
39800
39801         unsetenv: work around Solaris bug
39802         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39803         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39804         Reported by Jim Meyering.
39805
39806         vasnprintf: avoid compiler warnings
39807         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39808         variables.
39809         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39810
39811 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39812
39813         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39814         settings since xalloc-die is no longer the self test,
39815         xalloc-die.sh is.
39816
39817 2009-11-17  Jim Meyering  <meyering@redhat.com>
39818
39819         test-xalloc-die.sh: make the code agree with the commit log
39820         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39821         at the end, just in case you happen to have a test-xalloc-die
39822         program in some other PATH directory.
39823
39824         test-xalloc-die.sh: fix a portability bug
39825         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39826         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39827         Otherwise, argv[0] (as often seen in diagnostics) would be too
39828         system-dependent, sometimes with, and sometimes without the leading "./".
39829
39830         version-etc-fsf: relax license to LGPLv3+
39831         * modules/version-etc-fsf (License): Relax license.
39832
39833 2009-11-16  Eric Blake  <ebb9@byu.net>
39834
39835         xalloc-die-tests: avoid printing null pointer
39836         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39837         shell script.
39838         * tests/test-xalloc-die.c (program_name): Declare.
39839         * tests/test-xalloc-die.sh (tmpfiles): New file.
39840
39841         setenv, unsetenv: work around various bugs
39842         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39843         (setenv) [HAVE_SETENV]: Work around bugs.
39844         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39845         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39846         for bugs.
39847         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39848         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39850         * modules/stdlib (Makefile.am): Update substitutions.
39851         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39852         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39853         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39854         * modules/setenv-tests: New test.
39855         * modules/unsetenv-tests: Likewise.
39856         * tests/test-setenv.c: New file.
39857         * tests/test-unsetenv.c: Likewise.
39858
39859 2009-11-16  Jim Meyering  <meyering@redhat.com>
39860
39861         version-etc: relax license to LGPLv3+
39862         * modules/version-etc (License): Relax license.
39863
39864         better AC_REQUIRE expanded-before-required-warning avoidance
39865         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39866         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39867         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39868         which is no longer needed.
39869
39870 2009-11-16  Eric Blake  <ebb9@byu.net>
39871
39872         test-freading: clean up temporary file
39873         * tests/test-freading.c (main): Remove file on success, and use
39874         ASSERT more liberally.
39875         Reported by Jim Meyering.
39876
39877 2009-11-16  Jim Meyering  <meyering@redhat.com>
39878
39879         avoid new AC_REQUIRE expanded-before-required warnings
39880         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39881         merely using it.
39882         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39883         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39884
39885 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39886
39887         * tests/test-xalloc-die.c: New file.
39888         * modules/xalloc-die-tests: New file.
39889         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39890         XFAIL_TESTS so it can be appended by modules.
39891
39892 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39893
39894         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39895         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39896
39897 2009-11-14  Eric Blake  <ebb9@byu.net>
39898
39899         fnmatch: avoid compiler warning
39900         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39901         to silence compiler warning about mismatch signedness in ?:.
39902         Reported by Robert Millan.
39903
39904         intprops: add double-inclusion guard
39905         * lib/intprops.h: Allow idempotent includes.
39906         Suggested by Bruce Korb.
39907
39908         openat: detect Solaris fchownat bug
39909         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39910         penalizing glibc chownat when only lchownat is broken.
39911         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39912         trailing slash bugs.
39913         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39914         * modules/openat-tests (Files): Include more files.
39915         (Depends-on): Add mgetgroups, sleep, stat-time.
39916         (configure.ac): Add additional checks.
39917         (Makefile.am): Build new test.
39918         * tests/test-fchownat.c: New file.
39919
39920         lchown: detect Solaris and FreeBSD bug
39921         * lib/lchown.c (rpl_lchown): Work around bug.
39922         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39924         * modules/unistd (Makefile.am): Populate it.
39925         * lib/unistd.in.h (lchown): Update declaration.
39926         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39927         * modules/lchown-tests: New file.
39928         * tests/test-lchown.h (test_lchown): Likewise.
39929         * tests/test-lchown.c (main): Likewise.
39930
39931         chown: detect Solaris and FreeBSD bug
39932         * lib/chown.c (rpl_chown): Work around bug.
39933         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39934         (gl_PREREQ_CHOWN): Delete.
39935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39936         * modules/unistd (Makefile.am): Populate it.
39937         * lib/unistd.in.h (chown): Update declaration.
39938         * lib/lchown.c (chown): Update client.
39939         * modules/lchown (Depends-on): Add lstat.
39940         * doc/posix-functions/chown.texi (chown): Document the bug.
39941         * doc/posix-functions/getgroups.texi (getgroups): Document
39942         getgroups pitfall.
39943         * modules/chown-tests: New file.
39944         * tests/test-chown.h (test_chown): Likewise.
39945         * tests/test-chown.c (main): Likewise.
39946
39947 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39948
39949         gnulib-tool: correctly detect absence of m4 directories
39950         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39951
39952 2009-11-14  Jim Meyering  <meyering@redhat.com>
39953
39954         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39955         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39956
39957 2009-11-14  John W. Eaton  <jwe@gnu.org>
39958
39959         strftime.h: wrap function declaration in extern "C" block
39960         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39961
39962 2009-11-13  Eric Blake  <ebb9@byu.net>
39963
39964         getgroups: avoid compiler warning
39965         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39966
39967         getgroups: work around FreeBSD bug
39968         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39969         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39970         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39971         * tests/test-getgroups.c (main): Fix buffer overrun.
39972
39973         getgroups: avoid compilation failure
39974         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39975         * modules/getgroups (Depends-on): Add stdint.
39976
39977 2009-11-13  Jim Meyering  <meyering@redhat.com>
39978
39979         test-getgroups: avoid compilation failure
39980         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39981
39982 2009-11-13  Eric Blake  <ebb9@byu.net>
39983
39984         mgetgroups: new module, taken from coreutils
39985         * modules/mgetgroups: New file.
39986         * lib/mgetgroups.h: Likewise.
39987         * lib/mgetgroups.c (mgetgroups): Likewise.
39988         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39989         * MODULES.html.sh (Users and groups): Mention it.
39990
39991         getgroups: don't expose GETGROUPS_T to user
39992         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39993         an element at a time if GETGROUPS_T is wrong size.
39994         * lib/getugroups.h (getugroups): Change signature.
39995         * lib/unistd.in.h (getgroups): Likewise.
39996         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39997         signature needs fixing.
39998         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39999         AC_TYPE_GETGROUPS.
40000         * modules/group-member (Depends-on): Add getgroups.
40001         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40002         (group_member): Rely on getgroups replacement.
40003         * lib/getugroups.c (getugroups): Use gid_t.
40004         * tests/test-getgroups.c (main): Likewise.
40005         * NEWS: Mention the signature change.
40006         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40007         problem with signature.
40008         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40009         GETGROUPS_T is still useful for setgroups.
40010
40011         getgroups, getugroups: provide stubs for mingw
40012         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40013         * lib/getugroups.c (getugroups): Likewise.
40014         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40015         function.  Modernize replacement scheme.
40016         (gl_PREREQ_GETGROUPS): Delete.
40017         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40018         * modules/getgroups (configure.ac): Declare witness.
40019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40020         * modules/unistd (Depends-on): Substitute witness.
40021         * lib/unistd.in.h (getgroups): Declare replacement.
40022
40023         getgroups: avoid calling exit
40024         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40025         drop xalloc.
40026         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40027         dependencies.
40028         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40029         exiting, in the rare case of malloc failure.
40030
40031         getgroups: fix logic error
40032         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40033         has more than 20 groups.
40034         * modules/getgroups-tests: New test.
40035         * tests/test-getgroups.c: New file.
40036
40037 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40038
40039         * tests/test-base64.c: Improve.
40040
40041 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40042
40043         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40044         Blake <ebb9@byu.net>.
40045
40046 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40047
40048         * tests/test-xvasprintf.c: Add %s%s related checks.
40049
40050 2009-11-12  Eric Blake  <ebb9@byu.net>
40051
40052         version-etc: match standards.texi style
40053         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40054         and use <> only for URLs.
40055
40056 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40057
40058         fts: do not fail on a submount during traversal
40059         * lib/fts.c (fts_build): Read the stat info again after opening
40060         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40061         Original report at http://bugzilla.redhat.com/501848.
40062
40063 2009-11-12  Jim Meyering  <meyering@redhat.com>
40064
40065         bootstrap: sync from coreutils
40066         * build-aux/bootstrap (bootstrap_epilogue): New function.
40067         Use git_modules_config in one more place.  This make bootstrap's
40068         --gnulib-srcdir option more useful for testing.
40069
40070         bootstrap: generalize autoheader check
40071         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40072         AC_CONFIG_HEADERS.
40073
40074 2009-11-11  Eric Blake  <ebb9@byu.net>
40075
40076         mkfifoat: use new modules for Solaris and BSD bugs
40077         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40078         * lib/mkfifoat.c (mknodat): Split...
40079         * lib/mknodat.c (mknodat): ...into new file.
40080         * modules/mkfifoat (Files): Ship new file.
40081         (Depends-on): Add mkfifo, mknod.
40082         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40083         (Depends-on): Add symlink.
40084         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40085         redundant with test_mkfifo.h.
40086         (do_mkfifoat, do_mknodat): New helpers.
40087
40088         mknod: new module
40089         * modules/mknod: New file.
40090         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40091         * lib/mknod.c (mknod): Likewise.
40092         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40093         defaults.
40094         * modules/sys_stat (Makefile.am): Substitute them.
40095         * lib/sys_stat.in.h (mknod): Declare replacement.
40096         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40097         Document it.
40098         * doc/posix-functions/mknod.texi (mknod): Likewise.
40099         * modules/mknod-tests: New test.
40100         * tests/test-mknod.c: Likewise.
40101
40102         mkfifo: new module
40103         * modules/mkfifo: New file.
40104         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40105         * lib/mkfifo.c (mkfifo): Likewise.
40106         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40107         defaults.
40108         * modules/sys_stat (Makefile.am): Substitute them.
40109         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40110         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40111         Document it.
40112         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40113         * modules/mkfifo-tests: New test.
40114         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40115         from test-mkfifoat.c.
40116         * tests/test-mkfifo.c: New file.
40117
40118         readlink: detect FreeBSD bug
40119         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40120         slash on symlink.
40121         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40122         * tests/test-readlink.h (test_readlink): Enhance test.
40123
40124         symlink: detect FreeBSD bug
40125         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40126         slash on symlink.
40127         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40128         * tests/test-symlink.h (test_symlink): Enhance test.
40129
40130 2009-11-10  Eric Blake  <ebb9@byu.net>
40131
40132         link: detect FreeBSD bug
40133         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40134         symlink.
40135         * doc/posix-functions/link.texi (link): Document the bug.
40136         * tests/test-link.h (test_link): Enhance test.
40137         * tests/test-linkat.c (main): Update caller.
40138
40139         unlink, remove: detect FreeBSD bug
40140         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40141         slash on symlink.
40142         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40143         * doc/posix-functions/remove.texi (remove): Likewise.
40144         * tests/test-unlink.h (test_unlink): Enhance test.
40145         * tests/test-remove.c (main): Likewise.
40146
40147 2009-11-09  Eric Blake  <ebb9@byu.net>
40148
40149         rename: detect FreeBSD bug
40150         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40151         slash on symlink.
40152         * modules/renameat-tests (Depends-on): Add filenamecat.
40153         * tests/test-rename.h (test_rename): Allow one more errno.
40154         * tests/test-renameat.c (main): Likewise.
40155         * doc/posix-functions/rename.texi (rename): Document the bug.
40156
40157         open: detect FreeBSD bug
40158         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40159         symlink.
40160         * doc/posix-functions/open.texi (open): Document the bug.
40161         * doc/posix-functions/utimes.texi (utimes): Likewise.
40162         * tests/test-open.h (test_open): Add parameters, and test symlink
40163         handling.
40164         * tests/test-open.c (main): Adjust caller.
40165         * tests/test-fcntl-safer.c (main): Likewise.
40166         * modules/open-tests (Depends-on): Add stdbool, symlink.
40167         * modules/fcntl-safer-tests (Depends-on): Likewise.
40168         * tests/test-openat.c (main): Add test-open tests.
40169
40170         stat: detect FreeBSD bug
40171         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40172         symlink.
40173         * doc/posix-functions/stat.texi (stat): Document the bug.
40174         * tests/test-stat.h (test_stat_func): Add argument.
40175         * tests/test-stat.c (main): Adjust caller.
40176         * tests/test-fstatat.c (main): Likewise.
40177         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40178         Reported by Jim Meyering.
40179
40180 2009-11-09  James Youngman  <jay@gnu.org>
40181
40182         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40183         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40184
40185 2009-11-08  Jim Meyering  <meyering@redhat.com>
40186
40187         utimens: remove invalid futimesat call
40188         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40189         It used the file descriptor of the target file as the DIR_FD
40190         parameter and NULL as the file name.  That caused failure with
40191         errno == EFAULT on FreeBSD-8.0-rc2
40192
40193 2009-11-07  Eric Blake  <ebb9@byu.net>
40194
40195         fflush, freadseek: use fseeko, not fseek
40196         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40197         (clear_ungetc_buffer): Avoid potential problems on large files.
40198         * lib/freadseek.c (freadseek): Likewise.
40199         * modules/freadseek (Depends-on): Add fseeko.
40200         * modules/fseek (configure.ac): Set a witness.
40201         * tests/test-fflush.c (main): Use fseeko.
40202         * tests/test-fpurge.c (fseek): Disable link warning.
40203         * tests/test-freadable.c (fseek): Likewise.
40204         * tests/test-freading.c (fseek): Likewise.
40205         * tests/test-fseeko.c (fseek): Likewise.
40206         * tests/test-ftell.c (fseek): Likewise.
40207         * tests/test-ftello.c (fseek): Likewise.
40208         * tests/test-fwritable.c (fseek): Likewise.
40209         * tests/test-fwriting.c (fseek): Likewise.
40210
40211 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40212
40213         * modules/memchr (Depends-on): Drop getpagesize dependency.
40214
40215 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40216
40217         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40218         Reported by Ludovic Courtès.
40219         * build-aux/pmccabe2html: Improve example usage.
40220         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40221
40222 2009-11-06  Jim Meyering  <meyering@redhat.com>
40223
40224         do-release-commit-and-tag: New module.
40225         Automate the release-commit and tag process.
40226         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40227         * modules/do-release-commit-and-tag: New file.
40228         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40229
40230 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40231
40232         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40233         because test-select.c uses inet_pton.
40234
40235 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40236
40237         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40238         GETADDRINFO_LIB.  Bump serial number.
40239         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40240         Suggested by Eric Blake <ebb9@byu.net>.
40241
40242 2009-11-05  Eric Blake  <ebb9@byu.net>
40243
40244         strtod: detect darwin bug
40245         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40246         Reported by Leo Davis.
40247
40248         freopen-safer: new module
40249         * modules/freopen-safer: New module.
40250         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40251         * lib/freopen-safer.c (freopen_safer): New file.
40252         * lib/stdio-safer.h (freopen_safer): New declaration.
40253         * lib/stdio--.h (freopen): New override.
40254         * MODULES.html.sh (File stream based Input/Output): Mention it.
40255         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40256         freopen-safer module.
40257         * doc/posix-functions/stderr.texi (stderr): Likewise.
40258         * doc/posix-functions/stdin.texi (stdin): Likewise.
40259         * doc/posix-functions/stdout.texi (stdout): Likewise.
40260         * modules/freopen-safer-tests: New test.
40261         * tests/test-reopen-safer.c: New file.
40262
40263 2009-11-05  Jim Meyering  <meyering@redhat.com>
40264
40265         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40266         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40267
40268 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40269
40270         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40271
40272 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40273
40274         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40275
40276 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40277
40278         Fix link error.
40279         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40280         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40281
40282 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40283
40284         * tests/test-func.c: Also test value of __func__.
40285
40286 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40287
40288         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40289         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40290
40291 2009-11-05  Bruno Haible  <bruno@clisp.org>
40292
40293         Fix link error.
40294         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40295         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40296         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40297
40298 2009-11-05  Bruno Haible  <bruno@clisp.org>
40299
40300         Tests for module 'inet_pton'.
40301         * modules/inet_pton-tests: New file.
40302         * tests/test-inet_pton.c: New file.
40303
40304 2009-11-05  Bruno Haible  <bruno@clisp.org>
40305
40306         Tests for module 'inet_ntop'.
40307         * modules/inet_ntop-tests: New file.
40308         * tests/test-inet_ntop.c: New file.
40309
40310 2009-11-04  Eric Blake  <ebb9@byu.net>
40311
40312         stdlib-safer: wrap all mkstemp variants
40313         * modules/mkostemp (configure.ac): Set witness.
40314         * modules/mkostemps (configure.ac): Likewise.
40315         * modules/mkstemps (configure.ac): Likewise.
40316         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40317         (mkstemps_safer): Wrap more functions.
40318         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40319         wrapping.
40320         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40321         (mkstemps_safer): Implement the wrappers.
40322
40323         mkstemps, mkostemps: new modules
40324         * modules/mkostemps: New module.
40325         * modules/mkstemps: Likewise.
40326         * lib/mkostemps.c (mkostemps): New file.
40327         * lib/mkstemps.c (mkstemps): Likewise.
40328         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40329         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40331         * modules/stdlib (Makefile.am): Substitute them.
40332         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40333         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40334         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40335         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40336         * MODULES.html.sh (File system functions): Mention them.
40337
40338         tempname: resync from glibc
40339         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40340         same values for __GT_FILE as glibc.  Abort even when assertions
40341         are disabled.
40342         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40343         match its value otherwise.  Allow idempotent inclusion.
40344         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40345         * lib/mkostemp.c (mkostemp): Likewise.
40346         * lib/mkstemp.c (mkstemp): Likewise.
40347         * lib/tmpfile.c (tmpfile): Likewise.
40348         * NEWS: Document this.
40349
40350         utimens: fix use of futimens on older Linux
40351         * lib/utimens.c (fdutimens): Use updated, rather than original,
40352         timespec to avoid bug in older Linux kernel.
40353         Reported by Simon Josefsson.
40354
40355 2009-11-04  Bruno Haible  <bruno@clisp.org>
40356
40357         Make num_processors more flexible and consistent.
40358         * lib/nproc.h (enum nproc_query): New type.
40359         (num_processors): Add a 'query' argument.
40360         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40361         (num_processors): Add a 'query' argument. Test the value of the
40362         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40363         mingw, count the number of CPUs available for the current process.
40364         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40365         Check for sched_getaffinity and sched_getaffinity_np.
40366         * modules/nproc (Depends-on): Add c-ctype, extensions.
40367         * NEWS: Mention the change.
40368
40369 2009-11-03  Bruno Haible  <bruno@clisp.org>
40370
40371         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40372
40373 2009-11-03  Jim Meyering  <meyering@redhat.com>
40374
40375         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40376         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40377         if it is defined.
40378
40379 2009-11-02  Eric Blake  <ebb9@byu.net>
40380
40381         mktime, timegm: share common declaration
40382         * lib/mktime-internal.h: New file.
40383         * lib/mktime.c: Use it rather than open-coding a declaration.
40384         * lib/timegm.c: Likewise.
40385         * modules/mktime (Files): Ship it.
40386         * modules/timegm (Files): Likewise.
40387         Suggested by Bruno Haible.
40388
40389         test-update-copyright: update test to match script changes
40390         * tests/test-update-copyright.sh: Avoid hard-coding perl
40391         location.  Don't update *.bak created by earlier runs.
40392
40393 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40394             Simon Josefsson  <simon@josefsson.org>
40395             Bruno Haible  <bruno@clisp.org>
40396
40397         Fix link error on Solaris 8.
40398         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40399         also in libnsl. Define also INET_PTON_LIB.
40400         * modules/inet_pton (Link): New section.
40401
40402 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40403             Bruno Haible  <bruno@clisp.org>
40404
40405         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40406         * modules/inet_ntop (Link): New section.
40407         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40408
40409 2009-11-02  Eric Blake  <ebb9@byu.net>
40410
40411         maint: avoid compiler warnings in m4 macros
40412         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40413         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40414
40415 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40416
40417         * m4/pmccabe2html.m4: Remove file.
40418         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40419         function.  Change maintainer.
40420         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40421         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40422         Courtès).
40423
40424 2009-10-31  Eric Blake  <ebb9@byu.net>
40425
40426         fseeko: fix m4 regression
40427         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40428         regression from 2009-10-27.
40429         Reported by Ralf Wildenhues.
40430
40431 2009-10-31  Jim Meyering  <meyering@redhat.com>
40432
40433         inttostr: aesthetics and improved (compile-time) safety
40434         Define inttype_is_signed rather than inttype_is_unsigned,
40435         since the sole use is via "#if inttype_is_signed".
40436         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40437         inttype_is_unsigned.
40438         * lib/offtostr.c (inttype_is_signed): Likewise.
40439         * lib/uinttostr.c (inttype_is_signed): Likewise.
40440         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40441         * lib/inttostr.c (inttostr): Use verify to cross-check the
40442         inttype_is_signed value and the signedness of the actual type.
40443         * modules/inttostr (Depends-on): Add verify.
40444
40445 2009-10-30  Eric Blake  <ebb9@byu.net>
40446
40447         build: avoid compiler warnings
40448         * lib/fchmodat.c (lchmod): Mark unused variables.
40449         * lib/getopt.c (_getopt_initialize): Likewise.
40450         * lib/mktime.c (__mktime_internal): Provide prototype.
40451         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40452         older gcc that do not understand #pragma GCC diagnostic.
40453         * lib/uinttostr.c (inttype_is_unsigned): Define.
40454         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40455
40456 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40457
40458         stat: fix compilation on AIX
40459         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40460         only see struct stat64.
40461
40462 2009-10-30  Eric Blake  <ebb9@byu.net>
40463
40464         exclude: make more robust
40465         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40466         rather than masking a coding bug.
40467         Suggested by Bruno Haible.
40468
40469 2009-10-30  Jim Meyering  <meyering@redhat.com>
40470
40471         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40472         Rather than putting #!/usr/bin/perl on the first line,
40473         start with a variant of what's recommended by "man perlrun" that
40474         invokes the first "perl" program from your shell's search path.
40475         * build-aux/gitlog-to-changelog: Replace #!... as above.
40476         Add a "Local Variables" perl mode setting.
40477         Prompted by a patch from Ludovic Courtès.
40478         Improved by Eric Blake.
40479         * build-aux/useless-if-before-free: Likewise.
40480         * build-aux/announce-gen: Likewise.
40481         * build-aux/update-copyright: Likewise.
40482
40483 2009-10-29  Eric Blake  <ebb9@byu.net>
40484
40485         filenamecat-lgpl: adjust clients
40486         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40487         filenamecat.
40488         * modules/renameat (Depends-on): Likewise.
40489
40490         filenamecat: split into filenamecat-lgpl
40491         * modules/filenamecat-lgpl: New module.
40492         * modules/filenamecat (Files): Move library-safe files into
40493         filenamecat-lgpl.
40494         (Depends-on): Add filenamecat-lgpl.
40495         (configure.ac): Declare witness.
40496         * lib/filenamecat.h (file_name_concat): Only declare when using
40497         GPL module.
40498         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40499         Move...
40500         * lib/filenamecat-lgpl.c: ...into new file.
40501         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40502         (gl_FILE_NAME_CONCAT): Use it.
40503         * MODULES.html.sh (File system functions): Mention new module.
40504
40505         argp: avoid memory leak
40506         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40507         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40508         base_name, since the latter malloc()s and can call exit().
40509         Leak introduced 2006-07-03.
40510
40511         dirname-lgpl: adjust clients that don't need full dirname
40512         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40513         * modules/filenamecat (Depends-on): Likewise.
40514         * modules/linkat (Depends-on): Likewise.
40515         * modules/mkancesdirs (Depends-on): Likewise.
40516         * modules/mkdir (Depends-on): Likewise.
40517         * modules/openat (Depends-on): Likewise.
40518         * modules/savewd (Depends-on): Likewise.
40519         * modules/rename (Depends-on): Likewise.
40520         (License): Relax license.
40521         * modules/mkdir-tests (Depends-on): Drop progname.
40522         (Makefile.am): Delete unneeded LDADD.
40523         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40524
40525         dirname: split into dirname-lgpl
40526         * modules/dirname-lgpl: New module.
40527         * modules/dirname (Files): Move library-safe files into
40528         dirname-lgpl.
40529         (Depends-on): Add dirname-lgpl.
40530         (configure.ac): Declare witness.
40531         * modules/double-slash-root (License): Relax license.
40532         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40533         module.
40534         * lib/dirname.c (dir_len, mdir_name): Move...
40535         * lib/dirname-lgpl.c: ...into new file.
40536         * lib/basename.c (last_component, base_len): Move...
40537         * lib/basename-lgpl.c: ...into new file.
40538         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40539         (gl_DIRNAME): Use it.
40540         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40541         Mention new module.
40542         * modules/dirname-tests (Depends-on): Add progname.
40543         * tests/test-dirname.c (program_name): Delete.
40544
40545         mkdir: make safe for libraries
40546         * modules/mkdir (Depends-on): Drop xalloc.
40547         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40548         exit.
40549
40550         tests: avoid some compiler warnings
40551         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40552         literals.
40553         * tests/test-memchr.c (main): Avoid type mismatch.
40554         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40555         * tests/test-base64.c (main): Likewise.
40556         * tests/test-getdelim.c (main): Likewise.
40557         * tests/test-gethostname.c (main): Likewise.
40558         * tests/test-getline.c (main): Likewise.
40559         * tests/test-netinet_in.c (main): Likewise.
40560         * tests/test-select.c (open_server_socket, main): Likewise.
40561         * tests/test-select-stdin.c (main): Likewise.
40562         * tests/test-sockets.c (main): Likewise.
40563         * tests/test-strsignal.c (main): Likewise.
40564         * tests/test-sys_select.c (main): Likewise.
40565         * tests/test-sys_socket.c (main): Likewise.
40566         * tests/test-u64.c (main): Likewise.
40567         * tests/test-xfprintf-posix.c (main): Likewise.
40568         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40569
40570         sockets: avoid compiler warning
40571         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40572
40573         maint: detect usage(1) and other suspicious exits
40574         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40575
40576 2009-10-29  Jim Meyering  <meyering@redhat.com>
40577
40578         timespec: long-to-int truncation could make timespec_cmp malfunction
40579         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40580         a multiple of 2^32 nanoseconds as no difference.
40581
40582 2009-10-28  Jim Meyering  <meyering@redhat.com>
40583
40584         fprintftime: wrap macro code argument in "do {...} while(0)"
40585         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40586         cpy macro must be a statement that can be followed by a semicolon.
40587         Now that the else clause contains a comment and is hence longer
40588         than one line, I require curly braces.  That in turn requires
40589         that we wrap this code block in the standard do...while(0).
40590
40591         fprintftime: remove stray semicolon from previous change
40592         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40593
40594         fprintftime: avoid a warning about ignored fwrite return value
40595         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40596         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40597         that is unsafe.
40598         * modules/fprintftime (Depends-on): Add ignore-value.
40599
40600         exclude: avoid an unwarranted warning
40601         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40602
40603 2009-10-27  Eric Blake  <ebb9@byu.net>
40604
40605         fseek: avoid compilation failure when fflush is replaced
40606         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40607         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40608         module is in use.
40609         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40610         module is not in use; since REPLACE_FSEEK worked otherwise.
40611         (GNULIB_FTELLO): Likewise for ftell.
40612         Reported by Ian Beckwith and others.
40613
40614 2009-10-27  Bruno Haible  <bruno@clisp.org>
40615
40616         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40617         Reported by Jim Meyering.
40618
40619 2009-10-27  Jim Meyering  <jim@meyering.net>
40620             Bruno Haible  <bruno@clisp.org>
40621
40622         Avoid warning despite dropping the return value of fwrite.
40623         * lib/unicodeio.c: Include ignore-value.h.
40624         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40625         * modules/unicodeio (Depends-on): Add ignore-value.
40626
40627 2009-10-26  Eric Blake  <ebb9@byu.net>
40628
40629         areadlinkat: fix fallback path
40630         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40631         pointer and zero.
40632
40633 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40634
40635         Use a better IO block size for modern systems
40636         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40637         * lib/md2.c: Likewise.
40638         * lib/md4.c: Likewise.
40639         * lib/md5.c: Likewise.
40640         * lib/sha1.c: Likewise.
40641         * lib/sha256.c: Likewise.
40642         * lib/sha512.c: Likewise.
40643
40644 2009-10-22  Eric Blake  <ebb9@byu.net>
40645
40646         tests: avoid several compiler warnings
40647         * tests/test-getcwd.c (main): Avoid buffer underflow.
40648         * tests/test-getdate.c (main): String literals are not safe with
40649         putenv, so use setenv.  Declare unused argument.
40650         * modules/getdate-tests (Depends-on): Add setenv.
40651         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40652         problems with string literals in char *.
40653         * tests/test-hash.c (main): Avoid shadowing declaration.
40654         (insert_new): Treat string literals as char const *.
40655         * tests/test-getopt.h (test_getopt): Likewise.
40656         (getopt_loop): Alter types to minimize casting elsewhere.
40657         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40658         (test_getopt_long_posix): Likewise.
40659         (do_getopt_long): Add wrapper to minimize casting.
40660         * tests/test-atexit.c (clear_temp_file): Use void.
40661         * tests/test-areadlink-with-size.c (main): Declare unused
40662         arguments.
40663         * tests/test-areadlink.c (main): Likewise.
40664         * tests/test-areadlinkat-with-size.c (main): Likewise.
40665         * tests/test-areadlinkat.c (main): Likewise.
40666         * tests/test-canonicalize-lgpl.c (main): Likewise.
40667         * tests/test-canonicalize.c (main): Likewise.
40668         * tests/test-dirent-safer.c (main): Likewise.
40669         * tests/test-dirname.c (main): Likewise.
40670         * tests/test-dup2.c (main): Likewise.
40671         * tests/test-fchdir.c (main): Likewise.
40672         * tests/test-fcntl-h.c (main): Likewise.
40673         * tests/test-fcntl-safer.c (main): Likewise.
40674         * tests/test-fdopendir.c (main): Likewise.
40675         * tests/test-fdutimensat.c (main): Likewise.
40676         * tests/test-fflush.c (main): Likewise.
40677         * tests/test-filenamecat.c (main): Likewise.
40678         * tests/test-filevercmp.c (main): Likewise.
40679         * tests/test-fopen-safer.c (main): Likewise.
40680         * tests/test-fopen.c (main): Likewise.
40681         * tests/test-fpending.c (main): Likewise.
40682         * tests/test-fpurge.c (main): Likewise.
40683         * tests/test-freading.c (main): Likewise.
40684         * tests/test-fstatat.c (main): Likewise.
40685         * tests/test-fsync.c (main): Likewise.
40686         * tests/test-futimens.c (main): Likewise.
40687         * tests/test-getndelim2.c (main): Likewise.
40688         * tests/test-gettimeofday.c (main): Likewise.
40689         * tests/test-getopt.c (main): Likewise.
40690         * tests/test-i-ring.c (main): Likewise.
40691         * tests/test-inttypes.c (main): Likewise.
40692         * tests/test-link.c (main): Likewise.
40693         * tests/test-lstat.c (main): Likewise.
40694         * tests/test-math.c (main): Likewise.
40695         * tests/test-md5.c (main): Likewise.
40696         * tests/test-memchr2.c (main): Likewise.
40697         * tests/test-memrchr.c (main): Likewise.
40698         * tests/test-mkdir.c (main): Likewise.
40699         * tests/test-mkdirat.c (main): Likewise.
40700         * tests/test-mkfifoat.c (main): Likewise.
40701         * tests/test-open.c (main): Likewise.
40702         * tests/test-openat-safer.c (main): Likewise.
40703         * tests/test-openat.c (main): Likewise.
40704         * tests/test-quotearg.c (main): Likewise.
40705         * tests/test-rawmemchr.c (main): Likewise.
40706         * tests/test-readlink.c (main): Likewise.
40707         * tests/test-remove.c (main): Likewise.
40708         * tests/test-rename.c (main): Likewise.
40709         * tests/test-renameat.c (main): Likewise.
40710         * tests/test-rmdir.c (main): Likewise.
40711         * tests/test-sha1.c (main): Likewise.
40712         * tests/test-signal.c (main): Likewise.
40713         * tests/test-sigaction.c (main): Likewise.
40714         * tests/test-stat.c (main): Likewise.
40715         * tests/test-stat-time.c (main): Likewise.
40716         * tests/test-stddef.c (main): Likewise.
40717         * tests/test-stdint.c (main): Likewise.
40718         * tests/test-stdio.c (main): Likewise.
40719         * tests/test-stdlib.c (main): Likewise.
40720         * tests/test-strchrnul.c (main): Likewise.
40721         * tests/test-strerror.c (main): Likewise.
40722         * tests/test-string.c (main): Likewise.
40723         * tests/test-strtod.c (main): Likewise.
40724         * tests/test-strverscmp.c (main): Likewise.
40725         * tests/test-symlink.c (main): Likewise.
40726         * tests/test-symlinkat.c (main): Likewise.
40727         * tests/test-sys_stat.c (main): Likewise.
40728         * tests/test-sys_time.c (main): Likewise.
40729         * tests/test-time.c (main): Likewise.
40730         * tests/test-unistd.c (main): Likewise.
40731         * tests/test-unlink.c (main): Likewise.
40732         * tests/test-unlinkat.c (main): Likewise.
40733         * tests/test-utimens.c (main): Likewise.
40734         * tests/test-utimensat.c (main): Likewise.
40735         * tests/test-version-etc.c (main): Likewise.
40736         * tests/test-wchar.c (main): Likewise.
40737         * tests/test-wctype.c (main): Likewise.
40738         * tests/test-xprintf-posix.c (main): Likewise.
40739         * tests/test-posixtm.c (main): Likewise.
40740         (STREQ): Delete unused macro.
40741         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40742         shadowed variables.
40743         * tests/test-memchr.c (main): Likewise.
40744
40745 2009-10-21  Eric Blake  <ebb9@byu.net>
40746
40747         areadlinkat: avoid failure on older glibc
40748         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40749         rather than mis-comparing 0 against FUNC_RESULT of char*.
40750
40751 2009-10-21  Bruno Haible  <bruno@clisp.org>
40752
40753         * modules/stpncpy (License): Relicense under LGPLv2+.
40754         Reported by David Lutterkort <lutter@redhat.com>.
40755
40756 2009-10-20  Eric Blake  <ebb9@byu.net>
40757
40758         utimensat: work around Solaris 9 bug
40759         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40760         has trailing slash bugs.
40761         * tests/test-lutimens.h (test_lutimens): Enhance test.
40762         * tests/test-utimens.h (test_utimens): Likewise.
40763         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40764         * doc/posix-functions/utimes.texi (utimes): Likewise.
40765         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40766         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40767         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40768         * doc/posix-functions/futimens.texi (futimens): Likewise.
40769
40770         fdutimensat: new module
40771         * modules/fdutimensat: New file.
40772         * lib/fdutimensat.c (fdutimensat): Likewise.
40773         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40774         * MODULES.html.sh (File system functions): Mention module.
40775         * modules/fdutimensat-tests: New test.
40776         * tests/test-fdutimensat.c: Likewise.
40777
40778         doc: regenerate INSTALL
40779         * doc/INSTALL: Reflect recent autoconf update.
40780         * doc/INSTALL.ISO: Likewise.
40781         * doc/INSTALL.UTF-8: Likewise.
40782
40783 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40784
40785         acl: warn if ACL support is not detected
40786         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40787
40788 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40789
40790         * lib/nproc.h: Add extern "C" block for C++.
40791
40792 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40793             Bruno Haible  <bruno@clisp.org>
40794
40795         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40796         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40797         * doc/posix-functions/isalpha.texi: Likewise.
40798         * doc/posix-functions/isblank.texi: Likewise.
40799         * doc/posix-functions/iscntrl.texi: Likewise.
40800         * doc/posix-functions/isdigit.texi: Likewise.
40801         * doc/posix-functions/isgraph.texi: Likewise.
40802         * doc/posix-functions/islower.texi: Likewise.
40803         * doc/posix-functions/isprint.texi: Likewise.
40804         * doc/posix-functions/ispunct.texi: Likewise.
40805         * doc/posix-functions/isspace.texi: Likewise.
40806         * doc/posix-functions/isupper.texi: Likewise.
40807         * doc/posix-functions/isxdigit.texi: Likewise.
40808
40809 2009-10-18  Bruno Haible  <bruno@clisp.org>
40810
40811         Tests for module 'isblank'.
40812         * modules/isblank-tests: New file.
40813         * tests/test-isblank.c: New file.
40814
40815         New module 'isblank'.
40816         * lib/isblank.c: New file.
40817         * m4/isblank.m4: New file.
40818         * modules/isblank: New file.
40819         * doc/posix-functions/isblank.texi: Mention the new module.
40820
40821 2009-10-18  Bruno Haible  <bruno@clisp.org>
40822
40823         New module 'ctype'.
40824         * lib/ctype.in.h: New file.
40825         * m4/ctype.m4: New file.
40826         * modules/ctype: New file.
40827         * doc/posix-headers/ctype.texi: Mention the new module.
40828
40829 2009-10-18  Jim Meyering  <meyering@redhat.com>
40830
40831         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40832         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40833         right after its initialization, rather than farther down.
40834         Keeping these in close proximity makes it easier to ensure
40835         that each such variable is initialized.  E.g.,
40836
40837             LIB_CLOCK_GETTIME=
40838             AC_SUBST([LIB_CLOCK_GETTIME])
40839
40840         This change also increments these serial numbers.
40841         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40842         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40844
40845 2009-10-18  Bruno Haible  <bruno@clisp.org>
40846
40847         Don't let environment variables perturb build.
40848         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40849         (gl_PREREQ_GETHRXTIME): ... not here.
40850
40851 2009-10-18  Bruno Haible  <bruno@clisp.org>
40852
40853         Avoid symlink attack in localcharset module.
40854         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40855         (O_NOFOLLOW): Define fallback.
40856         (get_charset_aliases): Don't open the file if it is a symbolic link.
40857         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40858         gl_FCNTL_H.
40859         (gl_FCNTL_H): Require it.
40860         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40861         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40862         Reported by Fergal Glynn <fglynn@veracode.com>.
40863
40864 2009-10-18  Bruno Haible  <bruno@clisp.org>
40865
40866         Implement nproc for mingw.
40867         * lib/nproc.c: Include <windows.h>
40868         (num_processors): On native Windows platforms, try GetSystemInfo.
40869
40870 2009-10-18  Bruno Haible  <bruno@clisp.org>
40871
40872         Implement nproc for IRIX.
40873         * lib/nproc.c: Include <sys/sysmp.h>.
40874         (num_processors): On IRIX systems, try sysmp.
40875         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40876
40877 2009-10-18  Bruno Haible  <bruno@clisp.org>
40878
40879         Implement nproc for HP-UX.
40880         * lib/nproc.c: Include <sys/pstat.h>
40881         (num_processors): On HP-UX systems, try pstat_getdynamic.
40882         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40883         pstat_getdynamic.
40884
40885 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40886             Bruno Haible  <bruno@clisp.org>
40887
40888         Implement nproc for NetBSD, OpenBSD.
40889         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40890         (ARRAY_SIZE): New macro.
40891         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40892         * m4/nproc.m4: New file.
40893         * modules/nproc (Files): Add m4/nproc.m4.
40894         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40895         (Makefile.am): Instead, augment lib_SOURCES.
40896
40897 2009-10-18  Bruno Haible  <bruno@clisp.org>
40898
40899         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40900         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40901         sys/param.h.
40902
40903 2009-10-16  Eric Blake  <ebb9@byu.net>
40904
40905         utimensat: new module
40906         * modules/utimensat: New file.
40907         * lib/utimensat.c (utimensat): Likewise.
40908         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40909         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40910         so we can work around Linux bugs.
40911         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40912         * modules/sys_stat (Makefile.am): Substitute them.
40913         * lib/sys_stat.in.h (utimensat): Declare it.
40914         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40915         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40916         * modules/utimensat-tests: New test.
40917         * tests/test-utimensat.c: Likewise.
40918
40919         utimens: let lutimens work on non-symlinks
40920         * lib/utimens.c (lutimens): Fall back to utimens rather than
40921         failing with ENOSYS, when file is not a symlink.
40922         (utimens): Reduce redirection.
40923         * tests/test-lutimens.h (test_lutimens): Update test to cover
40924         non-symlinks.
40925         * tests/test-utimens.h (test_utimens): Update test to cover
40926         symlinks.
40927         * tests/test-utimens.c (main): Update caller.
40928
40929         utimens: cache whether utimensat syscall works
40930         * lib/utimens.c (utimensat_works_really): New cache variable.
40931         (fdutimens, lutimens): Use it to avoid failing syscall.
40932
40933         test-stat-time, test-utimens: improve portability
40934         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40935         ext4 on alpha, and for cygwin.
40936         * tests/test-utimens-common.h: New file.
40937         (nap): Factor delays into single function.
40938         * tests/test-lutimens.h (test_lutimens): Use new header.
40939         * tests/test-futimens.h (test_futimens): Likewise.
40940         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40941         timestamps to occur from same machine, as was done previously for
40942         test_utimens.
40943         * modules/utimens-tests (Files): Ship new file.
40944         * modules/futimens-tests (Files): Likewise.
40945         Reported in part by Jim Meyering.
40946
40947         sys_stat: sort replacement declarations
40948         * lib/sys_stat.in.h: Sort declarations.
40949         * lib/futimens.c (futimens): Fix typo.
40950
40951 2009-10-15  Jim Meyering  <meyering@redhat.com>
40952
40953         don't let environment settings perturb build
40954         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40955         could cause a configure-time and/or build-time malfunction.
40956         Typically, a configure-time function-in-library test is performed
40957         via code like this:
40958
40959           LIB_VAR=
40960           AC_SUBST([LIB_VAR])
40961           prefix_saved_LIBS=$LIBS
40962             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40963                        [test "$ac_cv_search_FUNC" = "none required" ||
40964                         LIB_VAR=$ac_cv_search_FUNC])
40965           LIBS=$prefix_saved_LIBS
40966
40967         However, in each of the files affected by this change, the LIB_VAR=
40968         initialization was omitted.  Thus, when set in the environment, its
40969         value would propagate into generated Makefiles when FUNC is not found
40970         in LIB_NAME.
40971         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40972         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40974
40975 2009-10-14  Eric Blake  <ebb9@byu.net>
40976
40977         fchdir: avoid infinite recursion in mingw
40978         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40979         recursing.
40980
40981         test-stat-time: port to mingw
40982         * tests/test-stat-time.c (force_unlink): Return a value.
40983         (test_ctime) [W32]: Fix compilation error.
40984         (nap): Don't call usleep with too large an argument.  Use
40985         force_unlink.
40986         * doc/pastposix-functions/usleep.texi (usleep): Document the
40987         portability issue.
40988
40989 2009-10-13  Jim Meyering  <meyering@redhat.com>
40990
40991         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40992         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40993         * modules/pipe-filter-ii: Likewise.
40994         * modules/sys_socket-tests: Likewise.
40995         * modules/tsearch-tests: Likewise.
40996         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40997         (check): Depend on it.
40998
40999 2009-10-12  Eric Blake  <ebb9@byu.net>
41000
41001         utimens-tests: port to NFS file systems
41002         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41003         comparisons to avoid spurious failures from timestamp drift
41004         between NFS machines.
41005
41006 2009-10-12  Eric Blake  <ebb9@byu.net>
41007
41008         stat-time-tests: minor cleanups
41009         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41010         * tests/test-stat-time.c (nap): Separate assignment from call.
41011         Suggested by Paolo Bonzini and Bruno Haible.
41012
41013         sys_stat: guarantee struct timespec
41014         * lib/sys_stat.in.h (includes): Always include <time.h>
41015         * modules/sys_stat (Depends-on): Add time.
41016         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41017         mode_t permission values.
41018         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41019         get at subsecond timestamps.
41020
41021 2009-10-10  Eric Blake  <ebb9@byu.net>
41022
41023         futimens: new module
41024         * modules/futimens: New file.
41025         * lib/futimens.c (futimens): Likewise.
41026         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41027         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41028         we can work around Linux bugs.
41029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41030         * modules/sys_stat (Makefile.am): Substitute them.
41031         * lib/sys_stat.in.h (futimens): Declare it.
41032         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41033         * doc/posix-functions/futimens.texi (futimens): Likewise.
41034         * modules/futimens-tests: New test.
41035         * tests/test-futimens.c: Likewise.
41036
41037         utimens: introduce fdutimens
41038         * lib/utimens.h (fdutimens): New prototype.
41039         * lib/utimens.c (gl_futimens): Move guts...
41040         (fdutimens): ...to new interface.
41041         * tests/test-utimens.c (do_fdutimens): Use it.
41042
41043         utimens: add UTIME_NOW and UTIME_OMIT support
41044         * lib/utimens.c (validate_timespec, update_timespec): New helper
41045         functions.
41046         (gl_futimens, lutimens): Use them.
41047         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41048         stdbool, sys_stat.
41049         (Link): Mention resulting library dependency.
41050         * modules/utimecmp (Link): Likewise.
41051         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41052         (Makefile.am): Pick up library dependency.
41053         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41054         definition.
41055         * tests/test-sys_stat.c: Test the definitions.
41056         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41057         * NEWS: Document library dependency.
41058
41059         utimecmp: support symlink timestamps
41060         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41061         hashing when possible.  Use pathconf when available.
41062         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41063         * modules/utimecmp (Depends-on): Add lstat.
41064
41065         utimens: add lutimens interface
41066         * lib/utimens.c (lutimens): New function.
41067         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41068         * lib/utimens.h (lutimens): Declare new interface.
41069         * tests/test-utimens.c (main): Enhance test.
41070         * tests/test-lutimens.h (test_lutimens): New file.
41071         * modules/utimens-tests (Files): Distribute it.
41072         (Depends-on): Add symlink.
41073         (configure.ac): Check for usleep.
41074
41075         utimens: validate futimens usage
41076         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41077         fewer syscalls on failure later on.  Avoid compiler warning on
41078         mingw.
41079         * modules/utimens (Depends-on): Add dup2.
41080
41081         utimens: add test
41082         * modules/utimens-tests: New test.
41083         * tests/test-utimens.h: New file.
41084         * tests/test-futimens.h: Likewise.
41085         * tests/test-utimens.c: Likewise.
41086
41087         doc: mention timestamp portability issues
41088         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41089         instead.
41090         * doc/posix-functions/utime.texi (utime): Likewise.
41091         * doc/posix-functions/utimes.texi (utimes): Likewise.
41092         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41093         instead.
41094         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41095         module.
41096         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41097         Mention weakness with symlink timestamps.
41098         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41099         to utimensat/futimens instead.
41100         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41101
41102         test-dup2: enhance test
41103         * tests/test-dup2.c (main): Also check AT_FDCWD.
41104
41105         test-stat-time: avoid more spurious failures
41106         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41107         xfs; and avoid race if the two timestamps cross quantization edge.
41108
41109         relocatable: prefer 'file system' over 'filesystem'
41110         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41111         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41112         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41113         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41114         * lib/relocatable.c (compute_curr_prefix): Likewise.
41115
41116 2009-10-10  Jim Meyering  <meyering@redhat.com>
41117
41118         stat-time-tests: check for the usleep function
41119         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41120
41121 2009-10-10  Bruno Haible  <bruno@clisp.org>
41122
41123         * modules/xnanosleep: Put the Link section after the Include section.
41124
41125 2009-10-09  Eric Blake  <ebb9@byu.net>
41126
41127         dup2: work around FreeBSD 6.1 bug
41128         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41129         * doc/posix-functions/dup2.texi (dup2): Document it.
41130         Reported by Nelson H. F. Beebe and Jim Meyering.
41131
41132         test-stat-time: port to buggy NFS clients
41133         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41134         (test_ctime): Also skip test if mtime and ctime are skewed.
41135
41136         maint: prefer 'file system' over 'filesystem'
41137         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41138         * doc/posix-functions/lstat.texi (lstat): Likewise.
41139         * lib/file-has-acl.c (file_has_acl): Likewise.
41140         * lib/fwriteerror.c [TEST]: Likewise.
41141         * tests/test-areadlink.h (test_areadlink): Likewise.
41142         * tests/test-areadlinkat-with-size.c (main): Likewise.
41143         * tests/test-areadlinkat.c (main): Likewise.
41144         * tests/test-canonicalize-lgpl.c (main): Likewise.
41145         * tests/test-canonicalize.c (main): Likewise.
41146         * tests/test-fstatat.c (main): Likewise.
41147         * tests/test-linkat.c (main): Likewise.
41148         * tests/test-lstat.h (test_lstat_func): Likewise.
41149         * tests/test-mkdir.h (test_mkdir): Likewise.
41150         * tests/test-readlink.h (test_readlink): Likewise.
41151         * tests/test-remove.c (main): Likewise.
41152         * tests/test-rename.h (test_rename): Likewise.
41153         * tests/test-renameat.c (main): Likewise.
41154         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41155         * tests/test-symlink.h (test_symlink): Likewise.
41156         * tests/test-symlinkat.c (main): Likewise.
41157         * tests/test-unlink.h (test_unlink_func): Likewise.
41158         * tests/test-unlinkat.c (main): Likewise.
41159
41160         maint: make realtime library usage explicit
41161         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41162         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41163         * modules/settime (Link): Likewise.
41164         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41165
41166         test-stat-time: speed up execution
41167         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41168         warning on mingw.
41169         (nap): New helper function.
41170         (prepare_test): Use it to reduce sleep time.
41171         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41172         execution.
41173         * modules/stat-time-tests (configure.ac): Check for usleep.
41174
41175 2009-10-09  Jim Meyering  <meyering@redhat.com>
41176
41177         selinux-h: always use getfilecon wrappers
41178         * lib/getfilecon.c: New file.
41179         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41180         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41181         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41182         (fgetfilecon): Provide a stub.
41183         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41184         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41185         file unconditionally.
41186         When <selinux/selinux.h> is found, arrange to use wrappers.
41187         * modules/selinux-h (Files): Add getfilecon.c.
41188         (Makefile.am): Substitute include-next-related bits
41189         into the now-always-generated selinux/selinux.h file.
41190         * doc/glibc-functions/lgetfilecon.texi: New file.
41191         * doc/glibc-functions/fgetfilecon.texi: New file.
41192         * doc/glibc-functions/getfilecon.texi: New file.
41193         * doc/glibc-functions/getfilecon-desc.texi: New file.
41194         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41195         which to pull in the new files.
41196         * MODULES.html.sh (Misc): Add selinux-h.
41197
41198 2009-10-08  Jim Meyering  <meyering@redhat.com>
41199
41200         unistd: fix comment typo
41201         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41202
41203 2009-10-08  Eric Blake  <ebb9@byu.net>
41204
41205         areadlink: use SIZE_MAX consistently
41206         * modules/areadlink (Depends-on): Add stdint.
41207         * modules/areadlink-with-size (Depends-on): Likewise.
41208         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41209         gives NULL; drop sys/types, since unistd gives size_t; and add
41210         stdint for SIZE_MAX.
41211         (SIZE_MAX): Rely on headers.
41212         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41213         and add stdint.
41214         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41215         (SIZE_MAX): Likewise.
41216         (INITIAL_BUF_SIZE): Turn into enum.
41217         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41218
41219 2009-10-08  Jim Meyering  <meyering@redhat.com>
41220
41221         areadlinkat: avoid compilation failure
41222         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41223         Fix typo in comment.
41224
41225 2009-10-07  Eric Blake  <ebb9@byu.net>
41226
41227         areadlinkat-with-size: new module
41228         * modules/areadlinkat-with-size: New module.
41229         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41230         * lib/areadlink.h (areadlinkat): Declare it.
41231         * MODULES.html.sh (File system functions): Mention it.
41232         * modules/areadlinkat-with-size-tests: New test.
41233         * tests/test-areadlinkat-with-size.c: New file.
41234
41235         xreadlinkat: new module
41236         * modules/xreadlinkat: New module.
41237         * lib/xreadlinkat.c (xreadlinkat): New file.
41238         * lib/xreadlink.h (xreadlinkat): Declare it.
41239         * MODULES.html.sh (File system functions): Mention it.
41240
41241         areadlinkat: new module
41242         * lib/at-func.c (FUNC_FAIL): New define.
41243         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41244         * modules/areadlinkat: New module.
41245         * lib/linkat.c (areadlinkat): Move...
41246         * lib/areadlinkat.c (areadlinkat): ...to new file.
41247         * lib/areadlink.h (areadlinkat): Declare it.
41248         * modules/linkat (Depends-on): Add areadlinkat.
41249         * MODULES.html.sh (File system functions): Mention it.
41250         * modules/areadlinkat-tests: New test.
41251         * tests/test-areadlinkat.c: New file.
41252
41253         areadlink, areadlink-with-size: add tests
41254         * modules/areadlink-tests: New test.
41255         * modules/areadlink-with-size-tests: Likewise.
41256         * tests/test-areadlink.h: New file.
41257         * tests/test-areadlink.c: Likewise.
41258         * tests/test-areadlink-with-size.c: Likewise.
41259
41260         maint: minor cleanups
41261         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41262         _UNUSED_PARAMETER_ instead.
41263         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41264         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41265         * modules/linkat-tests (Files): Distribute test-link.h.
41266
41267         openat, utimens: whitespace cleanup
41268         * lib/openat.c: Prefer space throughout, rather than mix of 8
41269         spaces vs. tabs.
41270         * lib/at-func.c: Likewise.
41271         * lib/utimens.c: Likewise.
41272
41273         openat: avoid using wrong fd
41274         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41275         working directory chooses same fd.
41276         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41277
41278         mkdir, mkdirat: fix cygwin 1.5.x bug
41279         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41280         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41281         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41282         bug.
41283         (gl_PREREQ_MKDIR): Delete unused macro.
41284         * modules/mkdir (Files): Track file rename.
41285         (configure.ac): Update macro name.
41286         * modules/openat (Depends-on): Add mkdir.
41287         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41288
41289         mkdir, mkdirat: add tests
41290         * modules/mkdir-tests: New test.
41291         * tests/test-mkdir.h: New file.
41292         * tests/test-mkdir.c: Likewise.
41293         * tests/test-mkdirat.c: Likewise.
41294         * modules/openat-tests (Files): Add new files.
41295         (Makefile.am): Run new test.
41296
41297 2009-10-06  Eric Blake  <ebb9@byu.net>
41298
41299         doc: tweak *at function documentation
41300         * doc/posix-functions/faccessat.texi (faccessat): Mention
41301         known issue with replacement.
41302         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41303         * doc/posix-functions/linkat.texi (linkat): Likewise.
41304         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41305         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41306         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41307         * doc/posix-functions/renameat.texi (renameat): Likewise.
41308         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41309
41310         openat: fix GNU/Hurd bug in unlinkat
41311         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41312         broken.
41313         * doc/posix-functions/unlink.texi (unlink): Document this.
41314         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41315
41316         fdopendir: fix GNU/Hurd bug
41317         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41318         allowing non-directory fds.
41319         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41320         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41321         * modules/dirent (Makefile.am): Substitute it.
41322         * lib/dirent.in.h (fdopendir): Declare replacement.
41323         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41324         * tests/test-fdopendir.c (main): Test something other than
41325         /dev/null, since on Hurd that behaves like a directory.
41326
41327         test-symlink: port to GNU/Hurd
41328         * tests/test-symlink.h (test_symlink): Relax expected errno.
41329
41330         doc: tweak more cygwin information
41331         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41332         now compatible with glibc.
41333         * doc/posix-functions/getopt.texi (getopt): Likewise.
41334
41335         getopt-gnu: add another test
41336         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41337         guarantee behavior relied on by m4.
41338         * tests/test-getopt.c (main): Use it.
41339         * modules/getopt-posix-tests (Depends-on): Add setenv.
41340         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41341
41342         getopt: fix compilation on darwin
41343         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41344         include.
41345         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41346         Reported by Ludovic Courtès.
41347
41348 2009-10-06  Bruno Haible  <bruno@clisp.org>
41349
41350         * modules/size_max (Description): Discourage its use.
41351         Reported by Simon Josefsson.
41352
41353 2009-10-06  Jim Meyering  <meyering@redhat.com>
41354
41355         linkat: avoid compilation failure
41356         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41357
41358 2009-10-05  Eric Blake  <ebb9@byu.net>
41359
41360         linkat: support Linux 2.6.17
41361         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41362         linkat on Linux, but allow cache variable override.
41363         * lib/linkat.c (rpl_linkat): Define override.
41364         * modules/linkat (Depends-on): Add symlinkat.
41365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41366         * modules/unistd (Makefile.am): Substitute it.
41367         * lib/unistd.in.h (linkat): Declare replacement.
41368         Reported by Pádraig Brady.
41369
41370         quotearg: port test to systems with C.UTF-8 locale
41371         * tests/test-quotearg.c (struct result_strings): Add another
41372         member, differentiating between C.ASCII and C.UTF-8 handling.
41373         (compare_strings): Add parameter.
41374         (main): Adjust all callers.
41375
41376         getopt: avoid clash with FreeBSD _getopt_internal
41377         * lib/getopt.in.h (_getopt_internal): Override the name.
41378         * lib/getopt_int.h (includes): Pick up any overrides.
41379         Reported by Reuben Thomas.
41380
41381         hash: allow C89 compilation
41382         * lib/hash.c (check_tuning): Move declaration before statement.
41383         Reported by Reuben Thomas.
41384
41385 2009-10-05  Karl Berry  <karl@gnu.org>
41386
41387         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41388
41389 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41390             Bruno Haible  <bruno@clisp.org>
41391
41392         * lib/uname.c (uname): Use a table-driven algorithm to compute
41393         Windows NT versions.
41394
41395 2009-10-04  Bruno Haible  <bruno@clisp.org>
41396
41397         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41398         program_invocation_short_name.
41399         * modules/progname (configure.ac): Test for presence of
41400         program_invocation_short_name.
41401         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41402
41403 2009-10-04  Bruno Haible  <bruno@clisp.org>
41404
41405         * lib/progname.c (set_program_name): Fix comment.
41406         Reported by Jim Meyering.
41407
41408 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41409             Bruno Haible  <bruno@clisp.org>
41410
41411         * lib/uname.c: Include <string.h>.
41412         (uname): Do only one call to GetVersionEx in the common case.
41413
41414 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41415             Bruno Haible  <bruno@clisp.org>
41416
41417         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41418         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41419         (uname): Add support for Windows CE and various non-x86 CPU types.
41420
41421 2009-10-03  Bruno Haible  <bruno@clisp.org>
41422
41423         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41424         invocation to tests/configure.ac.
41425         Reported by Ian Beckwith <ianb@erislabs.net>.
41426
41427 2009-10-02  Eric Blake  <ebb9@byu.net>
41428
41429         fchdir: avoid compiler warning
41430         * lib/fchdir.c (canonicalize_file_name)
41431         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41432
41433         test-open: support mingw errno values
41434         * tests/test-open.h (test_open): Relax test.
41435         * tests/test-fopen.h (test_fopen): Likewise.
41436         * tests/test-openat-safer.c (main): Likewise.
41437
41438         open: fix opening directory on mingw
41439         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41440
41441         test-open: on GNU/Hurd, /dev/null is a directory
41442         * tests/test-fopen.h (main): Rename...
41443         (test_fopen): ...to this.  Use a guaranteed non-directory when
41444         confirming open behavior on trailing slash.
41445         * tests/test-openat-safer.c (main): Likewise.
41446         * tests/test-open.h (main): Likewise....
41447         (test_open): ...to this.
41448         * tests/test-fopen.c (main): Adjust caller.
41449         * tests/test-fopen-safer.c (main): Likewise.
41450         * tests/test-open.c (main): Likewise.
41451         * tests/test-fcntl-safer.c (main): Likewise.
41452         Reported by Samuel Thibault.
41453
41454         rename, fchdir: don't ignore chdir failure
41455         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41456         * lib/rename.c (rpl_rename) [W32]: Likewise.
41457         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41458         an empty destination directory if source cannot be renamed,
41459         although there is still possibility for failure.
41460         * doc/posix-functions/rename.texi (rename): Document the race.
41461         Reported by Jim Meyering.
41462
41463         maint: cleanup whitespace in recent commits
41464         * lib/rename.c (rpl_rename): Remove tabs.
41465         * tests/test-link.h (test_link): Likewise.
41466         * lib/fchdir.c (get_name): Likewise.
41467         Reported by Jim Meyering.
41468
41469 2009-10-02  Ben Pfaff  <blp@gnu.org>
41470
41471         relocatable-prog-wrapper: Add missing dependency on
41472         double-slash-root.
41473         * modules/relocatable-prog-wrapper: Add dependency.
41474         Reported by Ian Beckwith <ianb@erislabs.net>.
41475
41476 2009-10-02  Eric Blake  <ebb9@byu.net>
41477
41478         renameat: fix Solaris bugs
41479         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41480         needed fixing.
41481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41482         * modules/stdio (Makefile.am): Substitute it.
41483         * lib/stdio.in.h (renameat): Declare replacement.
41484         * lib/renameat.c (rpl_renameat): Implement fix.
41485
41486         renameat: new module
41487         * modules/renameat: New file.
41488         * lib/renameat.c (renameat): Likewise.
41489         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41491         * modules/stdio (Makefile.am): Substitute them.
41492         * lib/stdio.in.h (renameat): Declare it.
41493         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41494         * doc/posix-functions/renameat.texi (renameat): Likewise.
41495         * modules/renameat-tests: New test.
41496         * tests/test-renameat.c: Likewise.
41497
41498         rename: fix mingw bugs
41499         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41500         directory overwrite bugs.
41501
41502         rename: fix another cygwin 1.5 bug
41503         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41504         checks.
41505         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41506         unnecessary cygwin workarounds.  Also work around bug with moving
41507         full directory onto an empty one.
41508         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41509
41510         rename-dest-slash: merge into rename module
41511         * modules/rename-dest-slash (Status): Mark obsolete.
41512         (Depends-on): Add rename.
41513         (Files): Let rename do it all.
41514         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41515         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41516         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41517         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41518         * lib/rename.c (rpl_rename): Update comments.
41519
41520         rename: fix cygwin 1.5.x bugs
41521         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41522         * lib/rename.c (rpl_rename): Work around them.
41523         * modules/rename (Depends-on): Add same-inode.
41524
41525         rename: fix Solaris 10 bug
41526         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41527         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41528         was the only bug.
41529
41530         rename: fix Solaris 9 bug
41531         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41532         on non-directory.  Avoid calling exit.
41533         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41534         strdup.
41535         * modules/rename-tests (Depends-on): Drop lstat.
41536         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41537         (gl_PREREQ_RENAME): Delete unused macro.
41538
41539         rename-dest-slash: fix NetBSD bug
41540         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41541         links.
41542         * modules/rename-dest-slash (Depends-on): Add same-inode.
41543
41544         rename-tests: new test, exposes several platform bugs
41545         * modules/rename-tests: New file.
41546         * tests/test-rename.h: Likewise.
41547         * tests/test-rename.c: Likewise.
41548         * doc/posix-functions/rename.texi (rename): Improve documentation,
41549         including bugs that will eventually be fixed in gnulib.
41550
41551 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41552
41553         * lib/uname.c: Include <stdlib.h>
41554         (uname): Assume version info is available.
41555
41556 2009-10-02  Jim Meyering  <meyering@redhat.com>
41557
41558         gnu-web-doc-update: correct --help output
41559         * build-aux/gnu-web-doc-update: Make --help output relevant.
41560
41561         gnu-web-doc-update: add standard options
41562         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41563
41564         gnu-web-doc-update: New module.
41565         Use this script to automatically update the on-line web documentation
41566         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41567         * modules/gnu-web-doc-update: New file, from coreutils.
41568         * build-aux/gnu-web-doc-update: New script.
41569
41570 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41571
41572         link: LoadLibrary is not needed.
41573         * lib/link.c: Use GetModuleHandle.
41574
41575 2009-10-01  Eric Blake  <ebb9@byu.net>
41576
41577         getopt: bump serial number
41578         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41579         change.
41580
41581         tests: tighten link, rmdir, and remove tests
41582         * tests/test-link.h (includes): No need to use <config.h> here.
41583         Clean up if directory hard link was created, otherwise test for
41584         trailing '.'.
41585         * tests/test-linkat.c (main): Simplify.
41586         * tests/test-remove.c (main): Enhance test for trailing '.'.
41587         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41588
41589 2009-10-01  Jim Meyering  <meyering@redhat.com>
41590
41591         maint.mk: requiring "make major" was annoying, for a "minor" release.
41592         What is intended is "stable", to contrast with alpha and beta,
41593         so require "make stable", not "make major".
41594         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41595         (get_tool_versions): Likewise.
41596         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41597
41598 2009-09-30  Ben Pfaff  <blp@gnu.org>
41599
41600         Fix broken build of replacement for Windows tmpfile().
41601         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41602         flags argument added along with the 'mkostemp' module.
41603
41604 2009-09-28  Bruno Haible  <bruno@clisp.org>
41605
41606         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41607         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41608         to 'remove_elt'.
41609         (gl_list_remove): Update.
41610         * lib/gl_list.c (gl_list_remove): Update.
41611         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41612         to 'remove_elt'.
41613         (gl_oset_remove): Update.
41614         * lib/gl_list.c (gl_oset_remove): Update.
41615         Reported by Eric Blake.
41616
41617 2009-09-28  Eric Blake  <ebb9@byu.net>
41618
41619         doc: mention yet more cygwin 1.7 status
41620         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41621         cygwin.
41622         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41623         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41624
41625         argp: fix test failure
41626         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41627         that are not upper-case.  Pass correct range to tolower.
41628
41629 2009-09-27  Jim Meyering  <meyering@redhat.com>
41630
41631         test-yesno: work around sparc-dash here-document infelicity
41632         Without this change, the literal \177 byte in a here document
41633         would make dash 0.5.5.1-3 access uninitialized memory.
41634         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41635         Instead, use a marker, "@", and filter through tr to create the desired
41636         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41637
41638 2009-09-27  Bruno Haible  <bruno@clisp.org>
41639
41640         Disable untested support for new flavours of ACLs on AIX.
41641         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41642         progress.
41643         * lib/set-mode-acl.c (qset_acl): Likewise.
41644
41645 2008-12-07  Bruno Haible  <bruno@clisp.org>
41646
41647         Add support for new flavours of ACLs on AIX. (Untested.)
41648         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41649         (file_has_acl): Add support for newer AIX.
41650         * lib/set-mode-acl.c (qset_acl): Likewise.
41651         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41652         Rainer Tammer <tammer@tammer.net>.
41653
41654 2009-09-26  Eric Blake  <ebb9@byu.net>
41655
41656         argp: fix compilation of getopt
41657         * lib/getopt.in.h (includes): Use different guard than glibc.
41658         Reported by Sergey Poznyakoff.
41659
41660         doc: mention more cygwin 1.7 status
41661         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41662         bug.
41663         * doc/posix-functions/execl.texi (execl): Likewise.
41664         * doc/posix-functions/execle.texi (execle): Likewise.
41665         * doc/posix-functions/execlp.texi (execlp): Likewise.
41666         * doc/posix-functions/execv.texi (execv): Likewise.
41667         * doc/posix-functions/execve.texi (execve): Likewise.
41668         * doc/posix-functions/execvp.texi (execvp): Likewise.
41669         * doc/glibc-functions/canonicalize_file_name.texi
41670         (canonicalize_file_name): Cygwin 1.7 now provides this.
41671         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41672         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41673         on AT_SYMLINK_NOFOLLOW.
41674
41675 2009-09-24  Eric Blake  <ebb9@byu.net>
41676
41677         test-linkat: make test more robust
41678         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41679
41680         getopt: fix inclusion guards for cygwin
41681         * modules/getopt-posix (Depends-on): Add include-next.
41682         (Makefile.am): Substitute more items in replacement header.
41683         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41684         <getopt.h>.
41685         * lib/getopt.in.h (includes): Use split inclusion guard, and
41686         prefer <getopt.h> over include <unistd.h> when one is present.
41687         (option): Also override name of 'struct option'.
41688
41689         same-inode: revert prior change; it is not yet ready
41690         * NEWS: Undo mention of this change.
41691         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41692         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41693         * lib/cycle-check.c (cycle_check): Likewise.
41694         * lib/same.c (same_name): Likewise.
41695         * lib/at-func2.c (at_func2): Likewise.
41696
41697 2009-09-23  Eric Blake  <ebb9@byu.net>
41698
41699         linkat: new module
41700         * modules/linkat: New file.
41701         * lib/at-func2.c (at_func2): Likewise.
41702         * lib/linkat.c (linkat): Likewise.
41703         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41704         * lib/openat-priv.h (at_func2): Add declaration.
41705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41706         * modules/unistd (Makefile.am): Substitute them.
41707         * lib/unistd.in.h (linkat): Declare it.
41708         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41709         * doc/posix-functions/linkat.texi (linkat): Likewise.
41710         * doc/posix-functions/link.texi (link): Tweak wording.
41711         * tests/test-link.c (main): Move guts...
41712         * tests/test-link.h (test_link): ...into new file.
41713         * modules/linkat-tests: New test.
41714         * tests/test-linkat.c: Likewise.
41715         * modules/link-tests (Files): Ship new file.
41716         (Depends-on): Add stdbool.
41717
41718         dirname: add library-safe mdir_name
41719         * lib/dirname.h (mdir_name): New prototype.
41720         * lib/dirname.c (dir_name): Move guts...
41721         (mdir_name): ...to new function that avoids xalloc_die.
41722
41723         fchdir: another mingw fix
41724         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41725         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41726         on mingw (where it has not yet been ported), and make it optional
41727         elsewhere.
41728         (_gl_register_fd): Use it.
41729
41730         same-inode: make SAME_INODE tri-state, to port to mingw
41731         * NEWS: Mention this change.
41732         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41733         st_ino always being 0.
41734         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41735         * lib/cycle-check.c (cycle_check): Likewise.
41736         * lib/same.c (same_name): Likewise.
41737
41738         lstat: avoid mingw compilation error
41739         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41740         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41741         lstat ourselves.
41742         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41743         was adequate.
41744         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41745         the checks for lstat.
41746         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41747
41748         link: fix test failure on Solaris 9
41749         * lib/link.c (rpl_link): Don't assume link will catch bogus
41750         trailing slash on source.
41751
41752         test-symlinkat: enhance test
41753         * tests/test-readlink.c (main): Move guts...
41754         * tests/test-readlink.h (test_readlink): ...into new file.
41755         * tests/test-symlink.c (main): Move guts...
41756         * tests/test-symlink.h (test_symlink): ...into new file.
41757         * tests/test-symlinkat.c (main): Use new files for further
41758         coverage.
41759         (do_symlink, do_readlink): New helper functions.
41760         * modules/symlink-tests (Files): Ship new file.
41761         (Depends-on): Add stdbool.
41762         * modules/readlink-tests (Files): Ship new file.
41763         (Depends-on): Add stdbool.
41764         * modules/symlinkat-tests (Files): Use new files.
41765
41766 2009-09-23  Eric Blake  <ebb9@byu.net>
41767
41768         readlink: document portability issue with symlink length
41769         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41770         systems have bogus st_size on symlinks, and mention the
41771         areadlink-with-size module.
41772         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41773         * doc/posix-functions/readlink.texi (readlink): Mention the
41774         areadlink module, and ERANGE failure.
41775         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41776         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41777
41778         readlink: fix Solaris 9 bug with trailing slash
41779         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41780         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41781         * doc/posix-functions/readlink.texi (readlink): Document this.
41782         * modules/readlink-tests: New test.
41783         * tests/test-readlink.c: Likewise.
41784
41785         readlink: fix cygwin 1.5.x bug with return type
41786         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41787         * lib/unistd.in.h (readlink): Use ssize_t.
41788         * lib/readlink.c (readlink): Likewise.
41789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41790         * modules/unistd (Makefile.am): Substitute it.
41791         * lib/unistd.in.h (readlink): Declare replacement.
41792         * doc/posix-functions/readlink.texi (readlink): Document this.
41793
41794         symlink: use throughout gnulib
41795         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41796         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41797         symlink is not used.
41798         * modules/symlinkat (Depends-on): Add symlink.
41799         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41800         * modules/canonicalize-tests (Depends-on): Likewise.
41801         * modules/lstat-tests (Depends-on): Likewise.
41802         * modules/openat-tests (Depends-on): Likewise.
41803         * modules/remove-tests (Depends-on): Likewise.
41804         * modules/rmdir-tests (Depends-on): Likewise.
41805         * modules/unlink-tests (Depends-on): Likewise.
41806         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41807         * tests/test-canonicalize.c (symlink): Likewise.
41808         * tests/test-fstatat.c (symlink): Likewise.
41809         * tests/test-lstat.c (symlink): Likewise.
41810         * tests/test-remove.c (symlink): Likewise.
41811         * tests/test-rmdir.c (symlink): Likewise.
41812         * tests/test-unlink.c (symlink): Likewise.
41813         * tests/test-unlinkat.c (symlink): Likewise.
41814
41815         symlink: new module, for Solaris 9 bug
41816         * modules/symlink: New file.
41817         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41818         * lib/symlink.c: Likewise.
41819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41820         * modules/unistd (Makefile.am): Substitute them.
41821         * lib/unistd.in.h (symlink): Declare replacement.
41822         * MODULES.html.sh (File system functions): Mention it.
41823         * doc/posix-functions/symlink.texi (symlink): Likewise.
41824         * modules/symlink-tests: New test.
41825         * tests/test-symlink.c: Likewise.
41826
41827 2009-09-23  Bruno Haible  <bruno@clisp.org>
41828
41829         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41830         when needed.
41831         Test case: gnulib-tool --import --with-tests atexit inttypes.
41832         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41833
41834 2009-09-23  Bruno Haible  <bruno@clisp.org>
41835
41836         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41837         subcommand, not in a subshell.
41838
41839 2009-09-22  Eric Blake  <ebb9@byu.net>
41840
41841         unistd: sort replacement declarations
41842         * lib/unistd.in.h: Sort declarations.
41843
41844         open, openat: minor optimization
41845         * lib/open.c (open): If open succeeded, len is non-zero.
41846         * lib/openat.c (rpl_openat): Likewise.
41847
41848         link-follow: ensure correct result
41849         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41850         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41851         distinguish between possible failures.
41852
41853 2009-09-21  Eric Blake  <ebb9@byu.net>
41854
41855         fts: avoid compiler warning
41856         * lib/fts.c (dirent_inode_sort_may_be_useful)
41857         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41858
41859 2009-09-19  Bruno Haible  <bruno@clisp.org>
41860
41861         * lib/progreloc.c (canonicalize_file_name): New declaration.
41862
41863 2009-09-19  Eric Blake  <ebb9@byu.net>
41864
41865         link: fix quoting
41866         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41867
41868         openat: fix openat bugs on Solaris 9
41869         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41870         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41871         * modules/openat (Depends-on): Add open.
41872         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41873         * modules/fcntl-h (Makefile.am): Substitute it.
41874         * lib/fcntl.in.h (openat): Declare replacement.
41875         * doc/posix-functions/openat.texi (openat): Document this.
41876
41877         openat: move fstatat and unlinkat into correct files
41878         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41879         compiled.
41880         * lib/openat.c (fstatat, unlinkat): Move...
41881         * lib/fstatat.c (fstatat): ...into correct files.
41882         * lib/unlinkat.c (unlinkat): Likewise.
41883
41884         openat: fix unlinkat bugs on Solaris 9
41885         * lib/unlinkat.c (unlinkat): New file.
41886         * modules/openat (Depends-on): Add unlink.
41887         (Files): Distribute it.
41888         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41889         trailing slash behavior is broken.
41890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41891         * modules/unistd (Makefile.am): Substitute it.
41892         * lib/unistd.in.h (unlinkat): Declare replacement.
41893         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41894
41895         openat: fix fstatat bugs on Solaris 9
41896         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41897         stat.
41898         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41899
41900         test-unlinkat: enhance test, to expose Solaris 9 bug
41901         * tests/test-unlink.c (main): Factor guts...
41902         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41903         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41904         * tests/test-rmdir.c (main): Adjust caller.
41905         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41906         (unlinker): New helper function.
41907         (rmdirat): Enhance check.
41908         * modules/rmdir-tests (Depends-on): Add stdbool.
41909         * modules/unlink-tests (Depends-on): Likewise.
41910         (Files): Add test-unlink.h.
41911         * modules/openat-tests (Files): Likewise.
41912         (Depends-on): Add unlinkdir.
41913
41914         test-fstatat: new test, to expose Solaris 9 bugs
41915         * tests/test-stat.c (main): Factor guts...
41916         * tests/test-stat.h (test_stat_func): ...into new file.
41917         * tests/test-lstat.c (main): Factor guts...
41918         * tests/test-lstat.h (test_lstat_func): ...into new file.
41919         * tests/test-fstatat.c: New file.
41920         * modules/stat-tests (Files): Add test-stat.h.
41921         * modules/lstat-tests (Files): Add test-lstat.h.
41922         (Depends-on): Add stdbool.
41923         * modules/openat-tests (Depends-on): Add pathmax.
41924         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41925         (Makefile.am): Run new test.
41926
41927         remove: new module, for mingw and Solaris 9 bugs
41928         * modules/remove: New file.
41929         * lib/remove.c: Likewise.
41930         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41932         * modules/stdio (Makefile.am): Use them.
41933         * lib/stdio.in.h (remove): Declare replacement.
41934         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41935         * doc/posix-functions/remove.texi (remove): Likewise.
41936         * modules/remove-tests: New test.
41937         * tests/test-remove.c: Likewise.
41938
41939         unlink: new module, for Solaris 9 bug
41940         * modules/unlink: New file.
41941         * lib/unlink.c: Likewise.
41942         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41944         * modules/unistd (Makefile.am): Use them.
41945         * lib/unistd.in.h (stat): Declare replacement.
41946         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41947         * doc/posix-functions/unlink.texi (unlink): Likewise.
41948         * modules/unlink-tests: New test.
41949         * tests/test-unlink.c: Likewise.
41950
41951         lstat: fix Solaris 9 bug
41952         * lib/lstat.c (lstat): Also check for trailing slash on
41953         non-symlink, non-directories.  Use stat module to simplify logic.
41954         * doc/posix-functions/lstat.texi (lstat): Document it.
41955         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41956         (configure.ac): Check for symlink.
41957         * tests/test-lstat.c (main): Add more tests.
41958
41959         stat: add as dependency to other modules
41960         * modules/chown (Depends-on): Add stat.
41961         * modules/euidaccess (Depends-on): Likewise.
41962         * modules/fchdir (Depends-on): Likewise.
41963         * modules/isdir (Depends-on): Likewise.
41964         * modules/link (Depends-on): Likewise.
41965         * modules/lstat (Depends-on): Likewise.
41966         * modules/mkdir-p (Depends-on): Likewise.
41967         * modules/modechange (Depends-on): Likewise.
41968         * modules/open (Depends-on): Likewise.
41969         * modules/readlink (Depends-on): Likewise.
41970         * modules/same (Depends-on): Likewise.
41971
41972         stat: fix Solaris 9 bug
41973         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41974         slash.
41975         * lib/stat.c (rpl_stat): Work around it.
41976         * doc/posix-functions/stat.texi (stat): Update documentation.
41977
41978         stat: new module, for mingw bug
41979         * modules/stat: New file.
41980         * lib/stat.c: Likewise.
41981         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41982         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41983         * modules/sys_stat (Makefile.am): Use them.
41984         * lib/sys_stat.in.h (stat): Declare replacement.
41985         * lib/openat.c (fstatat): Deal with lstat and stat being function
41986         macros.
41987         * modules/openat (Depends-on): Add inline.
41988         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41989         * doc/posix-functions/stat.texi (stat): Likewise.
41990         * modules/stat-tests: New test.
41991         * tests/test-stat.c: Likewise.
41992
41993 2009-09-19  Jim Meyering  <meyering@redhat.com>
41994
41995         syntax-check: detect unnecessary inclusion of canonicalize.h
41996         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41997
41998 2009-09-19  Eric Blake  <ebb9@byu.net>
41999
42000         canonicalize-lgpl: adjust clients to use correct header
42001         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42002         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42003         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42004         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42005         * lib/progreloc.c (includes): Likewise.
42006
42007 2009-09-19  Jim Meyering  <meyering@redhat.com>
42008
42009         test-posixtm.c: correct a comment
42010         * tests/test-posixtm.c: Correct first-line comment.
42011         Spotted by Eric Blake.
42012
42013 2009-09-16  Jim Meyering  <meyering@redhat.com>
42014
42015         posixtm-tests: make T const-correct; add a test case
42016         * tests/test-posixtm.c (T): Declare const.
42017         Add a test for -(2^31+1).
42018         Remove useless can-succeed-only-in-2002 test.
42019
42020         posixtm-tests: adjust the sole failing test
42021         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42022         expected output matches what mktime now produces.  Cross-checked via
42023         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42024
42025         posixtm: move #ifdef'd tests into a new module
42026         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42027         * tests/test-posixtm.c: ... this new file.
42028         * modules/posixtm-tests: New module.
42029
42030 2009-09-19  Eric Blake  <ebb9@byu.net>
42031
42032         openat: simplify use of at-func.c
42033         * lib/at-func.c (includes): Include prerequisites here, to
42034         simplify requirements on client files.
42035         * lib/openat-priv.h: Add double-inclusion guard.
42036         * lib/faccessat.c (includes): Simplify.
42037         * lib/fchmodat.c (includes): Likewise.
42038         * lib/fchownat.c (includes): Likewise.
42039         * lib/mkdirat.c (includes): Likewise.
42040         * lib/mkfifoat.c (includes): Likewise.
42041         * lib/symlinkat.c (includes): Likewise.
42042
42043         openat: allow return of fd 0
42044         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42045         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42046         unistd-safer.
42047         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42048         <fcntl.h>; this module does not leak fds.
42049         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42050         must be allowed to return 0, leaving openat_safer to add the
42051         safety.
42052         (openat_permissive): Avoid writing to just-opened fd 2 if
42053         restoring the current directory fails.
42054         * lib/openat-die.c (openat_restore_fail): Add comment.
42055         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42056         (save_cwd): Guarantee safe fd, but without use of open_safer.
42057         * tests/test-openat.c: New test.
42058         * modules/openat-tests (Files, Makefile.am): Distribute and build
42059         new file.
42060
42061         relocatable-prog-wrapper: fix build
42062         * modules/relocatable-prog-wrapper (Files): Update name of
42063         canonicalize m4 file, broken on 2009-09-17.
42064         Reported by emad hajjar <aleppos@hotmail.com>.
42065
42066 2009-09-19  Bruno Haible  <bruno@clisp.org>
42067
42068         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42069         * lib/safe-alloc.c: Likewise.
42070         Reported by Ian Beckwith <ianb@erislabs.net>.
42071
42072 2009-09-18  Bruno Haible  <bruno@clisp.org>
42073
42074         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42075         Reported by <erobles@sensacd.com.mx>.
42076
42077 2009-09-17  Eric Blake  <ebb9@byu.net>
42078
42079         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42080         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42081         slashes when checking if last component is missing.
42082         * tests/test-canonicalize.c (main): Test this.
42083
42084         canonicalize, canonicalize-lgpl: honor // if distinct from /
42085         * modules/canonicalize (Files): Add double-slash-root.m4.
42086         * modules/canonicalize-lgpl (Files): Likewise.
42087         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42088         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42089         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42090         fallback definition.
42091         (canonicalize_filename_mode): Use it to protect //.
42092         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42093         (__realpath): Likewise.
42094         * tests/test-canonicalize.c (main): Test this.
42095         * tests/test-canonicalize-lgpl.c (main): Likewise.
42096         * modules/canonicalize-tests (Depends-on): Add same-inode.
42097         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42098
42099         canonicalize-lgpl: fix glibc bug with trailing slash
42100         * m4/canonicalize-lgpl.m4: Move contents...
42101         * m4/canonicalize.m4: ...here.
42102         (gl_CANONICALIZE_LGPL): Factor realpath check...
42103         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42104         glibc 2.3.5 bug, fixed 2005-04-27.
42105         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42106         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42107         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42108         * modules/canonicalize-lgpl (Files): Manage file rename.
42109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42110         * modules/stdlib (Makefile.am): Substitute witness.
42111         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42112         is needed.
42113         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42114         replacement is required.
42115         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42116         * doc/glibc-functions/canonicalize_file_name.texi
42117         (canonicalize_file_name): Document this.
42118         * doc/posix-functions/realpath.texi (realpath): Likewise.
42119
42120         canonicalize-lgpl: reject non-directory with trailing slash
42121         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42122         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42123         catches failures in glibc 2.3.5.
42124         * tests/test-canonicalize.c (main): Likewise.
42125
42126         canonicalize-lgpl: use native realpath if it works
42127         * lib/canonicalize-lgpl.c (realpath): Guard with
42128         FUNC_REALPATH_WORKS.
42129         * lib/stdlib.in.h (realpath): Make declaration optional based on
42130         HAVE_REALPATH.
42131         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42132         native realpath works.
42133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42134         * modules/stdlib (Makefile.am): Substitute witness.
42135
42136         canonicalize, canonicalize-lgpl: use <stdlib.h>
42137         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42138         (Include): Mention <stdlib.h>.
42139         (configure.ac): Mention functions we provide.
42140         * modules/canonicalize (configure.ac): Likewise.
42141         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42142         realpath if canonicalize_file_name is missing.
42143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42144         * modules/stdlib (Makefile.am): Substitute witnesses.
42145         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42146         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42147         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42148         * NEWS: Document this.
42149         * doc/glibc-functions/canonicalize_file_name.texi
42150         (canonicalize_file_name): Likewise.
42151         * doc/posix-functions/realpath.texi (realpath): Likewise.
42152         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42153
42154         test-canonicalize: consolidate into single C program
42155         * tests/test-canonicalize.sh: Delete; move setup into...
42156         * tests/test-canonicalize.c (main): ...the program, making it
42157         easier to run in debugger.  Add some tests.
42158         * modules/canonicalize-tests (Files): Remove unused file.
42159         (Depends-on): Add progname.
42160         (configure.ac, Makefile.am): Simplify.
42161
42162         test-canonicalize-lgpl: consolidate into single C program
42163         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42164         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42165         easier to run in debugger.  Add some tests.
42166         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42167         (configure.ac, Makefile.am): Simplify.
42168
42169         canonicalize: avoid resolvepath
42170         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42171         unnecessary checks.
42172         * lib/canonicalize.c (includes): Simplify.
42173         (canonicalize_file_name): Drop resolvepath implementation.
42174         * modules/canonicalize (Depends-on): Drop filenamecat.
42175
42176         canonicalize: don't lose errno
42177         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42178         over calls to free.
42179
42180         canonicalize: simplify errno handling
42181         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42182         assignment.
42183
42184         canonicalize, canonicalize-lgpl: update module dependencies
42185         * modules/canonicalize (Depends-on): Add extensions, lstat,
42186         pathmax, stdlib.
42187         (Files): Drop pathmax.h.
42188         (configure.ac): Adjust macro name.
42189         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42190         lstat, stdlib, sys_stat.
42191         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42192         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42193         extensions.
42194         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42195         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42196         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42197         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42198         declaration, if available.
42199         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42200         we can rely on the readlink module.
42201         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42202         (includes): Use <unistd.h> unconditionally.
42203
42204 2009-09-17  Eric Blake  <ebb9@byu.net>
42205
42206         maint: make Include sections of modules consistent
42207         * modules/alloca: Use only header name; no need to list #include.
42208         * modules/alloca-opt: Likewise.
42209         * modules/arpa_inet: Likewise.
42210         * modules/canon-host: Likewise.
42211         * modules/configmake: Likewise.
42212         * modules/dirent: Likewise.
42213         * modules/eealloc: Likewise.
42214         * modules/environ: Likewise.
42215         * modules/fchdir: Likewise.
42216         * modules/fcntl: Likewise.
42217         * modules/fcntl-h: Likewise.
42218         * modules/gethrxtime: Likewise.
42219         * modules/gettime: Likewise.
42220         * modules/ignore-value: Likewise.
42221         * modules/inet_ntop: Likewise.
42222         * modules/inet_pton: Likewise.
42223         * modules/inttypes: Likewise.
42224         * modules/isnand-nolibm: Likewise.
42225         * modules/isnanf-nolibm: Likewise.
42226         * modules/mbchar: Likewise.
42227         * modules/mbfile: Likewise.
42228         * modules/mbiter: Likewise.
42229         * modules/mbuiter: Likewise.
42230         * modules/netdb: Likewise.
42231         * modules/netinet_in: Likewise.
42232         * modules/nproc: Likewise.
42233         * modules/pagealign_alloc: Likewise.
42234         * modules/poll: Likewise.
42235         * modules/printf-frexp: Likewise.
42236         * modules/pthread: Likewise.
42237         * modules/putenv: Likewise.
42238         * modules/random_r: Likewise.
42239         * modules/relocatable-prog: Likewise.
42240         * modules/search: Likewise.
42241         * modules/select: Likewise.
42242         * modules/selinux-h: Likewise.
42243         * modules/settime: Likewise.
42244         * modules/signal: Likewise.
42245         * modules/size_max: Likewise.
42246         * modules/socklen: Likewise.
42247         * modules/ssize_t: Likewise.
42248         * modules/stdarg: Likewise.
42249         * modules/stdbool: Likewise.
42250         * modules/stddef: Likewise.
42251         * modules/stdint: Likewise.
42252         * modules/stdio: Likewise.
42253         * modules/stdlib: Likewise.
42254         * modules/string: Likewise.
42255         * modules/strings: Likewise.
42256         * modules/sys_file: Likewise.
42257         * modules/sys_ioctl: Likewise.
42258         * modules/sys_select: Likewise.
42259         * modules/sys_socket: Likewise.
42260         * modules/sys_stat: Likewise.
42261         * modules/sys_time: Likewise.
42262         * modules/sys_times: Likewise.
42263         * modules/sys_utsname: Likewise.
42264         * modules/sys_wait: Likewise.
42265         * modules/sysexits: Likewise.
42266         * modules/time: Likewise.
42267         * modules/times: Likewise.
42268         * modules/tmpfile: Likewise.
42269         * modules/trim: Likewise.
42270         * modules/unistd: Likewise.
42271         * modules/wchar: Likewise.
42272         * modules/wctype: Likewise.
42273
42274 2009-09-17  Bruno Haible  <bruno@clisp.org>
42275
42276         Make getdate.y compile on QNX and NetBSD 5 / i386.
42277         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42278         TIME_T_FITS_IN_LONG_INT.
42279         * lib/getdate.y (long_time_t): New type.
42280         (relative_time): Change type of 'seconds' field to long_time_t.
42281         (get_date): Update types of local variables. Check against overflow
42282         during conversion from long_time_t to time_t.
42283         Reported by Matt Kraai <kraai@ftbfs.org>
42284         and Hasso Tepper <hasso@netbsd.org>.
42285
42286 2009-09-17  Bruno Haible  <bruno@clisp.org>
42287
42288         * modules/COPYING: Update copyright years.
42289         * modules/README: Likeiwse.
42290         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42291         Reported by Ian Beckwith <ianb@erislabs.net>.
42292
42293 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42294
42295         * users.txt: Update references for gnuit package.
42296
42297 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42298
42299         * m4/getdelim.m4: Fix typo in copyright line.
42300
42301 2009-09-17  Bruno Haible  <bruno@clisp.org>
42302
42303         * lib/atoll.c: Use the standard header with GPL copyright.
42304         * lib/argz.in.h: Likewise.
42305         * lib/glob.c: Likewise.
42306         * lib/glob-libc.h: Likewise.
42307         * lib/random_r.c: Likewise.
42308         * lib/siglist.h: Likewise.
42309         * lib/strsignal.c: Likewise.
42310         Reported by Ian Beckwith <ianb@erislabs.net>.
42311
42312 2009-09-17  Eric Blake  <ebb9@byu.net>
42313
42314         rmdir: ensure correct dependency order
42315         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42316
42317 2009-09-17  Bruno Haible  <bruno@clisp.org>
42318
42319         Disable assertion that fails on NetBSD 5 / i386.
42320         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42321         Reported by Sam Steingold <sds@gnu.org>
42322         and Hasso Tepper <hasso@netbsd.org>.
42323
42324 2009-09-16  Eric Blake  <ebb9@byu.net>
42325
42326         unlinkdir: port to mingw
42327         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42328         on which no one can unlink a directory.
42329
42330         stdlib: sort witness names
42331         * modules/stdlib (Makefile.am): Sort replacements.
42332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42333         * lib/stdlib.in.h: Likewise.
42334
42335         parse-duration-tests: avoid link failure
42336         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42337         LIBINTL.
42338         Reported by Tom G. Christensen.
42339
42340         openat-tests: ensure unlinkat behaves like rmdir
42341         * tests/test-rmdir.c (main): Factor guts...
42342         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42343         * modules/rmdir-tests (Files): Ship new file.
42344         * modules/openat-tests: New test.
42345         * tests/test-unlinkat.c: Likewise.
42346
42347         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42348         * modules/rmdir-errno (Status, Notice): Now obsolete.
42349
42350         rmdir: work around cygwin 1.5.x and mingw bugs
42351         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42352         * lib/rmdir.c (rmdir): Work around it.
42353         * modules/rmdir (Status, Notice): No longer obsolete.
42354         (Files): Add dos.m4.
42355         (Depends-on): Add unistd.
42356         (configure.ac): Set witnesses.
42357         (License): Relax to LGPLv2+.
42358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42359         * modules/unistd (Makefile.am): Substitute witnesses.
42360         * lib/unistd.in.h (rmdir): Declare replacement.
42361         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42362         * modules/rmdir-tests: New tests.
42363         * tests/test-rmdir.c: Likewise.
42364
42365 2009-09-15  Eric Blake  <ebb9@byu.net>
42366
42367         fchdir: improve use of replacement functions
42368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42369         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42370         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42371         REPLACE_CLOSEDIR.
42372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42373         * modules/sys_stat (Makefile.am): Substitute correct witness.
42374         * modules/dirent (Makefile.am): Likewise.
42375         * modules/unistd (Makefile.am): Likewise.
42376         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42377         * lib/unistd.in.h (dup): Likewise.
42378         * lib/sys_stat.in.h (fstat): Likewise.
42379
42380         maint: ignore gnulib-tool temp files
42381         * .gitignore: Ignore files created during gnulib-tool --test.
42382
42383 2009-09-13  Jim Meyering  <meyering@redhat.com>
42384
42385         posixtm: don't reject a time that specify "60" as the number of seconds
42386         * lib/posixtm.c (posixtime): The code to reject invalid dates
42387         would also reject a time specified with the .60 suffix.
42388         But POSIX allows that, in order to accommodate leap seconds.
42389         So don't reject it.
42390         (main): Adjust tests accordingly.
42391         * modules/posixtm (Depends-on): Add stpcpy.
42392
42393 2009-09-11  Jim Meyering  <meyering@redhat.com>
42394
42395         announce-gen: include [$release_type] in emitted Subject:
42396         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42397         e.g., [stable] in the emitted Subject: line.
42398
42399 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42400
42401         Remove obsolete macros from several modules.
42402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42403         obsolete Autoconf macros with their modern counterparts.
42404         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42405         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42407         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42408         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42409         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42411         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42412         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42413         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42414         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42415         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42416         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42417         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42418         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42419         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42420         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42421         * m4/time_r.m4 (gl_TIME_R): Likewise.
42422         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42423         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42424         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42425
42426         Fix copyright header in build-aux scripts.
42427         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42428         recommendation.
42429         * build-aux/ncftpput-ftp: Likewise.
42430         * build-aux/update-copyright: Likewise.
42431
42432 2009-09-09  Eric Blake  <ebb9@byu.net>
42433
42434         test-link: allow Linux choice of errno
42435         * tests/test-link.c (main): Relax test for alternate error.
42436
42437         strndup: fix improper m4 caching
42438         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42439         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42440         (gl_PREREQ_STRNDUP): Delete.
42441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42442         * modules/string (Makefile.am): Substitute it.
42443         * lib/string.in.h (strndup): Modernize prototype.
42444
42445         getcwd: port to mingw
42446         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42447         different from the POSIX assumptions made throughout the getcwd
42448         module; fortunately, the mingw getcwd does not need replacement.
42449         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42450         * modules/getcwd-tests: New test.
42451         * tests/test-getcwd.c: Likewise.
42452
42453         link: fix platform bugs
42454         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42455         * lib/link.c (link): Work around them.  Fix related mingw bug.
42456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42457         * modules/unistd (Makefile.am): Substitute it.
42458         * lib/unistd.in.h (link): Declare replacement.
42459         * doc/posix-functions/link.texi (link): Document this.
42460         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42461
42462         test-link: consolidate into single C program, test more cases
42463         * tests/test-link.sh: Delete.
42464         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42465         at least Cygwin and Solaris.
42466         * modules/link-tests (Files): Remove unused file.
42467         (Depends-on): Add errno, sys_stat.
42468         (Makefile.am): Simplify.
42469
42470 2009-09-08  Bruno Haible  <bruno@clisp.org>
42471
42472         Work around towlower, towupper bug on mingw.
42473         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42474         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42475         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42476         * doc/posix-functions/towupper.texi: Likewise.
42477         Reported by Eric Blake.
42478
42479 2009-09-08  Jim Meyering  <meyering@redhat.com>
42480
42481         build: don't try to run autoheader if we don't use it
42482         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42483         is not used in configure.ac.
42484
42485 2009-09-08  Eric Blake  <ebb9@byu.net>
42486
42487         euidaccess: fix compilation error
42488         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42489
42490         rawmemchr: relax license
42491         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42492         okay.
42493         Reported by Jim Meyering.
42494
42495         mkfifoat: new module
42496         * modules/mkfifoat: New file.
42497         * lib/mkfifoat.c: Likewise.
42498         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42499         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42500         * modules/sys_stat (Makefile.am): Use them.
42501         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42502         * MODULES.html.sh (File system functions): Mention module.
42503         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42504         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42505         * modules/mkfifoat-tests: New test.
42506         * tests/test-mkfifoat.c: Likewise.
42507
42508         strchrnul: relax license
42509         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42510         okay.
42511         Reported by Jim Meyering.
42512
42513 2009-09-08  Eric Blake  <ebb9@byu.net>
42514
42515         fstatat: fix compilation on Solaris
42516         * lib/fstatat.c (includes): Add fcntl.h.
42517         Reported by Pádraig Brady.
42518
42519 2009-09-07  Eric Blake  <ebb9@byu.net>
42520
42521         rename: modernize replacement
42522         * modules/rename (Depends-on): Add stdio.
42523         (configure.ac): Declare witness.
42524         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42525         stdio take care of replacement.
42526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42527         * modules/stdio (Makefile.am): Substitute them.
42528         * lib/stdio.in.h (rename): Declare replacement.
42529         * lib/rename.c (includes): Allow cross-compilation to non-windows
42530         machines.
42531         * doc/posix-functions/rename.texi (rename): Improve
42532         documentation.
42533
42534         stdio: sort witness names
42535         * modules/stdio (Makefile.am): Sort replacements.
42536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42537         * lib/stdio.in.h: Likewise.
42538
42539         getcwd: minor cleanups
42540         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42541         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42542
42543         openat: provide more convenience names
42544         * modules/faccessat (configure.ac): Add C witness.
42545         * lib/unistd.in.h (readlinkat): Fix typo.
42546         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42547         convenience wrappers.
42548         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42549         wrappers in syntax checks.
42550
42551 2009-09-06  Eric Blake  <ebb9@byu.net>
42552
42553         doc: fix comments in recent patches
42554         * lib/faccessat.c: Mention correct function.
42555         * lib/fchmodat.c: Likewise.
42556         * lib/fchownat.c: Likewise.
42557         * lib/symlinkat.c: Likewise.
42558         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42559         constants.
42560
42561         faccessat, symlinkat: continue cleanup of previous patch
42562         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42563         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42564         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42566         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42567         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42568         set.
42569
42570 2009-09-06  Bruno Haible  <bruno@clisp.org>
42571
42572         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42573         (fstatat): Declare if GNULIB_FSTATAT is set.
42574         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42575         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42576         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42577         * modules/fcntl-h (Files): Remove m4/openat.m4.
42578         * modules/sys_stat (Files): Remove m4/openat.m4.
42579         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42580         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42581         * modules/unistd (Files): Remove m4/openat.m4.
42582         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42583         GNULIB_OPENAT.
42584         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42585         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42587         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42588         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42589         gl_OPENAT_DEFAULTS.
42590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42591         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42592         Don't require gl_OPENAT_DEFAULTS.
42593         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42594         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42595         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42596         (gl_OPENAT_DEFAULTS): Remove macro.
42597
42598 2009-09-06  Bruno Haible  <bruno@clisp.org>
42599
42600         * modules/openat (configure.ac): Remove unneeded witness.
42601
42602 2009-09-06  Bruno Haible  <bruno@clisp.org>
42603
42604         Set errno to ENOSYS when a function is entirely unsupported.
42605         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42606         EOPNOTSUPP.
42607         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42608         * modules/chown (Depends-on): Remove errno.
42609
42610 2009-09-06  Bruno Haible  <bruno@clisp.org>
42611
42612         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42613
42614 2009-09-06  Bruno Haible  <bruno@clisp.org>
42615
42616         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42617
42618 2009-09-06  Ben Pfaff  <blp@gnu.org>
42619             Bruno Haible  <bruno@clisp.org>
42620
42621         Work around a glibc bug in strtok_r.
42622         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42623         Undefine if UNDEFINE_STRTOK_R is set.
42624         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42626         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42627         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42628         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42629         UNDEFINE_STRTOK_R.
42630         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42631
42632 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42633
42634         exclude: minor fix
42635         * lib/exclude.c: Include wctype.h
42636
42637 2009-09-06  Akim Demaille  <demaille@gostai.com>
42638
42639         bootstrap: improve error message
42640         * build-aux/bootstrap (find_tool): Upon failure, report the list
42641         of candidates.
42642         Honor the initial value of the envvar.
42643
42644 2009-09-05  Eric Blake  <ebb9@byu.net>
42645
42646         symlinkat: new module
42647         * modules/symlinkat: New file.
42648         * lib/symlinkat.c: Likewise.
42649         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42651         * modules/unistd (Makefile.am): Use them.
42652         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42653         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42654         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42655         * MODULES.html.sh (File system functions): Mention module.
42656         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42657         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42658         * modules/symlinkat-tests: New test.
42659         * tests/test-symlinkat.c: Likewise.
42660
42661         test-openat-safer: add more checks
42662         * tests/test-openat-safer.c (main): Check more code paths.
42663
42664 2009-09-05  Jim Meyering  <meyering@redhat.com>
42665
42666         syntax-check: detect unnecessary inclusion of openat.h
42667         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42668
42669 2009-09-05  Bruno Haible  <bruno@clisp.org>
42670
42671         Support towlower, towupper.
42672         * doc/posix-functions/towlower.texi: Mention module wctype.
42673         * doc/posix-functions/towupper.texi: Likewise.
42674         * lib/wctype.in.h (towlower, towupper): New functions.
42675         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42676         (ASSERT): New macro.
42677         (e): New variable.
42678         (main): Test also towlower, towupper. Test WEOF argument.
42679         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42680
42681 2009-09-05  Bruno Haible  <bruno@clisp.org>
42682
42683         Fix conversion behaviour when the input is invalid.
42684         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42685         mark occurring in first pass of indirect conversion.
42686         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42687         input.
42688         Found by clang's static analyzer.
42689
42690 2009-09-05  Bruno Haible  <bruno@clisp.org>
42691
42692         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42693         where direct conversion is possible.
42694
42695 2009-09-04  Eric Blake  <ebb9@byu.net>
42696
42697         openat: fail with ENOENT on empty name
42698         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42699         buffer.
42700
42701         link-follow: fix logic bug in prior patch
42702         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42703         reversed sense of yes and no in prior patch.  Avoid confusing
42704         compilation failure with desired semantics.
42705
42706         link-follow: accommodate mingw and cross-compilation
42707         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42708         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42709         cross-compilation results to -1, to make linkat easier to
42710         implement when cross-compiling.  Trivially support mingw.
42711         * modules/link-follow (configure.ac): Call new name.
42712         * NEWS: Mention this.
42713
42714 2009-09-03  Eric Blake  <ebb9@byu.net>
42715
42716         faccessat: compile replacement
42717         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42718         needed.
42719
42720         fts: fix compilation error
42721         * lib/fts.c (includes): Re-add "openat.h", for
42722         openat_needs_fchdir.
42723
42724         faccessat: new module
42725         * modules/faccessat: New file.
42726         * lib/faccessat.c: Likewise.
42727         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42729         * modules/unistd (Makefile.am): Use it.
42730         * lib/unistd.in.h (faccessat): Declare it.
42731         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42732         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42733         * MODULES.html.sh (File system functions): Mention it.
42734         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42735         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42736
42737         euidaccess: prefer POSIX over non-standard implementation
42738         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42739         * lib/euidaccess.c (euidaccess): Use it if available.
42740
42741         openat: make template easier to use
42742         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42743         AT_FUNC_F2 to be undefined.
42744         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42745         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42746         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42747         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42748         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42749         Likewise.
42750         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42751         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42752         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42753         Likewise.
42754
42755         openat: declare in POSIX headers
42756         * NEWS: Mention this.
42757         * modules/openat (configure.ac): Declare witnesses.
42758         (Depends-on): Add fcntl-h, sys_stat, unistd.
42759         (Include): Mention correct headers.
42760         * modules/fcntl-h (Depends-on): Add link-warning.
42761         (Files): Add openat.m4.
42762         (Makefile.am): Substitute witnesses.
42763         * modules/sys_stat (Files, Makefile.am): Likewise.
42764         * modules/unistd (Files, Makefile.am): Likewise.
42765         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42766         (gl_OPENAT_DEFAULTS): New macro.
42767         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42769         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42770         (SYS_STAT_H): Remove unused variable.
42771         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42772         * lib/fcntl--.h (includes): Remove unneeded header.
42773         * lib/openat-safer.c (includes): Likewise.
42774         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42775         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42776         appropriate headers.
42777         (__OPENAT_PREFIX): Delete.
42778         * lib/fcntl.in.h (openat): Provide declaration.
42779         (AT_FDCWD): Fix Solaris bug.
42780         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42781         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42782         * lib/fchmodat.c (includes):  Adjust to find declaration.
42783         * lib/fchownat.c (includes): Likewise.
42784         * lib/mkdirat.c (includes): Likewise.
42785         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42786         still visible.
42787
42788 2009-09-02  Eric Blake  <ebb9@byu.net>
42789
42790         errno: use consistently
42791         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42792         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42793         * lib/canonicalize.c (ELOOP): Likewise.
42794         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42795         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42796         * lib/lchown.c (EOPNOTSUPP): Likewise.
42797         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42798         * lib/savewd.c (ESTALE): Likewise.
42799         * lib/settime.c (ENOSYS): Likewise.
42800         * lib/utimens.c (ENOSYS): Likewise.
42801         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42802         * lib/chdir-safer.c (ELOOP): Likewise.
42803         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42804         * modules/c-stack (Depends-on): Add errno.
42805         * modules/canonicalize (Depends-on): Likewise.
42806         * modules/chdir-safer (Depends-on): Likewise.
42807         * modules/fdopendir (Depends-on): Likewise.
42808         * modules/inet_ntop (Depends-on): Likewise.
42809         * modules/inet_pton (Depends-on): Likewise.
42810         * modules/lchown (Depends-on): Likewise.
42811         * modules/openat (Depends-on): Likewise.
42812         * modules/savewd (Depends-on): Likewise.
42813         * modules/settime (Depends-on): Likewise.
42814         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42815
42816         fts: avoid leaking fds
42817         * modules/fts (Depends-on): Add cloexec.
42818         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42819         flag.
42820
42821         fts: make directory fds more robust
42822         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42823         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42824
42825         backupfile, chdir-long, fts, savedir: make safer
42826         * lib/backupfile.c (includes): Use "dirent--.h", since
42827         numbered_backup can write to stderr during readdir.
42828         * lib/savedir.c (includes): Likewise.
42829         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42830         emulation can write to stderr on failure.
42831         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42832         * lib/getcwd.c: Document why opendir_safer is unused.
42833         * lib/glob.c: Likewise.
42834         * lib/scandir.c: Likewise.
42835         * lib/openat-proc.c: Likewise, for open_safer.
42836         * modules/backupfile (Depends-on): Add dirent-safer.
42837         * modules/savedir (Depends-on): Likewise.
42838         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42839         * modules/chdir-long (Depends-on): Add openat-safer.
42840
42841         openat-safer: new module
42842         * modules/openat-safer: New file.
42843         * lib/openat-safer.c: Likewise.
42844         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42845         * lib/fcntl-safer.h (openat_safer): Declare.
42846         * lib/fcntl--.h (openat): Override.
42847         * MODULES.html.sh (File descriptor based I/O): Mention it.
42848         * lib/openat.h: Add double-inclusion guards.
42849         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42850         "fcntl--.h", so we can implement openat.
42851         * modules/openat-safer-tests: New test.
42852         * tests/test-openat-safer.c: New file.
42853
42854         dirent-safer: new module
42855         * modules/dirent-safer: New file.
42856         * lib/dirent--.h: Likewise.
42857         * lib/dirent-safer.h: Likewise.
42858         * lib/opendir-safer.c: Likewise.
42859         * m4/dirent-safer.m4: Likewise.
42860         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42861         * modules/dirent-safer-tests: New test.
42862         * tests/test-dirent-safer.c: New file.
42863         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42864
42865         fdopendir: optimize on mingw
42866         * lib/unistd.in.h (_gl_directory_name): New prototype.
42867         * lib/fchdir.c (_gl_directory_name): Implement it.
42868         (fchdir): Use it to simplify implementation.
42869         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42870         fchdir, when available, to avoid calling [f]chdir().
42871
42872         fdopendir: split into its own module
42873         * lib/openat.c (fdopendir): Move...
42874         * lib/fdopendir.c: ...into new file.
42875         * modules/fdopendir: New module.
42876         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42877         * modules/openat (Depends-on): Add fdopendir.
42878         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42879         fdopendir here.
42880         * modules/savedir (Depends-on): Only need fdopendir, not full
42881         openat.
42882         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42883         * lib/openat.h (fdopendir): Drop prototype.
42884         * lib/dirent.in.h (fdopendir): Provide prototype.
42885         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42886         * modules/dirent (Makefile.am): Substitute them.
42887         * MODULES.html.sh (File system functions): Mention it.
42888         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42889         * modules/fdopendir-tests: New file.
42890         * tests/test-fdopendir.c: Likewise.
42891
42892         fchdir: use more consistent macro convention
42893         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42894         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42895         REPLACE_FCHDIR, rather than relying on config.h macros.
42896         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42897         inside a single make-time REPLACE_FCHDIR block, rather than using
42898         the config.h FCHDIR_REPLACEMENT.
42899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42900         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42901         Manage fstat replacement.
42902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42903         REPLACE_FCHDIR.
42904         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42905         (Makefile.am): Substitute REPLACE_FCHDIR.
42906         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42907         FCHDIR_REPLACEMENT.
42908         * lib/dup-safer.c (dup_safer): Likewise.
42909         * lib/dup2.c (rpl_dup2): Likewise.
42910         * lib/dup3.c (rpl_dup3): Likewise.
42911         * lib/open.c (rpl_open): Likewise.
42912
42913         fchdir: simplify error handling, and support dup3
42914         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42915         stdbool, malloc-posix, realloc-posix.
42916         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42917         (ensure_dirs_slot): Return false on allocation failure.
42918         (rpl_dup2): Delete.
42919         (_gl_register_dup): New function.
42920         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42921         (_gl_register_fd): Close fd on allocation failure.
42922         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42923         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42924         prototype.
42925         (rpl_dup2_fchdir): Delete prototype.
42926         * lib/open.c (open): Update caller.
42927         * lib/dup2.c (dup2): Track fchdir metadata.
42928         * lib/dup3.c (dup3): Likewise.
42929         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42930         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42931
42932 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42933
42934         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42935         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42936         don't pass arguments to AC_OUTPUT.
42937
42938 2009-09-02  Bruno Haible  <bruno@clisp.org>
42939
42940         * modules/mkdtemp (License): Relicense under LGPLv2+.
42941         Reported by Paolo Bonzini.
42942
42943 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42944
42945         Replace uses of obsolete autoconf macros in Jim's modules.
42946         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42947         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42948         can evoke a warning from autoconf when run with -Wobsolete
42949         enabled.  They were declared obsolete for good reasons (see
42950         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42951         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42952         should not continue using the deprecated macros.
42953         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42954         obsolete Autoconf macros with modern counterparts.
42955         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42956         * m4/dos.m4 (gl_AC_DOS): Likewise.
42957         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42958         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42959         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42960         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42961         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42962         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42963         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42964         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42965         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42966         Likewise.
42967         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42968         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42969         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42970         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42971         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42972         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42973
42974 2009-09-01  Eric Blake  <ebb9@byu.net>
42975
42976         fchdir: fix off-by-one bug in previous patch
42977         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42978         (_gl_unregister_fd): Delete useless if.
42979
42980 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42981
42982         maint.mk: sort the list of syntax-check rules
42983         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42984         easier to get a sense of progress when the rules are run sequentially
42985         and take a long time.
42986
42987 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42988
42989         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42990         * modules/netinet_in: Likewise.
42991         * modules/sys_file: Likewise.
42992         * modules/sys_ioctl: Likewise.
42993         * modules/sys_select: Likewise.
42994         * modules/sys_socket: Likewise.
42995         * modules/sys_stat: Likewise.
42996         * modules/sys_time: Likewise.
42997         * modules/sys_times: Likewise.
42998         * modules/sys_utsname: Likewise.
42999         * modules/sys_wait: Likewise.
43000
43001 2009-09-01  Jim Meyering  <meyering@redhat.com>
43002
43003         fts: help ensure that return values are not ignored
43004         * lib/fts_.h (__GNUC_PREREQ): Define.
43005         (__attribute_warn_unused_result__): Define.
43006         (fts_children, fts_close, fts_open, fts_read): Declare with
43007         __attribute_warn_unused_result__.
43008
43009         fts: fts_close now fails also when closing a dir file descriptor fails
43010         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43011         and propagate to caller, along with errno.
43012
43013         announce-gen: correct formatting in --help output
43014         * build-aux/announce-gen (usage): Move the one-line description in
43015         --help output "up", to where it belongs, just after Usage:.
43016
43017 2009-08-31  Eric Blake  <ebb9@byu.net>
43018
43019         fchdir: port to mingw
43020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43021         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43022         opened, then use a substitute.
43023         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43024         replacement.
43025         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43026         (_gl_register_fd): No need to check stat if open already filters
43027         all directories.
43028         (fchdir): Fix error condition to match POSIX.
43029         * modules/fchdir (Depends-on): Add sys_stat.
43030         * doc/posix-functions/open.texi (open): Document the limitation.
43031         * modules/fchdir-tests: New file.
43032         * tests/test-fchdir.c: Likewise.
43033
43034         canonicalize: allow cross-testing from cygwin to mingw
43035         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43036         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43037         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43038         Likewise.
43039         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43040         target does not support symlinks.
43041         * tests/test-canonicalize-lgpl.sh: Likewise.
43042
43043         chown: avoid compilation warning on mingw
43044         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43045         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43046         mingw.
43047         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43048         * modules/chown (Depends-on): Add errno.
43049
43050 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43051
43052         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43053         command.
43054
43055 2009-08-31  Jim Meyering  <meyering@redhat.com>
43056
43057         canonicalize: remove useless initialization
43058         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43059         initialization of local, "end".
43060
43061 2009-08-30  Bruno Haible  <bruno@clisp.org>
43062
43063         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43064         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43065         ENOSYS.
43066
43067 2009-08-30  Bruno Haible  <bruno@clisp.org>
43068
43069         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43070         /usr/xpg4/bin/tr when it exists.
43071         * tests/test-pipe-filter-gi1.sh: Likewise.
43072
43073 2009-08-30  Bruno Haible  <bruno@clisp.org>
43074
43075         Work around deficient /usr/bin/id program on Solaris.
43076         * tests/test-file-has-acl.sh (ID): New variable.
43077         * tests/test-set-mode-acl.sh (ID): Likewise.
43078         * tests/test-copy-acl.sh (ID): Likewise.
43079         * tests/test-copy-file.sh (ID): Likewise.
43080
43081 2009-08-30  Bruno Haible  <bruno@clisp.org>
43082
43083         New module 'xstriconveh'.
43084         * lib/xstriconveh.h: New file.
43085         * lib/xstriconveh.c: New file.
43086         * modules/xstriconveh: New file.
43087
43088 2009-08-30  Bruno Haible  <bruno@clisp.org>
43089
43090         Make it easier to use mem_cd_iconveh.
43091         * lib/striconveh.h (iconveh_t): New type.
43092         (iconveh_open, iconveh_close): New declarations.
43093         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43094         with a single 'const iconveh_t *' argument.
43095         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43096         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43097         with a single 'const iconveh_t *' argument.
43098         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43099         * tests/test-striconveh.c (main): Update.
43100         * NEWS: Mention the change.
43101
43102 2009-08-30  Bruno Haible  <bruno@clisp.org>
43103
43104         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43105         problem.
43106
43107 2009-08-30  Bruno Haible  <bruno@clisp.org>
43108
43109         Work around iconv_open problem on Solaris.
43110         * lib/iconv_open-solaris.gperf: New file.
43111         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43112         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43113         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43114         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43115         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43116         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43117
43118 2009-08-29  Jim Meyering  <meyering@redhat.com>
43119
43120         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43121         * top/maint.mk (cvs-check): Remove target; it was just an alias
43122         to the better-named vc-diff-check.
43123         (maintainer-distcheck): Remove rule.  It was used only from
43124         the (alpha/beta/major) target, and all of its commands but one
43125         were coreutils-specific.
43126         (vc-dist): Remove rule.
43127         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43128         Run vc-diff-check, not vc-dist.
43129         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43130
43131 2009-08-27  Bruno Haible  <bruno@clisp.org>
43132
43133         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43134         of 0.
43135
43136 2009-08-27  Bruno Haible  <bruno@clisp.org>
43137
43138         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43139         compilers.
43140         * doc/func.texi: Document the SunPRO C bug.
43141
43142 2009-08-27  Bruno Haible  <bruno@clisp.org>
43143
43144         Fix link error on Solaris.
43145         * tests/test-parse-duration.c (xstrdup): Remove function.
43146
43147 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43148
43149         ignore-value: handle pointer types, too
43150         * lib/ignore-value.h (__attribute__): Remove definition.
43151         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43152         of a more concise and more-often effective "(void) i" statement.
43153         (ignore_ptr): New function to suppress warnings from functions that
43154         return pointers, and to make it explicit that one function doesn't
43155         handle all cases.
43156
43157 2009-08-25  Bruno Haible  <bruno@clisp.org>
43158
43159         dup2: work around a Linux bug.
43160         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43161         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43162         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43163         Reported by Simon Josefsson.
43164
43165 2009-08-25  Jim Meyering  <meyering@redhat.com>
43166
43167         libguestfs uses gnulib
43168         * users.txt: Add libguestfs.
43169
43170 2009-08-24  Eric Blake  <ebb9@byu.net>
43171
43172         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43173         * lib/pipe2.c (includes): Add binary-io.h.
43174         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43175
43176 2009-08-24  Bruno Haible  <bruno@clisp.org>
43177
43178         Tolerate declared but missing accept4 syscall.
43179         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43180         available.
43181         * lib/sys_socket.in.h (accept4): If the function is already present,
43182         override it.
43183         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43184         * modules/accept4 (Makefile.am): Compile accept4.c always.
43185         Reported by Paolo Bonzini and Eric Blake.
43186
43187 2009-08-23  Bruno Haible  <bruno@clisp.org>
43188
43189         New module 'accept4'.
43190         * lib/sys_socket.in.h (accept4): New declaration.
43191         * lib/accept4.c: New file.
43192         * m4/accept4.m4: New file.
43193         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43194         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43195         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43196         HAVE_ACCEPT4.
43197         * modules/accept4: New file.
43198         * doc/glibc-functions/accept4.texi: Mention the new module.
43199
43200 2009-08-24  Jim Meyering  <meyering@redhat.com>
43201
43202         progname: also set global program_invocation_name, when possible
43203         Before this change, a libtool-enabled program that calls glibc's
43204         error function would report the program name as
43205         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43206         * modules/progname (configure.ac): Check for a declaration of
43207         program_invocation_name.
43208         * lib/progname.c:  Include <errno.h>.
43209         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43210         Set program_invocation_name.
43211
43212 2009-08-23  Bruno Haible  <bruno@clisp.org>
43213
43214         * lib/dup3.c: Include <string.h>.
43215
43216 2009-08-23  Bruno Haible  <bruno@clisp.org>
43217
43218         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43219         * lib/pipe2.c (pipe2): Likewise.
43220         Suggested by Eric Blake.
43221
43222 2009-08-23  Bruno Haible  <bruno@clisp.org>
43223
43224         Tolerate declared but missing dup3 syscall.
43225         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43226         * lib/unistd.in.h (dup3): If the function is already present,
43227         override it.
43228         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43229         * modules/dup3 (Makefile.am): Compile dup3.c always.
43230         Reported by Paolo Bonzini.
43231
43232 2009-08-23  Bruno Haible  <bruno@clisp.org>
43233
43234         Tolerate declared but missing pipe2 syscall.
43235         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43236         available.
43237         * lib/unistd.in.h (pipe2): If the function is already present,
43238         override it.
43239         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43240         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43241         Reported by Paolo Bonzini.
43242
43243 2009-08-23  Bruno Haible  <bruno@clisp.org>
43244
43245         * lib/pipe2.c (pipe2): Move #ifs inside function.
43246
43247 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43248
43249         quotearg: document limitations of quote_these_too
43250         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43251         those limitations are created.
43252         * lib/quotearg.h (set_char_quoting): Document that digits and
43253         letters that are special after backslash are not permitted.
43254         (quotearg_char): Cross-reference set_char_quoting documentation.
43255
43256 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43257
43258         quotearg: implement custom_quoting_style
43259         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43260         right_quote fields.
43261         (set_custom_quoting): New public function.
43262         (quotearg_buffer_restyled): Add left_quote and right_quote
43263         arguments, handle them very much like locale quoting, and update
43264         all uses.
43265         (quotearg_n_custom): New public function.
43266         (quotearg_n_custom_mem): New public function.
43267         (quotearg_custom): New public function.
43268         (quotearg_custom_mem): New public function.
43269         * lib/quotearg.h: Prototype and document new public functions.
43270         (enum quoting_style): For escape_quoting_style and
43271         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43272         ignored even though they're otherwise like c_quoting_style.
43273         Add custom_quoting_style member and document with comparison to
43274         clocale_quoting_style.
43275         * tests/test-quotearg.c (custom_quotes): New array.
43276         (custom_results): New array.
43277         (main): Extend to test custom quoting.
43278
43279 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43280
43281         quotearg: fix right quote escaping when it's in quote_these_too
43282         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43283         quote, be sure to prepend only one backslash.
43284         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43285         (main): Test it.
43286
43287 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43288
43289         quotearg-tests: test escaping of embedded locale quotes
43290         * tests/test-quotearg.c (struct result_strings): Add member for
43291         new input.
43292         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43293         (inputs): Add new input.
43294         (results_g): Add expected results.
43295         (flag_results): Likewise.
43296         (locale_results): Likewise.
43297         (compare_strings): Check those.
43298
43299 2009-08-23  Bruno Haible  <bruno@clisp.org>
43300
43301         Tests for module 'dup3'.
43302         * modules/dup3-tests: New file.
43303         * tests/test-dup3.c: New file.
43304
43305         New module 'dup3'.
43306         * lib/unistd.in.h (dup3): New declaration.
43307         * lib/dup3.c: New file.
43308         * m4/dup3.m4: New file.
43309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43310         HAVE_DUP3.
43311         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43312         * modules/dup3: New file.
43313         * doc/glibc-functions/dup3.texi: Mention the new module.
43314
43315 2009-08-23  Bruno Haible  <bruno@clisp.org>
43316
43317         Tweak the dup2 test.
43318         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43319         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43320         the test file is still empty. Fix argument order of lseek.
43321
43322 2009-08-23  Bruno Haible  <bruno@clisp.org>
43323
43324         Avoid test link errors when the modules getopt-gnu, gettext are used.
43325         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43327
43328 2009-08-23  Bruno Haible  <bruno@clisp.org>
43329
43330         Fix getdtablesize() on mingw.
43331         * lib/getdtablesize.c (getdtablesize): Implement differently.
43332         * lib/unistd.in.h (getdtablesize): Improve comment.
43333
43334 2009-08-23  Bruno Haible  <bruno@clisp.org>
43335
43336         New module 'mkostemp'.
43337         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43338         * lib/stdlib.in.h (mksotemp): New declaration.
43339         * lib/mkostemp.c: New file, from glibc with modifications.
43340         * lib/tempname.h (GT_FILE): Remove outdated comment.
43341         (gen_tempname): Add flags argument.
43342         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43343         (__GT_FILE): Map to 1.
43344         (small_open, large_open): Remove macros.
43345         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43346         * lib/mkstemp.c (mkstemp): Update.
43347         * lib/mkdtemp.c (mkdtemp): Likewise.
43348         * m4/mkostemp.m4: New file.
43349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43350         HAVE_MKOSTEMP.
43351         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43352         HAVE_MKOSTEMP.
43353         * modules/mkostemp: New file, based on modules/mkstemp.
43354         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43355         * NEWS: Mention the change.
43356
43357 2009-08-23  Bruno Haible  <bruno@clisp.org>
43358
43359         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43360         Reported by Eric Blake.
43361
43362 2009-08-23  Bruno Haible  <bruno@clisp.org>
43363
43364         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43365         Reported by Eric Blake.
43366
43367 2009-08-23  Bruno Haible  <bruno@clisp.org>
43368
43369         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43370         * modules/pipe2 (Depends-on): Likewise.
43371
43372 2009-08-23  Eric Blake  <ebb9@byu.net>
43373
43374         fcntl-h: add O_TTY_INIT support
43375         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43376         * tests/test-fcntl-h.c (o): Test it.
43377         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43378
43379         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43380         * modules/fcntl: Move <fcntl.h> header replacement...
43381         * modules/fcntl-h: ...to new name, so as not to collide with
43382         like-named function.
43383         * tests/test-fcntl.c: Rename...
43384         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43385         * modules/fcntl-tests: Rename...
43386         * modules/fcntl-h-tests: ...to this.  Update test file name.
43387         * modules/chdir-long (Depends-on): Update clients.
43388         * modules/chdir-safer (Depends-on): Likewise.
43389         * modules/fcntl-safer (Depends-on): Likewise.
43390         * modules/fts (Depends-on): Likewise.
43391         * modules/mkancesdirs (Depends-on): Likewise.
43392         * modules/mkdir-p (Depends-on): Likewise.
43393         * modules/open (Depends-on): Likewise.
43394         * modules/savewd (Depends-on): Likewise.
43395         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43396         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43397
43398 2009-08-22  Bruno Haible  <bruno@clisp.org>
43399
43400         * modules/binary-io (License): Relicense under LGPL.
43401         * modules/pipe2 (License): Likewise.
43402
43403 2009-08-22  Bruno Haible  <bruno@clisp.org>
43404
43405         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43406         return value.
43407         * lib/pipe-filter-gi.c (filter_init): Likewise.
43408         Reported by Eric Blake.
43409
43410 2009-08-22  Bruno Haible  <bruno@clisp.org>
43411
43412         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43413         * modules/pipe (Depends-on): Add pipe2.
43414
43415 2009-08-22  Bruno Haible  <bruno@clisp.org>
43416
43417         Tests for module 'pipe2'.
43418         * modules/pipe2-tests: New file.
43419         * tests/test-pipe2.c: New file.
43420
43421         New module 'pipe2'.
43422         * lib/unistd.in.h (pipe2): New declaration.
43423         * lib/pipe2.c: New file.
43424         * m4/pipe2.m4: New file.
43425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43426         HAVE_PIPE2.
43427         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43428         * modules/pipe2: New file.
43429         * doc/glibc-functions/pipe2.texi: Mention the new module.
43430
43431 2009-08-22  Bruno Haible  <bruno@clisp.org>
43432
43433         Reference some new glibc functions.
43434         * doc/glibc-functions/accept4.texi: New file.
43435         * doc/glibc-functions/dup3.texi: New file.
43436         * doc/glibc-functions/mkostemp.texi: New file.
43437         * doc/glibc-functions/pipe2.texi: New file.
43438         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43439         (Glibc sys/socket.h): Refer to accept4.
43440         (Glibc unistd.h): Refer to dup3, pipe2.
43441         Reported by Eric Blake.
43442
43443 2009-08-22  Jim Meyering  <meyering@redhat.com>
43444             Bruno Haible  <bruno@clisp.org>
43445
43446         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43447         This makes it so packages using automake-1.11's silent-rules option
43448         can print e.g., a single "GEN    configmake.h" line, rather than
43449         the 30+ statements that perform the job.  If you want to see the
43450         actual commands, you can still run "make V=1".
43451         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43452         so that make output is abbreviated when those variables are defined
43453         appropriately.
43454         * modules/argz: Likewise.
43455         * modules/arpa_inet: Likewise.
43456         * modules/byteswap: Likewise.
43457         * modules/configmake: Likewise.
43458         * modules/dirent: Likewise.
43459         * modules/errno: Likewise.
43460         * modules/fcntl: Likewise.
43461         * modules/float: Likewise.
43462         * modules/fnmatch: Likewise.
43463         * modules/getopt-posix: Likewise.
43464         * modules/glob: Likewise.
43465         * modules/iconv_open: Likewise.
43466         * modules/inttypes: Likewise.
43467         * modules/localcharset: Likewise.
43468         * modules/locale: Likewise.
43469         * modules/math: Likewise.
43470         * modules/netdb: Likewise.
43471         * modules/netinet_in: Likewise.
43472         * modules/poll: Likewise.
43473         * modules/posix_spawnp-tests: Likewise.
43474         * modules/sched: Likewise.
43475         * modules/search: Likewise.
43476         * modules/selinux-h: Likewise.
43477         * modules/signal: Likewise.
43478         * modules/spawn: Likewise.
43479         * modules/stdarg: Likewise.
43480         * modules/stdbool: Likewise.
43481         * modules/stddef: Likewise.
43482         * modules/stdint: Likewise.
43483         * modules/stdio: Likewise.
43484         * modules/stdlib: Likewise.
43485         * modules/string: Likewise.
43486         * modules/strings: Likewise.
43487         * modules/sys_file: Likewise.
43488         * modules/sys_ioctl: Likewise.
43489         * modules/sys_select: Likewise.
43490         * modules/sys_socket: Likewise.
43491         * modules/sys_stat: Likewise.
43492         * modules/sys_time: Likewise.
43493         * modules/sys_times: Likewise.
43494         * modules/sys_utsname: Likewise.
43495         * modules/sys_wait: Likewise.
43496         * modules/sysexits: Likewise.
43497         * modules/time: Likewise.
43498         * modules/unistd: Likewise.
43499         * modules/wchar: Likewise.
43500         * modules/wctype: Likewise.
43501
43502 2009-08-22  Jim Meyering  <meyering@redhat.com>
43503
43504         announce-gen: detect write failure
43505         * build-aux/announce-gen: Add Coda at end.
43506         Remove equivalent-but-more-verbose block at top.
43507
43508 2009-08-19  Akim Demaille  <demaille@gostai.com>
43509
43510         bootstrap: --help to stdout.
43511         * bootstrap (usage): Don't send --help to stderr.
43512         Use a here doc instead of a long string.
43513
43514 2009-08-21  Eric Blake  <ebb9@byu.net>
43515
43516         test-popen-safer: split from test-popen
43517         * tests/test-popen.c (main): Move...
43518         * tests/test-popen.h: ...into new file.
43519         * tests/test-popen-safer2.c: New file.
43520         * modules/popen-tests (Files): Add test-popen.h.
43521         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43522         Suggested by Bruno Haible.
43523
43524         test-fcntl-safer: split from test-open
43525         * tests/test-open.c (main): Move...
43526         * tests/test-open.h: ...into new file.
43527         * tests/test-fcntl-safer.c: New file.
43528         * modules/open-tests (Files): Add test-open.h.
43529         * modules/fcntl-safer-tests: New file.
43530         Suggested by Bruno Haible.
43531
43532         test-fopen-safer: split from test-fopen
43533         * tests/test-fopen.c (main): Move...
43534         * tests/test-fopen.h: ...into new file.
43535         * tests/test-fopen-safer.c: New file.
43536         * modules/fopen-tests (Files): Add test-fopen.h.
43537         * modules/fopen-safer-tests: New file.
43538         Suggested by Bruno Haible.
43539
43540 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43541
43542         popen-safer: test O_CLOEXEC at run-time.
43543         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43544
43545 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43546
43547         fcntl: move more flags to the header
43548         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43549         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43550         * lib/fcntl.in.h: Do both things here.
43551
43552 2009-08-21  Jim Meyering  <meyering@redhat.com>
43553
43554         consistently remove $@-t before redirecting to it
43555         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43556         * modules/alloca-opt: Likewise.
43557         * modules/byteswap: Likewise.
43558         * modules/fnmatch: Likewise.
43559         * modules/getopt-posix: Likewise.
43560         * modules/glob: Likewise.
43561         * modules/poll: Likewise.
43562         * modules/posix_spawnp-tests: Likewise.
43563         * modules/sys_socket: Likewise.
43564         * modules/sysexits: Likewise.
43565
43566 2009-08-21  Eric Blake  <ebb9@byu.net>
43567
43568         popen: simplify access to original popen
43569         * lib/popen.c (rpl_popen): No need to worry about popen being a
43570         macro.
43571         Reported by Bruno Haible.
43572
43573 2009-08-20  Eric Blake  <ebb9@byu.net>
43574
43575         build: avoid some compiler warnings
43576         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43577         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43578         type.
43579         (new_exclude_segment, excluded_file_pattern_p)
43580         (excluded_file_name_p): Reduce scope.
43581         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43582         old-style declaration.
43583
43584 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43585
43586         * tests/test-exclude1.sh: Handle Windows EOL.
43587         * tests/test-exclude2.sh: Likewise.
43588         * tests/test-exclude3.sh: Likewise.
43589         * tests/test-exclude4.sh: Likewise.
43590         * tests/test-exclude5.sh: Likewise.
43591         * tests/test-exclude6.sh: Likewise.
43592         * tests/test-exclude7.sh: Likewise.
43593
43594 2009-08-19  Akim Demaille  <demaille@gostai.com>
43595
43596         bootstrap: find sha1sum when named gsha1sum.
43597         * bootstrap (find_tool): New.
43598         ($SHA1SUM): New.
43599         Use it.
43600
43601 2009-08-20  Jim Meyering  <meyering@redhat.com>
43602
43603         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43604         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43605         expression that converts "." in a file name to "\." in the resulting
43606         regexp.  Start with a dummy statement, so that prior shell variable
43607         definitions are expanded portably.  Reported by Simon Josefsson.
43608
43609 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43610
43611         Fix polling for writeability of a screen buffer.
43612         * lib/poll.c: Distinguish input and screen buffers for the
43613         Win32 implementation.
43614         * lib/select.c: Likewise.
43615
43616 2009-08-19  Eric Blake  <ebb9@byu.net>
43617
43618         popen-safer: prevent popen from clobbering std descriptors
43619         * modules/popen-safer: New file.
43620         * lib/popen-safer.c: Likewise.
43621         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43622         * lib/stdio--.h (popen): Provide override.
43623         * lib/stdio-safer.h (popen_safer): Provide declaration.
43624         * tests/test-popen.c (includes): Partially test this.
43625         * modules/popen-safer-tests: New file, for more tests.
43626         * tests/test-popen-safer.c: Likewise.
43627         * MODULES.html.sh (file stream based Input/Output): Mention it.
43628
43629         tests: test some of the *-safer modules
43630         * modules/fopen-safer (Depends-on): Add fopen.
43631         * modules/fcntl-safer (Depends-on): Add fcntl.
43632         * modules/stdlib-safer (Depends-on): Add stdlib.
43633         (configure.ac): Set indicator.
43634         * modules/unistd-safer (configure.ac): Likewise.
43635         * modules/tmpfile-safer (configure.ac): Likewise.
43636         (Depends-on): Add tmpfile.
43637         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43638         active.
43639         * tests/test-fopen.c (includes): Test safer versions when they are
43640         in use.
43641         * tests/test-open.c (includes): Likewise.
43642
43643         popen: fix cygwin 1.5 bug when stdin closed
43644         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43645         * modules/popen: New file.
43646         * modules/popen-tests: Likewise.
43647         * tests/test-popen.c: Likewise.
43648         * m4/popen.m4: Likewise.
43649         * lib/popen.c: Likewise.
43650         * lib/stdio.in.h (popen): New declaration.
43651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43652         * modules/stdio (Makefile.am): Likewise.
43653         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43654
43655 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43656
43657         maint.mk: give full control over update-copyright exclusions
43658         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43659         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43660         (update-copyright): Don't force inclusion of top-level
43661         ChangeLog.  Don't force exclusion of all COPYING files, but make
43662         them the default exclusion instead.
43663
43664 2009-08-16  Bruno Haible  <bruno@clisp.org>
43665
43666         Fix test failures on Solaris 10.
43667         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43668         tests when Solaris iconv() is used.
43669         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43670         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43671         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43672         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43673         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43674
43675 2009-08-16  Bruno Haible  <bruno@clisp.org>
43676
43677         Fix test failures on Solaris 10.
43678         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43679         'tr' program and pass it as first argument.
43680         * tests/test-pipe-filter-gi1.sh: Likewise.
43681         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43682         program as first argument.
43683         * tests/test-pipe-filter-gi1.c (main): Likewise.
43684
43685 2009-08-16  Eric Blake  <ebb9@byu.net>
43686
43687         fpurge: fix previous commits
43688         * modules/fpurge (Makefile.am): Make replacement conditional,
43689         partially reverting 2007-04-29 change; missed in previous
43690         attempt.
43691         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43692         is missing.
43693
43694 2009-08-16  Bruno Haible  <bruno@clisp.org>
43695
43696         Clarify fpurge's effect on the file position.
43697         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43698         * tests/test-fpurge.c (main): Make a second pass for checking the file
43699         position.
43700
43701 2009-08-16  Bruno Haible  <bruno@clisp.org>
43702
43703         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43704         declaration of fpurge is missing.
43705         * tests/test-fpurge.c (main): Check that the file has not more contents
43706         than expected. Close the file before removing it.
43707
43708 2009-08-15  Eric Blake  <ebb9@byu.net>
43709
43710         fpurge: don't wrap working cygwin implementation
43711         * lib/fpurge.c (fpurge): Fix comment typo.
43712         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43713         1.7 to avoid replacement.
43714         * tests/test-fpurge.c (main): Enhance test.
43715
43716 2009-08-15  Eric Blake  <ebb9@byu.net>
43717         and Jim Meyering  <meyering@redhat.com>
43718
43719         test-update-copyright: skip if perl is insufficient
43720         * tests/test-update-copyright.sh: Failure to run maintainer tool
43721         should not cause testsuite failure on cygwin 1.5.
43722
43723 2009-08-14  Eric Blake  <ebb9@byu.net>
43724
43725         doc: mention more functions added in cygwin 1.7.0
43726         * doc/posix-headers/limits.texi (limits.h): Update for recent
43727         cygwin additions.
43728         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43729         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43730         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43731         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43732         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43733
43734 2009-08-14  Eric Blake  <ebb9@byu.net>
43735
43736         maint.mk: simplify update-copyright rule
43737         * top/maint.mk (update-copyright-local): Delete, and document how
43738         to do it in cfg.mk instead.
43739         (update-copyright-exclude-regexp): Delete, and document how to do
43740         it in .x-update-copyright instead.
43741         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43742         exclude ChangeLog.
43743
43744 2009-08-14  Bruno Haible  <bruno@clisp.org>
43745
43746         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43747
43748 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43749
43750         maint.mk: support update-copyright-env
43751         * top/maint.mk (update-copyright-env): Define place-holder.
43752         (update-copyright): Expand $(update-copyright-env) before
43753         invoking update-copyright.
43754
43755 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43756
43757         update-copyright: implement forced reformatting
43758         * build-aux/update-copyright: Implement and document
43759         UPDATE_COPYRIGHT_FORCE.
43760         * tests/test-update-copyright.sh: Test it.
43761
43762 2009-08-14  Eric Blake  <ebb9@byu.net>
43763         and Bruno Haible  <bruno@clisp.org>
43764
43765         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43766         * tests/test-locale.c: Revert previous patch related to NULL.
43767         * tests/test-stdio.c: Likewise.
43768         * tests/test-stdlib.c: Likewise.
43769         * tests/test-string.c: Likewise.
43770         * tests/test-unistd.c: Likewise.
43771         * modules/time-tests (Depends-on): Add verify.
43772         * modules/wchar-tests (Depends-on): Likewise.
43773         * tests/test-time.c: Test for NULL compliance.
43774         * tests/test-wchar.c: Likewise.
43775         * modules/locale (Depends-on): Add stddef.
43776         * modules/stdio (Depends-on): Likewise.
43777         * modules/stdlib (Depends-on): Likewise.
43778         * modules/string (Depends-on): Likewise.
43779         * modules/time (Depends-on): Likewise.
43780         * modules/unistd (Depends-on): Likewise.
43781         * modules/wchar (Depends-on): Likewise.
43782         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43783         * lib/stdlib.in.h (includes): Likewise.
43784         * lib/string.in.h (includes): Likewise.
43785         * lib/time.in.h (includes): Likewise.
43786         * lib/unistd.in.h (includes): Likewise.
43787         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43788         replaced.
43789         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43790         * m4/stddef_h.m4: New file.
43791         * modules/stddef: Likewise.
43792         * lib/stddef.in.h: Likewise.
43793         * modules/stddef-tests: Likewise.
43794         * tests/test-stddef.c: Likewise.
43795         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43796         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43797         * doc/posix-headers/locale.texi (locale.h): Likewise.
43798         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43799         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43800         * doc/posix-headers/string.texi (string.h): Likewise.
43801         * doc/posix-headers/time.texi (time.h): Likewise.
43802         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43803         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43804
43805 2009-08-14  Eric Blake  <ebb9@byu.net>
43806
43807         doc: improve git diff of texinfo files
43808         * .gitattributes: Add rule for *.texi files, with hint on how to
43809         use it.
43810         Copied from m4, and based on a report by Bruno Haible.
43811
43812 2009-08-14  Bruno Haible  <bruno@clisp.org>
43813
43814         Disable multithread support by default on Cygwin 1.5.x for real.
43815         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43816
43817 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43818
43819         update-copyright: much ado about intervals
43820         * build-aux/update-copyright: Implement and document
43821         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43822         of copyright year intervals.
43823         Also, document UPDATE_COPYRIGHT_YEAR.
43824         * tests/test-update-copyright.sh: Test it.
43825
43826         update-copyright: convert 2-digit to 4-digit years
43827         * build-aux/update-copyright: Implement and document.
43828         * tests/test-update-copyright.sh: Update.
43829
43830 2009-08-14  Jim Meyering  <meyering@redhat.com>
43831
43832         test-exclude: avoid coreutils "make check" failure
43833         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43834         just as in test-argmatch.c.
43835
43836 2009-08-13  Eric Blake  <ebb9@byu.net>
43837
43838         test-dup2: fix bad assumption
43839         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43840         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43841
43842         test-version-etc: fix CRLF portability issue
43843         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43844         recognize \r.
43845         * tests/test-argp-version-etc-1.sh: Likewise.
43846
43847         getopt: update client modules
43848         * modules/argp (Depends-on): Use getopt-gnu.
43849         * modules/git-merge-changelog (Depends-on): Likewise.
43850         * modules/long-options (Depends-on): Likewise.
43851         * modules/xstrtol (Depends-on): Likewise.
43852
43853 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43854
43855         * tests/test-version-etc.sh: Don't fail on different
43856         project/version.  Don't fail on CRLF differences.  Rewrite to use
43857         multiple -e instead of multiple sed forks, suggested by Eric Blake
43858         <ebb9@byu.net>.
43859         * tests/test-argp-version-etc-1.sh: Likewise.
43860
43861 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43862
43863         * tests/test-version-etc.sh: Don't fail on different
43864         project/version.
43865
43866 2009-08-12  Bruno Haible  <bruno@clisp.org>
43867
43868         Tests for modules 'getopt-posix', 'getopt-gnu'.
43869         * modules/getopt-posix-tests: New file.
43870         * tests/test-getopt.c: New file.
43871         * tests/test-getopt.h: New file.
43872         * tests/test-getopt_long.h: New file.
43873
43874         New modules 'getopt-posix', 'getopt-gnu'.
43875         * modules/getopt-gnu: New file, renamed from modules/getopt.
43876         * modules/getopt-posix: New file.
43877         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43878         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43879         (gl_GETOPT): Remove macro.
43880         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43881         Disable the test against BSD systems that declare optreset. Test
43882         against mingw bug. Test against lack of support of optional arguments
43883         on many platforms.
43884         * doc/glibc-headers/getopt.texi: Update module name and list of
43885         relevant platforms.
43886         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43887         'getopt-gnu' and more portability problems.
43888         * NEWS: Mention the changes.
43889
43890 2009-08-12  Bruno Haible  <bruno@clisp.org>
43891
43892         Ensure that optarg etc. get declared by <unistd.h>.
43893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43894         AC_USE_SYSTEM_EXTENSIONS.
43895         * modules/getopt (Depends-on): Add 'extensions'.
43896
43897 2009-08-12  Bruno Haible  <bruno@clisp.org>
43898
43899         Avoid test link errors.
43900         * modules/pipe-filter-ii-tests (Makefile.am): Define
43901         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43902         * modules/pipe-filter-gi-tests (Makefile.am): Define
43903         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43905
43906 2009-08-12  Bruno Haible  <bruno@clisp.org>
43907
43908         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43909         gl_GETOPT_SUBSTITUTE before.
43910         (gl_GETOPT): Use it.
43911         * m4/argp.m4 (gl_ARGP): Update.
43912         Reported by Sergey Poznyakoff.
43913
43914         * m4/getopt.m4: Reorder macros.
43915         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43916         (gl_GETOPT_SUBSTITUTE): Remove macro.
43917
43918 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43919
43920         Minor improvement in gitlog-to-changelog
43921
43922         * build-aux/gitlog-to-changelog: New option `--format' makes
43923         output format string configurable.
43924
43925 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43926
43927         Optimize exclude: use hash tables for non-wildcard patterns.
43928
43929         * lib/exclude.c: Include hash.h and mbuiter.h
43930         (struct exclude_pattern, exclude_segment): New data types.
43931         (struct exclude): Rewrite.
43932         (fnmatch_pattern_has_wildcards): New function.
43933         (new_exclude_segment, free_exclude_segment): New functions.
43934         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43935         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43936         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43937         * modules/exclude: Depend on hash and mbuiter.
43938
43939         * modules/exclude-tests: New file.
43940         * tests/test-exclude.c: New file.
43941         * tests/test-exclude1.sh: New file.
43942         * tests/test-exclude2.sh: New file.
43943         * tests/test-exclude3.sh: New file.
43944         * tests/test-exclude4.sh: New file.
43945         * tests/test-exclude5.sh: New file.
43946         * tests/test-exclude6.sh: New file.
43947         * tests/test-exclude7.sh: New file.
43948
43949 2009-08-12  Bruno Haible  <bruno@clisp.org>
43950
43951         Ensure that getopt() gets declared by <unistd.h>.
43952         * lib/unistd.in.h: Conditionally include getopt.h.
43953         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43954         Set GNULIB_UNISTD_H_GETOPT.
43955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43956         GNULIB_UNISTD_H_GETOPT.
43957         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43958
43959 2009-08-12  Bruno Haible  <bruno@clisp.org>
43960
43961         Clarify logic.
43962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43963         gl_replace_getopt instead of GETOPT_H.
43964
43965 2009-08-12  Bruno Haible  <bruno@clisp.org>
43966
43967         * m4/getopt.m4: Add comments.
43968
43969 2009-08-12  Bruno Haible  <bruno@clisp.org>
43970
43971         Disable multithread support by default on Cygwin 1.5.x.
43972         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43973         set gl_use_threads=no if not specified otherwise.
43974
43975 2009-08-11  Bruno Haible  <bruno@clisp.org>
43976
43977         Avoid compilation error on NetBSD 5.0.
43978         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43979         * tests/test-stdio.c: Likewise.
43980         * tests/test-stdlib.c: Likewise.
43981         * tests/test-string.c: Likewise.
43982         * tests/test-unistd.c: Likewise.
43983         Reported by Greg Troxel <gdt@ir.bbn.com>
43984         at <https://savannah.gnu.org/support/?106973>.
43985
43986 2009-08-11  Bruno Haible  <bruno@clisp.org>
43987
43988         * modules/dup2-tests (Depends-on): Remove close.
43989
43990         Undo 2009-07-19 commit.
43991         * modules/acl-tests (Depends-on): Remove close.
43992         * modules/binary-io-tests (Depends-on): Likewise.
43993         * modules/closein-tests (Depends-on): Likewise.
43994         * modules/flock-tests (Depends-on): Likewise.
43995         * modules/fsync-tests (Depends-on): Likewise.
43996         * modules/lseek-tests (Depends-on): Likewise.
43997         * modules/pipe-tests (Depends-on): Likewise.
43998         * modules/posix_spawn-tests (Depends-on): Likewise.
43999         * modules/posix_spawnp-tests (Depends-on): Likewise.
44000         * modules/stat-time-tests (Depends-on): Likewise.
44001         * modules/yesno-tests (Depends-on): Likewise.
44002
44003 2009-08-10  Bruno Haible  <bruno@clisp.org>
44004
44005         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44006
44007 2009-08-10  Bruno Haible  <bruno@clisp.org>
44008
44009         Fix a gcc warning.
44010         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44011
44012 2009-08-10  Bruno Haible  <bruno@clisp.org>
44013
44014         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44015         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44016         not only the first time.
44017         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44018         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44019         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44020         is 1, not only the the first time.
44021
44022 2009-08-10  Bruno Haible  <bruno@clisp.org>
44023
44024         Make it possible to use module 'gethostname' without module 'close'.
44025         * lib/unistd.in.h (close): Evoke a link error only if
44026         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44028         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44029         * modules/unistd (Makefile.am): Substitute
44030         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44031         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44032         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44033         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44034         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44035         * modules/sys_ioctl (Makefile.am): Substitute
44036         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44037         * modules/socket (configure.ac): On native Windows, set
44038         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44039         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44040         Reported by Sam Steingold <sds@gnu.org>.
44041
44042 2009-08-10  Bruno Haible  <bruno@clisp.org>
44043
44044         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44045         * modules/ioctl (configure.ac): Likewise.
44046
44047 2009-08-10  Bruno Haible  <bruno@clisp.org>
44048
44049         Avoid collision between gnulib wrapper and libintl wrapper.
44050         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44051         already defined in intl/printf.c.
44052         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44053         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44054
44055 2009-08-09  Bruno Haible  <bruno@clisp.org>
44056
44057         Make <sys/select.h> really self-contained, also on Solaris 10.
44058         * lib/sys_select.in.h: Include <string.h>.
44059         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44060         Solaris 10 problem.
44061         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44062         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44063         Reported by Jim Meyering.
44064
44065 2009-08-09  Bruno Haible  <bruno@clisp.org>
44066
44067         Avoid warnings from 'aclocal' that are due to a use of macro name
44068         AM_XGETTEXT_OPTION that is not defined in automake.
44069         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44070         automake.
44071         * modules/error (configure.ac): Likewise.
44072         * modules/propername (configure.ac): Likewise.
44073         * modules/vasprintf (configure.ac): Likewise.
44074         * modules/verror (configure.ac): Likewise.
44075         * modules/xprintf (configure.ac): Likewise.
44076         * modules/xvasprintf (configure.ac): Likewise.
44077
44078 2009-08-08  Bruno Haible  <bruno@clisp.org>
44079
44080         Avoid compilation error in C++ mode.
44081         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44082         Reported by Sam Steingold <sds@gnu.org>.
44083
44084 2009-08-08  Bruno Haible  <bruno@clisp.org>
44085
44086         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44087         for the various Unix platforms.
44088         * doc/posix-headers/limits.texi: Update platforms list regarding
44089         HOST_NAME_MAX.
44090         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44091
44092 2009-08-07  Jim Meyering  <meyering@redhat.com>
44093
44094         selinux-at: fix typo in a comment
44095         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44096         Spotted by Paolo Bonzini.
44097
44098         selinux-at: remove redundant m4 code, add documentation
44099         * modules/selinux-at (configure.ac): Remove redundant code.
44100         LIB_SELINUX is already set via the dependent module, selinux-h.
44101         (Include): Add quotes around selinux-at.h.
44102         * lib/selinux-at.h: Add documentation.
44103         Reported by Bruno Haible in
44104         http://marc.info/?l=gnulib-bug&m=124958988300749
44105
44106 2009-08-07  Bruno Haible  <bruno@clisp.org>
44107
44108         Avoid link error on MacOS X 10.3 and 10.4.
44109         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44110         on non-ELF systems.
44111         * lib/argp-pv.c (argp_program_version): Likewise.
44112         Reported by Simon Josefsson.
44113
44114 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44115
44116         * tests/test-version-etc.sh: Use $EXEEXT.
44117
44118 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44119
44120         update-copyright: update documentation to point to maint.mk
44121         * build-aux/update-copyright: Here.
44122
44123 2009-08-06  Jim Meyering  <meyering@redhat.com>
44124
44125         maint.mk: support update-copyright-local
44126         * top/maint.mk (update-copyright-local): Define place-holder.
44127         (update-copyright): Depend on $(update-copyright-local).
44128
44129 2009-08-06  Jim Meyering  <meyering@redhat.com>
44130
44131         selinux-at: new module
44132         Initially written for coreutils, this module will soon be
44133         used by findutils, too.
44134         * MODULES.html.sh [Misc]: Add selinux-at.
44135         * lib/selinux-at.h: New file, from coreutils.
44136         * lib/selinux-at.c: Likewise.
44137         * modules/selinux-at: Likewise.
44138         (License): Change from LGPL to GPL, since it depends
44139         on the GPL'd openat module.
44140
44141         doc: update README
44142         * README: Remove references to cogito.
44143         Remove cvs-repo-updating instructions from 2007.
44144         Don't imply that CVS is better if you have limited disk space.
44145
44146 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44147
44148         update-copyright: support C-style comments
44149         * build-aux/update-copyright: Implement and document.
44150         * tests/test-update-copyright.sh: Test.
44151
44152 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44153
44154         update-copyright: support omitted "(C)"
44155         * build-aux/update-copyright: Implement and document.  Also,
44156         allow variable whitespace before "(C)".
44157         * tests/test-update-copyright.sh: Test.
44158
44159 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44160
44161         update-copyright: don't trip on non-FSF copyright statements
44162         * build-aux/update-copyright: Fix so that the first correctly
44163         formatted FSF copyright statement is recognized no matter what
44164         appears before it.  Update documentation.
44165         * tests/test-update-copyright.sh: Test that.
44166
44167 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44168
44169         update-copyright: clean up code a little
44170         * build-aux/update-copyright: Append "_re" to the name of any
44171         variable holding a regular expression.
44172         Replace "old" and "new" with "stmt" in variable names.
44173         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44174         handled correctly.
44175         Format code more consistently.
44176
44177 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44178
44179         update-copyright-tests: improve portability
44180         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44181         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44182
44183 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44184
44185         update-copyright: support @copyright{} and &copy;
44186         * build-aux/update-copyright: Implement and document.
44187         * tests/test-update-copyright.sh: Test.
44188
44189 2009-08-04  Jim Meyering  <meyering@redhat.com>
44190
44191         update-copyright-tests: correctly test EOL=\r\n handling
44192         * tests/test-update-copyright.sh: Put \r at the end of some lines
44193         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44194
44195         maint.mk: make update-copyright exclusion list more configurable
44196         * top/maint.mk (update-copyright): Default to excluding COPYING,
44197         but allow an override, in case someone does want to update that file.
44198
44199         maint.mk: don't update copyright date in COPYING
44200         * top/maint.mk (update-copyright): Exclude COPYING.
44201
44202         maint.mk: add a copyright-updating rule
44203         * top/maint.mk (update-copyright): New rule.
44204         Derived from coreutils/Makefile.am.
44205
44206         update-copyright: rename some variables
44207         * build-aux/update-copyright: Rename a few variables for clarity.
44208         Tweak syntax.  List Joel E. Denny as coauthor.
44209
44210 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44211
44212         update-copyright: fix bug for 2-digit last year and add tests
44213         * build-aux/update-copyright: Fix bug.
44214         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44215         specified.
44216         * modules/update-copyright-tests: New
44217         * tests/test-update-copyright.sh: New.
44218
44219 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44220
44221         update-copyright: handle leading tabs in line prefix
44222         * build-aux/update-copyright: Count leading tabs as 8 spaces
44223         when computing margin.  This helps with the formatting of
44224         ChangeLogs, for example.
44225         Fix documentation a little.
44226
44227 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44228
44229         update-copyright: support EOL=\r\n
44230         * build-aux/update-copyright: Implement that.
44231
44232 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44233
44234         update-copyright: automatically format copyright statements
44235         * build-aux/update-copyright: Implement that.
44236         Also, be a little more predictable and safer by always failing
44237         when the full copyright format is not perfectly recognized as an
44238         unbroken whole.  Discussed at
44239         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44240         Rewrite documentation.
44241
44242 2009-08-03  Bruno Haible  <bruno@clisp.org>
44243
44244         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44245
44246 2009-08-02  Bruno Haible  <bruno@clisp.org>
44247
44248         Tests for module 'uname'.
44249         * modules/uname-tests: New file.
44250         * tests/test-uname.c: New file.
44251
44252         New module 'uname'.
44253         * lib/uname.c: New file.
44254         * m4/uname.m4: New file.
44255         * modules/uname: New file.
44256         * doc/posix-functions/uname.texi: Mention the new module.
44257
44258 2009-08-02  Bruno Haible  <bruno@clisp.org>
44259
44260         Tests for module 'sys_utsname'.
44261         * modules/sys_utsname-tests: New file.
44262         * tests/test-sys_utsname.c: New file.
44263
44264         New module 'sys_utsname'.
44265         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44266         * m4/sys_utsname_h.m4: New file.
44267         * modules/sys_utsname: New file.
44268         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44269
44270 2009-08-02  Bruno Haible  <bruno@clisp.org>
44271
44272         Implicitly initialize the sockets library.
44273         * lib/gethostname.c: Include sockets.h.
44274         (rpl_gethostname): Invoke gl_sockets_startup.
44275         * lib/socket.c: Include sockets.h.
44276         (rpl_socket): Invoke gl_sockets_startup.
44277         * modules/gethostname (Depends-on): Add sockets.
44278         * modules/socket (Depends-on): Likewise.
44279         * tests/test-poll.c: Don't include sockets.h.
44280         (main): Don't invoke gl_sockets_startup.
44281         * tests/test-select.c: Don't include sockets.h.
44282         (main): Don't invoke gl_sockets_startup.
44283
44284 2009-08-02  Bruno Haible  <bruno@clisp.org>
44285
44286         Allow multiple calls to gl_sockets_startup.
44287         * lib/sockets.c (initialized_sockets_version): New variable.
44288         (gl_sockets_startup): Do nothing if already called for this or a higher
44289         version.
44290         (gl_sockets_cleanup): Reset initialized_sockets_version.
44291
44292 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44293
44294         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44295         different project/version.
44296
44297 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44298             Bruno Haible  <bruno@clisp.org>
44299
44300         Tests for module 'pipe-filter-gi'.
44301         * modules/pipe-filter-gi-tests: New file.
44302         * tests/test-pipe-filter-gi1.sh: New file.
44303         * tests/test-pipe-filter-gi1.c: New file.
44304         * tests/test-pipe-filter-gi2.sh: New file.
44305         * tests/test-pipe-filter-gi2-main.c: New file.
44306         * tests/test-pipe-filter-gi2-child.c: New file.
44307
44308         New module 'pipe-filter-gi'.
44309         * lib/pipe-filter-gi.c: New file.
44310         * modules/pipe-filter-gi: New file.
44311
44312 2009-08-02  Bruno Haible  <bruno@clisp.org>
44313             Paolo Bonzini  <bonzini@gnu.org>
44314
44315         Tests for module 'pipe-filter-ii'.
44316         * modules/pipe-filter-ii-tests: New file.
44317         * tests/test-pipe-filter-ii1.sh: New file.
44318         * tests/test-pipe-filter-ii1.c: New file.
44319         * tests/test-pipe-filter-ii2.sh: New file.
44320         * tests/test-pipe-filter-ii2-main.c: New file.
44321         * tests/test-pipe-filter-ii2-child.c: New file.
44322
44323         New module 'pipe-filter-ii'.
44324         * lib/pipe-filter.h: New file.
44325         * lib/pipe-filter-ii.c: New file.
44326         * lib/pipe-filter-aux.h: New file.
44327         * modules/pipe-filter-ii: New file.
44328
44329 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44330
44331         * lib/gc-libgcrypt.c: Change copyright to FSF.
44332         * lib/gc-gnulib.c: Likewise.
44333
44334 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44335
44336         * lib/gethostname.c: Include limits.h.
44337
44338 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44339             Bruno Haible  <bruno@clisp.org>
44340
44341         Ensure HOST_NAME_MAX as part of the gethostname module.
44342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44343         define also HOST_NAME_MAX.
44344         * tests/test-gethostname.c: Include <limits.h>.
44345         (main): Check also HOST_NAME_MAX.
44346         * doc/posix-headers/limits.texi: Document the mingw problem.
44347
44348 2009-08-02  Bruno Haible  <bruno@clisp.org>
44349
44350         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44351         Add comments.
44352
44353 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44354
44355         * lib/gethostname.c: Add Windows wrapper.
44356         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44357         * modules/gethostname: Depend on sys_socket & errno, for also
44358         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44359         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44360
44361 2009-07-31  Jim Meyering  <meyering@redhat.com>
44362
44363         getloadavg: fix symbol name in comment
44364         * lib/getloadavg.c: Correct a typo I introduced when adding
44365         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44366         Matt Kraai spotted the problem.
44367
44368 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44369
44370         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44371         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44372         code also if ! defined N_NAME_POINTER.
44373         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44374         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44375         but the n_name member is a 12-byte array.
44376
44377 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44378
44379         update-copyright: generalize comment handling
44380         * build-aux/update-copyright: Handle copyright statements
44381         within more comment styles.
44382         Document usage.
44383         Report any file with an external copyright holder or parse failure.
44384
44385 2009-07-29  Jim Meyering  <meyering@redhat.com>
44386
44387         mktime: correct setting of REPLACE_MKTIME
44388         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44389
44390         update-copyright: new module
44391         * modules/update-copyright: New file.
44392         * build-aux/update-copyright: New file.
44393         * MODULES.html.sh (maint+release support): Add update-copyright.
44394
44395 2009-07-27  Bruno Haible  <bruno@clisp.org>
44396
44397         Fix compilation error when <ctime> is used and mktime is replaced.
44398         * lib/time.in.h (mktime): New declaration.
44399         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44400         REPLACE_MKTIME instead of defining mktime in config.h.
44401         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44402         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44403         Reported by Ross McFarland <rwmcfa1@neces.com>.
44404
44405 2009-07-27  Bruno Haible  <bruno@clisp.org>
44406
44407         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44408         Reported by Matt Kraai <mkraai@beckman.com>.
44409
44410 2009-07-25  Jim Meyering  <meyering@redhat.com>
44411
44412         maint.mk: avoid warnings about missing files
44413         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44414         diagnostic when .prev-version does not exist.
44415         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44416         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44417         nonexistent cfg.mk.
44418         Suggestions from Simon Josefsson.
44419
44420 2009-07-25  Bruno Haible  <bruno@clisp.org>
44421
44422         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44423         defined as macros. Needed on QNX 6.4.1.
44424         Reported by Matt Kraai <mkraai@beckman.com>.
44425
44426 2009-07-23  Jim Meyering  <meyering@redhat.com>
44427
44428         maint.mk: invoke "make dist" with a working value of XZ_OPT
44429         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44430
44431 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44432
44433         Make fseeko.c compile on QNX.
44434         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44435
44436 2009-07-22  Peter Simons  <simons@cryp.to>
44437
44438         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44439         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44440         * lib/md4.h: Likewise.
44441         * lib/md5.h: Likewise.
44442         * lib/sha1.h: Likewise.
44443         * lib/sha256.h: Likewise.
44444         * lib/sha512.h: Likewise.
44445
44446         tests-sha1: don't assign literal string to 'char *' variable
44447         * tests/test-sha1.c (main): Declare locals with "const" to match
44448         attributes of the right hand side.
44449
44450 2009-07-21  Eric Blake  <ebb9@byu.net>
44451
44452         dup2: fix more mingw problems
44453         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44454         fd to itself.
44455         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44456         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44457         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44458         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44459         care of mingw bugs.
44460
44461 2009-07-21  Jim Meyering  <meyering@redhat.com>
44462
44463         vc-list-files: avoid failure when /bin/sh is dash
44464         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44465         On some Debian based systems, /bin/sh is a symlink to dash, and running
44466         this command would omit the "/" following each 'tests' prefix:
44467           dash -x build-aux/vc-list-files -C . tests
44468         That is because bash and dash work differently:
44469           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44470           bash ok
44471           dash odd
44472
44473 2009-07-21  Eric Blake  <ebb9@byu.net>
44474
44475         dup2-tests: test previous patch
44476         * modules/dup2-tests: New file.
44477         * tests/test-dup2.c: Likewise.
44478         * tests/test-open.c (main): Avoid unspecified behavior.
44479         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44480         test.
44481
44482         dup2: work around mingw and cygwin 1.5 bug
44483         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44485         * modules/unistd (Makefile.am): Substitute it.
44486         * lib/unistd.in.h (dup2): Declare the replacement.
44487         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44488         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44489         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44490         * modules/execute (Depends-on): Add dup2.
44491         * modules/fseterr (Depends-on): Likewise.
44492         * modules/pipe (Depends-on): Likewise.
44493         * modules/posix_spawn-internal (Depends-on): Likewise.
44494
44495 2009-07-21  Bruno Haible  <bruno@clisp.org>
44496
44497         * modules/.gitattributes: New file.
44498
44499 2009-07-20  Bruno Haible  <bruno@clisp.org>
44500
44501         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44502         (main): Use it.
44503
44504 2009-07-20  Eric Blake  <ebb9@byu.net>
44505
44506         test-pipe: make a bit more robust.
44507         * tests/test-pipe.c (myerr): Allow error messages regardless of
44508         what we do to stderr.
44509         (test_pipe): Rearrange to avoid deadlock.
44510         (child_main): Try a larger read, to ensure we avoided deadlock.
44511         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44512         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44513         if misused.
44514
44515 2009-07-19  Jim Meyering  <meyering@redhat.com>
44516
44517         fts: avoid false-positive cycle-detection
44518         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44519         for each new command line argument.
44520
44521 2009-07-19  Bruno Haible  <bruno@clisp.org>
44522
44523         Fix build error on mingw with the modules sys_select and unistd.
44524         * modules/acl-tests (Depends-on): Add close.
44525         * modules/binary-io-tests (Depends-on): Likewise.
44526         * modules/closein-tests (Depends-on): Likewise.
44527         * modules/flock-tests (Depends-on): Likewise.
44528         * modules/fsync-tests (Depends-on): Likewise.
44529         * modules/lseek-tests (Depends-on): Likewise.
44530         * modules/pipe-tests (Depends-on): Likewise.
44531         * modules/posix_spawn-tests (Depends-on): Likewise.
44532         * modules/posix_spawnp-tests (Depends-on): Likewise.
44533         * modules/stat-time-tests (Depends-on): Likewise.
44534         * modules/yesno-tests (Depends-on): Likewise.
44535
44536 2009-07-19  Bruno Haible  <bruno@clisp.org>
44537
44538         Unify conditionals.
44539         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44540         macros, not at the compiler macros.
44541         * lib/pipe.c: Likewise.
44542         * lib/execute.c: Likewise.
44543         * lib/spawni.c: Likewise.
44544
44545 2009-07-19  Bruno Haible  <bruno@clisp.org>
44546
44547         Fix handling of closed stdin/stdout/stderr on mingw.
44548         * lib/w32spawn.h: Include unistd.h.
44549         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44550         file descriptor with O_NOINHERIT flag.
44551         (fd_safer_noinherit): New function, based on fd-safer.c.
44552         (dup_safer_noinherit): New function, based on dup-safer.c.
44553         (undup_safer_noinherit): New function.
44554         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44555         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44556         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44557         instead of fd_safer.
44558         * tests/test-pipe.c: Include <windows.h>.
44559         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44560         result.
44561
44562         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44563         from main.
44564         (test_pipe): Pass an extra argument for disambiguation.
44565         (main): Invoke parent_main or child_main.
44566
44567         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44568         consistently.
44569
44570 2009-07-18  Eric Blake  <ebb9@byu.net>
44571
44572         test-pipe: fix mingw build
44573         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44574
44575 2009-07-18  Bruno Haible  <bruno@clisp.org>
44576
44577         * modules/pipe-tests (Makefile.am): Fix typo.
44578
44579 2009-07-18  Eric Blake  <ebb9@byu.net>
44580
44581         error: fix mingw build
44582         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44583         Reported by Bruno Haible.
44584
44585         error: avoid undefined use of stdout
44586         * lib/error.c (error, error_at_line): Check that fd 1 is open
44587         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44588         is handling faults and the close_stdout module wants to report the
44589         detection of closed stdout as an error.
44590
44591 2009-07-17  Eric Blake  <ebb9@byu.net>
44592
44593         pipe: be robust in face of closed fds
44594         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44595         should cause child to misbehave.
44596         * modules/pipe-tests: New module.
44597         * tests/test-pipe.c: New file.
44598         * tests/test-pipe.sh: New file.
44599         Reported by Akim Demaille.
44600
44601 2009-07-14  Bruno Haible  <bruno@clisp.org>
44602
44603         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44604         Reported by anonymous kc.
44605
44606 2009-07-07  Jim Meyering  <meyering@redhat.com>
44607
44608         maint.mk: don't look for translatable strings in *.m4 or *.mk
44609         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44610         when searching for translatable strings.
44611
44612 2009-07-05  Jim Meyering  <meyering@redhat.com>
44613
44614         remove superfluous parentheses in STREQ definition
44615         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44616         * lib/getugroups.c (STREQ): Likewise.
44617         * lib/fnmatch.c (STREQ): Likewise.
44618         Spotted by Bruno Haible.
44619
44620 2009-07-04  Jim Meyering  <meyering@redhat.com>
44621
44622         argv-iter: new module
44623         * MODULES.html.sh: Add argv-iter.
44624         * lib/argv-iter.c, lib/argv-iter.h: New files.
44625         * modules/argv-iter: New file.
44626         * modules/argv-iter-tests: New file.
44627         * tests/test-argv-iter.c: Test it.
44628
44629 2009-07-04  Bruno Haible  <bruno@clisp.org>
44630
44631         Fix assertion.
44632         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44633         contains more exact copies of a given entry than file2, leave the extra
44634         copies unpaired rather than aborting.
44635         Reported by Eric Blake.
44636
44637 2009-07-02  Bruno Haible  <bruno@clisp.org>
44638
44639         Speedup git-merge-changelog for git cherry-pick.
44640         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44641         (entries_mapping_get): New function, extracted from compute_mapping.
44642         (entries_mapping_reverse_get): New function.
44643         (compute_mapping): Add a 'full' argument. Return the result in a
44644         'struct entries_mapping'.
44645         (main): Update. Access the mappings through entries_mapping_get.
44646         Reported by Eric Blake.
44647
44648 2009-07-02  Bruno Haible  <bruno@clisp.org>
44649
44650         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44651         best_i.
44652
44653 2009-07-02  Bruno Haible  <bruno@clisp.org>
44654
44655         Speed up approximate search for matching ChangeLog entries.
44656         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44657         argument. Call fstrcmp_bounded instead of fstrcmp.
44658         (compute_mapping, try_split_merged_entry, main): Update callers.
44659
44660 2009-07-02  Bruno Haible  <bruno@clisp.org>
44661
44662         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44663
44664 2009-06-30  Bruno Haible  <bruno@clisp.org>
44665
44666         Reduce the number of uc_is_cased calls.
44667         * lib/unicase.h (casing_suffix_context_t): Add
44668         'first_char_except_ignorable' field.
44669         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44670         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44671         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44672         Update initializer.
44673         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44674         case-ignorable characters.
44675         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44676         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44677         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44678         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44679         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44680
44681 2009-06-30  Bruno Haible  <bruno@clisp.org>
44682
44683         Tests for module 'unicase/ignorable'.
44684         * modules/unicase/ignorable-tests: New file.
44685         * tests/unicase/test-ignorable.c: New file, generated by
44686         gen-uni-tables.
44687
44688         Tests for module 'unicase/cased'.
44689         * modules/unicase/cased-tests: New file.
44690         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44691         * tests/unicase/test-predicate-part1.h: New file, derived from
44692         tests/unictype/test-predicate-part1.h.
44693         * tests/unicase/test-predicate-part2.h: New file, same as
44694         tests/unictype/test-predicate-part2.h.
44695
44696         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44697         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44698         (output_casing_properties): New function.
44699         (main): Call it.
44700         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44701         * lib/unicase/cased.c: Include unictype/bitmap.h.
44702         (uc_is_cased): Define through a bitmap lookup.
44703         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44704         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44705         (uc_is_case_ignorable): Define through a bitmap lookup.
44706         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44707         lib/unictype/bitmap.h.
44708         (Depends-on): Add inline. Clean up.
44709         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44710         lib/unictype/bitmap.h.
44711         (Depends-on): Add inline. Clean up.
44712         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44713         recognition.
44714         * tests/unicase/test-u16-tolower.c (main): Likewise.
44715         * tests/unicase/test-u32-tolower.c (main): Likewise.
44716
44717 2009-06-30  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44720         * lib/unicase/u16-casemap.c: Likewise.
44721         * lib/unicase/u32-casemap.c: Likewise.
44722
44723 2009-06-29  Bruno Haible  <bruno@clisp.org>
44724
44725         Define u32_casefold as a wrapper around u32_ct_casefold.
44726         * lib/unicase/u32-casefold.c: Update.
44727         * modules/unicase/u32-casefold (Depends-on): Add
44728         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44729         unicase/empty-suffix-context. Clean up.
44730
44731         Define u16_casefold as a wrapper around u16_ct_casefold.
44732         * lib/unicase/u16-casefold.c: Update.
44733         * modules/unicase/u16-casefold (Depends-on): Add
44734         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44735         unicase/empty-suffix-context. Clean up.
44736
44737         Define u8_casefold as a wrapper around u8_ct_casefold.
44738         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44739         * lib/unicase/u8-casefold.c: Update.
44740         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44741         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44742
44743         Define u32_totitle as a wrapper around u32_ct_totitle.
44744         * lib/unicase/u32-totitle.c: Update.
44745         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44746         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44747
44748         Define u16_totitle as a wrapper around u16_ct_totitle.
44749         * lib/unicase/u16-totitle.c: Update.
44750         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44751         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44752
44753         Define u8_totitle as a wrapper around u8_ct_totitle.
44754         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44755         functions.
44756         (FUNC): Delegate to U_CT_TOTITLE.
44757         * lib/unicase/u8-totitle.c: Update.
44758         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44759         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44760
44761         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44762         invocation.
44763         * modules/unicase/u32-tolower (Depends-on): Add
44764         unicase/empty-prefix-context, unicase/empty-suffix-context.
44765
44766         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44767         invocation.
44768         * modules/unicase/u16-tolower (Depends-on): Add
44769         unicase/empty-prefix-context, unicase/empty-suffix-context.
44770
44771         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44772         * modules/unicase/u8-tolower (Depends-on): Add
44773         unicase/empty-prefix-context, unicase/empty-suffix-context.
44774
44775         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44776         invocation.
44777         * modules/unicase/u32-toupper (Depends-on): Add
44778         unicase/empty-prefix-context, unicase/empty-suffix-context.
44779
44780         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44781         invocation.
44782         * modules/unicase/u16-toupper (Depends-on): Add
44783         unicase/empty-prefix-context, unicase/empty-suffix-context.
44784
44785         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44786         * modules/unicase/u8-toupper (Depends-on): Add
44787         unicase/empty-prefix-context, unicase/empty-suffix-context.
44788
44789         New module 'unicase/u32-ct-casefold'.
44790         * lib/unicase/u32-ct-casefold.c: New file.
44791         * modules/unicase/u32-ct-casefold: New file.
44792
44793         New module 'unicase/u16-ct-casefold'.
44794         * lib/unicase/u16-ct-casefold.c: New file.
44795         * modules/unicase/u16-ct-casefold: New file.
44796
44797         New module 'unicase/u8-ct-casefold'.
44798         * lib/unicase/u8-ct-casefold.c: New file.
44799         * lib/unicase/u-ct-casefold.h: New file, derived from
44800         lib/unicase/u-casefold.h.
44801         * modules/unicase/u8-ct-casefold: New file.
44802
44803         New module 'unicase/u32-ct-totitle'.
44804         * lib/unicase/u32-ct-totitle.c: New file.
44805         * modules/unicase/u32-ct-totitle: New file.
44806
44807         New module 'unicase/u16-ct-totitle'.
44808         * lib/unicase/u16-ct-totitle.c: New file.
44809         * modules/unicase/u16-ct-totitle: New file.
44810
44811         New module 'unicase/u8-ct-totitle'.
44812         * lib/unicase/u8-ct-totitle.c: New file.
44813         * lib/unicase/u-ct-totitle.h: New file, derived from
44814         lib/unicase/u-totitle.h.
44815         * modules/unicase/u8-ct-totitle: New file.
44816
44817         New module 'unicase/u32-ct-tolower'.
44818         * lib/unicase/u32-ct-tolower.c: New file.
44819         * modules/unicase/u32-ct-tolower: New file.
44820
44821         New module 'unicase/u16-ct-tolower'.
44822         * lib/unicase/u16-ct-tolower.c: New file.
44823         * modules/unicase/u16-ct-tolower: New file.
44824
44825         New module 'unicase/u8-ct-tolower'.
44826         * lib/unicase/u8-ct-tolower.c: New file.
44827         * modules/unicase/u8-ct-tolower: New file.
44828
44829         New module 'unicase/u32-ct-toupper'.
44830         * lib/unicase/u32-ct-toupper.c: New file.
44831         * modules/unicase/u32-ct-toupper: New file.
44832
44833         New module 'unicase/u16-ct-toupper'.
44834         * lib/unicase/u16-ct-toupper.c: New file.
44835         * modules/unicase/u16-ct-toupper: New file.
44836
44837         New module 'unicase/u8-ct-toupper'.
44838         * lib/unicase/u8-ct-toupper.c: New file.
44839         * modules/unicase/u8-ct-toupper: New file.
44840
44841         Add context arguments to u*_casemap functions.
44842         * lib/unicase/unicasemap.h: Include unicase.h.
44843         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44844         suffix_context arguments.
44845         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44846         functions.
44847         (FUNC): Add prefix_context and suffix_context arguments. Use
44848         uc_is_cased and uc_is_case_ignorable.
44849         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44850         * lib/unicase/u16-casemap.c: Likewise.
44851         * lib/unicase/u32-casemap.c: Likewise.
44852         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44853         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44854         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44855         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44856         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44857         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44858
44859         New module 'unicase/u32-suffix-context'.
44860         * lib/unicase/u32-suffix-context.c: New file.
44861         * modules/unicase/u32-suffix-context: New file.
44862
44863         New module 'unicase/u16-suffix-context'.
44864         * lib/unicase/u16-suffix-context.c: New file.
44865         * modules/unicase/u16-suffix-context: New file.
44866
44867         New module 'unicase/u8-suffix-context'.
44868         * lib/unicase/u8-suffix-context.c: New file.
44869         * lib/unicase/u-suffix-context.h: New file.
44870         * modules/unicase/u8-suffix-context: New file.
44871
44872         New module 'unicase/empty-suffix-context'.
44873         * lib/unicase/empty-suffix-context.c: New file.
44874         * modules/unicase/empty-suffix-context: New file.
44875
44876         New module 'unicase/u32-prefix-context'.
44877         * lib/unicase/u32-prefix-context.c: New file.
44878         * modules/unicase/u32-prefix-context: New file.
44879
44880         New module 'unicase/u16-prefix-context'.
44881         * lib/unicase/u16-prefix-context.c: New file.
44882         * modules/unicase/u16-prefix-context: New file.
44883
44884         New module 'unicase/u8-prefix-context'.
44885         * lib/unicase/u8-prefix-context.c: New file.
44886         * lib/unicase/u-prefix-context.h: New file.
44887         * lib/unicase/context.h: New file.
44888         * modules/unicase/u8-prefix-context: New file.
44889
44890         New module 'unicase/empty-prefix-context'.
44891         * lib/unicase/empty-prefix-context.c: New file.
44892         * modules/unicase/empty-prefix-context: New file.
44893
44894         New module 'unicase/ignorable'.
44895         * lib/unicase/ignorable.c: New file.
44896         * modules/unicase/ignorable: New file.
44897
44898         New module 'unicase/cased'.
44899         * lib/unicase/caseprop.h: New file.
44900         * lib/unicase/cased.c: New file.
44901         * modules/unicase/cased: New file.
44902
44903         New functions for case mapping of substrings.
44904         * lib/unicase.h (casing_prefix_context_t): New type.
44905         (unicase_empty_prefix_context): New variable.
44906         (u8_casing_prefix_context, u16_casing_prefix_context,
44907         u32_casing_prefix_context, u8_casing_prefixes_context,
44908         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44909         declarations.
44910         (casing_suffix_context_t): New type.
44911         (unicase_empty_suffix_context): New variable.
44912         (u8_casing_suffix_context, u16_casing_suffix_context,
44913         u32_casing_suffix_context, u8_casing_suffixes_context,
44914         u16_casing_suffixes_context, u32_casing_suffixes_context,
44915         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44916         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44917         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44918         declarations.
44919
44920 2009-06-28  Jim Meyering  <meyering@redhat.com>
44921
44922         boostrap: indent only with spaces
44923         * build-aux/bootstrap: Indent only with spaces, never TABs.
44924
44925         bootstrap: split long lines
44926         * build-aux/bootstrap: Keep line length < 80.
44927
44928         bootstrap: sync from coreutils
44929         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44930         just as autoreconf does.  Verify a list of prerequisite
44931         package-name,version-number pairs if defined in bootstrap.conf.
44932         Refer to README-prereq, if prerequisites are not satisfied.
44933
44934 2009-06-27  Eric Blake  <ebb9@byu.net>
44935
44936         tests: add test for bogus NULL definition
44937         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44938         * tests/test-stdlib.c: Likewise.
44939         * tests/test-string.c: Likewise.
44940         * tests/test-locale.c: Likewise.
44941         * tests/test-unistd.c: Likewise.
44942         * modules/stdio-tests (Depends-on): Add verify.
44943         * modules/stdlib-tests (Depends-on): Likewise.
44944         * modules/string-tests (Depends-on): Likewise.
44945         * modules/locale-tests (Depends-on): Likewise.
44946         * modules/unistd-tests (Depends-on): Likewise.
44947
44948 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44949
44950         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44951         self-explaining comment.
44952         * m4/selinux-selinux-h: Update serial.
44953         (gl_LIBSELINUX): New macro, adding a warning for missing development
44954         packages to code extracted from...
44955         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44956         Add warning for missing development packages here, too.
44957
44958 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44959
44960         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44961
44962 2009-06-25  Eric Blake  <ebb9@byu.net>
44963
44964         version-etc: fix regression
44965         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44966         gcc.
44967         (version_etc): Use it, to catch bugs with trailing NULL.
44968         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44969         (version_etc_va): Fix logic bug.
44970         * modules/version-etc-tests: Add test.
44971         * tests/test-version-etc.c: New file.
44972         * tests/test-version-etc.sh: Likewise.
44973
44974 2009-06-25  Sam Steingold  <sds@gnu.org>
44975
44976         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44977         mbtowc declaration.
44978
44979 2009-06-25  Eric Blake  <ebb9@byu.net>
44980
44981         fpurge: migrate into <stdio.h>
44982         * lib/fpurge.h: Delete...
44983         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44984         * lib/fpurge.c (fpurge): Change declaring header.
44985         * modules/fpurge (Files): Drop deleted file.
44986         (Depends-on): Add stdio.
44987         (configure.ac): Set witness.
44988         * modules/stdio (Makefile.am): Support fpurge macros.
44989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44990         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44991         * lib/fflush.c: Update client.
44992         * tests/test-fpurge.c: Likewise.
44993         * NEWS: Mention the change.
44994
44995 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44996
44997         * lib/argp-version-etc.c (program_authors): Add const
44998         qualifier.
44999         * lib/version-etc.c: Fix typos in the comments.
45000         * modules/argp-version-etc: Depends on version-etc.
45001
45002 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45003
45004         argp-version-etc: new module.
45005
45006         * lib/argp-version-etc.c: New file.
45007         * lib/argp-version-etc.h: New file.
45008         * modules/argp-version-etc: New file.
45009         * modules/argp-version-etc-tests: New file.
45010         * tests/test-argp-version-etc.c: New test.
45011         * tests/test-argp-version-etc-1.sh: New test.
45012
45013 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45014
45015         Provide additional interfaces and documentation for version-etc
45016         module.
45017
45018         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45019         interfaces.
45020         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45021         prototypes.
45022
45023 2009-06-24  Bruno Haible  <bruno@clisp.org>
45024
45025         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45026         HAVE_LIB${NAME} macro.
45027         Reported by Sam Steingold <sds@gnu.org>.
45028
45029 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45030
45031         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45032         needed.
45033
45034 2009-06-21  Bruno Haible  <bruno@clisp.org>
45035
45036         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45037         work.
45038         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45039         together with LIB${NAME}, LTLIB${NAME}.
45040         Reported by Sam Steingold <sds@gnu.org>.
45041
45042 2009-06-20  Jim Meyering  <meyering@redhat.com>
45043
45044         tests: make sc_require_test_exit_idiom more generic
45045         * top/maint.mk (Exit_witness_file): New overridable variable.
45046         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45047         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45048
45049 2009-06-19  Jim Meyering  <meyering@redhat.com>
45050
45051         hash: reverse order of src/dst parameters in an internal interface
45052         * lib/hash.c (transfer_entries): Reverse order of parameters to
45053         put DST before SRC.  Adjust callers.
45054
45055         tests: test-hash: avoid wholesale duplication
45056         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45057         Instead, use a loop and add a single conditional.
45058
45059         tests: test-hash: allow seed selection via a command line argument
45060         * tests/test-hash.c (get_seed): New function.
45061         (main): Use it.
45062
45063 2009-06-19  Eric Blake  <ebb9@byu.net>
45064
45065         hash: avoid memory leak on allocation failure
45066         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45067         failure.  Factor repeated algorithm...
45068         (transfer_entries): ...into new helper routine.
45069         (hash_delete): React to hash_rehash return value.
45070
45071         hash: reduce memory pressure in hash_rehash no-op case
45072         * lib/hash.c (next_prime): Avoid overflow.
45073         (hash_initialize): Factor bucket size computation...
45074         (compute_bucket_size): ...into new helper function.
45075         (hash_rehash): Use new function and open coding to reduce memory
45076         pressure, and avoid a memory leak in USE_OBSTACK code.
45077         Reported by Jim Meyering.
45078
45079 2009-06-18  Eric Blake  <ebb9@byu.net>
45080
45081         hash: make rotation more obvious
45082         * modules/hash (Depends-on): Add bitrotate and stdint.
45083         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45084         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45085         (SIZE_MAX): Rely on headers for definition.
45086         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45087         (raw_hasher): Use rotr_sz.
45088         Suggested by Jim Meyering.
45089
45090         hash: fix memory leak in last patch
45091         * lib/hash.c (hash_rehash): Avoid memory leak.
45092
45093         hash: avoid no-op rehashing
45094         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45095
45096         hash: provide default callback functions
45097         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45098         (hash_initialize): Use them as defaults.
45099         * tests/test-hash.c (main): Test this.
45100
45101         hash: minor optimization
45102         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45103         when possible.
45104         (hash_initialize): Document this promise.
45105         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45106         * tests/test-hash.c (hash_compare_strings): Test this.
45107
45108 2009-06-18  Bruno Haible  <bruno@clisp.org>
45109
45110         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45111         going to be replaced anyway.
45112
45113 2009-06-18  Bruno Haible  <bruno@clisp.org>
45114
45115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45116         in one place.
45117         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45118         be replaced anyway.
45119
45120 2009-06-18  Eric Blake  <ebb9@byu.net>
45121
45122         hash: check for resize before insertion
45123         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45124         threshold before insertion, so that a pathological hash_rehash
45125         that fills every bucket can still trigger another rehash.
45126
45127 2009-06-18  Jim Meyering  <meyering@redhat.com>
45128
45129         hash-tests: add a loop around the small tests
45130         * tests/test-hash.c (main): Repeat small tests with selected
45131         small initial table sizes.
45132
45133 2009-06-17  Eric Blake  <ebb9@byu.net>
45134
45135         hash: minor cleanups
45136         * lib/hash.h (hash_entry): Make opaque, by moving...
45137         * lib/hash.c (hash_entry): ...here.
45138         (hash_insert): Clarify restrictions on what can be inserted.
45139         (hash_get_next): Clarify when it is safe to remove an element
45140         during traversal.
45141         (check_tuning): Skip verification when tuning is known safe.
45142         (hash_initialize): Clarify restrictions on tuning.
45143
45144 2009-06-17  Jim Meyering  <jim@meyering.net>
45145         and Eric Blake  <ebb9@byu.net>
45146
45147         hash-tests: new module
45148         * modules/hash-tests: New file.
45149         * tests/test-hash.c: New file.
45150
45151 2009-06-17  Eric Blake  <ebb9@byu.net>
45152
45153         strstr-simple: document new module
45154         * MODULES.html.sh: Document new module.
45155
45156         strstr, strcasestr: replace on platforms with broken memchr
45157         * modules/strstr: Split into...
45158         * modules/strstr-simple: ...new module that does not care about
45159         performance, but does care about glibc bug.
45160         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45161         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45162         if platform memchr is broken, per Debian bug 521737.
45163         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45164         memchr.
45165         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45166         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45167         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45168         * modules/mountlist (Depends-on): Add strstr-simple.
45169         * modules/gen-uni-tables (Depends-on): Likewise.
45170         * modules/argz (Depends-on): Add strstr.
45171
45172 2009-06-17  Bruno Haible  <bruno@clisp.org>
45173
45174         * modules/posix_spawn-internal (Depends-on): Add errno.
45175
45176 2009-06-17  Bruno Haible  <bruno@clisp.org>
45177
45178         Define missing ESTALE on Interix 3.5.
45179         * lib/errno.in.h (ESTALE): Assign a value if missing.
45180         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45181         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45182         missing.
45183         * doc/posix-headers/errno.texi: Mention the Interix bug.
45184         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45185
45186 2009-06-15  Eric Blake  <ebb9@byu.net>
45187
45188         memchr, memchr2: add valgrind exception
45189         * lib/memchr.valgrind: New file.
45190         * lib/memchr2.valgrind: New file.
45191         * modules/memchr (Files): Distribute valgrind file.
45192         * modules/memchr2 (Files): Likewise.
45193
45194         docs: memchr is no longer obsolete
45195         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45196         * lib/string.in.h (memchr): Simplify logic.
45197
45198 2009-06-14  Jim Meyering  <meyering@redhat.com>
45199
45200         link-follow: fix the "checking..." message to not mention trailing slash
45201         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45202         never considered trailing slashes.
45203
45204 2009-06-14  Bruno Haible  <bruno@clisp.org>
45205
45206         * m4/memchr.m4: Mention also the bug on IA-64.
45207         * doc/posix-functions/memchr.texi: Likewise.
45208
45209 2009-06-12  Eric Blake  <ebb9@byu.net>
45210
45211         memchr: detect broken x86_64 and alpha implementations
45212         * modules/memchr-tests (Depends-on): Move mmap detection...
45213         * modules/memchr (Depends-on): ...here.
45214         (configure.ac): Set indicator.
45215         * lib/string.in.h (memchr): Declare replacement.
45216         * modules/string (Makefile.am): Trigger replacement.
45217         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45218         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45219         bugs.
45220         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45221         * modules/getpagesize (License): Relax license.
45222
45223 2009-06-11  Bruno Haible  <bruno@clisp.org>
45224
45225         * lib/idpriv.h: Add more references.
45226
45227 2009-06-08  Bruno Haible  <bruno@clisp.org>
45228
45229         Tests for module 'idpriv-droptemp'.
45230         * modules/idpriv-droptemp-tests: New file.
45231         * tests/test-idpriv-droptemp.sh: New file.
45232         * tests/test-idpriv-droptemp.su.sh: New file.
45233         * tests/test-idpriv-droptemp.c: New file.
45234
45235         New module 'idpriv-droptemp'.
45236         * lib/idpriv-droptemp.c: New file.
45237         * modules/idpriv-droptemp: New file.
45238
45239 2009-06-08  Bruno Haible  <bruno@clisp.org>
45240
45241         Tests for module 'idpriv-drop'.
45242         * modules/idpriv-drop-tests: New file.
45243         * tests/test-idpriv-drop.sh: New file.
45244         * tests/test-idpriv-drop.su.sh: New file.
45245         * tests/test-idpriv-drop.c: New file.
45246
45247         New module 'idpriv-drop'.
45248         * lib/idpriv.h: New file.
45249         * lib-idpriv-drop.c: New file.
45250         * m4/idpriv.m4: New file.
45251         * modules/idpriv-drop: New file.
45252
45253 2009-06-08  Bruno Haible  <bruno@clisp.org>
45254
45255         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45256         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45257         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45258         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45259         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45260         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45261         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45262
45263 2009-06-08  Eric Blake  <ebb9@byu.net>
45264
45265         test-strstr: use memory fence, when possible
45266         * tests/test-strstr.c (main): Use memory fence, in order to be
45267         more likely to trigger Debian bug 521737.
45268         * modules/strstr-tests (Files): Pull in additional files.
45269
45270         memchr: no longer obsolete, for wider field testing
45271         * modules/memchr (Status, Notice): Delete, this module is no
45272         longer obsolete.
45273         * modules/vasnprintf (Depends-on): Add memchr.
45274
45275 2009-06-07  Jim Meyering  <meyering@redhat.com>
45276
45277         hash: declare some functions with the warn_unused_result attribute
45278         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45279
45280 2009-06-07  Bruno Haible  <bruno@clisp.org>
45281
45282         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45283         Reported by Eric Blake.
45284
45285 2009-06-06  Eric Blake  <ebb9@byu.net>
45286
45287         test-alignof: fix typo with long double
45288         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45289         compiler error.
45290
45291 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45292
45293         Escape non-texinfo { and }s.
45294         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45295         markup error.
45296
45297 2009-06-04  Jim Meyering  <meyering@redhat.com>
45298
45299         gitlog-to-changelog: don't infloop on an empty commit log
45300         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45301         Reported by Boris Petersen <transacid@centerim.org>.
45302
45303 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45304
45305         version-etc: extend for packagers
45306         Add three new configure options, intended for packagers:
45307           --with-packager="packager name"
45308           --with-packager-version="packager-specific version"
45309           --with-packager-bug-reports="packager bug reporting"
45310         An example with coreutils:
45311           $ ./configure \
45312             --with-packager=Gentoo \
45313             --with-packager-bug-report=http://bugs.gentoo.org/ \
45314             --with-packager-version="patchset 1.6"
45315           $ ./src/ls --version | head -n2
45316           ls (GNU coreutils) 7.1-dirty
45317           Packaged by Gentoo (patchset 1.6)
45318         Note that the bug reporting info via --help doesn't show up because
45319         coreutils uses its own custom emit_bug_reporting_address() implementation
45320         in src/system.h.  If it didn't, it'd look like:
45321           $ ./src/ls --help | tail -n4
45322           Report bugs to <bug-coreutils@gnu.org>.
45323           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45324           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45325           General help using GNU software: <http://www.gnu.org/gethelp/>.
45326         * lib/version-etc.c: Print new information, if provided.
45327         * m4/version-etc.m4: New file.
45328         * modules/version-etc (Files): Add m4/version-etc.m4.
45329         (configure.ac): Add gl_VERSION_ETC.
45330
45331 2009-05-31  Bruno Haible  <bruno@clisp.org>
45332
45333         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45334         and 'int64_t'.
45335         * modules/alignof-tests (Dependencies): Add stdint.
45336         Reported by Eric Blake.
45337
45338 2009-05-31  Bruno Haible  <bruno@clisp.org>
45339
45340         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45341         restriction due to compiler bugs.
45342         Reported by Eric Blake.
45343
45344 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45345             Bruno Haible  <bruno@clisp.org>
45346
45347         Fix test-alignof failure.
45348         * lib/alignof.h (alignof_slot): New macro.
45349         (alignof_type): New macro, with the same semantics as the previous
45350         'alignof'.
45351         (alignof): Alias to alignof_slot.
45352         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45353         check that the results are usable as constant expressions.
45354
45355 2009-05-31  Bruno Haible  <bruno@clisp.org>
45356
45357         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45358         * tests/test-memchr.c (main): Check that memchr does not read past the
45359         first occurrence of the byte.
45360         * tests/test-strstr.c (main): Update comment.
45361         Suggested by Eric Blake.
45362
45363 2009-05-30  Bruno Haible  <bruno@clisp.org>
45364
45365         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45366         detail how to use dumpbin.
45367         Reported by David Byron <dbyron@dbyron.com>.
45368
45369 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45370
45371         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45372
45373 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45374
45375         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45376
45377 2009-05-28  Bruno Haible  <bruno@clisp.org>
45378
45379         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45380         build-aux/ files.
45381
45382 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45383
45384         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45385
45386 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45387
45388         * gnulib-tool (sed_transform_main_lib_file)
45389         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45390         regexps.
45391
45392 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45393
45394         * tests/test-strstr.c: Add another self-test.
45395         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45396         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45397
45398 2009-05-23  Bruno Haible  <bruno@clisp.org>
45399
45400         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45401         change.
45402
45403 2009-05-21  Bruno Haible  <bruno@clisp.org>
45404
45405         Simplify use of mode_t varargs.
45406         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45407         uses 'mode_t' or 'int'.
45408         * lib/openat.c (openat): Likewise.
45409         * lib/open-safer.c (open_safer): Likewise.
45410         * m4/mode_t.m4: New file.
45411         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45412         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45414         * modules/open (Files): Add m4/mode_t.m4.
45415         * modules/openat (Files): Likewise.
45416         * modules/fcntl-safer (Files): Likewise.
45417         Suggested by Eric Blake.
45418
45419 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45420
45421         * doc/glibc-functions/fallocate.texi: New file.
45422         * doc/gnulib.texi: Include it.
45423
45424 2009-05-21  Eric Blake  <ebb9@byu.net>
45425             Bruno Haible  <bruno@clisp.org>
45426
45427         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45428         invocations.
45429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45430
45431 2009-05-21  Eric Blake  <ebb9@byu.net>
45432             Bruno Haible  <bruno@clisp.org>
45433
45434         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45435         include_next. Fix of 2008-11-20 commit.
45436         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45437         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45438         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45439         NEXT_MATH_H.
45440         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45441         instead of NEXT_MATH_H.
45442
45443 2009-05-21  Bruno Haible  <bruno@clisp.org>
45444
45445         Avoid redefinition warnings for SIZE_MAX.
45446         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45447         Reported by Simon Josefsson.
45448
45449 2009-05-21  Bruno Haible  <bruno@clisp.org>
45450
45451         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45452         AC_CACHE_VAL.
45453
45454 2009-05-20  Bruno Haible  <bruno@clisp.org>
45455
45456         Make zeroptr.h work on mingw.
45457         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45458         mprotect.
45459         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45460         * modules/memchr2-tests (configure.ac): Likewise.
45461         * modules/memcmp-tests (configure.ac): Likewise.
45462         * modules/memmem-tests (configure.ac): Likewise.
45463         * modules/memrchr-tests (configure.ac): Likewise.
45464         Reported by Simon Josefsson.
45465
45466 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45467
45468         * tests/test-glob.c: Include string.h for strcmp prototype.
45469
45470 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45471
45472         * modules/getdelim (Depends-on): Add explicit stdint, although it
45473         was implicitly already pulled in via realloc-posix.
45474         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45475
45476 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45477
45478         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45479         G. Christensen" <tgc@jupiterrise.com>.
45480         * m4/sys_socket_h.m4: Check for sa_family_t.
45481         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45482         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45483         * tests/test-sys_socket.c: Check that sa_family_t works.
45484
45485 2009-05-18  Eric Blake  <ebb9@byu.net>
45486
45487         maint.mk: allow gnulib_dir in VPATH build
45488         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45489
45490 2009-05-15  Jim Meyering  <meyering@redhat.com>
45491
45492         maint.mk: Give gnulib_dir a default definition.
45493         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45494         Thus, most packages no longer need to specify this variable in cfg.mk
45495
45496 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45497
45498         rename.m4: fix typos that would make non-mingw cross-configure fail
45499         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45500
45501 2009-05-13  Eric Blake  <ebb9@byu.net>
45502
45503         mmap-anon: avoid out-of-order autoconf expansion
45504         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45505         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45506         * modules/memchr-tests (Depends-on): Add extensions.
45507         * modules/memchr2-tests (Depends-on): Add extensions.
45508         * modules/memcmp-tests (Depends-on): Add extensions.
45509         * modules/memmem-tests (Depends-on): Add extensions.
45510         * modules/memrchr-tests (Depends-on): Add extensions.
45511
45512 2009-05-13  Bruno Haible  <bruno@clisp.org>
45513
45514         Make some tests ISO C 99 compliant.
45515         * tests/zerosize-ptr.h: New file.
45516         * tests/test-memchr.c: Include zerosize-ptr.h.
45517         (main): Use a zero-size object pointer instead of NULL.
45518         * tests/test-memchr2.c: Include zerosize-ptr.h.
45519         (main): Use a zero-size object pointer instead of NULL.
45520         * tests/test-memcmp.c: Include zerosize-ptr.h.
45521         (main): Use a zero-size object pointer instead of NULL.
45522         * tests/test-memmem.c: Include zerosize-ptr.h.
45523         (main): Use a zero-size object pointer instead of NULL.
45524         * tests/test-memrchr.c: Include zerosize-ptr.h.
45525         (main): Use a zero-size object pointer instead of NULL.
45526         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45527         m4/mmap-anon.m4.
45528         (Depends-on): Add getpagesize.
45529         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45530         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45531         m4/mmap-anon.m4.
45532         (Depends-on): Add getpagesize.
45533         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45534         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45535         m4/mmap-anon.m4.
45536         (Depends-on): Add getpagesize.
45537         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45538         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45539         m4/mmap-anon.m4.
45540         (Depends-on): Add getpagesize.
45541         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45542         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45543         m4/mmap-anon.m4.
45544         (Depends-on): Add getpagesize.
45545         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45546
45547 2009-05-12  Bruno Haible  <bruno@clisp.org>
45548
45549         Tests for module 'alignof'.
45550         * modules/alignof-tests: New file.
45551         * tests/test-alignof.c: New file.
45552
45553 2009-05-12  Bruno Haible  <bruno@clisp.org>
45554
45555         Fix alignof macro.
45556         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45557         vendor compilers that are always correct.
45558
45559 2009-05-12  Bruno Haible  <bruno@clisp.org>
45560
45561         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45562         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45563         not whether its fully works.
45564
45565 2009-05-12  Bruno Haible  <bruno@clisp.org>
45566
45567         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45568
45569 2009-05-12  Jim Meyering  <meyering@redhat.com>
45570
45571         * top/maint.mk: Adjust backslash alignment.
45572
45573 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45574
45575         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45576
45577 2009-05-11  Eric Blake  <ebb9@byu.net>
45578
45579         argp: avoid undefined behavior
45580         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45581         macros.
45582
45583 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45584
45585         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45586         user.name to prevent git commit from complaining.
45587
45588 2009-05-10  Bruno Haible  <bruno@clisp.org>
45589
45590         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45591         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45592         it rewrites every file name only once.
45593         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45594
45595 2009-05-08  Bruno Haible  <bruno@clisp.org>
45596
45597         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45598         instead of 'max'.
45599
45600 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45601
45602         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45603         sockaddr_storage test.
45604
45605 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45606
45607         * modules/sys_socket (Makefile.am): Substitute
45608         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45609         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45610         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45611         * tests/test-sys_socket.c: Check sockaddr_storage.
45612
45613 2009-05-08  Bruno Haible  <bruno@clisp.org>
45614
45615         New module 'alignof'.
45616         * lib/alignof.h: New file.
45617         * modules/alignof: New file.
45618
45619 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45620             Bruno Haible  <bruno@clisp.org>
45621
45622         Fix test-file-has-acl on FreeBSD.
45623         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45624         mask is implicitly added.
45625         * tests/test-file-has-acl.c: Include <signal.h>.
45626         (main): Terminate the test after 5 seconds.
45627         * modules/acl-tests (configure.ac): Check for alarm function.
45628
45629 2009-05-04  Bruno Haible  <bruno@clisp.org>
45630
45631         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45632         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45633         * modules/errno (configure.ac): Drop AC_REQUIRE.
45634         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45635         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45636
45637 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45638
45639         * modules/glob-tests: New module.
45640         * tests/test-glob.c: Add.
45641
45642 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45643
45644         * modules/fnmatch-tests: New module.
45645         * tests/test-fnmatch.c: Add.
45646
45647 2009-05-04  Eric Blake  <ebb9@byu.net>
45648
45649         maint: make the new no-submodule-changes rule VPATH-safe
45650         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45651
45652 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45653             Bruno Haible  <bruno@clisp.org>
45654
45655         acl: Fix infinite loop on FreeBSD.
45656         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45657         of return value from acl_get_entry.
45658         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45659         Likewise.
45660
45661 2009-05-03  Bruno Haible  <bruno@clisp.org>
45662
45663         * lib/acl-internal.h (acl_entries): Clarify return value.
45664         * lib/acl_entries.c (acl_entries): Likewise.
45665
45666 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45667
45668         Bug fix in acl module.
45669         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45670
45671 2009-05-03  Bruno Haible  <bruno@clisp.org>
45672
45673         Create gperf-generated file in the source dir, not in the build dir.
45674         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45675         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45676         * modules/unicase/locale-language (unicase/locale-languages.h):
45677         Likewise.
45678         * modules/unicase/special-casing (unicase/special-casing-table.h):
45679         Likewise.
45680         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45681         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45682         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45683         Reported by Ralf Wildenhues.
45684
45685 2009-05-03  Bruno Haible  <bruno@clisp.org>
45686
45687         * modules/fnmatch (Description, configure.ac): Taken from
45688         fnmatch-posix.
45689         * modules/fnmatch-posix: Turn into a symbolic reference to the
45690         'fnmatch' module, and deprecate.
45691         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45692
45693 2009-05-03  Bruno Haible  <bruno@clisp.org>
45694
45695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45696         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45697         Reported by Ralf Wildenhues.
45698
45699 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45700
45701         * m4/fnmatch.m4: Fix fnmatch re-define.
45702
45703 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45704
45705         priv-set: new module and tests; adapt write-any-file
45706         * lib/priv-set.c: New file.
45707         * lib/priv-set.h: New file.
45708         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45709         * lib/write-any-file.c: Simplify by using priv-set module.
45710         * m4/priv-set.m4: New file.
45711         * modules/priv-set: New file.
45712         * modules/unlinkdir: Add dependency on priv-set module.
45713         * modules/write-any-file: Likewise.
45714
45715         Tests for module 'priv-set'.
45716         * modules/priv-set-tests: New file.
45717         * tests/test-priv-set.c: New file.
45718
45719 2009-05-03  Jim Meyering  <meyering@redhat.com>
45720             Bruno Haible  <bruno@clisp.org>
45721
45722         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45723         use the converted UTF-8 variant of the name instead.
45724
45725 2009-05-03  Jim Meyering  <meyering@redhat.com>
45726
45727         tests: tighten some getdate tests
45728         * tests/test-getdate.c (main): Tighten tests: require equality,
45729         not just greater than.  Set TZ envvar to UTC0.
45730
45731 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45732
45733         getdate: correctly interpret "next monday" when run on a Monday
45734         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45735         that e.g., "next tues" (when run on a tuesday) results in a date
45736         that is one week in the future, and not today's date.
45737         I.e., add a week when the wday is the same as the current one.
45738         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45739         and earlier by Martin Bernreuther and Jan Minář.
45740         * tests/test-getdate.c (main): Check that "next DAY" is always in
45741         the future and that "last DAY" is always in the past.
45742
45743 2009-05-02  Jim Meyering  <meyering@redhat.com>
45744
45745         build: ensure that a release build fails when a submodule is unclean
45746         * top/maint.mk (no-submodule-changes): New rule.
45747         (alpha beta major): Depend on it.
45748
45749 2009-05-02  Bruno Haible  <bruno@clisp.org>
45750
45751         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45752         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45753         shell variable gl_fnmatch_required to detect which variant is
45754         requested.
45755         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45756         gl_FUNC_FNMATCH_POSIX.
45757         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45758         exclude fnmatch-posix.
45759
45760 2009-05-02  Bruno Haible  <bruno@clisp.org>
45761
45762         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45763         * modules/mbsrtowcs (License): Change to LGPLv2+.
45764         * modules/strnlen1 (License): Likewise.
45765         Reported by Simon Josefsson.
45766
45767 2009-05-02  Bruno Haible  <bruno@clisp.org>
45768
45769         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45770         "cross".
45771         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45772         gnulib-tool was called with option --source-base=lib.
45773
45774 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45775
45776         Use automake *-local hooks without commands, for extensibility.
45777         * modules/localcharset (Makefile.am): Rename install-exec-local
45778         rule to install-exec-localcharset, and make it a prerequisite of
45779         install-exec-local.  Likewise, rename the uninstall-local rule to
45780         uninstall-localcharset, and make it a prerequisite of the former.
45781
45782 2009-05-01  Bruno Haible  <bruno@clisp.org>
45783
45784         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45785         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45786         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45788         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45789         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45790         m4/locale-zh.m4, m4/codeset.m4.
45791
45792         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45793         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45794         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45795         m4/locale-zh.m4.
45796
45797         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45798         REPLACE_WCRTOMB if mbstate_t must be replaced.
45799         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45800         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45801
45802 2009-05-01  Bruno Haible  <bruno@clisp.org>
45803
45804         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45805         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45806         dngettext, dcngettext, textdomain, bindtextdomain,
45807         bind_textdomain_codeset): Undefine before redefining.
45808
45809 2009-04-30  Bruno Haible  <bruno@clisp.org>
45810
45811         Fix bug introduced on 2009-04-25.
45812         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45813         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45814         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45815         is defined.
45816         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45817         is defined.
45818         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45819         is defined.
45820         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45821
45822 2009-04-28  Bruno Haible  <bruno@clisp.org>
45823
45824         Comment tweaks.
45825         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45826         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45827         * lib/unicase.h (u*_casexfrm): Likewise.
45828         Reported by Paolo Bonzini.
45829
45830 2009-04-28  Bruno Haible  <bruno@clisp.org>
45831
45832         Fix a compilation error.
45833         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45834         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45835         Reported by Jim Meyering.
45836
45837 2009-04-27  Bruno Haible  <bruno@clisp.org>
45838
45839         New module 'libunistring'.
45840         * modules/libunistring: New file.
45841         * m4/libunistring.m4: New file.
45842         * MODULES.html.sh (Unicode string functions): Add it.
45843
45844 2009-04-27  Eric Blake  <ebb9@byu.net>
45845
45846         maint.mk: allow package-specific header to provide <config.h>
45847         * top/maint.mk (sc_require_config_h): New variable.
45848         (sc_require_config_h, sc_require_config_h_first): Use it.
45849
45850 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45851
45852         * top/maint.mk (sc_avoid_if_before_free): Except
45853         useless-if-before-free script.
45854
45855 2009-04-27  Eric Blake  <ebb9@byu.net>
45856
45857         maintainer-makefile: depend on all required helper scripts
45858         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45859         useless-if-before-free.
45860         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45861         version, rather than assuming gnulib checkout is available.
45862         Reported by Simen Josefsson.
45863
45864 2009-04-26  Bruno Haible  <bruno@clisp.org>
45865
45866         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45867         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45868         "../" or "..".
45869
45870 2009-04-26  Bruno Haible  <bruno@clisp.org>
45871
45872         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45873         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45874         AC_LIB_HAVE_LINKFLAGS.
45875
45876 2009-04-26  Bruno Haible  <bruno@clisp.org>
45877
45878         Simplify calling convention of u*_conv_from_encoding.
45879         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45880         u32_conv_from_encoding): Expect a resultbuf argument and return the
45881         result directly as a pointer.
45882         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45883         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45884         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45885         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45886         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45887         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45888         Update.
45889         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45890         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45891         * lib/vasnprintf.c (VASNPRINTF): Update.
45892         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45893         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45894         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45895         * NEWS: Mention the change.
45896
45897 2009-04-26  Bruno Haible  <bruno@clisp.org>
45898
45899         Simplify calling convention of u*_conv_to_encoding.
45900         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45901         u32_conv_to_encoding): Expect a resultbuf argument and return the
45902         result directly as a pointer.
45903         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45904         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45905         freeing scaled_offsets if mem_iconveha failed.
45906         * lib/unicase/u-casexfrm.h (FUNC): Update.
45907         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45908         * lib/vasnprintf.c (VASNPRINTF): Update.
45909         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45910         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45911         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45912         * NEWS: Mention the change.
45913
45914 2009-04-26  Bruno Haible  <bruno@clisp.org>
45915
45916         Avoid test failures on AIX and OSF/1.
45917         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45918         malloc(0).
45919         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45920         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45921         Likewise.
45922         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45923         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45924         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45925         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45926         * doc/posix-functions/malloc.texi: Document the portability problem
45927         related to malloc(0).
45928
45929 2009-04-26  Bruno Haible  <bruno@clisp.org>
45930
45931         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45932         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45933         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45934
45935 2009-04-25  Bruno Haible  <bruno@clisp.org>
45936
45937         Avoid link error when creating a namespace clean library.
45938         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45939         as macro with arguments if already defined as an alias.
45940         * lib/signbitf.c (gl_signbitf): Don't undefine.
45941         * lib/signbitd.c (gl_signbitd): Don't undefine.
45942         * lib/signbitl.c (gl_signbitl): Don't undefine.
45943
45944 2009-04-25  Jim Meyering  <meyering@redhat.com>
45945
45946         vc-list-files: fix another quoting bug
45947         * build-aux/vc-list-files: Avoid sed backslash expansion
45948         of pathological directory names.
45949
45950 2009-04-25  Eric Blake  <ebb9@byu.net>
45951
45952         vc-list-files: fix shell quoting error
45953         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45954         timestamp.
45955
45956 2009-04-25  Jim Meyering  <meyering@redhat.com>
45957
45958         vc-list-files: restore lost functionality with subdir argument
45959         * build-aux/vc-list-files: When given a non-"." sub-directory
45960         argument, substitute the $dir/ prefix back onto each resulting name.
45961         Otherwise, coreutils' root_tests check would fail.
45962
45963 2009-04-24  Eric Blake  <ebb9@byu.net>
45964
45965         vc-list-files: ignore git symlinks
45966         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45967         than ls-files, to ignore git symlinks.
45968
45969         maint.mk: import improvements from m4
45970         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45971         (move_if_change): Delete unused macro.
45972         (news-date-check, vc-diff-check): Support VPATH builds.
45973         (announcement): Likewise.  Split --bootstrap-tools list...
45974         (boostrap-tools): ...into separate list, which can be overridden
45975         in cfg.mk.
45976         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45977         requiring dependency on useless-if-before-free module.
45978         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45979         Support VPATH builds.
45980
45981 2009-04-24  Jim Meyering  <meyering@redhat.com>
45982
45983         maint.mk: remove coreutils-specific rules and variables
45984         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45985         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45986         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45987
45988         maint.mk: remove obsolete rule
45989         * top/maint.mk (rel-check): Remove rule.
45990         (WGET, WGETFLAGS): Remove now-unused variables.
45991
45992 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45993
45994         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45995         consistency.
45996
45997         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45998         '$(PATH_SEPARATOR)' instead of ':'.
45999
46000 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46001
46002         * lib/getopt1.c (main): Use 'const' for static array.
46003
46004 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46005
46006         * top/maint.mk: Sync with coreutils.
46007         * NEWS: Explain incompatibilities.
46008
46009 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46010             Bruno Haible  <bruno@clisp.org>
46011
46012         Fix cross-compilation results.
46013         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46014         statement, as third argument of AC_TRY_RUN.
46015         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46016         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46017         Likewise.
46018         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46019         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46020         Likewise.
46021         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46022         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46023         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46024
46025 2009-04-20  Bruno Haible  <bruno@clisp.org>
46026
46027         Avoid test failure on mingw.
46028         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46029
46030 2009-04-20  Bruno Haible  <bruno@clisp.org>
46031
46032         Avoid compilation error on mingw.
46033         * modules/localename-tests (Depends-on): Add locale.
46034
46035 2009-04-19  Bruno Haible  <bruno@clisp.org>
46036
46037         Support for building a shared library on Windows platforms.
46038         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46039         (main): Test the presence of UNINORM_NFC here.
46040         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46041         (main): Test the presence of UNINORM_NFD here.
46042         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46043         (main): Test the presence of UNINORM_NFKC here.
46044         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46045         (main): Test the presence of UNINORM_NFKD here.
46046
46047 2009-04-19  Bruno Haible  <bruno@clisp.org>
46048
46049         Avoid a compiler warning.
46050         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46051         Change type of variable 'sequence'.
46052
46053 2009-04-19  Bruno Haible  <bruno@clisp.org>
46054
46055         * modules/configmake (Makefile.am): When the contents of configmake.h
46056         does not change, arrange to preserve its modification time.
46057
46058 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46059
46060         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46061         gettext domain.
46062
46063 2009-04-16  Jim Meyering  <meyering@redhat.com>
46064
46065         useless-if-before-free: improve conversion code
46066         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46067         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46068
46069 2009-04-14  Bruno Haible  <bruno@clisp.org>
46070
46071         * modules/fcntl (Depends-on): Add extensions.
46072         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46073
46074 2009-04-12  Ben Pfaff  <blp@gnu.org>
46075
46076         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46077         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46078
46079 2009-03-20  Ben Pfaff  <blp@gnu.org>
46080
46081         Make rename replace existing destinations on Windows.
46082         * m4/rename.m4: Add test for Mingw.
46083         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46084         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46085         * doc/posix-functions/rename.texi: Document.
46086
46087 2009-04-10  Bruno Haible  <bruno@clisp.org>
46088
46089         New include file "iconveh.h".
46090         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46091         * lib/striconveh.h: Include it.
46092         (enum iconv_ilseq_handler): Remove definition.
46093         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46094         striconveh.h.
46095         * lib/striconveha.c: Include striconveh.h.
46096         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46097         * modules/striconveh (Files): Add lib/iconveh.h.
46098         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46099         lib/striconveh.h.
46100
46101 2009-04-10  Bruno Haible  <bruno@clisp.org>
46102
46103         * lib/uniconv.h: Update comment.
46104
46105 2009-04-10  Bruno Haible  <bruno@clisp.org>
46106
46107         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46108         always.
46109         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46110         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46111         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46112         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46113         "unistring-notinline.h", so that the function gets defined always.
46114         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46115         * lib/unistr/u8-uctomb.c: Likewise.
46116         * lib/unistr/u16-mbtouc.c: Likewise.
46117         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46118         * lib/unistr/u16-uctomb.c: Likewise.
46119         * lib/unistr/u32-mbtouc.c: Likewise.
46120         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46121         * lib/unistr/u32-uctomb.c: Likewise.
46122
46123 2009-04-10  Bruno Haible  <bruno@clisp.org>
46124
46125         Mark 'utime' obsolete.
46126         * modules/utime (Status, Notice): New sections.
46127         Suggested by Jim Meyering.
46128
46129         Fix cross-compile guess for utime test.
46130         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46131         autoconf.
46132         * doc/posix-functions/utime.texi: Give more precisions.
46133         Reported by Jan <ipif@ymail.com>.
46134
46135 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46136
46137         filevercmp: correct today's change
46138         * lib/filevercmp.c: Also handle coreutils' test inputs.
46139         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46140
46141         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46142         for reporting it.
46143         * lib/filevercmp.c: Special handle for "", "." and "..".
46144         * tests/test-filevercmp.c: Enlarge the set suite.
46145
46146 2009-04-07  Jim Meyering  <meyering@redhat.com>
46147
46148         useless-if-before-free: show how to remove braced useless free, too
46149         * build-aux/useless-if-before-free: still only in a comment, though.
46150
46151 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46152
46153         maint.mk: import changes to syntax-check macros from coreutils
46154         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46155         Use them in the relevant macros.
46156
46157 2009-04-06  Bruno Haible  <bruno@clisp.org>
46158
46159         Fix unportable use of bit-fields.
46160         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46161         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46162         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46163
46164 2009-04-06  Bruno Haible  <bruno@clisp.org>
46165
46166         Avoid test failures on AIX and OSF/1.
46167         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46168         that malloc(0) = NULL.
46169         * tests/unicase/test-u8-tolower.c (check): Likewise.
46170         * tests/unicase/test-u8-totitle.c (check): Likewise.
46171         * tests/unicase/test-u8-toupper.c (check): Likewise.
46172         * tests/unicase/test-u16-casefold.c (check): Likewise.
46173         * tests/unicase/test-u16-tolower.c (check): Likewise.
46174         * tests/unicase/test-u16-totitle.c (check): Likewise.
46175         * tests/unicase/test-u16-toupper.c (check): Likewise.
46176         * tests/unicase/test-u32-casefold.c (check): Likewise.
46177         * tests/unicase/test-u32-tolower.c (check): Likewise.
46178         * tests/unicase/test-u32-totitle.c (check): Likewise.
46179         * tests/unicase/test-u32-toupper.c (check): Likewise.
46180         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46181         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46182         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46183         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46184         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46185         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46186         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46187         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46188         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46189         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46190         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46191         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46192
46193 2009-04-05  Bruno Haible  <bruno@clisp.org>
46194
46195         Work around an autoconf limitation.
46196         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46197         comment line if it would be longer than 3 KB.
46198
46199 2009-04-05  Bruno Haible  <bruno@clisp.org>
46200
46201         Avoid test failure with libiconv-1.13.
46202         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46203         of the expected test results.
46204
46205 2009-04-05  Bruno Haible  <bruno@clisp.org>
46206
46207         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46208         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46209         that it should be installed.
46210
46211 2009-04-05  Bruno Haible  <bruno@clisp.org>
46212
46213         * gnulib-tool: New option --copy-file.
46214         (func_usage): Document it.
46215         (func_dest_tmpfilename): Moved out of func_import.
46216         (func_add_file, func_update_file): New functions, extracted from
46217         func_import.
46218         (func_import): Update.
46219
46220 2009-04-05  Karl Berry  <karl@gnu.org>
46221
46222         * README: prominently mention gnulib-tool.
46223         Rearrange sections so getting the code is near the top.
46224
46225 2009-04-05  Bruno Haible  <bruno@clisp.org>
46226
46227         * lib/unicase.h: Mention u*_cmp2.
46228         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46229         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46230         * lib/unicase/ulc-casecmp.c: Likewise.
46231         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46232         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46233         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46234         unistr/u8-cmp.
46235         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46236         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46237         unistr/u16-cmp.
46238         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46239         unistr/u32-cmp.
46240
46241         * lib/uninorm.h: Mention u*_cmp2.
46242         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46243         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46244         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46245         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46246         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46247         unistr/u8-cmp.
46248         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46249         unistr/u16-cmp.
46250         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46251         unistr/u32-cmp.
46252
46253         New module 'unistr/u32-cmp2'.
46254         * lib/unistr/u32-cmp2.c: New file.
46255         * modules/unistr/u32-cmp2: New file.
46256
46257         New module 'unistr/u16-cmp2'.
46258         * lib/unistr/u16-cmp2.c: New file.
46259         * modules/unistr/u16-cmp2: New file.
46260
46261         New module 'unistr/u8-cmp2'.
46262         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46263         * lib/unistr/u8-cmp2.c: New file.
46264         * lib/unistr/u-cmp2.h: New file.
46265         * modules/unistr/u8-cmp2: New file.
46266
46267 2009-04-05  Bruno Haible  <bruno@clisp.org>
46268
46269         * lib/unictype.h (uc_property_is_valid): New macro.
46270         * tests/unictype/test-pr_byname.c (main): Use it.
46271
46272         * lib/unistr.h: Doc fixes.
46273         * lib/uniconv.h: Doc fixes.
46274         * lib/unictype.h: Doc fixes.
46275
46276 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46277
46278         Port coreutils 7.2 to Solaris 8.
46279
46280         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46281         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46282         for Solaris 8.  This is a bit of a hack, as it means it's the
46283         caller's responsibility to add -lnsl if needed, but most likely it
46284         won't be needed since only getaddrinfo uses this and getaddrinfo
46285         isn't needed on Solaris 8.
46286
46287         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46288         problem to Solaris 8 encountered with coreutils 7.2, which
46289         resulted in a message "fnmatch.c:292: warning: passing argument 4
46290         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46291         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46292
46293 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46294
46295         * m4/ld-version-script.m4: Add FIXME comment.
46296
46297 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46298
46299         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46300         SOVERSION variable.
46301
46302 2009-04-02  Bruno Haible  <bruno@clisp.org>
46303
46304         * Makefile (info, html, dvi, pdf): Combine the rules.
46305         Suggested by Jim Meyering.
46306
46307 2009-04-01  Bruno Haible  <bruno@clisp.org>
46308
46309         * Makefile (info, html, dvi, pdf): New targets.
46310         Reported by Reuben Thomas <rrt@sc3d.org>.
46311
46312 2009-04-01  Bruno Haible  <bruno@clisp.org>
46313
46314         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46315         can be put into PATH.
46316         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46317
46318 2009-04-01  Bruno Haible  <bruno@clisp.org>
46319
46320         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46321
46322 2009-04-01  Bruno Haible  <bruno@clisp.org>
46323
46324         Rename module 'visibility'.
46325         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46326         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46327         * doc/gnulib.texi: Update.
46328         * MODULES.html.sh (Misc): Update.
46329         * NEWS: Mention the change.
46330
46331 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46332
46333         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46334         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46335         Eric Blake <ebb9@byu.net> for review.
46336         * MODULES.html.sh: Add lib-msvc-compat.
46337         * doc/gnulib.texi: Link to new section.
46338         * m4/ld-output-def.m4: New file.
46339         * doc/ld-output-def.texi: New file.
46340
46341 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46342
46343         Rename ld-version-script to lib-symbol-versions.  Suggested by
46344         Bruno Haible <bruno@clisp.org>.
46345         * modules/ld-version-script: Renamed to lib-symbol-versions.
46346         * doc/ld-version-script.texi: Fix module name.
46347         * MODULES.html.sh: Add lib-symbol-versions.
46348
46349 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46350
46351         * modules/u64-tests: New file.
46352         * tests/test-u64.c: New file.
46353
46354 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46355
46356         * MODULES.html.sh: Mention u64.
46357         * modules/u64: New module.
46358         * modules/crypto/sha512: Depend on u64 module instead of providing
46359         u64.h.
46360
46361 2009-03-27  Eric Blake  <ebb9@byu.net>
46362
46363         test-strerror: make debugging EAI_SYSTEM easier
46364         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46365         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46366         failure was EAI_SYSTEM.
46367
46368 2009-03-25  Bruno Haible  <bruno@clisp.org>
46369
46370         Fix a problem with --enable-relocatable on Solaris 7.
46371         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46372         since 2008-02-24.
46373
46374 2009-03-25  Eric Blake  <ebb9@byu.net>
46375
46376         test-sockets: avoid gcc warning
46377         * tests/test-sockets.c (main): Silence compiler warning.
46378
46379 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46380
46381         New modules nproc, pthread, contributed by Glen Lenker.
46382
46383         * MODULES.html.sh: Add pthread, nproc.
46384         * lib/nproc.c: New file.
46385         * lib/nproc.h: New file.
46386         * lib/pthread.in.h: New file.
46387         * m4/pthread.m4: New file.
46388         * modules/nproc: New file.
46389         * modules/pthread: New file.
46390
46391 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46392
46393         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46394         New variable.
46395
46396 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46397
46398         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46399         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46400         * tests/test-filevercmp.c: Add tests for backup suffixes.
46401
46402 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46403
46404         * modules/stdlib (Depends-on): Add stdint, needed when defining
46405         struct random_data on, for example, HP-UX 10.20.  Reported by
46406         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46407
46408 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46409
46410         * lib/readline.c (readline): Call fflush on stdout after printing
46411         prompt.
46412
46413 2009-03-20  Bruno Haible  <bruno@clisp.org>
46414
46415         Remove dependency from 'close' module to -lws2_32 on native Windows.
46416         * lib/close-hook.h: New file.
46417         * lib/close-hook.c: New file.
46418         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46419         w32sock.h.
46420         (_gl_close_fd_maybe_socket): Remove function.
46421         (rpl_close): Invoke execute_all_close_hooks instead of
46422         _gl_close_fd_maybe_socket.
46423         * lib/sockets.c: Include close-hook.h, w32sock.h.
46424         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46425         (close_sockets_hook): New variable.
46426         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46427         (gl_sockets_cleanup): Unregister it.
46428         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46429         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46430         * modules/close-hook: New file.
46431         * modules/close (Files): Remove lib/w32sock.h.
46432         (Depends-on): Add close-hook.
46433         (Link): Remove section.
46434         * modules/sockets (Files): Add lib/w32sock.h.
46435         (Depends-on): Add close-hook.
46436         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46437         invocation.
46438         * NEWS: Mention that LIB_CLOSE is gone.
46439
46440 2009-03-23  Eric Blake  <ebb9@byu.net>
46441
46442         signal-tests: test previous patch
46443         * tests/test-signal.c: New file.
46444         * modules/signal-tests: Likewise.
46445
46446         signal.h: always support 'volatile sig_atomic_t'
46447         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46448         (gl_SIGNAL_H_DEFAULTS): Add a default.
46449         * modules/signal (Makefile.am): Substitute if needed.
46450         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46451         users can blindly add volatile.
46452         * doc/posix-headers/signal.texi (signal.h): Document it.
46453         Reported by Matthew Woehlke.
46454
46455 2009-03-23  Jim Meyering  <meyering@redhat.com>
46456
46457         pathmax: PATH_MAX: use pathconf only when available
46458         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46459         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46460         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46461         This avoids a link failure in a PSP cross-compilation environment
46462         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46463
46464         * lib/vasnprintf.c (divide): Fix typo in comment.
46465
46466 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46467
46468         * gnulib-tool (func_filter_filelist): Fix comment.
46469
46470 2009-03-20  Bruno Haible  <bruno@clisp.org>
46471
46472         Make sockets.h self-contained.
46473         * lib/sockets.c: Include sockets.h first.
46474         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46475
46476 2009-03-19  Eric Blake  <ebb9@byu.net>
46477
46478         doc: mention more functions added in cygwin 1.7.0
46479         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46480         addition.
46481         * doc/posix-functions/log2f.texi: Likewise.
46482
46483 2009-03-19  Jim Meyering  <meyering@redhat.com>
46484
46485         fsusage: avoid syntax error due to statement-before-declaration
46486         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46487         after all declarations.  Reported by Matthew Woehlke in
46488         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46489
46490 2009-03-18  Eric Blake  <ebb9@byu.net>
46491
46492         build-aux/compile: sync from automake
46493         * build-aux/compile: New file, from automake.
46494         * config/srclist.txt: Mention build-aux/compile.
46495
46496 2009-03-17  Bruno Haible  <bruno@clisp.org>
46497
46498         * lib/git-merge-changelog.c: Fix typo in comment.
46499         Reported by Reuben Thomas <rrt@sc3d.org>.
46500
46501 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46502
46503         * m4/regex.m4: update and improve help for
46504         --without-included-regex.
46505
46506 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46507
46508         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46509         failure on missing include files.
46510
46511 2009-03-17  Eric Blake  <ebb9@byu.net>
46512
46513         doc: mention more functions added in cygwin 1.7.0
46514         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46515         addition.
46516         * doc/posix-functions/fwscanf.texi: Likewise.
46517         * doc/posix-functions/swprintf.texi: Likewise.
46518         * doc/posix-functions/swscanf.texi: Likewise.
46519         * doc/posix-functions/vfwprintf.texi: Likewise.
46520         * doc/posix-functions/vfwscanf.texi: Likewise.
46521         * doc/posix-functions/vswprintf.texi: Likewise.
46522         * doc/posix-functions/vswscanf.texi: Likewise.
46523         * doc/posix-functions/vwprintf.texi: Likewise.
46524         * doc/posix-functions/vwscanf.texi: Likewise.
46525         * doc/posix-functions/wcscasecmp.texi: Likewise.
46526         * doc/posix-functions/wcsdup.texi: Likewise.
46527         * doc/posix-functions/wcsftime.texi: Likewise.
46528         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46529         * doc/posix-functions/wprintf.texi: Likewise.
46530         * doc/posix-functions/wscanf.texi: Likewise.
46531         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46532
46533 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46534
46535         maint.mk: really add $(AM_MAKEFLAGS)
46536         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46537         was inadvertently omitted in the last commit.
46538         Spotted by Bruno Haible.
46539
46540         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46541         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46542         $(AM_MAKEFLAGS)' rather than plain `make'.
46543
46544         gnulib-tool: execute $MAKE not make
46545         * gnulib-tool: Default $MAKE to 'make'.
46546         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46547         than make.  Initialize $MAKE in the do-autobuild script.
46548
46549         gnulib-tool: use $MAKE not make in generated files
46550         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46551         make, in generated files.  Initialize $MAKE in the do-autobuild
46552         script.
46553
46554         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46555
46556         GNUmakefile: disable parallelism only for multiple, recursive targets
46557         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46558         additions in the Makefile.
46559         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46560         by Automake.
46561         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46562         are listed on the command line and at least one of them is
46563         listed in $(ALL_RECURSIVE_TARGETS).
46564
46565 2009-03-14  Bruno Haible  <bruno@clisp.org>
46566
46567         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46568         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46569         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46570         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46571         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46572         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46573         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46574         unistr/u8-uctomb.
46575         * modules/unistr/u8-strchr (Depends-on): Likewise.
46576         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46577         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46578         unistr/u16-uctomb.
46579         * modules/unistr/u16-strchr (Depends-on): Likewise.
46580         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46581
46582 2009-03-12  Bruno Haible  <bruno@clisp.org>
46583
46584         Work around select() bug on Interix 3.5.
46585         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46586         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46587         * m4/select.m4: New file.
46588         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46589         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46590         * modules/select (Files): Add m4/select.m4.
46591         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46592         * modules/nanosleep (Depends-on): Add select.
46593         * modules/poll (Depends-on): Likewise.
46594         * doc/posix-functions/select.texi: Mention the Interix bug.
46595         Reported by Markus Duft <mduft@gentoo.org>.
46596
46597         * lib/select.c: Renamed from lib/winsock-select.c.
46598         * modules/select (Files): Add lib/select.c, remove
46599         lib/winsock-select.c.
46600         (configure.ac): Update.
46601
46602 2009-03-12  Jim Meyering  <meyering@redhat.com>
46603
46604         avoid gcc warnings about unused macro definitions
46605         * lib/readtokens.c (STREQ): Remove unused definition.
46606         * lib/xmalloc.c (SIZE_MAX): Likewise.
46607         * lib/openat-die.c (N_): Likewise.
46608         * lib/mountlist.c (SIZE_MAX): Remove definition.
46609         Instead, include <stdint.h>.
46610         * lib/readutmp.c: Likewise.
46611         * modules/readutmp (Depends-on): Add stdint.
46612         * modules/mountlist (Depends-on): Add stdint.
46613         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46614
46615 2009-03-10  Bruno Haible  <bruno@clisp.org>
46616
46617         Tests for module 'mbmemcasecoll'.
46618         * modules/mbmemcasecoll-tests: New file.
46619         * tests/test-mbmemcasecoll1.sh: New file.
46620         * tests/test-mbmemcasecoll2.sh: New file.
46621         * tests/test-mbmemcasecoll3.sh: New file.
46622         * tests/test-mbmemcasecoll.c: New file.
46623
46624         New module 'mbmemcasecoll'.
46625         * lib/mbmemcasecoll.h: New file.
46626         * lib/mbmemcasecoll.c: New file.
46627         * modules/mbmemcasecoll: New file.
46628
46629         * tests/test-mbmemcasecmp.h: New file, extracted from
46630         tests/test-mbmemcasecmp.c.
46631         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46632         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46633         (main): Update.
46634         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46635
46636 2009-03-09  Bruno Haible  <bruno@clisp.org>
46637
46638         Tests for module 'mbmemcasecmp'.
46639         * modules/mbmemcasecmp-tests: New file.
46640         * tests/test-mbmemcasecmp1.sh: New file.
46641         * tests/test-mbmemcasecmp2.sh: New file.
46642         * tests/test-mbmemcasecmp3.sh: New file.
46643         * tests/test-mbmemcasecmp.c: New file.
46644
46645         New module 'mbmemcasecmp'.
46646         * lib/mbmemcasecmp.h: New file.
46647         * lib/mbmemcasecmp.c: New file.
46648         * modules/mbmemcasecmp: New file.
46649
46650 2009-03-09  Bruno Haible  <bruno@clisp.org>
46651
46652         Tests for module 'unicase/ulc-casecoll'.
46653         * modules/unicase/ulc-casecoll-tests: New file.
46654         * tests/unicase/test-ulc-casecoll1.sh: New file.
46655         * tests/unicase/test-ulc-casecoll2.sh: New file.
46656         * tests/unicase/test-ulc-casecoll.c: New file.
46657
46658         New module 'unicase/ulc-casecoll'.
46659         * lib/unicase.h (ulc_casecoll): New declaration.
46660         * lib/unicase/ulc-casecoll.c: New file.
46661         * modules/unicase/ulc-casecoll: New file.
46662
46663         New module 'unicase/ulc-casexfrm'.
46664         * lib/unicase.h (ulc_casexfrm): New declaration.
46665         * lib/unicase/ulc-casexfrm.c: New file.
46666         * modules/unicase/ulc-casexfrm: New file.
46667
46668 2009-03-09  Bruno Haible  <bruno@clisp.org>
46669
46670         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46671         invocations.
46672
46673         * m4/mbscasecmp.m4: Remove file.
46674         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46675         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46676
46677         * m4/mbscasestr.m4: Remove file.
46678         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46679         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46680
46681         * m4/mbschr.m4: Remove file.
46682         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46683         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46684
46685         * m4/mbscspn.m4: Remove file.
46686         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46687         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46688
46689         * m4/mbslen.m4: Remove file.
46690         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46691         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46692
46693         * m4/mbsncasecmp.m4: Remove file.
46694         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46695         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46696
46697         * m4/mbsnlen.m4: Remove file.
46698         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46699         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46700
46701         * m4/mbspbrk.m4: Remove file.
46702         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46703         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46704
46705         * m4/mbspcasecmp.m4: Remove file.
46706         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46707         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46708
46709         * m4/mbsrchr.m4: Remove file.
46710         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46711         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46712
46713         * m4/mbssep.m4: Remove file.
46714         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46715         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46716
46717         * m4/mbsspn.m4: Remove file.
46718         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46719         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46720
46721         * m4/mbsstr.m4: Remove file.
46722         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46723         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46724
46725         * m4/mbstok_r.m4: Remove file.
46726         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46727         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46728
46729         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46730
46731         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46732         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46733
46734         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46735
46736 2009-03-08  Bruno Haible  <bruno@clisp.org>
46737
46738         Tests for module 'unicase/ulc-casecmp'.
46739         * modules/unicase/ulc-casecmp-tests: New file.
46740         * tests/unicase/test-ulc-casecmp1.sh: New file.
46741         * tests/unicase/test-ulc-casecmp2.sh: New file.
46742         * tests/unicase/test-ulc-casecmp.c: New file.
46743
46744         New module 'unicase/ulc-casecmp'.
46745         * lib/unicase.h (ulc_casecmp): New declaration.
46746         * lib/unicase/ulc-casecmp.c: New file.
46747         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46748         'const SRC_UNIT *'.
46749         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46750         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46751         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46752         * modules/unicase/ulc-casecmp: New file.
46753
46754         Tests for module 'unicase/u32-is-cased'.
46755         * modules/unicase/u32-is-cased-tests: New file.
46756         * tests/unicase/test-u32-is-cased.c: New file.
46757
46758         Tests for module 'unicase/u16-is-cased'.
46759         * modules/unicase/u16-is-cased-tests: New file.
46760         * tests/unicase/test-u16-is-cased.c: New file.
46761
46762         Tests for module 'unicase/u8-is-cased'.
46763         * modules/unicase/u8-is-cased-tests: New file.
46764         * tests/unicase/test-u8-is-cased.c: New file.
46765         * tests/unicase/test-is-cased.h: New file.
46766
46767         New module 'unicase/u32-is-cased'.
46768         * lib/unicase/u32-is-cased.c: New file.
46769         * modules/unicase/u32-is-cased: New file.
46770
46771         New module 'unicase/u16-is-cased'.
46772         * lib/unicase/u16-is-cased.c: New file.
46773         * modules/unicase/u16-is-cased: New file.
46774
46775         New module 'unicase/u8-is-cased'.
46776         * lib/unicase/u8-is-cased.c: New file.
46777         * lib/unicase/u-is-cased.h: New file.
46778         * modules/unicase/u8-is-cased: New file.
46779
46780         Tests for module 'unicase/u32-is-casefolded'.
46781         * modules/unicase/u32-is-casefolded-tests: New file.
46782         * tests/unicase/test-u32-is-casefolded.c: New file.
46783
46784         Tests for module 'unicase/u16-is-casefolded'.
46785         * modules/unicase/u16-is-casefolded-tests: New file.
46786         * tests/unicase/test-u16-is-casefolded.c: New file.
46787
46788         Tests for module 'unicase/u8-is-casefolded'.
46789         * modules/unicase/u8-is-casefolded-tests: New file.
46790         * tests/unicase/test-u8-is-casefolded.c: New file.
46791         * tests/unicase/test-is-casefolded.h: New file.
46792
46793         New module 'unicase/u32-is-casefolded'.
46794         * lib/unicase/u32-is-casefolded.c: New file.
46795         * modules/unicase/u32-is-casefolded: New file.
46796
46797         New module 'unicase/u16-is-casefolded'.
46798         * lib/unicase/u16-is-casefolded.c: New file.
46799         * modules/unicase/u16-is-casefolded: New file.
46800
46801         New module 'unicase/u8-is-casefolded'.
46802         * lib/unicase/u8-is-casefolded.c: New file.
46803         * modules/unicase/u8-is-casefolded: New file.
46804
46805         Tests for module 'unicase/u32-is-titlecase'.
46806         * modules/unicase/u32-is-titlecase-tests: New file.
46807         * tests/unicase/test-u32-is-titlecase.c: New file.
46808
46809         Tests for module 'unicase/u16-is-titlecase'.
46810         * modules/unicase/u16-is-titlecase-tests: New file.
46811         * tests/unicase/test-u16-is-titlecase.c: New file.
46812
46813         Tests for module 'unicase/u8-is-titlecase'.
46814         * modules/unicase/u8-is-titlecase-tests: New file.
46815         * tests/unicase/test-u8-is-titlecase.c: New file.
46816         * tests/unicase/test-is-titlecase.h: New file.
46817
46818         New module 'unicase/u32-is-titlecase'.
46819         * lib/unicase/u32-is-titlecase.c: New file.
46820         * modules/unicase/u32-is-titlecase: New file.
46821
46822         New module 'unicase/u16-is-titlecase'.
46823         * lib/unicase/u16-is-titlecase.c: New file.
46824         * modules/unicase/u16-is-titlecase: New file.
46825
46826         New module 'unicase/u8-is-titlecase'.
46827         * lib/unicase/u8-is-titlecase.c: New file.
46828         * modules/unicase/u8-is-titlecase: New file.
46829
46830         Tests for module 'unicase/u32-is-lowercase'.
46831         * modules/unicase/u32-is-lowercase-tests: New file.
46832         * tests/unicase/test-u32-is-lowercase.c: New file.
46833
46834         Tests for module 'unicase/u16-is-lowercase'.
46835         * modules/unicase/u16-is-lowercase-tests: New file.
46836         * tests/unicase/test-u16-is-lowercase.c: New file.
46837
46838         Tests for module 'unicase/u8-is-lowercase'.
46839         * modules/unicase/u8-is-lowercase-tests: New file.
46840         * tests/unicase/test-u8-is-lowercase.c: New file.
46841         * tests/unicase/test-is-lowercase.h: New file.
46842
46843         New module 'unicase/u32-is-lowercase'.
46844         * lib/unicase/u32-is-lowercase.c: New file.
46845         * modules/unicase/u32-is-lowercase: New file.
46846
46847         New module 'unicase/u16-is-lowercase'.
46848         * lib/unicase/u16-is-lowercase.c: New file.
46849         * modules/unicase/u16-is-lowercase: New file.
46850
46851         New module 'unicase/u8-is-lowercase'.
46852         * lib/unicase/u8-is-lowercase.c: New file.
46853         * modules/unicase/u8-is-lowercase: New file.
46854
46855         Tests for module 'unicase/u32-is-uppercase'.
46856         * modules/unicase/u32-is-uppercase-tests: New file.
46857         * tests/unicase/test-u32-is-uppercase.c: New file.
46858
46859         Tests for module 'unicase/u16-is-uppercase'.
46860         * modules/unicase/u16-is-uppercase-tests: New file.
46861         * tests/unicase/test-u16-is-uppercase.c: New file.
46862
46863         Tests for module 'unicase/u8-is-uppercase'.
46864         * modules/unicase/u8-is-uppercase-tests: New file.
46865         * tests/unicase/test-u8-is-uppercase.c: New file.
46866         * tests/unicase/test-is-uppercase.h: New file.
46867
46868         New module 'unicase/u32-is-uppercase'.
46869         * lib/unicase/u32-is-uppercase.c: New file.
46870         * modules/unicase/u32-is-uppercase: New file.
46871
46872         New module 'unicase/u16-is-uppercase'.
46873         * lib/unicase/u16-is-uppercase.c: New file.
46874         * modules/unicase/u16-is-uppercase: New file.
46875
46876         New module 'unicase/u8-is-uppercase'.
46877         * lib/unicase/u8-is-uppercase.c: New file.
46878         * modules/unicase/u8-is-uppercase: New file.
46879
46880         New module 'unicase/u32-is-invariant'.
46881         * lib/unicase/u32-is-invariant.c: New file.
46882         * modules/unicase/u32-is-invariant: New file.
46883
46884         New module 'unicase/u16-is-invariant'.
46885         * lib/unicase/u16-is-invariant.c: New file.
46886         * modules/unicase/u16-is-invariant: New file.
46887
46888         New module 'unicase/u8-is-invariant'.
46889         * lib/unicase/u8-is-invariant.c: New file.
46890         * lib/unicase/invariant.h: New file.
46891         * lib/unicase/u-is-invariant.h: New file.
46892         * modules/unicase/u8-is-invariant: New file.
46893
46894         Tests for module 'unicase/u32-casecoll'.
46895         * modules/unicase/u32-casecoll-tests: New file.
46896         * tests/unicase/test-u32-casecoll.c: New file.
46897
46898         Tests for module 'unicase/u16-casecoll'.
46899         * modules/unicase/u16-casecoll-tests: New file.
46900         * tests/unicase/test-u16-casecoll.c: New file.
46901
46902         Tests for module 'unicase/u8-casecoll'.
46903         * modules/unicase/u8-casecoll-tests: New file.
46904         * tests/unicase/test-u8-casecoll.c: New file.
46905
46906         New module 'unicase/u32-casecoll'.
46907         * lib/unicase/u32-casecoll.c: New file.
46908         * modules/unicase/u32-casecoll: New file.
46909
46910         New module 'unicase/u16-casecoll'.
46911         * lib/unicase/u16-casecoll.c: New file.
46912         * modules/unicase/u16-casecoll: New file.
46913
46914         New module 'unicase/u8-casecoll'.
46915         * lib/unicase/u8-casecoll.c: New file.
46916         * lib/unicase/u-casecoll.h: New file.
46917         * modules/unicase/u8-casecoll: New file.
46918
46919         New module 'unicase/u32-casexfrm'.
46920         * lib/unicase/u32-casexfrm.c: New file.
46921         * modules/unicase/u32-casexfrm: New file.
46922
46923         New module 'unicase/u16-casexfrm'.
46924         * lib/unicase/u16-casexfrm.c: New file.
46925         * modules/unicase/u16-casexfrm: New file.
46926
46927         New module 'unicase/u8-casexfrm'.
46928         * lib/unicase/u8-casexfrm.c: New file.
46929         * lib/unicase/u-casexfrm.h: New file.
46930         * modules/unicase/u8-casexfrm: New file.
46931
46932         Tests for module 'unicase/u32-casecmp'.
46933         * modules/unicase/u32-casecmp-tests: New file.
46934         * tests/unicase/test-u32-casecmp.c: New file.
46935
46936         Tests for module 'unicase/u16-casecmp'.
46937         * modules/unicase/u16-casecmp-tests: New file.
46938         * tests/unicase/test-u16-casecmp.c: New file.
46939
46940         Tests for module 'unicase/u8-casecmp'.
46941         * modules/unicase/u8-casecmp-tests: New file.
46942         * tests/unicase/test-u8-casecmp.c: New file.
46943         * tests/unicase/test-casecmp.h: New file.
46944
46945         New module 'unicase/u32-casecmp'.
46946         * lib/unicase/u32-casecmp.c: New file.
46947         * modules/unicase/u32-casecmp: New file.
46948
46949         New module 'unicase/u16-casecmp'.
46950         * lib/unicase/u16-casecmp.c: New file.
46951         * modules/unicase/u16-casecmp: New file.
46952
46953         New module 'unicase/u8-casecmp'.
46954         * lib/unicase/u8-casecmp.c: New file.
46955         * lib/unicase/u-casecmp.h: New file.
46956         * modules/unicase/u8-casecmp: New file.
46957
46958         Tests for module 'unicase/u32-casefold'.
46959         * modules/unicase/u32-casefold-tests: New file.
46960         * tests/unicase/test-u32-casefold.c: New file.
46961
46962         Tests for module 'unicase/u16-casefold'.
46963         * modules/unicase/u16-casefold-tests: New file.
46964         * tests/unicase/test-u16-casefold.c: New file.
46965
46966         Tests for module 'unicase/u8-casefold'.
46967         * modules/unicase/u8-casefold-tests: New file.
46968         * tests/unicase/test-u8-casefold.c: New file.
46969
46970         New module 'unicase/u32-casefold'.
46971         * lib/unicase/u32-casefold.c: New file.
46972         * modules/unicase/u32-casefold: New file.
46973
46974         New module 'unicase/u16-casefold'.
46975         * lib/unicase/u16-casefold.c: New file.
46976         * modules/unicase/u16-casefold: New file.
46977
46978         New module 'unicase/u8-casefold'.
46979         * lib/unicase/u8-casefold.c: New file.
46980         * lib/unicase/u-casefold.h: New file.
46981         * modules/unicase/u8-casefold: New file.
46982
46983         New module 'unicase/tocasefold'.
46984         * lib/unicase/casefold.h: New file.
46985         * lib/unicase/tocasefold.c: New file.
46986         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46987         * modules/unicase/tocasefold: New file.
46988
46989         Tests for module 'unicase/u32-totitle'.
46990         * modules/unicase/u32-totitle-tests: New file.
46991         * tests/unicase/test-u32-totitle.c: New file.
46992
46993         Tests for module 'unicase/u16-totitle'.
46994         * modules/unicase/u16-totitle-tests: New file.
46995         * tests/unicase/test-u16-totitle.c: New file.
46996
46997         Tests for module 'unicase/u8-totitle'.
46998         * modules/unicase/u8-totitle-tests: New file.
46999         * tests/unicase/test-u8-totitle.c: New file.
47000
47001         New module 'unicase/u32-totitle'.
47002         * lib/unicase/u32-totitle.c: New file.
47003         * modules/unicase/u32-totitle: New file.
47004
47005         New module 'unicase/u16-totitle'.
47006         * lib/unicase/u16-totitle.c: New file.
47007         * modules/unicase/u16-totitle: New file.
47008
47009         New module 'unicase/u8-totitle'.
47010         * lib/unicase/u8-totitle.c: New file.
47011         * lib/unicase/u-totitle.h: New file.
47012         * modules/unicase/u8-totitle: New file.
47013
47014         Tests for module 'unicase/u32-tolower'.
47015         * modules/unicase/u32-tolower-tests: New file.
47016         * tests/unicase/test-u32-tolower.c: New file.
47017
47018         Tests for module 'unicase/u16-tolower'.
47019         * modules/unicase/u16-tolower-tests: New file.
47020         * tests/unicase/test-u16-tolower.c: New file.
47021
47022         Tests for module 'unicase/u8-tolower'.
47023         * modules/unicase/u8-tolower-tests: New file.
47024         * tests/unicase/test-u8-tolower.c: New file.
47025
47026         New module 'unicase/u32-tolower'.
47027         * lib/unicase/u32-tolower.c: New file.
47028         * modules/unicase/u32-tolower: New file.
47029
47030         New module 'unicase/u16-tolower'.
47031         * lib/unicase/u16-tolower.c: New file.
47032         * modules/unicase/u16-tolower: New file.
47033
47034         New module 'unicase/u8-tolower'.
47035         * lib/unicase/u8-tolower.c: New file.
47036         * modules/unicase/u8-tolower: New file.
47037
47038         Tests for module 'unicase/u32-toupper'.
47039         * modules/unicase/u32-toupper-tests: New file.
47040         * tests/unicase/test-u32-toupper.c: New file.
47041
47042         Tests for module 'unicase/u16-toupper'.
47043         * modules/unicase/u16-toupper-tests: New file.
47044         * tests/unicase/test-u16-toupper.c: New file.
47045
47046         Tests for module 'unicase/u8-toupper'.
47047         * modules/unicase/u8-toupper-tests: New file.
47048         * tests/unicase/test-u8-toupper.c: New file.
47049
47050         New module 'unicase/u32-toupper'.
47051         * lib/unicase/u32-toupper.c: New file.
47052         * modules/unicase/u32-toupper: New file.
47053
47054         New module 'unicase/u16-toupper'.
47055         * lib/unicase/u16-toupper.c: New file.
47056         * modules/unicase/u16-toupper: New file.
47057
47058         New module 'unicase/u8-toupper'.
47059         * lib/unicase/u8-toupper.c: New file.
47060         * modules/unicase/u8-toupper: New file.
47061
47062         New module 'unicase/u32-casemap'.
47063         * lib/unicase/u32-casemap.c: New file.
47064         * modules/unicase/u32-casemap: New file.
47065
47066         New module 'unicase/u16-casemap'.
47067         * lib/unicase/u16-casemap.c: New file.
47068         * modules/unicase/u16-casemap: New file.
47069
47070         New module 'unicase/u8-casemap'.
47071         * lib/unicase/unicasemap.h: New file.
47072         * lib/unicase/u8-casemap.c: New file.
47073         * lib/unicase/u-casemap.h: New file.
47074         * modules/unicase/u8-casemap: New file.
47075
47076         New module 'unicase/special-casing'.
47077         * lib/unicase/special-casing.h: New file.
47078         * lib/unicase/special-casing.c: New file.
47079         * lib/unicase/special-casing-table.gperf: New file, generated by
47080         gen-uni-tables.c.
47081         * modules/unicase/special-casing: New file.
47082
47083         Tests for module 'unicase/locale-language'.
47084         * modules/unicase/locale-language-tests: New file.
47085         * tests/unicase/test-locale-language.sh: New file.
47086         * tests/unicase/test-locale-language.c: New file.
47087
47088         New module 'unicase/locale-language'.
47089         * lib/unicase/locale-language.c: New file.
47090         * lib/unicase/locale-languages.gperf: New file.
47091         * modules/unicase/locale-language: New file.
47092
47093         Generate more tables for case conversion and case folding.
47094         * lib/gen-uni-tables.c (SCC_*): New enum items.
47095         (struct special_casing_rule): New type.
47096         (casing_rules, num_casing_rules, allocated_casing_rules): New
47097         variables.
47098         (add_casing_rule, fill_casing_rules): New functions.
47099         (struct casefold_rule): New type.
47100         (casefolding_rules, num_casefolding_rules,
47101         allocated_casefolding_rules): New variables.
47102         (fill_casefolding_rules): New function.
47103         (unicode_casefold): New variable.
47104         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47105         sort_casing_rules, output_casing_rules): New functions.
47106         (main): Accept to more arguments: SpecialCasing.txt and
47107         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47108         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47109         Output mapping for casefolding.
47110
47111         * lib/unicase.h: Include stdbool.h, uninorm.h.
47112         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47113         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47114         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47115         arguments.
47116         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47117         resultp arguments.
47118         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47119         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47120         resultp arguments.
47121         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47122         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47123         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47124         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47125         declarations.
47126         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47127
47128 2009-03-08  Bruno Haible  <bruno@clisp.org>
47129
47130         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47131         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47132         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47133         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47134
47135 2009-03-07  Bruno Haible  <bruno@clisp.org>
47136
47137         Adjust u*_normcmp, u*_normcoll API.
47138         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47139         u16_normcoll, u32_normcoll): Change failure conventions.
47140         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47141         errno and return -1.
47142         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47143
47144 2009-03-07  Bruno Haible  <bruno@clisp.org>
47145
47146         Tests for module 'uninorm/u32-normcoll'.
47147         * modules/uninorm/u32-normcoll-tests: New file.
47148         * tests/uninorm/test-u32-normcoll.c: New file.
47149
47150         Tests for module 'uninorm/u16-normcoll'.
47151         * modules/uninorm/u16-normcoll-tests: New file.
47152         * tests/uninorm/test-u16-normcoll.c: New file.
47153
47154         Tests for module 'uninorm/u8-normcoll'.
47155         * modules/uninorm/u8-normcoll-tests: New file.
47156         * tests/uninorm/test-u8-normcoll.c: New file.
47157
47158 2009-03-07  Bruno Haible  <bruno@clisp.org>
47159
47160         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47161         tests/uninorm/test-u32-normcmp.c.
47162         * tests/uninorm/test-u32-normcmp.c: Include it.
47163         (test_nonascii): New function, extracted from main. Add some more
47164         tests.
47165         (main): Invoke test_ascii and test_nonascii.
47166         * modules/uninorm/u32-normcmp-tests (Files): Add
47167         tests/uninorm/test-u32-normcmp.h.
47168         (Depends-on): Remove uninorm/u32-normcmp.
47169
47170         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47171         tests/uninorm/test-u16-normcmp.c.
47172         * tests/uninorm/test-u16-normcmp.c: Include it.
47173         (test_nonascii): New function, extracted from main. Add some more
47174         tests.
47175         (main): Invoke test_ascii and test_nonascii.
47176         * modules/uninorm/u16-normcmp-tests (Files): Add
47177         tests/uninorm/test-u16-normcmp.h.
47178         (Depends-on): Remove uninorm/u16-normcmp.
47179
47180         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47181         tests/uninorm/test-u8-normcmp.c.
47182         * tests/uninorm/test-u8-normcmp.c: Include it.
47183         (test_nonascii): New function, extracted from main. Add some more
47184         tests.
47185         (main): Invoke test_ascii and test_nonascii.
47186         * modules/uninorm/u8-normcmp-tests (Files): Add
47187         tests/uninorm/test-u8-normcmp.h.
47188         (Depends-on): Remove uninorm/u8-normcmp.
47189
47190 2009-03-07  Bruno Haible  <bruno@clisp.org>
47191
47192         New module 'uninorm/u32-normcoll'.
47193         * lib/uninorm/u32-normcoll.c: New file.
47194         * modules/uninorm/u32-normcoll: New file.
47195
47196         New module 'uninorm/u16-normcoll'.
47197         * lib/uninorm/u16-normcoll.c: New file.
47198         * modules/uninorm/u16-normcoll: New file.
47199
47200         New module 'uninorm/u8-normcoll'.
47201         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47202         declarations.
47203         * lib/uninorm/u8-normcoll.c: New file.
47204         * lib/uninorm/u-normcoll.h: New file.
47205         * modules/uninorm/u8-normcoll: New file.
47206
47207         New module 'uninorm/u32-normxfrm'.
47208         * lib/uninorm/u32-normxfrm.c: New file.
47209         * modules/uninorm/u32-normxfrm: New file.
47210
47211         New module 'uninorm/u16-normxfrm'.
47212         * lib/uninorm/u16-normxfrm.c: New file.
47213         * modules/uninorm/u16-normxfrm: New file.
47214
47215         New module 'uninorm/u8-normxfrm'.
47216         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47217         declarations.
47218         * lib/uninorm/u8-normxfrm.c: New file.
47219         * lib/uninorm/u-normxfrm.h: New file.
47220         * modules/uninorm/u8-normxfrm: New file.
47221
47222 2009-03-07  Bruno Haible  <bruno@clisp.org>
47223
47224         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47225         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47226         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47227
47228 2009-03-07  Bruno Haible  <bruno@clisp.org>
47229
47230         New module 'memxfrm'.
47231         * lib/memxfrm.h: New file.
47232         * lib/memxfrm.c: New file.
47233         * modules/memxfrm: New file.
47234
47235 2009-03-07  Bruno Haible  <bruno@clisp.org>
47236
47237         New module 'memcmp2'.
47238         * lib/memcmp2.h: New file.
47239         * lib/memcmp2.c: New file.
47240         * modules/memcmp2: New file.
47241
47242 2009-03-07  Bruno Haible  <bruno@clisp.org>
47243
47244         Tests for module 'uninorm/decomposing-form'.
47245         * modules/uninorm/decomposing-form-tests: New file.
47246         * tests/uninorm/test-decomposing-form.c: New file.
47247
47248         New module 'uninorm/decomposing-form'.
47249         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47250         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47251         Add 'decomposing_variant' field.
47252         * lib/uninorm/decomposing-form.c: New file.
47253         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47254         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47255         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47256         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47257         * modules/uninorm/decomposing-form: New file.
47258         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47259         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47260
47261 2009-03-07  Bruno Haible  <bruno@clisp.org>
47262
47263         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47264         strings.
47265
47266 2009-03-06  Bruno Haible  <bruno@clisp.org>
47267
47268         Tests for module 'uninorm/u32-normcmp'.
47269         * tests/uninorm/test-u32-normcmp.c: New file.
47270         * modules/uninorm/u32-normcmp-tests: New file.
47271
47272         Tests for module 'uninorm/u16-normcmp'.
47273         * tests/uninorm/test-u16-normcmp.c: New file.
47274         * modules/uninorm/u16-normcmp-tests: New file.
47275
47276         Tests for module 'uninorm/u8-normcmp'.
47277         * tests/uninorm/test-u8-normcmp.c: New file.
47278         * modules/uninorm/u8-normcmp-tests: New file.
47279
47280         New module 'uninorm/u32-normcmp'.
47281         * lib/uninorm/u32-normcmp.c: New file.
47282         * modules/uninorm/u32-normcmp: New file.
47283
47284         New module 'uninorm/u16-normcmp'.
47285         * lib/uninorm/u16-normcmp.c: New file.
47286         * modules/uninorm/u16-normcmp: New file.
47287
47288         New module 'uninorm/u8-normcmp'.
47289         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47290         declarations.
47291         * lib/uninorm/u8-normcmp.c: New file.
47292         * lib/uninorm/u-normcmp.h: New file.
47293         * modules/uninorm/u8-normcmp: New file.
47294
47295 2009-03-06  Bruno Haible  <bruno@clisp.org>
47296
47297         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47298         Reported by Eric Blake.
47299
47300 2009-03-06  Eric Blake  <ebb9@byu.net>
47301             Bruno Haible  <bruno@clisp.org>
47302
47303         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47304         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47305         condition.
47306         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47307         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47308         condition.
47309         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47310
47311 2009-03-06  Eric Blake  <ebb9@byu.net>
47312
47313         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47314         to avoid compiler warnings.
47315         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47316
47317 2009-03-05  Bruno Haible  <bruno@clisp.org>
47318
47319         * tests/test-ftell.c (main): Disable test beyond end of file on
47320         FreeMiNT.
47321         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47322
47323 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47324
47325         * lib/filevercmp.c: Move hidden files up in ordering.
47326         * tests/test-filevercmp.c: Add tests for hidden files.
47327
47328 2009-03-04  Bruno Haible  <bruno@clisp.org>
47329
47330         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47331         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47332         AM_CFLAGS.
47333         Reported by Simon Josefsson.
47334
47335 2009-03-03  Bruno Haible  <bruno@clisp.org>
47336
47337         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47338         Reported by Simon Josefsson.
47339
47340         * doc/ld-version-script.texi: Update node reference.
47341
47342 2009-03-03  Bruno Haible  <bruno@clisp.org>
47343
47344         * modules/visibility (License): Change to 'unlimited'.
47345         Suggested by Simon Josefsson.
47346
47347 2009-03-03  Jim Meyering  <meyering@redhat.com>
47348
47349         unlinkdir: cannot_unlink_dir may modify process state
47350         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47351         it's neither thread-safe nor appropriate for use in a library.
47352
47353 2009-03-03  Eric Blake  <ebb9@byu.net>
47354
47355         test-closein: silence test under Darwin
47356         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47357         care if it dies from EPIPE or EBADF.
47358
47359 2009-03-03  Bruno Haible  <bruno@clisp.org>
47360
47361         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47362         earlier.
47363         * doc/visibility.texi: Fix @node and @section.
47364
47365 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47366
47367         * doc/gnulib.texi: Link to sections for ld version script and
47368         visibility.
47369         * doc/visibility.texi: Add @node and @section.
47370         * modules/ld-version-script: New module.
47371         * m4/ld-version-script.m4: New file.
47372         * doc/ld-version-script.texi: New file.
47373
47374 2009-03-02  David Lutterkort  <lutter@redhat.com>
47375
47376         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47378
47379 2009-03-02  Bruno Haible  <bruno@clisp.org>
47380
47381         * doc/visibility.texi: Mention libtool's -export-symbols option.
47382
47383 2009-03-02  Jim Meyering  <meyering@redhat.com>
47384
47385         announce-gen: new option: --no-print-checksums
47386         * build-aux/announce-gen (usage): Describe it.
47387         (print_checksums): Print a newline here, not in the [*] footnote.
47388         (main): Honor it.
47389
47390 2009-03-01  Bruno Haible  <bruno@clisp.org>
47391
47392         Use socklen_t in the native Windows replacements prototypes.
47393         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47394         instead of 'int'.
47395         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47396         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47397         * modules/getsockopt (Depends-on): Add socklen.
47398         * modules/setsockopt (Depends-on): Add socklen.
47399
47400 2009-03-01  Bruno Haible  <bruno@clisp.org>
47401
47402         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47403         least 4.2.
47404
47405 2009-03-01  Eric Blake  <ebb9@byu.net>
47406             Bruno Haible  <bruno@clisp.org>
47407
47408         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47409         error messages.
47410         * lib/wait-process.c (wait_subprocess): Omit error message about
47411         deadly signal sent to the child of termsigp != NULL.
47412
47413 2009-03-01  Eric Blake  <ebb9@byu.net>
47414
47415         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47416
47417 2009-03-01  Bruno Haible  <bruno@clisp.org>
47418
47419         Avoid a gcc warning.
47420         * tests/test-sched.c (b): Make global.
47421         Reported by Eric Blake.
47422
47423 2009-01-19  Martin Lambers  <marlam@marlam.de>
47424
47425         Provide POSIX semantics for socket timeout options on W32.
47426         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47427         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47428         * modules/setsockopt: Depend on sys_time module for struct timeval.
47429         * modules/getsockopt: Depend on sys_time module for struct timeval.
47430
47431 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47432
47433         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47434         __USE_GNU, for consistency with netdb.in.h.
47435         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47436
47437 2009-03-01  Bruno Haible  <bruno@clisp.org>
47438
47439         More support for FreeMiNT.
47440         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47441         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47442
47443 2009-03-01  Bruno Haible  <bruno@clisp.org>
47444
47445         More support for FreeMiNT.
47446         * lib/fpurge.c (fpurge): Correct last commit.
47447         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47448
47449 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47450
47451         Fix unportable awk script in vc-list-files.
47452         * build-aux/vc-list-files: In the replacement awk script, use
47453         substr with a second argument of 1, not zero.
47454         Report by Simon Josefsson.
47455
47456 2009-02-28  Bruno Haible  <bruno@clisp.org>
47457
47458         More support for FreeMiNT.
47459         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47460         to FreeMiNT today.
47461         * lib/fwriting.c (fwriting): Likewise.
47462         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47463
47464 2009-02-28  Bruno Haible  <bruno@clisp.org>
47465
47466         * tests/test-freadseek.c (main): Disable test beyond end of file on
47467         FreeMiNT.
47468         * tests/test-ftello.c (main): Likewise.
47469         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47470
47471 2009-02-28  Bruno Haible  <bruno@clisp.org>
47472
47473         Add tentative support for FreeMiNT.
47474         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47475         * lib/fpurge.c (fpurge): Likewise.
47476         * lib/freadable.c (freadable): Likewise.
47477         * lib/freading.c (freading): Likewise.
47478         * lib/freadptr.c (freadptr): Likewise.
47479         * lib/freadseek.c (freadptrinc): Likewise.
47480         * lib/fseeko.c (rpl_fseeko): Likewise.
47481         * lib/fseterr.c (fseterr): Likewise.
47482         * lib/fwritable.c (fwritable): Likewise.
47483         * lib/fwriting.c (fwriting): Likewise.
47484         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47485         Hourihane.
47486         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47487
47488 2009-02-28  Bruno Haible  <bruno@clisp.org>
47489
47490         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47491         SIGCHLD.
47492         Reported by Jim Meyering.
47493
47494 2009-02-28  Bruno Haible  <bruno@clisp.org>
47495
47496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47497         Mention the results of these tests on various platforms.
47498         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47499         order.
47500         * doc/posix-functions/printf.texi: Likewise.
47501         * doc/posix-functions/snprintf.texi: Likewise.
47502         * doc/posix-functions/sprintf.texi: Likewise.
47503         * doc/posix-functions/vfprintf.texi: Likewise.
47504         * doc/posix-functions/vprintf.texi: Likewise.
47505         * doc/posix-functions/vsnprintf.texi: Likewise.
47506         * doc/posix-functions/vsprintf.texi: Likewise.
47507         * doc/glibc-functions/obstack_printf.texi: Likewise.
47508         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47509
47510 2009-02-28  Bruno Haible  <bruno@clisp.org>
47511
47512         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47513         Reported by Loïc Minier <lool@dooz.org>.
47514
47515 2009-02-27  Bruno Haible  <bruno@clisp.org>
47516
47517         * gnulib-tool (func_import): Make the sed expression used to create the
47518         sed script for updating the .gitignore file POSIX compliant.
47519         Reported by Eric Blake.
47520
47521 2009-02-27  Bruno Haible  <bruno@clisp.org>
47522
47523         * gnulib-tool (sed): Don't alias as "sed --posix".
47524         Reported by Eric Blake.
47525
47526 2009-02-27  Bruno Haible  <bruno@clisp.org>
47527
47528         Avoid test link errors.
47529         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47530         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47531         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47532         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47534
47535 2009-02-27  Bruno Haible  <bruno@clisp.org>
47536
47537         Avoid spurious "(cached)" in configure output.
47538         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47539         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47540         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47541         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47542         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47543         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47544         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47545         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47546         Reported by Eric Blake.
47547
47548 2009-02-27  Eric Blake  <ebb9@byu.net>
47549
47550         printf: fix regression in previous patch
47551         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47552
47553 2009-02-27  Bruno Haible  <bruno@clisp.org>
47554
47555         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47556         value.
47557         * lib/stdint.in.h: Likewise.
47558         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47559
47560 2009-02-27  Eric Blake  <ebb9@byu.net>
47561
47562         doc: mention more functions added in cygwin 1.7.0
47563         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47564         addition.
47565         * doc/posix-functions/open_wmemstream.texi: Likewise.
47566         * doc/posix-functions/wcsnlen.texi: Likewise.
47567         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47568         * doc/posix-functions/wcstod.texi: Likewise.
47569         * doc/posix-functions/wcstof.texi: Likewise.
47570         * doc/posix-functions/wcstoimax.texi: Likewise.
47571         * doc/posix-functions/wcstok.texi: Likewise.
47572         * doc/posix-functions/wcstoumax.texi: Likewise.
47573
47574         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47576         * doc/posix-functions/fprintf.texi: Update.
47577         * doc/posix-functions/printf.texi: Update.
47578         * doc/posix-functions/snprintf.texi: Update.
47579         * doc/posix-functions/sprintf.texi: Update.
47580         * doc/posix-functions/vfprintf.texi: Update.
47581         * doc/posix-functions/vprintf.texi: Update.
47582         * doc/posix-functions/vsnprintf.texi: Update.
47583         * doc/posix-functions/vsprintf.texi: Update.
47584         * doc/glibc-functions/obstack_printf.texi: Update.
47585         * doc/glibc-functions/obstack_vprintf.texi: Update.
47586
47587 2009-02-26  Eric Blake  <ebb9@byu.net>
47588
47589         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47590         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47591         compilation bug by using runtime conversion.
47592         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47593         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47594         * modules/ceill-tests (Files): Use nan.h.
47595         * modules/floorl-tests (Files): Likewise.
47596         * modules/frexpl-tests (Files): Likewise.
47597         * modules/isnanl-tests (Files): Likewise.
47598         * modules/ldexpl-tests (Files): Likewise.
47599         * modules/roundl-tests (Files): Likewise.
47600         * modules/truncl-tests (Files): Likewise.
47601         * tests/test-ceill.c (main): Use a working NaN.
47602         * tests/test-floorl.c (main): Likewise.
47603         * tests/test-frexpl.c (main): Likewise.
47604         * tests/test-isnan.c (test_long_double): Likewise.
47605         * tests/test-isnanl.h (main): Likewise.
47606         * tests/test-ldexpl.h (main): Likewise.
47607         * tests/test-roundl.h (main): Likewise.
47608         * tests/test-truncl.h (main): Likewise.
47609         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47610
47611 2009-02-26  Eric Blake  <ebb9@byu.net>
47612             Bruno Haible  <bruno@clisp.org>
47613
47614         Work around a *printf bug with %ls on Solaris.
47615         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47616         precision is specified, sprintf stops converting the wide string
47617         argument when the number of bytes that have been produced by this
47618         conversion equals or exceeds the precision.
47619         * doc/posix-functions/fprintf.texi: Update.
47620         * doc/posix-functions/printf.texi: Update.
47621         * doc/posix-functions/snprintf.texi: Update.
47622         * doc/posix-functions/sprintf.texi: Update.
47623         * doc/posix-functions/vfprintf.texi: Update.
47624         * doc/posix-functions/vprintf.texi: Update.
47625         * doc/posix-functions/vsnprintf.texi: Update.
47626         * doc/posix-functions/vsprintf.texi: Update.
47627         * doc/glibc-functions/obstack_printf.texi: Update.
47628         * doc/glibc-functions/obstack_vprintf.texi: Update.
47629
47630 2009-02-26  Eric Blake  <ebb9@byu.net>
47631
47632         stdlib: favor compiler check of random.h
47633         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47634         to avoid an ObjC random.h installed by Swarm.
47635
47636 2009-02-26  Bruno Haible  <bruno@clisp.org>
47637
47638         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47639         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47640         Reported by Gary V. Vaughan <gary@gnu.org>.
47641
47642 2009-02-26  Bruno Haible  <bruno@clisp.org>
47643
47644         Fix *printf behaviour regarding the %ls directive.
47645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47646         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47647         NEED_PRINTF_DIRECTIVE_LS.
47648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47649         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47651         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47652         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47653         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47654         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47658         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47659         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47660         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47662         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47663         * doc/posix-functions/fprintf.texi: Update.
47664         * doc/posix-functions/printf.texi: Update.
47665         * doc/posix-functions/snprintf.texi: Update.
47666         * doc/posix-functions/sprintf.texi: Update.
47667         * doc/posix-functions/vfprintf.texi: Update.
47668         * doc/posix-functions/vprintf.texi: Update.
47669         * doc/posix-functions/vsnprintf.texi: Update.
47670         * doc/posix-functions/vsprintf.texi: Update.
47671         * doc/glibc-functions/obstack_printf.texi: Update.
47672         * doc/glibc-functions/obstack_vprintf.texi: Update.
47673         Reported by Eric Blake.
47674
47675 2009-02-25  Bruno Haible  <bruno@clisp.org>
47676
47677         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47678         with known value.
47679         Reported by Gary V. Vaughan <gary@gnu.org>.
47680
47681 2009-02-25  Bruno Haible  <bruno@clisp.org>
47682
47683         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47684         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47685         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47686         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47687         Reported by Gary V. Vaughan <gary@gnu.org>.
47688
47689 2009-02-25  Bruno Haible  <bruno@clisp.org>
47690
47691         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47692         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47693         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47694         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47695         Reported by Gary V. Vaughan <gary@gnu.org>.
47696
47697 2009-02-25  Eric Blake  <ebb9@byu.net>
47698
47699         tests: skip fseek/ftell tests if ungetc is broken
47700         * m4/ungetc.m4: New file.
47701         * modules/fseek-tests: Split test, so ungetc dependency is
47702         separate from rest of test.
47703         * modules/fseeko-tests: Likewise.
47704         * modules/ftell-tests: Likewise.
47705         * modules/ftello-tests: Likewise.
47706         * tests/test-fseek.c (main): Isolate ungetc dependency.
47707         * tests/test-fseeko.c (main): Likewise.
47708         * tests/test-ftell.c (main): Likewise.
47709         * tests/test-ftello.c (main): Likewise.
47710         * tests/test-fseek2.sh: New file.
47711         * tests/test-fseeko2.sh: Likewise.
47712         * tests/test-ftell2.sh: Likewise.
47713         * tests/test-ftello2.sh: Likewise.
47714
47715 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
47716
47717         test-getaddrinfo: fix usage of skip return code 77
47718         * tests/test-gettaddrinfo.c: Return skip code 77 only
47719         for first occurrence of skip (4x77 is not 77)
47720
47721 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47722
47723         strtod: avoid C99 decl-after-statement
47724         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47725
47726 2009-02-24  Eric Blake  <ebb9@byu.net>
47727
47728         strtod: detect HP-UX 11.31 bug
47729         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47730         Reported by Gary V. Vaughan.
47731
47732 2009-02-23  Bruno Haible  <bruno@clisp.org>
47733
47734         Fix invalid read past end of memory block.
47735         * lib/vasnprintf.c (DCHAR_SET): Define.
47736         (local_wcslen): Define only when needed.
47737         (local_strnlen, local_wcsnlen): New functions.
47738         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47739         directives that involve a conversion ourselves.
47740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47741         wcsnlen, mbrtowc, wcrtomb.
47742         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47743         * tests/test-vasprintf-posix.c (test_function): Likewise.
47744         * tests/test-snprintf-posix.h (test_function): Likewise.
47745         * tests/test-sprintf-posix.h (test_function): Likewise.
47746         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47747
47748 2009-02-22  Bruno Haible  <bruno@clisp.org>
47749
47750         Implement new clarified decomposition of Hangul syllables.
47751         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47752         of type LTV, return only a pairwise decomposition.
47753         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47754         Likewise.
47755         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47756         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47757         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47758
47759 2009-02-22  Bruno Haible  <bruno@clisp.org>
47760
47761         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47762         zero-length results and shrink excess allocated memory.
47763         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47764         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47765         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47766         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47767         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47768         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47769         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47770         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47771         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47772         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47773         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47774         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47775
47776 2009-02-21  Bruno Haible  <bruno@clisp.org>
47777
47778         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47779         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47780         spaces after a period. Put a space between a macro name and its
47781         argument list. Trivial rewordings.
47782         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47783         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47784         (main): Return 0 explicitly.
47785
47786 2009-02-21  Bruno Haible  <bruno@clisp.org>
47787
47788         Tests for module 'uninorm/filter'.
47789         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47790         * modules/uninorm/filter-tests: New file.
47791
47792         New module 'uninorm/filter'.
47793         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47794         uninorm_filter_flush, uninorm_filter_free): New declarations.
47795         * lib/uninorm/uninorm-filter.c: New file.
47796         * modules/uninorm/filter: New file.
47797
47798 2009-02-21  Bruno Haible  <bruno@clisp.org>
47799
47800         Tests for module 'uninorm/nfkc'.
47801         * tests/uninorm/test-nfkc.c: New file.
47802         * tests/uninorm/test-u8-nfkc.c: New file.
47803         * tests/uninorm/test-u16-nfkc.c: New file.
47804         * tests/uninorm/test-u32-nfkc.c: New file.
47805         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47806         * tests/uninorm/test-u32-nfkc-big.c: New file.
47807         * modules/uninorm/nfkc-tests: New file.
47808
47809         New module 'uninorm/nfkc'.
47810         * lib/uninorm/nfkc.c: New file.
47811         * modules/uninorm/nfkc: New file.
47812
47813         Tests for module 'uninorm/nfkd'.
47814         * tests/uninorm/test-nfkd.c: New file.
47815         * tests/uninorm/test-u8-nfkd.c: New file.
47816         * tests/uninorm/test-u16-nfkd.c: New file.
47817         * tests/uninorm/test-u32-nfkd.c: New file.
47818         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47819         * tests/uninorm/test-u32-nfkd-big.c: New file.
47820         * modules/uninorm/nfkd-tests: New file.
47821
47822         New module 'uninorm/nfkd'.
47823         * lib/uninorm/nfkd.c: New file.
47824         * modules/uninorm/nfkd: New file.
47825
47826         Tests for module 'uninorm/nfc'.
47827         * tests/uninorm/test-nfc.c: New file.
47828         * tests/uninorm/test-u8-nfc.c: New file.
47829         * tests/uninorm/test-u16-nfc.c: New file.
47830         * tests/uninorm/test-u32-nfc.c: New file.
47831         * tests/uninorm/test-u32-nfc-big.sh: New file.
47832         * tests/uninorm/test-u32-nfc-big.c: New file.
47833         * modules/uninorm/nfc-tests: New file.
47834
47835         New module 'uninorm/nfc'.
47836         * lib/uninorm/nfc.c: New file.
47837         * modules/uninorm/nfc: New file.
47838
47839         Tests for module 'uninorm/nfd'.
47840         * tests/uninorm/test-nfd.c: New file.
47841         * tests/uninorm/test-u8-nfd.c: New file.
47842         * tests/uninorm/test-u16-nfd.c: New file.
47843         * tests/uninorm/test-u32-nfd.c: New file.
47844         * tests/uninorm/test-u32-nfd-big.sh: New file.
47845         * tests/uninorm/test-u32-nfd-big.c: New file.
47846         * tests/uninorm/test-u32-normalize-big.h: New file.
47847         * tests/uninorm/test-u32-normalize-big.c: New file.
47848         * tests/uninorm/NormalizationTest.txt: New file, created from
47849         Unicode 5.1.0 NormalizationTest.txt.
47850         * modules/uninorm/nfd-tests: New file.
47851
47852         New module 'uninorm/nfd'.
47853         * lib/uninorm/nfd.c: New file.
47854         * modules/uninorm/nfd: New file.
47855
47856         New module 'uninorm/u32-normalize'.
47857         * lib/uninorm/u32-normalize.c: New file.
47858         * modules/uninorm/u32-normalize: New file.
47859
47860         New module 'uninorm/u16-normalize'.
47861         * lib/uninorm/u16-normalize.c: New file.
47862         * modules/uninorm/u16-normalize: New file.
47863
47864         New module 'uninorm/u8-normalize'.
47865         * lib/uninorm/u8-normalize.c: New file.
47866         * lib/uninorm/normalize-internal.h: New file.
47867         * lib/uninorm/u-normalize-internal.h: New file.
47868         * modules/uninorm/u8-normalize: New file.
47869
47870         New module 'uninorm/decompose-internal'.
47871         * lib/uninorm/decompose-internal.c: New file.
47872         * modules/uninorm/decompose-internal: New file.
47873
47874         Tests for module 'uninorm/composition'.
47875         * tests/uninorm/test-composition.c: New file.
47876         * modules/uninorm/composition-tests: New file.
47877
47878         New module 'uninorm/composition'.
47879         * lib/uninorm/composition.c: New file.
47880         * lib/uninorm/composition-table.gperf: New file, generated by
47881         gen-uni-tables.
47882         * modules/uninorm/composition: New file.
47883
47884         Tests for module 'uninorm/compat-decomposition'.
47885         * tests/uninorm/test-compat-decomposition.c: New file.
47886         * modules/uninorm/compat-decomposition-tests: New file.
47887
47888         New module 'uninorm/compat-decomposition'.
47889         * lib/uninorm/decompose-internal.h: New file.
47890         * lib/uninorm/compat-decomposition.c: New file.
47891         * modules/uninorm/compat-decomposition: New file.
47892
47893         Tests for module 'uninorm/canonical-decomposition'.
47894         * tests/uninorm/test-canonical-decomposition.c: New file.
47895         * modules/uninorm/canonical-decomposition-tests: New file.
47896
47897         New module 'uninorm/canonical-decomposition'.
47898         * lib/uninorm/canonical-decomposition.c: New file.
47899         * modules/uninorm/canonical-decomposition: New file.
47900
47901         Tests for module 'uninorm/decomposition'.
47902         * tests/uninorm/test-decomposition.c: New file.
47903         * modules/uninorm/decomposition-tests: New file.
47904
47905         New module 'uninorm/decomposition'.
47906         * lib/uninorm/decomposition.c: New file.
47907         * modules/uninorm/decomposition: New file.
47908
47909         New module 'uninorm/decomposition-table'.
47910         * lib/uninorm/decomposition-table.h: New file.
47911         * lib/uninorm/decomposition-table.c: New file.
47912         * lib/uninorm/decomposition-table1.h: New file, generated by
47913         gen-uni-tables.
47914         * lib/uninorm/decomposition-table2.h: New file, generated by
47915         gen-uni-tables.
47916         * modules/uninorm/decomposition-table: New file.
47917
47918         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47919         (UC_DECOMP_*): New enumeration items.
47920         (get_decomposition): New function.
47921         (struct decomp_table): New type.
47922         (output_decomposition, output_decomposition_tables): New functions.
47923         (unicode_composition_exclusions): New variable.
47924         (fill_composition_exclusions, debug_output_composition_tables): New
47925         functions.
47926         (main): Accept one more argument. Invoke fill_composition_exclusions.
47927         Output decomposition and composition tables.
47928
47929         New module 'uninorm/base'.
47930         * lib/uninorm.h: New file.
47931         * lib/unictype.h: Update comment.
47932         * modules/uninorm/base: New file.
47933
47934 2009-02-21  David Lutterkort  <lutter@redhat.com>
47935
47936         Tests for module 'safe-alloc'.
47937         * tests/test-safe-alloc.c: New file.
47938         * modules/safe-alloc-tests: New file.
47939
47940         New module 'safe-alloc'.
47941         * lib/safe-alloc.h: New file.
47942         * lib/safe-alloc.c: New file.
47943         * m4/safe-alloc.m4: New file.
47944         * modules/safe-alloc: New file.
47945         * doc/safe-alloc.texi: New file.
47946         * doc/gnulib.texi: Include it.
47947         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47948         safe-alloc.
47949
47950 2009-02-18  Bruno Haible  <bruno@clisp.org>
47951
47952         Fix link error on non-glibc systems.
47953         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47954         variable.
47955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47956
47957 2009-02-18  Jim Meyering  <meyering@redhat.com>
47958
47959         fts: avoid used-uninitialized error due to recent change
47960         * lib/fts.c (fts_read): Guard uses of the new member,
47961         parent->fts_n_dirs_remaining, since it's not relevant for
47962         the parent of a directory specified on the command-line.
47963
47964 2009-02-17  James Youngman  <jay@gnu.org>
47965             Bruno Haible  <bruno@clisp.org>
47966
47967         * m4/include_next.m4: Reformulate comment.
47968
47969 2009-02-16  Jim Meyering  <meyering@redhat.com>
47970
47971         fts: add #if guards so that the fts_lgpl module still builds
47972         * lib/fts.c: Guard just-added hash-table-using parts with
47973         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47974         Reported by Simon Josefsson.
47975
47976 2009-02-15  Bruno Haible  <bruno@clisp.org>
47977
47978         * modules/array-mergesort-tests: New file.
47979         * tests/test-array-mergesort.c: New file.
47980
47981         New module 'array-mergesort'.
47982         * modules/array-mergesort: New file.
47983         * lib/array-mergesort.h: New file.
47984
47985 2009-02-15  Bruno Haible  <bruno@clisp.org>
47986
47987         Fix 2009-02-07 commit.
47988         * lib/gen-uni-tables.c (output_predicate, output_category,
47989         output_combclass, output_bidi_category, output_decimal_digit,
47990         output_digit, output_numeric, output_mirror, output_scripts,
47991         output_ident_category, output_simple_mapping): Fix format directives.
47992         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47993
47994 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47995
47996         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47997         fixes are available from IBM.
47998
47999 2009-02-13  Jim Meyering  <meyering@redhat.com>
48000
48001         fts: arrange not to stat non-directories in more cases
48002         This makes GNU find (when it doesn't need to stat each file)
48003         *much* more efficient at traversing reiserfs file systems.
48004         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48005         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48006         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48007         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48008         (leaf_optimization_applies): New function.
48009         (LCO_hash, LCO_compare): New helper functions.
48010         (link_count_optimize_ok): New function.
48011         (fts_stat): Initialize new member (if dir).
48012         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48013         we've just stat'ed a directory.  Skip the stat call when possible.
48014         ---
48015         Note this AFS-related exchange:
48016         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48017         and note find's pioctl call in find/fstype.c.
48018         But that is necessary only if you want to enable the
48019         optimization for AFS, and for now, I don't.
48020
48021         fts: move a function definition "up" (no semantic change)
48022         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48023         "up" to precede upcoming use of a related function.
48024
48025 2009-02-11  Jim Meyering  <meyering@redhat.com>
48026
48027         fts: correct internal computation of nlinks (optimization-related)
48028         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48029         whether the current entry is a directory, so don't test it.
48030
48031 2009-02-10  Bruno Haible  <bruno@clisp.org>
48032
48033         Tests for module 'uniwbrk/ulc-wordbreaks'.
48034         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48035         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48036         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48037
48038         Tests for module 'uniwbrk/u32-wordbreaks'.
48039         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48040         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48041
48042         Tests for module 'uniwbrk/u16-wordbreaks'.
48043         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48044         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48045
48046         Tests for module 'uniwbrk/u8-wordbreaks'.
48047         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48048         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48049
48050 2009-02-10  Bruno Haible  <bruno@clisp.org>
48051
48052         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48053         property.
48054         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48055         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48056         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48057
48058 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48059
48060         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48061         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48062
48063 2009-02-10  Bruno Haible  <bruno@clisp.org>
48064
48065         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48066         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48067         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48068         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48069         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48070         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48071
48072 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48073
48074         * lib/sockets.h (gl_fd_to_handle): New function.
48075
48076         * tests/test-sockets.c: Call gl_fd_to_handle.
48077
48078 2009-02-09  Bruno Haible  <bruno@clisp.org>
48079
48080         * doc/havelib.texi: Document the conventions on bi-arch systems.
48081
48082 2009-02-08  Bruno Haible  <bruno@clisp.org>
48083
48084         Document the AC_LIB_LINKFLAGS macro.
48085         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48086         * doc/gnulib.texi: Include it.
48087
48088 2009-02-08  Bruno Haible  <bruno@clisp.org>
48089
48090         Fix wrong order of sections, compared to TOC.
48091         * doc/gnulib.texi: Include relocatable-maint.texi after the
48092         "Regular expressions" node, not before.
48093
48094 2009-02-08  Bruno Haible  <bruno@clisp.org>
48095
48096         Tests for module 'unicase/totitle'.
48097         * modules/unicase/totitle-tests: New file.
48098
48099         Tests for module 'unicase/tolower'.
48100         * modules/unicase/tolower-tests: New file.
48101
48102         Tests for module 'unicase/toupper'.
48103         * modules/unicase/toupper-tests: New file.
48104         * tests/unicase/test-mapping-part1.h: New file.
48105         * tests/unicase/test-mapping-part2.h: New file.
48106
48107         New module 'unicase/totitle'.
48108         * modules/unicase/totitle: New file.
48109         * lib/unicase/totitle.c: New file.
48110
48111         New module 'unicase/tolower'.
48112         * modules/unicase/tolower: New file.
48113         * lib/unicase/tolower.c: New file.
48114
48115         New module 'unicase/toupper'.
48116         * modules/unicase/toupper: New file.
48117         * lib/unicase/toupper.c: New file.
48118         * lib/unicase/simple-mapping.h: New file.
48119
48120         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48121         (mapping_table): New structure.
48122         (output_simple_mapping): New function.
48123         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48124         * modules/gen-uni-tables (Description): Update.
48125         * lib/unicase/toupper.h: New file, automatically generated by
48126         gen-uni-tables.
48127         * lib/unicase/tolower.h: New file, automatically generated by
48128         gen-uni-tables.
48129         * lib/unicase/totitle.h: New file, automatically generated by
48130         gen-uni-tables.
48131         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48132         gen-uni-tables.
48133         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48134         gen-uni-tables.
48135         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48136         gen-uni-tables.
48137
48138         New module 'unicase/base'.
48139         * modules/unicase/base: New file.
48140         * lib/unicase.h: New file.
48141
48142 2009-02-08  Bruno Haible  <bruno@clisp.org>
48143
48144         New module 'uniwbrk/ulc-wordbreaks'.
48145         * modules/uniwbrk/ulc-wordbreaks: New file.
48146         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48147
48148         New module 'uniwbrk/u32-wordbreaks'.
48149         * modules/uniwbrk/u32-wordbreaks: New file.
48150         * lib/uniwbrk/u32-wordbreaks.c: New file.
48151
48152         New module 'uniwbrk/u16-wordbreaks'.
48153         * modules/uniwbrk/u16-wordbreaks: New file.
48154         * lib/uniwbrk/u16-wordbreaks.c: New file.
48155
48156         New module 'uniwbrk/u8-wordbreaks'.
48157         * modules/uniwbrk/u8-wordbreaks: New file.
48158         * lib/uniwbrk/u8-wordbreaks.c: New file.
48159         * lib/uniwbrk/u-wordbreaks.h: New file.
48160
48161         New module 'uniwbrk/table'.
48162         * modules/uniwbrk/table: New file.
48163         * lib/uniwbrk/wbrktable.h: New file.
48164         * lib/uniwbrk/wbrktable.c: New file.
48165
48166         New module 'uniwbrk/wordbreak-property'.
48167         * modules/uniwbrk/wordbreak-property: New file.
48168         * lib/uniwbrk/wordbreak-property.c: New file.
48169
48170         * lib/gen-uni-tables.c (WBP_*): New enum items.
48171         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48172         (unicode_org_wbp): New variable.
48173         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48174         New functions.
48175         (wbp_table): New structure.
48176         (output_wbp, output_wbrk_tables): New functions.
48177         (main): Accept additional argument. Invoke fill_org_wbp,
48178         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48179         output_wbrk_tables.
48180         * modules/gen-uni-tables (Description): Update.
48181         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48182         gen-uni-tables.
48183
48184         New module 'uniwbrk/base'.
48185         * modules/uniwbrk/base: New file.
48186         * lib/uniwbrk.h: New file.
48187
48188 2009-02-08  Bruno Haible  <bruno@clisp.org>
48189
48190         Update to Unicode 5.1.0.
48191         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48192         U+2185..U+2188.
48193         (is_property_default_ignorable_code_point): Don't include characters
48194         of category Cc or Cs and not-a-characters.
48195         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48196         U+0D79, U+109E, U+109F, U+A60C.
48197         * lib/unictype/bidi_of.h: Regenerated.
48198         * lib/unictype/blocks.h: Regenerated.
48199         * lib/unictype/categ_C.h: Regenerated.
48200         * lib/unictype/categ_Cf.h: Regenerated.
48201         * lib/unictype/categ_Cn.h: Regenerated.
48202         * lib/unictype/categ_L.h: Regenerated.
48203         * lib/unictype/categ_Ll.h: Regenerated.
48204         * lib/unictype/categ_Lm.h: Regenerated.
48205         * lib/unictype/categ_Lo.h: Regenerated.
48206         * lib/unictype/categ_Lu.h: Regenerated.
48207         * lib/unictype/categ_M.h: Regenerated.
48208         * lib/unictype/categ_Mc.h: Regenerated.
48209         * lib/unictype/categ_Me.h: Regenerated.
48210         * lib/unictype/categ_Mn.h: Regenerated.
48211         * lib/unictype/categ_N.h: Regenerated.
48212         * lib/unictype/categ_Nd.h: Regenerated.
48213         * lib/unictype/categ_Nl.h: Regenerated.
48214         * lib/unictype/categ_No.h: Regenerated.
48215         * lib/unictype/categ_P.h: Regenerated.
48216         * lib/unictype/categ_Pd.h: Regenerated.
48217         * lib/unictype/categ_Pe.h: Regenerated.
48218         * lib/unictype/categ_Pf.h: Regenerated.
48219         * lib/unictype/categ_Pi.h: Regenerated.
48220         * lib/unictype/categ_Po.h: Regenerated.
48221         * lib/unictype/categ_Ps.h: Regenerated.
48222         * lib/unictype/categ_S.h: Regenerated.
48223         * lib/unictype/categ_Sk.h: Regenerated.
48224         * lib/unictype/categ_Sm.h: Regenerated.
48225         * lib/unictype/categ_So.h: Regenerated.
48226         * lib/unictype/categ_of.h: Regenerated.
48227         * lib/unictype/combining.h: Regenerated.
48228         * lib/unictype/ctype_alnum.h: Regenerated.
48229         * lib/unictype/ctype_alpha.h: Regenerated.
48230         * lib/unictype/ctype_graph.h: Regenerated.
48231         * lib/unictype/ctype_lower.h: Regenerated.
48232         * lib/unictype/ctype_print.h: Regenerated.
48233         * lib/unictype/ctype_punct.h: Regenerated.
48234         * lib/unictype/ctype_upper.h: Regenerated.
48235         * lib/unictype/decdigit.h: Regenerated.
48236         * lib/unictype/digit.h: Regenerated.
48237         * lib/unictype/mirror.h: Regenerated.
48238         * lib/unictype/numeric.h: Regenerated.
48239         * lib/unictype/pr_alphabetic.h: Regenerated.
48240         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48241         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48242         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48243         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48244         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48245         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48246         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48247         * lib/unictype/pr_combining.h: Regenerated.
48248         * lib/unictype/pr_dash.h: Regenerated.
48249         * lib/unictype/pr_decimal_digit.h: Regenerated.
48250         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48251         * lib/unictype/pr_deprecated.h: Regenerated.
48252         * lib/unictype/pr_diacritic.h: Regenerated.
48253         * lib/unictype/pr_extender.h: Regenerated.
48254         * lib/unictype/pr_format_control.h: Regenerated.
48255         * lib/unictype/pr_grapheme_base.h: Regenerated.
48256         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48257         * lib/unictype/pr_grapheme_link.h: Regenerated.
48258         * lib/unictype/pr_id_continue.h: Regenerated.
48259         * lib/unictype/pr_id_start.h: Regenerated.
48260         * lib/unictype/pr_ideographic.h: Regenerated.
48261         * lib/unictype/pr_ignorable_control.h: Regenerated.
48262         * lib/unictype/pr_lowercase.h: Regenerated.
48263         * lib/unictype/pr_math.h: Regenerated.
48264         * lib/unictype/pr_numeric.h: Regenerated.
48265         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48266         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48267         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48268         * lib/unictype/pr_other_id_continue.h: Regenerated.
48269         * lib/unictype/pr_other_lowercase.h: Regenerated.
48270         * lib/unictype/pr_other_math.h: Regenerated.
48271         * lib/unictype/pr_punctuation.h: Regenerated.
48272         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48273         * lib/unictype/pr_soft_dotted.h: Regenerated.
48274         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48275         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48276         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48277         * lib/unictype/pr_uppercase.h: Regenerated.
48278         * lib/unictype/pr_xid_continue.h: Regenerated.
48279         * lib/unictype/pr_xid_start.h: Regenerated.
48280         * lib/unictype/pr_zero_width.h: Regenerated.
48281         * lib/unictype/scripts.h: Regenerated.
48282         * lib/unictype/scripts_byname.gperf: Regenerated.
48283         * lib/unictype/sy_java_ident.h: Regenerated.
48284         * lib/unilbrk/lbrkprop1.h: Regenerated.
48285         * lib/unilbrk/lbrkprop2.h: Regenerated.
48286         * tests/unictype/test-categ_C.c: Regenerated.
48287         * tests/unictype/test-categ_Cf.c: Regenerated.
48288         * tests/unictype/test-categ_Cn.c: Regenerated.
48289         * tests/unictype/test-categ_L.c: Regenerated.
48290         * tests/unictype/test-categ_Ll.c: Regenerated.
48291         * tests/unictype/test-categ_Lm.c: Regenerated.
48292         * tests/unictype/test-categ_Lo.c: Regenerated.
48293         * tests/unictype/test-categ_Lu.c: Regenerated.
48294         * tests/unictype/test-categ_M.c: Regenerated.
48295         * tests/unictype/test-categ_Mc.c: Regenerated.
48296         * tests/unictype/test-categ_Me.c: Regenerated.
48297         * tests/unictype/test-categ_Mn.c: Regenerated.
48298         * tests/unictype/test-categ_N.c: Regenerated.
48299         * tests/unictype/test-categ_Nd.c: Regenerated.
48300         * tests/unictype/test-categ_Nl.c: Regenerated.
48301         * tests/unictype/test-categ_No.c: Regenerated.
48302         * tests/unictype/test-categ_P.c: Regenerated.
48303         * tests/unictype/test-categ_Pd.c: Regenerated.
48304         * tests/unictype/test-categ_Pe.c: Regenerated.
48305         * tests/unictype/test-categ_Pf.c: Regenerated.
48306         * tests/unictype/test-categ_Pi.c: Regenerated.
48307         * tests/unictype/test-categ_Po.c: Regenerated.
48308         * tests/unictype/test-categ_Ps.c: Regenerated.
48309         * tests/unictype/test-categ_S.c: Regenerated.
48310         * tests/unictype/test-categ_Sk.c: Regenerated.
48311         * tests/unictype/test-categ_Sm.c: Regenerated.
48312         * tests/unictype/test-categ_So.c: Regenerated.
48313         * tests/unictype/test-ctype_alnum.c: Regenerated.
48314         * tests/unictype/test-ctype_alpha.c: Regenerated.
48315         * tests/unictype/test-ctype_graph.c: Regenerated.
48316         * tests/unictype/test-ctype_lower.c: Regenerated.
48317         * tests/unictype/test-ctype_print.c: Regenerated.
48318         * tests/unictype/test-ctype_punct.c: Regenerated.
48319         * tests/unictype/test-ctype_upper.c: Regenerated.
48320         * tests/unictype/test-decdigit.h: Regenerated.
48321         * tests/unictype/test-digit.h: Regenerated.
48322         * tests/unictype/test-numeric.h: Regenerated.
48323         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48324         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48325         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48326         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48327         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48328         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48329         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48330         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48331         * tests/unictype/test-pr_combining.c: Regenerated.
48332         * tests/unictype/test-pr_dash.c: Regenerated.
48333         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48334         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48335         * tests/unictype/test-pr_deprecated.c: Regenerated.
48336         * tests/unictype/test-pr_diacritic.c: Regenerated.
48337         * tests/unictype/test-pr_extender.c: Regenerated.
48338         * tests/unictype/test-pr_format_control.c: Regenerated.
48339         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48340         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48341         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48342         * tests/unictype/test-pr_id_continue.c: Regenerated.
48343         * tests/unictype/test-pr_id_start.c: Regenerated.
48344         * tests/unictype/test-pr_ideographic.c: Regenerated.
48345         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48346         * tests/unictype/test-pr_lowercase.c: Regenerated.
48347         * tests/unictype/test-pr_math.c: Regenerated.
48348         * tests/unictype/test-pr_numeric.c: Regenerated.
48349         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48350         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48351         Regenerated.
48352         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48353         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48354         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48355         * tests/unictype/test-pr_other_math.c: Regenerated.
48356         * tests/unictype/test-pr_punctuation.c: Regenerated.
48357         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48358         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48359         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48360         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48361         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48362         * tests/unictype/test-pr_uppercase.c: Regenerated.
48363         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48364         * tests/unictype/test-pr_xid_start.c: Regenerated.
48365         * tests/unictype/test-pr_zero_width.c: Regenerated.
48366
48367         Update to Unicode 5.1.0.
48368         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48369         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48370         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48371         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48372         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48373         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48374         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48375         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48376         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48377         (nonspacing_table_ind): Update.
48378         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48379
48380         Update to Unicode 5.1.0.
48381         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48382         code transform.
48383         * lib/uniname/uniname.c (unicode_character_name,
48384         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48385         * lib/uniname/uninames.h: Regenerated.
48386         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48387
48388 2009-02-07  Bruno Haible  <bruno@clisp.org>
48389
48390         Merge gen-ctype and gen-lbrk into a single program.
48391         * lib/gen-uni-tables.c: New file, incorporating
48392         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48393         Add directory prefixes to the names of the generated files.
48394         * lib/unictype/gen-ctype.c: Remove file.
48395         * lib/unilbrk/gen-lbrk.c: Remove file.
48396         * modules/gen-uni-tables: New file.
48397         * modules/unictype/gen-ctype: Remove file.
48398         * modules/unilbrk/gen-lbrk: Remove file.
48399
48400 2009-02-07  Bruno Haible  <bruno@clisp.org>
48401
48402         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48403
48404         New module 'unistr/u32-strcoll'.
48405         * modules/unistr/u32-strcoll: New file.
48406         * lib/unistr/u32-strcoll.c: New file.
48407
48408         New module 'unistr/u16-strcoll'.
48409         * modules/unistr/u16-strcoll: New file.
48410         * lib/unistr/u16-strcoll.c: New file.
48411
48412         New module 'unistr/u8-strcoll'.
48413         * modules/unistr/u8-strcoll: New file.
48414         * lib/unistr/u8-strcoll.c: New file.
48415         * lib/unistr/u-strcoll.h: New file.
48416
48417 2009-02-07  Bruno Haible  <bruno@clisp.org>
48418
48419         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48420         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48421         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48422         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48423         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48424         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48425
48426 2009-02-07  Bruno Haible  <bruno@clisp.org>
48427
48428         Make 64-bit clean.
48429         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48430         output_combclass, output_bidi_category, output_decimal_digit,
48431         output_digit, output_numeric, output_mirror, output_scripts,
48432         output_ident_category): Use proper width specifier in format strings.
48433
48434 2009-02-07  Bruno Haible  <bruno@clisp.org>
48435
48436         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48437         failure behaviour.
48438
48439 2009-02-07  Jim Meyering  <meyering@redhat.com>
48440
48441         regex: avoid compilation failure with upcoming gcc-4.4
48442         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48443         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48444         "... error: integer overflow in preprocessor expression".
48445
48446 2009-02-05  Ben Pfaff  <blp@gnu.org>
48447
48448         Fix link errors on Windows when close module is used.
48449         * modules/close: Add $(LIB_CLOSE) to Link section.
48450         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48451         $(LIB_CLOSE) on Windows.
48452
48453 2009-02-05  Jim Meyering  <meyering@redhat.com>
48454
48455         still avoid unused-parameter warnings, but do it cleanly
48456         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48457         (get_fs_usage): Cast to void instead.
48458         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48459         (dev_from_mount_options, read_file_system_list): Cast to void.
48460         Prompted by Bruno Haible.
48461
48462 2009-02-04  Jim Meyering  <meyering@redhat.com>
48463
48464         fsusage.c: correct copyright year
48465         * lib/fsusage.c: Reflect year in which the change is pushed into
48466
48467         avoid misc. warnings
48468         * lib/fsusage.c (UNUSED_PARAM): Define.
48469         (get_fs_usage): Mark parameter "disk" as unused.
48470         * lib/getugroups.c (getgrent): Use "void" in prototype.
48471         * lib/mountlist.c: Mark unused parameters.
48472         (read_file_system_list): Declare a local with "const".
48473         * lib/nanosleep.c (getnow): Declare static.
48474         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48475
48476         dirfd: set errno upon failure
48477         * lib/dirfd.c: Include <errno.h>.
48478         Set errno to ENOTSUP when returning -1.
48479         * modules/dirfd (Depends-on): Add errno.
48480         Suggested by John Kodis <kodis@comcast.net>.
48481
48482 2009-02-01  Bruno Haible  <bruno@clisp.org>
48483
48484         Don't assume sizeof (long) >= sizeof (void *).
48485         * lib/memcmp.c: Include stdint.h.
48486         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48487         srcp2 to 'const byte *'.
48488         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48489         types to uintptr_t.
48490         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48491         * modules/memcmp (Depends-on): Add stdint.
48492         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48493
48494 2009-01-30  Eric Blake  <ebb9@byu.net>
48495
48496         fix more require-before-expand issues
48497         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48498         expand, AC_PROG_AWK.
48499         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48500
48501 2009-01-28  Eric Blake  <ebb9@byu.net>
48502
48503         version-etc: use consistent URL formatting
48504         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48505         Improve formatting.  Use fputs for string without %.
48506
48507 2009-01-28  Jim Meyering  <meyering@redhat.com>
48508
48509         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48510         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48511         "underquoted definition of NAME" from autoconf-2.59.
48512
48513 2009-01-28  Bruno Haible  <bruno@clisp.org>
48514
48515         * doc/gnulib.texi: Add "Obsolete modules" to index.
48516
48517 2009-01-28  Jim Meyering  <meyering@redhat.com>
48518
48519         useless-if-before-free: recognize more variants
48520         * build-aux/useless-if-before-free: Also recognize e.g.,
48521         if (NULL != p) free (p);
48522
48523 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48524
48525         test-getaddrinfo: skip (don't fail) this test when there's no network
48526         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48527         on the presumption that it means you lack network access.
48528
48529 2009-01-26  Jim Meyering  <meyering@redhat.com>
48530
48531         fflush: avoid warnings on modern systems
48532         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48533         pos and result, into scopes where they're used.
48534
48535 2009-01-26  Eric Blake  <ebb9@byu.net>
48536
48537         Silence warning reintroduced by recent extensions patch.
48538         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48539         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48540         autoconf.
48541
48542         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48543         * m4/00gnulib.m4: New file.
48544         * gnulib-tool (func_get_filelist): Always use it.
48545         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48546         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48547
48548 2009-01-25  Bruno Haible  <bruno@clisp.org>
48549
48550         Make test-quotearg work on MacOS X and AIX.
48551         * tests/test-quotearg.sh: New file.
48552         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48553         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48554         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48555         include <libintl.h>.
48556         (fake_locale): Remove variable.
48557         (gettext, dgettext, dcgettext): Remove functions.
48558         (main): Instead of setting a fake locale, set a real locale. Call
48559         textdomain and bindtextdomain.
48560         * modules/quotearg-tests (Files): Add the new files.
48561         (Depends-on): Add gettext, setenv, unsetenv.
48562         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48563         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48564         Augment TESTS_ENVIRONMENT.
48565
48566 2009-01-25  Bruno Haible  <bruno@clisp.org>
48567
48568         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48569         fr_FR.ISO8859-1 locale on MacOS X.
48570         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48571         ja_JP.eucJP locale on MacOS X.
48572         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48573         zh_CN.GB18030 locale on MacOS X.
48574
48575 2009-01-25  Bruno Haible  <bruno@clisp.org>
48576
48577         Avoid link errors on MacOS X 10.3.
48578         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48579         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48580
48581 2009-01-25  Bruno Haible  <bruno@clisp.org>
48582
48583         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48584         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48585         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48586         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48587         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48588         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48589         posix_spawnattr_init, posix_spawnattr_setsigmask,
48590         posix_spawnattr_setflags, posix_spawnattr_destroy.
48591
48592         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48593         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48594         * modules/execute (Files): Remove m4/posix_spawn.m4.
48595         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48596         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48597         posix_spawnattr_init, posix_spawnattr_setsigmask,
48598         posix_spawnattr_setflags, posix_spawnattr_destroy.
48599
48600 2009-01-25  Bruno Haible  <bruno@clisp.org>
48601
48602         * lib/glthread/threadlib.c: Include <stdlib.h>.
48603
48604 2009-01-25  Bruno Haible  <bruno@clisp.org>
48605
48606         * lib/glthread/threadlib.c (dummy): New declaration.
48607
48608 2009-01-25  Bruno Haible  <bruno@clisp.org>
48609
48610         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48611         multibyte characters also for the GB18030 encoding. Don't crash when
48612         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48613
48614 2009-01-25  Bruno Haible  <bruno@clisp.org>
48615
48616         Avoid redefining 'struct random_data' on OSF/1 5.1.
48617         * lib/stdlib.in.h: Include <random.h> if it exists.
48618         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48619         HAVE_RANDOM_H. Include <random.h> when testing whether
48620         'struct random_data' exists.
48621         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48622
48623 2009-01-25  Bruno Haible  <bruno@clisp.org>
48624
48625         Don't install charset.alias on MacOS X >= 10.3.
48626         * lib/localcharset.c (DARWIN7): New macro.
48627         (get_charset_aliases): Hardcode the result for Darwin7.
48628         * modules/localcharset (install-exec-local): Don't install
48629         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48630
48631 2009-01-25  Bruno Haible  <bruno@clisp.org>
48632
48633         Don't install charset.alias on mingw and Cygwin.
48634         * modules/localcharset (install-exec-local): Don't install
48635         charset.alias on mingw and Cygwin, if the file does not yet exist.
48636         The result for these platforms is hardcoded in localcharset.c.
48637
48638 2009-01-25  Bruno Haible  <bruno@clisp.org>
48639
48640         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48641         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48642         before requiring AC_USE_SYSTEM_EXTENSIONS.
48643
48644 2009-01-25  Jim Meyering  <meyering@redhat.com>
48645
48646         c-strtod: avoid warnings
48647         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48648         "assignment discards qualifiers from pointer target type" warnings.
48649
48650 2009-01-24  Bruno Haible  <bruno@clisp.org>
48651
48652         Add support for non-UTF-8 locales on MacOS X.
48653         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48654         canonical encodings. For Darwin 7 and newer, don't map traditional
48655         encodings to UTF-8.
48656         Reported by Vincent Lefevre <vincent@vinc17.org>
48657         at <http://savannah.gnu.org/bugs/?25235>.
48658
48659 2009-01-24  Bruno Haible  <bruno@clisp.org>
48660
48661         * doc/gnulib.texi (Obsolete modules): New section.
48662         Reported by Mike Frysinger <vapier@gentoo.org>.
48663
48664 2009-01-24  Bruno Haible  <bruno@clisp.org>
48665
48666         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48667         (%.dvi): New rule.
48668
48669 2009-01-24  Bruno Haible  <bruno@clisp.org>
48670
48671         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48672         Reported by Eric Blake.
48673
48674 2009-01-24  Bruno Haible  <bruno@clisp.org>
48675
48676         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48677         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48678         Reported by Gary V. Vaughan <gary@gnu.org>.
48679
48680 2009-01-24  Bruno Haible  <bruno@clisp.org>
48681
48682         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48683
48684 2009-01-23  Bruno Haible  <bruno@clisp.org>
48685
48686         Make c-strtod, c-strtold usable in libraries.
48687         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48688         (C_STRTOD): Call strdup instead of xstrdup.
48689         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48690         * modules/c-strtold (Depends-on): Likewise.
48691         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48692         * NEWS: Mention the change.
48693         Reported by Michael Gold <mgold@ncf.ca>.
48694
48695 2009-01-23  Jim Meyering  <meyering@redhat.com>
48696
48697         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48698         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48699         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48700
48701 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48702
48703         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48704         GNU CoreUtils.
48705         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48706         * modules/version-etc (Description): Update.
48707
48708 2009-01-22  Bruno Haible  <bruno@clisp.org>
48709
48710         Cache the C locale object.
48711         * lib/c-strtod.c (c_locale_cache): New variable.
48712         (c_locale): New function.
48713         (C_STRTOD): Use it, and don't call freelocale.
48714         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48715         Suggested by Paolo Bonzini.
48716
48717 2009-01-21  Bruno Haible  <bruno@clisp.org>
48718
48719         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48720         conditions other than overflow.
48721
48722 2009-01-21  Bruno Haible  <bruno@clisp.org>
48723
48724         * lib/c-strtod.c: Include errno.h.
48725         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48726         value from STRTOD_L and STRTOD.
48727
48728 2009-01-21  Bruno Haible  <bruno@clisp.org>
48729         and Jim Meyering  <meyering@redhat.com>
48730
48731         nanosleep: skip configure test (fail it) for apple universal builds
48732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48733         universal builds, assume that nanosleep does not work.
48734         * modules/nanosleep (Depends-on): Add multiarch.
48735
48736         mktime: skip configure test (fail it) for apple universal builds
48737         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48738         universal builds, assume that mktime does not work.
48739         * modules/mktime (Depends-on): Add multiarch.
48740
48741 2009-01-21  Eric Blake  <ebb9@byu.net>
48742
48743         multiarch: avoid expand-before-require warning
48744         * modules/multiarch (configure.ac): Require, rather than expand,
48745         gl_MULTIARCH.
48746         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48747         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48748         enforce that all clients require it.  Partial reversion of
48749         2008-12-29 patch.
48750
48751         error: avoid expand-before-require warning
48752         * modules/errno (configure.ac): Require, rather than expand,
48753         gl_HEADER_ERRNO_H.
48754         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48755         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48756         enforce that all clients require it.
48757
48758         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48759         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48760         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48761         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48762
48763 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48764
48765         Revert:
48766         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48767
48768         regex: do not depend on obsolete modules.
48769         * modules/regex: Remove memcmp and memmove.
48770
48771 2009-01-20  Bruno Haible  <bruno@clisp.org>
48772
48773         Make the 'link' module link on Windows NT 4.
48774         * lib/link.c (_WIN32_WINNT): Don't define.
48775         (CreateHardLinkFuncType): New type.
48776         (CreateHardLinkFunc, initialized): New variables.
48777         (initialize): New function.
48778         (link): Invoke CreateHardLink indirectly through the function pointer.
48779
48780 2009-01-20  Bruno Haible  <bruno@clisp.org>
48781
48782         Fix compilation failure on mingw.
48783         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48784
48785 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48786
48787         * doc/c-strtod.texi: Mention a couple of restrictions.
48788
48789 2009-01-20  Jim Meyering  <meyering@redhat.com>
48790
48791         gettimeofday: move more declarations out of functions
48792         * lib/gettimeofday.c: Move extern declarations of tzset and
48793         gmtime out of containing functions.  Prompted by Bruno Haible.
48794
48795 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48796
48797         regex: do not depend on obsolete modules.
48798         * modules/regex: Remove memcmp and memmove.
48799
48800 2009-01-19  Bruno Haible  <bruno@clisp.org>
48801
48802         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48803         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48804         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48805         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48806         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48807
48808 2009-01-19  Bruno Haible  <bruno@clisp.org>
48809
48810         * tests/test-link.c: Include <errno.h>.
48811         (main): Exit with code 77 when a hard link cannot be created due to
48812         the file system.
48813         * tests/test-link.sh: Skip test when a hard link cannot be created due
48814         to the file system.
48815         Suggested by Eric Blake.
48816
48817 2009-01-19  Martin Lambers  <marlam@marlam.de>
48818
48819         * modules/link-tests: New file.
48820         * tests/test-link.sh: New file.
48821         * tests/test-link.c: New file.
48822
48823 2009-01-19  Eric Blake  <ebb9@byu.net>
48824
48825         doc: mention another function added in cygwin 1.7.0
48826         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48827         Another new function in cygwin 1.7.
48828
48829 2009-01-19  Bruno Haible  <bruno@clisp.org>
48830
48831         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48832         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48833         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48834         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48835         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48836         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48837         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48838         * m4/md4.m4 (gl_MD4): Likewise.
48839         * m4/md5.m4 (gl_MD5): Likewise.
48840         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48841         * m4/sha1.m4 (gl_SHA1): Likewise.
48842         * m4/sha256.m4 (gl_SHA256): Likewise.
48843         * m4/sha512.m4 (gl_SHA512): Likewise.
48844
48845 2009-01-19  Bruno Haible  <bruno@clisp.org>
48846
48847         * modules/uniname/uniname-tests (Depends-on): Add progname.
48848         * tests/uniname/test-uninames.c: Include progname.h.
48849         (main): Call set_program_name.
48850
48851         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48852         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48853         (main): Call set_program_name.
48854
48855         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48856         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48857         (main): Call set_program_name.
48858
48859         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48860         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48861         (main): Call set_program_name.
48862
48863         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48864         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48865         (main): Call set_program_name.
48866
48867         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48868         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48869         (main): Call set_program_name.
48870
48871         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48872         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48873         (main): Call set_program_name.
48874
48875         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48876         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48877         (main): Call set_program_name.
48878
48879         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48880         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48881         (main): Call set_program_name.
48882
48883 2009-01-19  Eric Blake  <ebb9@byu.net>
48884
48885         test-unistd: test previous patch
48886         * tests/test-unistd.c: Test *_FILENO macros.
48887
48888         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48889         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48890         Guarantee a definition.
48891         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48892         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48893         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48894         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48895         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48896         Likewise.
48897         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48898         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48899         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48900         Likewise.
48901         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48902         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48903         (STDERR_FILENO): Likewise.
48904         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48905         (STDERR_FILENO): Likewise.
48906         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48907         (STDERR_FILENO): Likewise.
48908         Reported by Elbert Pol.
48909
48910 2009-01-19  Eric Blake  <ebb9@byu.net>
48911
48912         doc: mention more functions added in cygwin 1.7.0
48913         * doc/posix-functions/abort.texi (abort): Update wording related
48914         to cygwin.
48915         * doc/posix-functions/daylight.texi (daylight): Likewise.
48916         * doc/posix-functions/optarg.texi (optarg): Likewise.
48917         * doc/posix-functions/optarg.texi (opterr): Likewise.
48918         * doc/posix-functions/optarg.texi (optind): Likewise.
48919         * doc/posix-functions/optarg.texi (optopt): Likewise.
48920         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48921         worked in 1.5.x, and was withdrawn in 1.7.
48922         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48923         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48924         cygwin versions.
48925         * doc/posix-functions/perror.texi (perror): Likewise.
48926         * doc/posix-functions/printf.texi (printf): Likewise.
48927         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48928         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48929         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48930         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48931         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48932         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48933         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48934         Likewise.
48935         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48936         Likewise.
48937         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48938         this function.
48939         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48940         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48941         Likewise.
48942         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48943         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48944         * doc/posix-functions/confstr.texi (confstr): Likewise.
48945         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48946         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48947         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48948         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48949         * doc/posix-functions/fputws.texi (fputws): Likewise.
48950         * doc/posix-functions/fwide.texi (fwide): Likewise.
48951         * doc/posix-functions/getwc.texi (getwc): Likewise.
48952         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48953         * doc/posix-functions/putwc.texi (putwc): Likewise.
48954         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48955         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48956         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48957         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48958         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48959         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48960         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48961         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48962         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48963         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48964         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48965
48966 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48967
48968         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48969         * lib/ioctl.c: Include <sys/ioctl.h>.
48970
48971 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48972
48973         * modules/getdate-tests (Depends-on): Add progname.
48974         * tests/test-getdate.c: Use progname module, to avoid link errors
48975         on non-glibc systems.
48976
48977 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48978
48979         * modules/filenamecat-tests (Depends-on): Add progname.
48980         * modules/fstrcmp-tests (Depends-on): Likewise.
48981
48982         * tests/test-filenamecat.c: Use progname module, to avoid link
48983         errors on non-glibc systems.
48984         * tests/test-fstrcmp.c: Likewise.
48985
48986 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48987
48988         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48989         * lib/gettimeofday.c: Move extern declaration out of function.
48990
48991 2009-01-18  Bruno Haible  <bruno@clisp.org>
48992
48993         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48994         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48995         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48996
48997 2009-01-18  Bruno Haible  <bruno@clisp.org>
48998
48999         * lib/strftime.c (MEMPCPY): Remove unused macro.
49000         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49001
49002 2009-01-18  Martin Lambers  <marlam@marlam.de>
49003
49004         New module 'link'.
49005         * lib/unistd.in.h (link): New declaration.
49006         * lib/link.c: New file.
49007         * m4/link.m4: New file.
49008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49009         HAVE_LINK.
49010         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49011         * modules/link: New file.
49012         * doc/posix-functions/link.texi: Mention the new module.
49013
49014 2009-01-18  Bruno Haible  <bruno@clisp.org>
49015
49016         * tests/test-avltree_list.c (main): Call set_program_name.
49017         * tests/test-avltree_oset.c (main): Likewise.
49018         * tests/test-obstack-printf.c: Include progname.h.
49019         (main): Call set_program_name.
49020         * tests/test-quotearg.c: Include progname.h.
49021         (main): Call set_program_name.
49022         * tests/test-xmemdup0.c: Include progname.h.
49023         (main): Call set_program_name.
49024
49025 2009-01-18  Bruno Haible  <bruno@clisp.org>
49026
49027         New module 'alphasort'.
49028         * lib/dirent.in.h (alphasort): New declaration.
49029         * lib/alphasort.c: New file, from glibc with modifications.
49030         * m4/alphasort.m4: New file.
49031         * modules/alphasort: New file.
49032         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49033         HAVE_ALPHASORT.
49034         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49035         HAVE_ALPHASORT.
49036         * doc/posix-functions/alphasort.texi: Mention the new module and the
49037         portability problems.
49038
49039 2009-01-18  Bruno Haible  <bruno@clisp.org>
49040
49041         New module 'scandir'.
49042         * lib/dirent.in.h (scandir): New declaration.
49043         * lib/scandir.c: New file, from glibc with modifications.
49044         * m4/scandir.m4: New file.
49045         * modules/scandir: New file.
49046         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49047         HAVE_SCANDIR.
49048         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49049         HAVE_SCANDIR.
49050         * doc/posix-functions/scandir.texi: Mention the new module and the
49051         portability problems.
49052
49053 2009-01-17  Bruno Haible  <bruno@clisp.org>
49054
49055         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49056         Update documentation.
49057         (func_remove_suffix): Escape all dots in the suffix. Update
49058         documentation.
49059         (func_filter_filelist): Update documentation.
49060         Reported by Ralf Wildenhues.
49061
49062 2009-01-17  Bruno Haible  <bruno@clisp.org>
49063
49064         * modules/dprintf-posix-tests: New file.
49065         * tests/test-dprintf-posix.sh: New file.
49066         * tests/test-dprintf-posix.c: New file.
49067
49068         New modules 'dprintf', 'dprintf-posix'.
49069         * lib/stdio.in.h (dprintf): New declaration.
49070         * lib/dprintf.c: New file.
49071         * m4/dprintf.m4: New file.
49072         * m4/dprintf-posix.m4: New file.
49073         * modules/dprintf: New file.
49074         * modules/dprintf-posix: New file.
49075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49076         HAVE_DPRINTF, REPLACE_DPRINTF.
49077         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49078         HAVE_DPRINTF, REPLACE_DPRINTF.
49079         * doc/posix-functions/dprintf.texi: Mention the new modules.
49080
49081 2009-01-17  Bruno Haible  <bruno@clisp.org>
49082
49083         * modules/vdprintf-posix-tests: New file.
49084         * tests/test-vdprintf-posix.sh: New file.
49085         * tests/test-vdprintf-posix.c: New file.
49086
49087         New modules 'vdprintf', 'vdprintf-posix'.
49088         * lib/stdio.in.h (vdprintf): New declaration.
49089         * lib/vdprintf.c: New file.
49090         * m4/vdprintf.m4: New file.
49091         * m4/vdprintf-posix.m4: New file.
49092         * modules/vdprintf: New file.
49093         * modules/vdprintf-posix: New file.
49094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49095         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49096         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49097         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49098         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49099
49100 2009-01-17  Bruno Haible  <bruno@clisp.org>
49101
49102         Fix replacement of fopen on mingw.
49103         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49104         mingw.
49105
49106 2009-01-17  Bruno Haible  <bruno@clisp.org>
49107
49108         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49109         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49110
49111 2009-01-17  Bruno Haible  <bruno@clisp.org>
49112
49113         Avoid test-fflush2.sh failure on mingw.
49114         * tests/test-fflush2.c: Include binary-io.h.
49115         (main): Put standard input into binary mode.
49116         * modules/fflush-tests (Depends-on): Add binary-io.
49117
49118 2009-01-17  Bruno Haible  <bruno@clisp.org>
49119
49120         * lib/wchar.in.h: In another particular situation, include only the
49121         system's <wchar.h> file.
49122         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49123         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49124         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49125
49126 2009-01-17  Bruno Haible  <bruno@clisp.org>
49127
49128         Support for stripping executables in --enable-relocatable.
49129         * build-aux/install-reloc: Expect one more argument, or an environment
49130         variable RELOC_STRIP_PROG. If set, strip the destination program and
49131         its wrapper.
49132         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49133         RELOC_STRIP_PROG.
49134         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49135         to set RELOCATABLE_STRIP.
49136         * NEWS: Mention the new Makefile requirement.
49137
49138 2009-01-17  Bruno Haible  <bruno@clisp.org>
49139
49140         * build-aux/install-reloc: Remove debugging information left over by
49141         C compiler on MacOS X.
49142
49143 2009-01-17  Bruno Haible  <bruno@clisp.org>
49144
49145         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49146         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49147         _NSGetExecutablePath.
49148
49149 2009-01-16  Jim Meyering  <meyering@redhat.com>
49150
49151         strerror: avoid warnings about discarding "const"
49152         * lib/strerror.c (rpl_strerror): Instead of returning a const
49153         string from each and every "case", use a variable, and add a single
49154         cast after the switch.
49155
49156 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49157
49158         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49159
49160 2009-01-16  Bruno Haible  <bruno@clisp.org>
49161
49162         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49163         array initializer syntax that also works in C++ mode.
49164         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49165
49166 2009-01-16  Jim Meyering  <meyering@redhat.com>
49167
49168         poll: suppress a warning
49169         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49170         to ignore "...unsigned expression < 0 is always false" warnings.
49171
49172 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49173
49174         poll: remove declarations of unused variables
49175         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49176         sockbuf and optlen.
49177
49178 2009-01-15  Bruno Haible  <bruno@clisp.org>
49179
49180         Make fflush-after-ungetc POSIX compliant on BSD systems.
49181         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49182         (clear_ungetc_buffer): Implement also for other systems.
49183         (rpl_fflush): On glibc systems, invoke
49184         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49185         clear_ungetc_buffer after fetching the stream's position, not before.
49186
49187 2009-01-15  Bruno Haible  <bruno@clisp.org>
49188
49189         Make fflush-after-ungetc POSIX compliant on glibc systems.
49190         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49191         after ungetc.
49192         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49193         (rpl_fflush): On glibc systems, simply call the system's fflush
49194         function after clearing the ungetc buffer.
49195         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49196         Instead, lseek only to the end of file, then use the system's fseeko
49197         for the rest. On glibc systems, reset the EOF indicator bit.
49198
49199 2009-01-15  Jim Meyering  <meyering@redhat.com>
49200
49201         openmp.m4: revert quote-adding change, for portability to older autoconf
49202         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49203         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49204         Simon Josefsson noticed the problem when using autoconf-2.61.
49205
49206 2009-01-15  Bruno Haible  <bruno@clisp.org>
49207
49208         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49209         * tests/test-fflush2.c (ASSERT): Always fail.
49210         (main): Add two tests for fflush() after ungetc(), taking into account
49211         the Austin Group's clarification.
49212         Suggested by Eric Blake.
49213
49214 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49215
49216         mktime.m4: remove K&R-style function prototypes
49217         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49218         for the Sun C++ compiler.
49219
49220 2009-01-14  Bruno Haible  <bruno@clisp.org>
49221
49222         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49223         while including <wchar.h>.
49224         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49225         the system's <wchar.h> file.
49226         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49227
49228 2009-01-14  Bruno Haible  <bruno@clisp.org>
49229
49230         * m4/csharp.m4: Don't mention gettext on the serial number line.
49231         * m4/csharpexec.m4: Likewise.
49232         * m4/eaccess.m4: Likewise.
49233         * m4/javaexec.m4: Likewise.
49234         * m4/sig_atomic_t.m4: Likewise.
49235         * m4/tmpdir.m4: Likewise.
49236         * m4/intldir.m4: Bump gettext version.
49237         * m4/lib-ld.m4: Likewise.
49238
49239 2009-01-14  Bruno Haible  <bruno@clisp.org>
49240
49241         * lib/progname.c (set_program_name): Add more comments.
49242         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49243
49244 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49245
49246         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49247         were sys/stat.h does not define it.
49248
49249 2009-01-14  Jim Meyering  <meyering@redhat.com>
49250
49251         many *.m4 files: improve m4 quoting
49252         99% of this change was performed by running the following commands:
49253         git ls-files | grep '\.m4$' | xargs perl -pi \
49254           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49255           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49256           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49257           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49258         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49259         The remainder were to add Copyright dates, increment serial numbers,
49260         undo some changes in comments, exclude m4/intl.m4, and add quotes
49261         around the "1" in ",1" where the unusual spacing prohibited the
49262         above regexps from doing the job.  For more details, see
49263         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49264         * m4/acl.m4: Modified.
49265         * m4/afs.m4: Likewise.
49266         * m4/alloca.m4: Likewise.
49267         * m4/argp.m4: Likewise.
49268         * m4/argz.m4: Likewise.
49269         * m4/atexit.m4: Likewise.
49270         * m4/bison-i18n.m4: Likewise.
49271         * m4/bison.m4: Likewise.
49272         * m4/byteswap.m4: Likewise.
49273         * m4/c-stack.m4: Likewise.
49274         * m4/c-strtod.m4: Likewise.
49275         * m4/calloc.m4: Likewise.
49276         * m4/canonicalize-lgpl.m4: Likewise.
49277         * m4/chown.m4: Likewise.
49278         * m4/clock_time.m4: Likewise.
49279         * m4/codeset.m4: Likewise.
49280         * m4/copy-file.m4: Likewise.
49281         * m4/csharp.m4: Likewise.
49282         * m4/csharpcomp.m4: Likewise.
49283         * m4/csharpexec.m4: Likewise.
49284         * m4/d-ino.m4: Likewise.
49285         * m4/d-type.m4: Likewise.
49286         * m4/dirfd.m4: Likewise.
49287         * m4/double-slash-root.m4: Likewise.
49288         * m4/eaccess.m4: Likewise.
49289         * m4/eealloc.m4: Likewise.
49290         * m4/environ.m4: Likewise.
49291         * m4/errno_h.m4: Likewise.
49292         * m4/euidaccess.m4: Likewise.
49293         * m4/execute.m4: Likewise.
49294         * m4/fatal-signal.m4: Likewise.
49295         * m4/fchdir.m4: Likewise.
49296         * m4/fcntl_h.m4: Likewise.
49297         * m4/fileblocks.m4: Likewise.
49298         * m4/filenamecat.m4: Likewise.
49299         * m4/findprog.m4: Likewise.
49300         * m4/flexmember.m4: Likewise.
49301         * m4/fnmatch.m4: Likewise.
49302         * m4/fopen.m4: Likewise.
49303         * m4/fpending.m4: Likewise.
49304         * m4/fprintf-posix.m4: Likewise.
49305         * m4/free.m4: Likewise.
49306         * m4/frexp.m4: Likewise.
49307         * m4/frexpl.m4: Likewise.
49308         * m4/fsusage.m4: Likewise.
49309         * m4/ftruncate.m4: Likewise.
49310         * m4/gc-camellia.m4: Likewise.
49311         * m4/gc-random.m4: Likewise.
49312         * m4/gc.m4: Likewise.
49313         * m4/getaddrinfo.m4: Likewise.
49314         * m4/getcwd-abort-bug.m4: Likewise.
49315         * m4/getcwd-path-max.m4: Likewise.
49316         * m4/getdate.m4: Likewise.
49317         * m4/getdomainname.m4: Likewise.
49318         * m4/getgroups.m4: Likewise.
49319         * m4/gethostname.m4: Likewise.
49320         * m4/gethrxtime.m4: Likewise.
49321         * m4/getline.m4: Likewise.
49322         * m4/getloadavg.m4: Likewise.
49323         * m4/getndelim2.m4: Likewise.
49324         * m4/getpass.m4: Likewise.
49325         * m4/gettext.m4: Likewise.
49326         * m4/gettime.m4: Likewise.
49327         * m4/gettimeofday.m4: Likewise.
49328         * m4/gnulib-common.m4: Likewise.
49329         * m4/group-member.m4: Likewise.
49330         * m4/host-os.m4: Likewise.
49331         * m4/iconv.m4: Likewise.
49332         * m4/iconv_open.m4: Likewise.
49333         * m4/inet_ntop.m4: Likewise.
49334         * m4/inet_pton.m4: Likewise.
49335         * m4/inline.m4: Likewise.
49336         * m4/intldir.m4: Likewise.
49337         * m4/intlmacosx.m4: Likewise.
49338         * m4/intmax.m4: Likewise.
49339         * m4/intmax_t.m4: Likewise.
49340         * m4/inttypes.m4: Likewise.
49341         * m4/inttypes_h.m4: Likewise.
49342         * m4/inttypes-pri.m4: Likewise.
49343         * m4/isapipe.m4: Likewise.
49344         * m4/isnand.m4: Likewise.
49345         * m4/isnanf.m4: Likewise.
49346         * m4/isnanl.m4: Likewise.
49347         * m4/javacomp.m4: Likewise.
49348         * m4/javaexec.m4: Likewise.
49349         * m4/jm-winsz1.m4: Likewise.
49350         * m4/jm-winsz2.m4: Likewise.
49351         * m4/lchown.m4: Likewise.
49352         * m4/lcmessage.m4: Likewise.
49353         * m4/ldexpl.m4: Likewise.
49354         * m4/lib-ld.m4: Likewise.
49355         * m4/lib-link.m4: Likewise.
49356         * m4/libsigsegv.m4: Likewise.
49357         * m4/link-follow.m4: Likewise.
49358         * m4/localcharset.m4: Likewise.
49359         * m4/locale-fr.m4: Likewise.
49360         * m4/locale-ja.m4: Likewise.
49361         * m4/locale-tr.m4: Likewise.
49362         * m4/locale-zh.m4: Likewise.
49363         * m4/lock.m4: Likewise.
49364         * m4/longlong.m4: Likewise.
49365         * m4/ls-mntd-fs.m4: Likewise.
49366         * m4/lstat.m4: Likewise.
49367         * m4/malloc.m4: Likewise.
49368         * m4/mathl.m4: Likewise.
49369         * m4/mbrtowc.m4: Likewise.
49370         * m4/mbstate_t.m4: Likewise.
49371         * m4/mbswidth.m4: Likewise.
49372         * m4/memchr.m4: Likewise.
49373         * m4/memcmp.m4: Likewise.
49374         * m4/memcpy.m4: Likewise.
49375         * m4/memmem.m4: Likewise.
49376         * m4/memmove.m4: Likewise.
49377         * m4/mempcpy.m4: Likewise.
49378         * m4/memrchr.m4: Likewise.
49379         * m4/memset.m4: Likewise.
49380         * m4/minmax.m4: Likewise.
49381         * m4/mkdir-slash.m4: Likewise.
49382         * m4/mkdtemp.m4: Likewise.
49383         * m4/mktime.m4: Likewise.
49384         * m4/mmap-anon.m4: Likewise.
49385         * m4/mountlist.m4: Likewise.
49386         * m4/nanosleep.m4: Likewise.
49387         * m4/nls.m4: Likewise.
49388         * m4/nocrash.m4: Likewise.
49389         * m4/open.m4: Likewise.
49390         * m4/openat.m4: Likewise.
49391         * m4/openmp.m4: Likewise.
49392         * m4/pathmax.m4: Likewise.
49393         * m4/perl.m4: Likewise.
49394         * m4/physmem.m4: Likewise.
49395         * m4/pipe.m4: Likewise.
49396         * m4/po.m4: Likewise.
49397         * m4/poll.m4: Likewise.
49398         * m4/posixtm.m4: Likewise.
49399         * m4/posixver.m4: Likewise.
49400         * m4/printf-frexp.m4: Likewise.
49401         * m4/printf-frexpl.m4: Likewise.
49402         * m4/printf-posix.m4: Likewise.
49403         * m4/printf-posix-rpl.m4: Likewise.
49404         * m4/printf.m4: Likewise.
49405         * m4/progtest.m4: Likewise.
49406         * m4/putenv.m4: Likewise.
49407         * m4/readline.m4: Likewise.
49408         * m4/readlink.m4: Likewise.
49409         * m4/readutmp.m4: Likewise.
49410         * m4/realloc.m4: Likewise.
49411         * m4/regex.m4: Likewise.
49412         * m4/relocatable.m4: Likewise.
49413         * m4/relocatable-lib.m4: Likewise.
49414         * m4/rename-dest-slash.m4: Likewise.
49415         * m4/rename.m4: Likewise.
49416         * m4/rmdir-errno.m4: Likewise.
49417         * m4/rmdir.m4: Likewise.
49418         * m4/roundf.m4: Likewise.
49419         * m4/roundl.m4: Likewise.
49420         * m4/rpmatch.m4: Likewise.
49421         * m4/save-cwd.m4: Likewise.
49422         * m4/selinux-selinux-h.m4: Likewise.
49423         * m4/setenv.m4: Likewise.
49424         * m4/settime.m4: Likewise.
49425         * m4/sig2str.m4: Likewise.
49426         * m4/sig_atomic_t.m4: Likewise.
49427         * m4/signalblocking.m4: Likewise.
49428         * m4/signbit.m4: Likewise.
49429         * m4/sigpipe.m4: Likewise.
49430         * m4/sockets.m4: Likewise.
49431         * m4/sockpfaf.m4: Likewise.
49432         * m4/st_dm_mode.m4: Likewise.
49433         * m4/stat-time.m4: Likewise.
49434         * m4/stdbool.m4: Likewise.
49435         * m4/stdint.m4: Likewise.
49436         * m4/stdint_h.m4: Likewise.
49437         * m4/stpcpy.m4: Likewise.
49438         * m4/stpncpy.m4: Likewise.
49439         * m4/strcase.m4: Likewise.
49440         * m4/strchrnul.m4: Likewise.
49441         * m4/strcspn.m4: Likewise.
49442         * m4/strdup.m4: Likewise.
49443         * m4/strftime.m4: Likewise.
49444         * m4/strndup.m4: Likewise.
49445         * m4/strnlen.m4: Likewise.
49446         * m4/strpbrk.m4: Likewise.
49447         * m4/strptime.m4: Likewise.
49448         * m4/strsep.m4: Likewise.
49449         * m4/strtod.m4: Likewise.
49450         * m4/strtoimax.m4: Likewise.
49451         * m4/strtok_r.m4: Likewise.
49452         * m4/strtol.m4: Likewise.
49453         * m4/strtoll.m4: Likewise.
49454         * m4/strtoul.m4: Likewise.
49455         * m4/strtoull.m4: Likewise.
49456         * m4/strtoumax.m4: Likewise.
49457         * m4/strverscmp.m4: Likewise.
49458         * m4/threadlib.m4: Likewise.
49459         * m4/timegm.m4: Likewise.
49460         * m4/tm_gmtoff.m4: Likewise.
49461         * m4/tmpdir.m4: Likewise.
49462         * m4/tmpfile.m4: Likewise.
49463         * m4/tzset.m4: Likewise.
49464         * m4/uintmax_t.m4: Likewise.
49465         * m4/unlinkdir.m4: Likewise.
49466         * m4/unlocked-io.m4: Likewise.
49467         * m4/uptime.m4: Likewise.
49468         * m4/userspec.m4: Likewise.
49469         * m4/utimbuf.m4: Likewise.
49470         * m4/utime.m4: Likewise.
49471         * m4/utimes-null.m4: Likewise.
49472         * m4/utimes.m4: Likewise.
49473         * m4/vararrays.m4: Likewise.
49474         * m4/vasnprintf.m4: Likewise.
49475         * m4/vfprintf-posix.m4: Likewise.
49476         * m4/vprintf-posix.m4: Likewise.
49477         * m4/wait-process.m4: Likewise.
49478         * m4/wchar_t.m4: Likewise.
49479         * m4/wint_t.m4: Likewise.
49480         * m4/write-any-file.m4: Likewise.
49481         * m4/yield.m4: Likewise.
49482
49483 2009-01-13  Bruno Haible  <bruno@clisp.org>
49484
49485         Avoid test-copy-file.sh failures when ACL support insufficient.
49486         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49487         TESTS_ENVIRONMENT.
49488         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49489         Reported by Jim Meyering.
49490
49491 2009-01-13  Bruno Haible  <bruno@clisp.org>
49492
49493         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49494         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49495         * modules/unistdio/u8-printf-parse (Files): Likewise.
49496         * modules/unistdio/u32-printf-parse (Files): Likewise.
49497         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49498
49499 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49500
49501         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49502         and m4/inttypes_h.m4 too.
49503
49504 2009-01-12  Eric Blake  <ebb9@byu.net>
49505
49506         tests: IRIX 6.2 cc can't compile -0.0 into .data
49507         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49508         rather than at compile-time.
49509         * tests/test-floorl.c (minus_zero): Likewise.
49510         * tests/test-frexpl.c (minus_zero): Likewise.
49511         * tests/test-isnan.c (minus_zerol): Likewise.
49512         * tests/test-isnanl.h (minus_zero): Likewise.
49513         * tests/test-ldexpl.c (minus_zero): Likewise.
49514         * tests/test-roundl.c (minus_zero): Likewise.
49515         * tests/test-signbit.c (minus_zerol): Likewise.
49516         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49517         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49518         * tests/test-truncl.c (minus_zero): Likewise.
49519         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49520         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49521         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49522
49523 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49524
49525         regex: fix glibc bug 9697
49526         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49527         handling.
49528
49529 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49530
49531         regex: fix glibc bug 697
49532         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49533         being NULL also if there are no backreferences.
49534
49535 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49536
49537         regex: merge glibc changes
49538         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49539         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49540         re_string_skip_chars, re_string_reconstruct): Likewise.
49541         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49542
49543 2009-01-07  Jim Meyering  <meyering@redhat.com>
49544
49545         poll: filter through cppi
49546         * lib/poll.c: Indent cpp directives to reflect nesting.
49547
49548 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49549
49550         poll: don't return uninitialized
49551         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49552
49553 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49554
49555         avoid compile failure on AIX 6.1
49556         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49557         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49558
49559 2009-01-04  Jim Meyering  <meyering@redhat.com>
49560
49561         remove duplicate inclusion of <stdio.h>
49562         * tests/test-fprintf-posix.c: Likewise.
49563         * tests/test-printf-posix.c: Likewise.
49564         * tests/test-snprintf-posix.c: Likewise.
49565         * tests/test-sprintf-posix.c: Likewise.
49566         * tests/test-vasprintf-posix.c: Likewise.
49567         * tests/test-vfprintf-posix.c: Likewise.
49568         * tests/test-vprintf-posix.c: Likewise.
49569         * tests/test-vsnprintf-posix.c: Likewise.
49570         * tests/test-vsprintf-posix.c: Likewise.
49571
49572 2009-01-03  Jim Meyering  <meyering@redhat.com>
49573
49574         gnulib-tool: fix sed-based filtering
49575         * gnulib-tool (func_filter_filelist): Remove extra backslash
49576         in sed_fff_filter definition.
49577
49578 2009-01-02  Jim Meyering  <meyering@redhat.com>
49579
49580         strftime: avoid compilation failure on Solaris 2.6
49581         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49582         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49583         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49584         be available.  Reported by Tom G. Christensen.  Details in
49585         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49586
49587 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49588             Bruno Haible  <bruno@clisp.org>
49589
49590         Speed up gnulib-tool by doing more string processing through shell
49591         built-ins.
49592         * gnulib-tool (fast_func_append): New variable.
49593         (func_remove_prefix, func_remove_suffix): New functions.
49594         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49595         (func_filter_filelist): New function.
49596         (func_get_dependencies): Use func_remove_suffix instead of sed.
49597         (func_get_automake_snippet): Use func_filter_filelist instead of a
49598         subshell and sed invocation.
49599
49600 2009-01-01  Bruno Haible  <bruno@clisp.org>
49601
49602         Fix a security bug.
49603         * gnulib-tool (func_import, import, update): Don't allow the characters
49604         '"', '$', '`', '\' in macro arguments that become part of commands that
49605         are evaluated.
49606
49607 2009-01-01  Bruno Haible  <bruno@clisp.org>
49608
49609         * gnulib-tool (func_reset_sigpipe): Add more comments.
49610
49611 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49612
49613         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49614         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49615         already know the answer.
49616
49617 2009-01-01  Jim Meyering  <meyering@redhat.com>
49618
49619         * lib/version-etc.c (version_etc_va): Update copyright year.
49620
49621 2008-12-30  Bruno Haible  <bruno@clisp.org>
49622
49623         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49624         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49625         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49626
49627 2008-12-29  Eric Blake  <ebb9@byu.net>
49628
49629         multiarch: avoid autoconf AC_REQUIRE bug
49630         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49631         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49632         2.63 and older.
49633         Reported by Bruno Haible, and analyzed in
49634         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49635
49636 2008-12-29  Bruno Haible  <bruno@clisp.org>
49637
49638         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49639         files in subdirectories correctly.
49640         Reported by Ralf Wildenhues.
49641
49642 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49643
49644         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49645         rather than 'join FILE -', for Solaris join.
49646
49647 2008-12-29  Bruno Haible  <bruno@clisp.org>
49648
49649         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49650         quoting.
49651         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49652         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49653         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49654         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49655         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49656         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49657         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49658         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49659         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49660         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49661         * m4/nls.m4 (AM_NLS): Likewise.
49662         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49663         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49664         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49665         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49666         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49667         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49668         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49669         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49670         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49671         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49672         * m4/xsize.m4 (gl_XSIZE): Likewise.
49673         Suggested by Jim Meyering.
49674
49675 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49676
49677         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49678         * lib/parse-duration.c: use a switch instead of cascading if's.
49679
49680 2008-12-29  Eric Blake  <ebb9@byu.net>
49681
49682         wchar.h: supply WEOF on Irix 5.3
49683         * lib/wchar.in.h (wint_t): Also supply WEOF.
49684         * lib/wctype.in.h (wint_t): Likewise.
49685         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49686         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49687         Reported by Tom G. Christensen.
49688
49689 2008-12-26  Bruno Haible  <bruno@clisp.org>
49690
49691         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49692         i486, i586, i686.
49693
49694 2008-12-26  Bruno Haible  <bruno@clisp.org>
49695
49696         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49697
49698 2008-12-26  Bruno Haible  <bruno@clisp.org>
49699
49700         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49701         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49702         not __STDC_CONSTANT_MACROS.
49703         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49704
49705 2008-12-25  Bruno Haible  <bruno@clisp.org>
49706
49707         Add support for universal builds to vasnprintf.
49708         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49709         universal builds, guess no.
49710         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49711         * modules/vasprintf-posix (Depends-on): Likewise.
49712         * modules/fprintf-posix (Depends-on): Likewise.
49713         * modules/vfprintf-posix (Depends-on): Likewise.
49714         * modules/snprintf-posix (Depends-on): Likewise.
49715         * modules/vsnprintf-posix (Depends-on): Likewise.
49716         * modules/sprintf-posix (Depends-on): Likewise.
49717         * modules/vsprintf-posix (Depends-on): Likewise.
49718         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49719         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49720         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49721         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49722         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49723         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49724         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49725
49726         Add support for universal builds to <inttypes.h>.
49727         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49728         _SCNu64_PREFIX): In Apple
49729         universal builds, define directly, using _LP64.
49730         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49731         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49732         * modules/inttypes (Depends-on): Add multiarch.
49733         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49734
49735         Add support for universal builds to <stdint.h>.
49736         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49737         universal builds, define directly, using _LP64.
49738         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49739         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49740         and size_t.
49741         * modules/stdint (Depends-on): Add multiarch.
49742         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49743
49744         New module 'multiarch'.
49745         * modules/multiarch: New file.
49746         * m4/multiarch.m4: New file.
49747
49748 2008-12-25  Bruno Haible  <bruno@clisp.org>
49749
49750         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49751
49752 2008-12-25  Bruno Haible  <bruno@clisp.org>
49753
49754         * modules/btowc (License): Relicense under LGPLv2+.
49755         * modules/mbsinit (License): Likewise.
49756         * modules/mbrtowc (License): Likewise.
49757         * modules/wcrtomb (License): Likewise.
49758         * modules/streq (License): Likewise.
49759         Reported by David Lutterkort <lutter@redhat.com>.
49760
49761 2008-12-23  Bruno Haible  <bruno@clisp.org>
49762
49763         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49764
49765 2008-12-23  Bruno Haible  <bruno@clisp.org>
49766
49767         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49768         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49769         GETADDRINFO_LIB, not in LIBS.
49770         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49771         * modules/canon-host (Link): Likewise.
49772         * NEWS: Mention the change.
49773         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49774         GETADDRINFO_LIB.
49775
49776 2008-12-22  Bruno Haible  <bruno@clisp.org>
49777
49778         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49779         * doc/posix-functions/iswalpha_l.texi: Likewise.
49780         * doc/posix-functions/iswblank_l.texi: Likewise.
49781         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49782         * doc/posix-functions/iswctype_l.texi: Likewise.
49783         * doc/posix-functions/iswdigit_l.texi: Likewise.
49784         * doc/posix-functions/iswgraph_l.texi: Likewise.
49785         * doc/posix-functions/iswlower_l.texi: Likewise.
49786         * doc/posix-functions/iswprint_l.texi: Likewise.
49787         * doc/posix-functions/iswpunct_l.texi: Likewise.
49788         * doc/posix-functions/iswspace_l.texi: Likewise.
49789         * doc/posix-functions/iswupper_l.texi: Likewise.
49790         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49791         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49792         * doc/posix-functions/open_wmemstream.texi: Likewise.
49793         * doc/posix-functions/swscanf.texi: Likewise.
49794         * doc/posix-functions/towctrans_l.texi: Likewise.
49795         * doc/posix-functions/towlower.texi: Likewise.
49796         * doc/posix-functions/towlower_l.texi: Likewise.
49797         * doc/posix-functions/towupper.texi: Likewise.
49798         * doc/posix-functions/towupper_l.texi: Likewise.
49799         * doc/posix-functions/vfwprintf.texi: Likewise.
49800         * doc/posix-functions/vfwscanf.texi: Likewise.
49801         * doc/posix-functions/vswscanf.texi: Likewise.
49802         * doc/posix-functions/vwprintf.texi: Likewise.
49803         * doc/posix-functions/vwscanf.texi: Likewise.
49804         * doc/posix-functions/wcpcpy.texi: Likewise.
49805         * doc/posix-functions/wcpncpy.texi: Likewise.
49806         * doc/posix-functions/wcscasecmp.texi: Likewise.
49807         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49808         * doc/posix-functions/wcscoll_l.texi: Likewise.
49809         * doc/posix-functions/wcsdup.texi: Likewise.
49810         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49811         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49812         * doc/posix-functions/wcsnlen.texi: Likewise.
49813         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49814         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49815         * doc/posix-functions/wctrans_l.texi: Likewise.
49816         * doc/posix-functions/wctype_l.texi: Likewise.
49817         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49818         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49819         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49820         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49821         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49822         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49823         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49824         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49825         * doc/glibc-functions/wcschrnul.texi: Likewise.
49826         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49827         * doc/glibc-functions/wcstod_l.texi: Likewise.
49828         * doc/glibc-functions/wcstof_l.texi: Likewise.
49829         * doc/glibc-functions/wcstol_l.texi: Likewise.
49830         * doc/glibc-functions/wcstold_l.texi: Likewise.
49831         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49832         * doc/glibc-functions/wcstoq.texi: Likewise.
49833         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49834         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49835         * doc/glibc-functions/wcstouq.texi: Likewise.
49836         * doc/glibc-functions/wmempcpy.texi: Likewise.
49837
49838 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49839             Eric Blake  <ebb9@byu.net>
49840             Paolo Bonzini  <bonzini@gnu.org>
49841             Bruno Haible  <bruno@clisp.org>
49842
49843         Make c-stack work on Haiku.
49844         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49845         (c_stack_action): Use SA_ONSTACK flag.
49846
49847 2008-12-22  Bruno Haible  <bruno@clisp.org>
49848
49849         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49850
49851 2008-12-22  Bruno Haible  <bruno@clisp.org>
49852
49853         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49854         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49855         being overridden.
49856         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49857         New macros.
49858         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49860         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49861         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49862
49863 2008-12-22  Bruno Haible  <bruno@clisp.org>
49864
49865         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49866         from test code.
49867
49868 2008-12-22  Eric Blake  <ebb9@byu.net>
49869
49870         Avoid gcc warnings on cygwin.
49871         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49872         Avoid unused variable.
49873         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49874         Likewise.
49875
49876 2008-12-22  Bruno Haible  <bruno@clisp.org>
49877
49878         Remove HAVE_MBRTOWC conditionals.
49879         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49880         (mbscasecmp): Assume mbrtowc function.
49881         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49882         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49883         * lib/mbschr.c: Include mbuiter.h unconditionally.
49884         (mbschr): Assume mbrtowc function.
49885         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49886         (mbscspn): Assume mbrtowc function.
49887         * lib/mbslen.c: Include mbuiter.h unconditionally.
49888         (mbslen): Assume mbrtowc function.
49889         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49890         (mbsncasecmp): Assume mbrtowc function.
49891         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49892         (mbsnlen): Assume mbrtowc function.
49893         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49894         (mbspbrk): Assume mbrtowc function.
49895         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49896         (mbspcasecmp): Assume mbrtowc function.
49897         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49898         (mbsrchr): Assume mbrtowc function.
49899         * lib/mbssep.c: Include mbuiter.h unconditionally.
49900         (mbssep): Assume mbrtowc function.
49901         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49902         (mbsspn): Assume mbrtowc function.
49903         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49904         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49905         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49906         (mbstok_r): Assume mbrtowc function.
49907         * lib/propername.c: Include mbuiter.h unconditionally.
49908         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49909         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49910         (trim2): Assume mbrtowc function.
49911         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49912         (mbsnwidth): Assume mbrtowc function.
49913         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49914         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49915         fallback definitions.
49916         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49917
49918 2008-12-22  Bruno Haible  <bruno@clisp.org>
49919
49920         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49921
49922 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49923
49924         * modules/regex: Request emulations for the mb*/wc* functions we need.
49925         * m4/regex.m4: Don't look for those functions here.
49926         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49927
49928 2008-12-22  Bruno Haible  <bruno@clisp.org>
49929
49930         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49931
49932 2008-12-21  Bruno Haible  <bruno@clisp.org>
49933
49934         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49935         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49936         (Include): Remove conditionalization.
49937         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49938         (Include): Remove conditionalization.
49939         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49940         (Include): Remove conditionalization.
49941         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49942         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49943         * NEWS: Mention the change.
49944         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49945         via Sergey Poznyakoff <gray@gnu.org.ua>.
49946
49947 2008-12-21  Bruno Haible  <bruno@clisp.org>
49948
49949         * MODULES.html.sh (Extended multibyte and wide character utilities
49950         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49951         wcrtomb, wcsrtombs.
49952         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49953         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49954         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49955         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49956
49957 2008-12-21  Bruno Haible  <bruno@clisp.org>
49958
49959         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49960
49961 2008-12-21  Bruno Haible  <bruno@clisp.org>
49962
49963         * modules/wcsnrtombs-tests: New file.
49964         * tests/test-wcsnrtombs1.sh: New file.
49965         * tests/test-wcsnrtombs2.sh: New file.
49966         * tests/test-wcsnrtombs3.sh: New file.
49967         * tests/test-wcsnrtombs4.sh: New file.
49968         * tests/test-wcsnrtombs.c: New file.
49969
49970         New module 'wcsnrtombs'.
49971         * lib/wchar.in.h (wcsnrtombs): New declaration.
49972         * lib/wcsnrtombs.c: New file.
49973         * lib/wcsrtombs-state.c: New file.
49974         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49975         (internal_state): Remove variable.
49976         * m4/wcsnrtombs.m4: New file.
49977         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49978         compilation units.
49979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49980         HAVE_WCSNRTOMBS.
49981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49982         HAVE_WCSNRTOMBS.
49983         * modules/wcsnrtombs: New file.
49984         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49985         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49986
49987 2008-12-21  Bruno Haible  <bruno@clisp.org>
49988
49989         * modules/wcsrtombs-tests: New file.
49990         * tests/test-wcsrtombs1.sh: New file.
49991         * tests/test-wcsrtombs2.sh: New file.
49992         * tests/test-wcsrtombs3.sh: New file.
49993         * tests/test-wcsrtombs4.sh: New file.
49994         * tests/test-wcsrtombs.c: New file.
49995
49996         New module 'wcsrtombs'.
49997         * lib/wchar.in.h (wcsrtombs): New declaration.
49998         * lib/wcsrtombs.c: New file.
49999         * m4/wcsrtombs.m4: New file.
50000         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50001         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50002         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50003         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50004         * modules/wcsrtombs: New file.
50005         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50006         bugs.
50007
50008 2008-12-21  Bruno Haible  <bruno@clisp.org>
50009
50010         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50011         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50012         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50013         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50014         if not correct.
50015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50016         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50017         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50018         m4/locale-zh.m4, m4/codeset.m4.
50019         * doc/posix-functions/wcrtomb.texi: Document the bug.
50020
50021 2008-12-21  Bruno Haible  <bruno@clisp.org>
50022
50023         Work around a btowc() bug on IRIX 6.5.
50024         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50025         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50026         REPLACE_WTOBC if not.
50027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50028         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50029         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50030
50031 2008-12-21  Bruno Haible  <bruno@clisp.org>
50032
50033         * modules/wcrtomb-tests: New file.
50034         * tests/test-wcrtomb.sh: New file.
50035         * tests/test-wcrtomb.c: New file.
50036
50037         New module 'wcrtomb'.
50038         * lib/wchar.in.h (wcrtomb): New declaration.
50039         * lib/wcrtomb.c: New file.
50040         * m4/wcrtomb.m4: New file.
50041         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50042         HAVE_WCRTOMB.
50043         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50044         HAVE_WCRTOMB.
50045         * modules/wcrtomb: New file.
50046         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50047
50048 2008-12-21  Bruno Haible  <bruno@clisp.org>
50049
50050         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50051         * modules/mbsrtowcs (Files): Likewise.
50052         * modules/wctob (Files): Likewise.
50053         * modules/c-strcase-tests (Files): Likewise.
50054         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50055         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50056         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50057         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50058         * modules/vasnprintf-posix-tests (Files): Likewise.
50059
50060 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50061
50062         gitlog-to-changelog: pass all command-line arguments to git-log
50063         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50064         it is sometimes convenient to filter the commits in various ways.
50065         gitlog-to-changelog only allows --since to specify a start date,
50066         but git-log itself supports many other filtering mechanisms.
50067         At the moment, I want to filter by branch name.  Rather than
50068         adding a --branch option to gitlog-to-changelog, it seems more
50069         flexible to simply pass all options directly to git-log and let
50070         git do the work.  Notice that this effectively makes --since a
50071         redundant option for gitlog-to-changelog, but removing it would
50072         require current usage to change since calls would then require
50073         an additional '--'.
50074
50075 2008-12-21  Bruno Haible  <bruno@clisp.org>
50076
50077         * modules/mbsnrtowcs-tests: New file.
50078         * tests/test-mbsnrtowcs1.sh: New file.
50079         * tests/test-mbsnrtowcs2.sh: New file.
50080         * tests/test-mbsnrtowcs3.sh: New file.
50081         * tests/test-mbsnrtowcs4.sh: New file.
50082         * tests/test-mbsnrtowcs.c: New file.
50083
50084         New module 'mbsnrtowcs'.
50085         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50086         * lib/mbsnrtowcs.c: New file.
50087         * lib/mbsrtowcs-state.c: New file.
50088         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50089         (internal_state): Remove variable.
50090         * m4/mbsnrtowcs.m4: New file.
50091         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50092         compilation units.
50093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50094         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50095         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50096         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50097         * modules/mbsnrtowcs: New file.
50098         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50099         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50100         portability problem.
50101
50102 2008-12-21  Bruno Haible  <bruno@clisp.org>
50103
50104         Work around mbsrtowcs bug.
50105         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50106         (gl_FUNC_MBSRTOWCS): Invoke it.
50107         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50108         m4/locale-zh.m4.
50109         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50110
50111 2008-12-21  Bruno Haible  <bruno@clisp.org>
50112
50113         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50114
50115 2008-12-21  Bruno Haible  <bruno@clisp.org>
50116
50117         Update doc for AIX.
50118         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50119         16-bit wchar_t type.
50120         * doc/posix-functions/btowc.texi: Likewise.
50121         * doc/posix-functions/fgetwc.texi: Likewise.
50122         * doc/posix-functions/fgetws.texi: Likewise.
50123         * doc/posix-functions/fputwc.texi: Likewise.
50124         * doc/posix-functions/fputws.texi: Likewise.
50125         * doc/posix-functions/fwide.texi: Likewise.
50126         * doc/posix-functions/fwprintf.texi: Likewise.
50127         * doc/posix-functions/fwscanf.texi: Likewise.
50128         * doc/posix-functions/getwchar.texi: Likewise.
50129         * doc/posix-functions/getwc.texi: Likewise.
50130         * doc/posix-functions/iswalnum.texi: Likewise.
50131         * doc/posix-functions/iswalpha.texi: Likewise.
50132         * doc/posix-functions/iswblank.texi: Likewise.
50133         * doc/posix-functions/iswcntrl.texi: Likewise.
50134         * doc/posix-functions/iswctype.texi: Likewise.
50135         * doc/posix-functions/iswdigit.texi: Likewise.
50136         * doc/posix-functions/iswgraph.texi: Likewise.
50137         * doc/posix-functions/iswlower.texi: Likewise.
50138         * doc/posix-functions/iswprint.texi: Likewise.
50139         * doc/posix-functions/iswpunct.texi: Likewise.
50140         * doc/posix-functions/iswspace.texi: Likewise.
50141         * doc/posix-functions/iswupper.texi: Likewise.
50142         * doc/posix-functions/iswxdigit.texi: Likewise.
50143         * doc/posix-functions/mbrtowc.texi: Likewise.
50144         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50145         * doc/posix-functions/mbstowcs.texi: Likewise.
50146         * doc/posix-functions/mbtowc.texi: Likewise.
50147         * doc/posix-functions/putwchar.texi: Likewise.
50148         * doc/posix-functions/putwc.texi: Likewise.
50149         * doc/posix-functions/swprintf.texi: Likewise.
50150         * doc/posix-functions/tolower.texi: Likewise.
50151         * doc/posix-functions/toupper.texi: Likewise.
50152         * doc/posix-functions/towctrans.texi: Likewise.
50153         * doc/posix-functions/ungetwc.texi: Likewise.
50154         * doc/posix-functions/vswprintf.texi: Likewise.
50155         * doc/posix-functions/wcrtomb.texi: Likewise.
50156         * doc/posix-functions/wcscat.texi: Likewise.
50157         * doc/posix-functions/wcschr.texi: Likewise.
50158         * doc/posix-functions/wcscmp.texi: Likewise.
50159         * doc/posix-functions/wcscoll.texi: Likewise.
50160         * doc/posix-functions/wcscpy.texi: Likewise.
50161         * doc/posix-functions/wcscspn.texi: Likewise.
50162         * doc/posix-functions/wcsftime.texi: Likewise.
50163         * doc/posix-functions/wcslen.texi: Likewise.
50164         * doc/posix-functions/wcsncat.texi: Likewise.
50165         * doc/posix-functions/wcsncmp.texi: Likewise.
50166         * doc/posix-functions/wcsncpy.texi: Likewise.
50167         * doc/posix-functions/wcspbrk.texi: Likewise.
50168         * doc/posix-functions/wcsrchr.texi: Likewise.
50169         * doc/posix-functions/wcsrtombs.texi: Likewise.
50170         * doc/posix-functions/wcsspn.texi: Likewise.
50171         * doc/posix-functions/wcsstr.texi: Likewise.
50172         * doc/posix-functions/wcstod.texi: Likewise.
50173         * doc/posix-functions/wcstof.texi: Likewise.
50174         * doc/posix-functions/wcstoimax.texi: Likewise.
50175         * doc/posix-functions/wcstok.texi: Likewise.
50176         * doc/posix-functions/wcstold.texi: Likewise.
50177         * doc/posix-functions/wcstoll.texi: Likewise.
50178         * doc/posix-functions/wcstol.texi: Likewise.
50179         * doc/posix-functions/wcstombs.texi: Likewise.
50180         * doc/posix-functions/wcstoull.texi: Likewise.
50181         * doc/posix-functions/wcstoul.texi: Likewise.
50182         * doc/posix-functions/wcstoumax.texi: Likewise.
50183         * doc/posix-functions/wcswidth.texi: Likewise.
50184         * doc/posix-functions/wcsxfrm.texi: Likewise.
50185         * doc/posix-functions/wctob.texi: Likewise.
50186         * doc/posix-functions/wctomb.texi: Likewise.
50187         * doc/posix-functions/wctrans.texi: Likewise.
50188         * doc/posix-functions/wctype.texi: Likewise.
50189         * doc/posix-functions/wcwidth.texi: Likewise.
50190         * doc/posix-functions/wmemchr.texi: Likewise.
50191         * doc/posix-functions/wmemcmp.texi: Likewise.
50192         * doc/posix-functions/wmemcpy.texi: Likewise.
50193         * doc/posix-functions/wmemmove.texi: Likewise.
50194         * doc/posix-functions/wmemset.texi: Likewise.
50195         * doc/posix-functions/wprintf.texi: Likewise.
50196         * doc/posix-functions/wscanf.texi: Likewise.
50197
50198 2008-12-21  Bruno Haible  <bruno@clisp.org>
50199
50200         Update doc for HP-UX 11.11.
50201         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50202         in HP-UX version 11.00, not in all versions of HP-UX 11.
50203         * doc/posix-functions/fwide.texi: Likewise.
50204         * doc/posix-functions/fwprintf.texi: Likewise.
50205         * doc/posix-functions/fwscanf.texi: Likewise.
50206         * doc/posix-functions/inet_ntop.texi: Likewise.
50207         * doc/posix-functions/inet_pton.texi: Likewise.
50208         * doc/posix-functions/mbrlen.texi: Likewise.
50209         * doc/posix-functions/mbrtowc.texi: Likewise.
50210         * doc/posix-functions/mbsinit.texi: Likewise.
50211         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50212         * doc/posix-functions/swprintf.texi: Likewise.
50213         * doc/posix-functions/swscanf.texi: Likewise.
50214         * doc/posix-functions/towctrans.texi: Likewise.
50215         * doc/posix-functions/vfwprintf.texi: Likewise.
50216         * doc/posix-functions/vswprintf.texi: Likewise.
50217         * doc/posix-functions/vwprintf.texi: Likewise.
50218         * doc/posix-functions/wcrtomb.texi: Likewise.
50219         * doc/posix-functions/wcsrtombs.texi: Likewise.
50220         * doc/posix-functions/wcsstr.texi: Likewise.
50221         * doc/posix-functions/wctob.texi: Likewise.
50222         * doc/posix-functions/wctrans.texi: Likewise.
50223         * doc/posix-functions/wmemchr.texi: Likewise.
50224         * doc/posix-functions/wmemcmp.texi: Likewise.
50225         * doc/posix-functions/wmemcpy.texi: Likewise.
50226         * doc/posix-functions/wmemmove.texi: Likewise.
50227         * doc/posix-functions/wmemset.texi: Likewise.
50228         * doc/posix-functions/wprintf.texi: Likewise.
50229         * doc/posix-functions/wscanf.texi: Likewise.
50230
50231 2008-12-21  Bruno Haible  <bruno@clisp.org>
50232
50233         Work around a portability problem.
50234         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50235         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50236
50237 2008-12-20  Bruno Haible  <bruno@clisp.org>
50238
50239         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50240         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50241         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50243         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50244
50245         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50246         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50247         set.
50248         (GNULIB_defined_mbstate_t): New macro.
50249         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50250         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50251         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50252         reuses the system's mbrtowc function but works around the bugs.
50253         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50254         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50255         macros.
50256         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50257         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50258         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50259         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50260         REPLACE_MBSINIT if mbsinit needs to be overridden.
50261         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50262         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50263         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50264         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50265         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50266         m4/locale-zh.m4.
50267         (Depends): Add mbsinit.
50268         * modules/mbsinit (Depends): Add mbrtowc.
50269         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50270
50271 2008-12-20  Bruno Haible  <bruno@clisp.org>
50272
50273         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50274         so that there are no conversion errors on AIX.
50275         * tests/test-mbsrtowcs.c (main): LIkewise.
50276
50277 2008-12-20  Bruno Haible  <bruno@clisp.org>
50278
50279         Work around wctob bug on Solaris <= 9.
50280         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50281         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50283         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50284         * modules/wctob (Files): Add m4/locale-fr.m4.
50285         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50286
50287 2008-12-20  Bruno Haible  <bruno@clisp.org>
50288
50289         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50290         /dev/null.
50291         * tests/test-select-in.sh: Likewise.
50292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50293
50294 2008-12-20  Bruno Haible  <bruno@clisp.org>
50295
50296         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50297         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50298         Cygwin 1.5.x.
50299
50300 2008-12-20  Bruno Haible  <bruno@clisp.org>
50301
50302         Ensure mbstate_t is defined on HP-UX 11.11.
50303         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50304         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50305         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50306         AC_USE_SYSTEM_EXTENSIONS.
50307         * modules/fnmatch (Depends-on): Add extensions.
50308         * modules/mbrlen (Depends-on): Likewise.
50309         * modules/mbrtowc (Depends-on): Likewise.
50310         * modules/mbsinit (Depends-on): Likewise.
50311         * modules/mbsrtowcs (Depends-on): Likewise.
50312         * modules/mbswidth (Depends-on): Likewise.
50313         * modules/quotearg (Depends-on): Likewise.
50314         * modules/strftime (Depends-on): Likewise.
50315
50316 2008-12-20  Bruno Haible  <bruno@clisp.org>
50317
50318         Ensure wctob is declared on IRIX 6.5.
50319         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50320         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50321         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50322         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50323         of HAVE_WCTOB.
50324         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50325         HAVE_WCTOB.
50326         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50327
50328 2008-12-19  Bruno Haible  <bruno@clisp.org>
50329
50330         * modules/mbsrtowcs-tests: New file.
50331         * tests/test-mbsrtowcs1.sh: New file.
50332         * tests/test-mbsrtowcs2.sh: New file.
50333         * tests/test-mbsrtowcs3.sh: New file.
50334         * tests/test-mbsrtowcs4.sh: New file.
50335         * tests/test-mbsrtowcs.c: New file.
50336
50337         New module 'mbsrtowcs'.
50338         * lib/wchar.in.h (mbsrtowcs): New declaration.
50339         * lib/mbsrtowcs.c: New file.
50340         * m4/mbsrtowcs.m4: New file.
50341         * modules/mbsrtowcs: New file.
50342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50343         HAVE_MBSRTOWCS.
50344         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50345         HAVE_MBSRTOWCS.
50346         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50347
50348 2008-12-19  Bruno Haible  <bruno@clisp.org>
50349
50350         New module 'mbrlen'.
50351         * lib/wchar.in.h (mbrlen): New declaration.
50352         * lib/mbrlen.c: New file.
50353         * m4/mbrlen.m4: New file.
50354         * modules/mbrlen: New file.
50355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50356         HAVE_MBRLEN.
50357         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50358         HAVE_MBRLEN.
50359         * doc/posix-functions/mbrlen.texi: Document the new module.
50360
50361 2008-12-19  Bruno Haible  <bruno@clisp.org>
50362
50363         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50364         * modules/mbrtowc (Depends-on): Add verify.
50365         Suggested by Paul Eggert.
50366
50367 2008-12-18  Bruno Haible  <bruno@clisp.org>
50368
50369         * modules/mbsinit-tests: New file.
50370         * tests/test-mbsinit.sh: New file.
50371         * tests/test-mbsinit.c: New file.
50372
50373 2008-12-18  Bruno Haible  <bruno@clisp.org>
50374
50375         * modules/mbrtowc-tests: New file.
50376         * tests/test-mbrtowc1.sh: New file.
50377         * tests/test-mbrtowc2.sh: New file.
50378         * tests/test-mbrtowc3.sh: New file.
50379         * tests/test-mbrtowc4.sh: New file.
50380         * tests/test-mbrtowc.c: New file.
50381
50382         New module 'mbrtowc'.
50383         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50384         mbsinit and mbrtowc.
50385         (mbrtowc): New declaration.
50386         * lib/mbrtowc.c: New file.
50387         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50388         * modules/mbrtowc: New file.
50389         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50390         HAVE_MBRTOWC.
50391         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50392         HAVE_MBRTOWC.
50393         * doc/posix-functions/mbrtowc.texi: Document the new module.
50394
50395 2008-12-18  Bruno Haible  <bruno@clisp.org>
50396
50397         New module 'wctob'.
50398         * lib/wchar.in.h (wctob): New declaration.
50399         * lib/wctob.c: New file.
50400         * m4/wctob.m4: New file.
50401         * modules/wctob: New file.
50402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50403         HAVE_WCTOB.
50404         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50405         * doc/posix-functions/wctob.texi: Document the new module.
50406
50407 2008-12-18  Bruno Haible  <bruno@clisp.org>
50408
50409         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50410         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50411
50412 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50413
50414         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50415         G. Christensen" <tgc@jupiterrise.com>.
50416
50417         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50418         G. Christensen" <tgc@jupiterrise.com>.
50419
50420         * lib/flock.c: Need to include string.h.  Reported by "Tom
50421         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50422         <ebb9@byu.net>.
50423
50424 2008-12-18  Bruno Haible  <bruno@clisp.org>
50425
50426         * m4/locale-ja.m4: New file, from GNU gettext.
50427
50428 2008-12-17  Bruno Haible  <bruno@clisp.org>
50429
50430         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50431         Suggested by Eric Blake.
50432
50433 2008-12-17  Bruno Haible  <bruno@clisp.org>
50434
50435         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50436
50437 2008-12-17  Bruno Haible  <bruno@clisp.org>
50438
50439         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50440         * modules/mbsinit (Depends-on): Add verify.
50441         Suggested by Paul Eggert.
50442
50443 2008-12-17  Bruno Haible  <bruno@clisp.org>
50444
50445         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50446         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50447         gl_FUNC_MBRTOWC.
50448         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50449         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50450         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50451         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50452         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50453         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50454         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50455         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50456         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50457         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50458         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50459         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50460         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50461         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50462         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50463         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50464         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50465         * modules/trim (configure.ac): Likewise.
50466
50467 2008-12-17  Bruno Haible  <bruno@clisp.org>
50468
50469         * modules/btowc-tests: New file.
50470         * tests/test-btowc1.sh: New file.
50471         * tests/test-btowc2.sh: New file.
50472         * tests/test-btowc.c: New file.
50473
50474         New module 'btowc'.
50475         * lib/wchar.in.h (btowc): New declaration.
50476         * lib/btowc.c: New file.
50477         * m4/btowc.m4: New file.
50478         * modules/btowc: New file.
50479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50480         HAVE_BTOWC.
50481         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50482         * doc/posix-functions/btowc.texi: Document the new module.
50483
50484 2008-12-17  Bruno Haible  <bruno@clisp.org>
50485
50486         New module 'mbsinit'.
50487         * lib/wchar.in.h (mbsinit): New declaration.
50488         * lib/mbsinit.c: New file.
50489         * m4/mbsinit.m4: New file.
50490         * modules/mbsinit: New file.
50491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50492         HAVE_MBSINIT.
50493         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50494         HAVE_MBSINIT.
50495         * doc/posix-functions/mbsinit.texi: Document the new module.
50496
50497 2008-12-16  Bruno Haible  <bruno@clisp.org>
50498
50499         * lib/unistd.in.h: Add comment.
50500         * tests/test-environ.c: Don't include <stdlib.h>.
50501
50502 2008-12-16  Bruno Haible  <bruno@clisp.org>
50503
50504         * lib/parse-duration.h (parse_duration): Document return value
50505         convention.
50506         * lib/parse-duration.c: Include specification header first. Add
50507         comments.
50508         (_): Remove macro.
50509         (parse_year_month_day, parse_hour_minute_second): Move side effects
50510         outside of strchr call.
50511         (parse_non_iso8601): Move side effects outside of isspace call.
50512         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50513         call.
50514
50515 2008-12-16  Bruno Haible  <bruno@clisp.org>
50516
50517         * tests/test-parse-duration.sh: Produce no output when the test
50518         succeeds.
50519
50520 2008-12-16  Bruno Haible  <bruno@clisp.org>
50521
50522         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50523         expressions.
50524
50525 2008-12-15  Bruno Haible  <bruno@clisp.org>
50526
50527         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50528         * doc/glibc-functions/flistxattr.texi: Likewise.
50529         * doc/glibc-functions/fopencookie.texi: Likewise.
50530         * doc/glibc-functions/fremovexattr.texi: Likewise.
50531         * doc/glibc-functions/fsetxattr.texi: Likewise.
50532         * doc/glibc-functions/getxattr.texi: Likewise.
50533         * doc/glibc-functions/lgetxattr.texi: Likewise.
50534         * doc/glibc-functions/listxattr.texi: Likewise.
50535         * doc/glibc-functions/llistxattr.texi: Likewise.
50536         * doc/glibc-functions/lremovexattr.texi: Likewise.
50537         * doc/glibc-functions/lsetxattr.texi: Likewise.
50538         * doc/glibc-functions/removexattr.texi: Likewise.
50539         * doc/glibc-functions/setxattr.texi: Likewise.
50540         * doc/posix-functions/open_memstream.texi: Likewise.
50541
50542 2008-12-15  Eric Blake  <ebb9@byu.net>
50543
50544         Update doc for cygwin 1.7.
50545         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50546         functions.
50547         * doc/posix-functions/fchmodat.texi: Likewise.
50548         * doc/posix-functions/fchownat.texi: Likewise.
50549         * doc/posix-functions/fdopendir.texi: Likewise.
50550         * doc/posix-functions/fmemopen.texi: Likewise.
50551         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50552         * doc/posix-functions/fstatat.texi: Likewise.
50553         * doc/posix-functions/futimens.texi: Likewise.
50554         * doc/posix-functions/gai_strerror.texi: Likewise.
50555         * doc/posix-functions/getaddrinfo.texi: Likewise.
50556         * doc/posix-functions/getnameinfo.texi: Likewise.
50557         * doc/posix-functions/if_freenameindex.texi: Likewise.
50558         * doc/posix-functions/if_indextoname.texi: Likewise.
50559         * doc/posix-functions/if_nameindex.texi: Likewise.
50560         * doc/posix-functions/if_nametoindex.texi: Likewise.
50561         * doc/posix-functions/insque.texi: Likewise.
50562         * doc/posix-functions/linkat.texi: Likewise.
50563         * doc/posix-functions/llrint.texi: Likewise.
50564         * doc/posix-functions/llrintf.texi: Likewise.
50565         * doc/posix-functions/llrintl.texi: Likewise.
50566         * doc/posix-functions/lockf.texi: Likewise.
50567         * doc/posix-functions/lrintl.texi: Likewise.
50568         * doc/posix-functions/mkdirat.texi: Likewise.
50569         * doc/posix-functions/mkfifoat.texi: Likewise.
50570         * doc/posix-functions/mknodat.texi: Likewise.
50571         * doc/posix-functions/mq_close.texi: Likewise.
50572         * doc/posix-functions/mq_getattr.texi: Likewise.
50573         * doc/posix-functions/mq_notify.texi: Likewise.
50574         * doc/posix-functions/mq_open.texi: Likewise.
50575         * doc/posix-functions/mq_receive.texi: Likewise.
50576         * doc/posix-functions/mq_send.texi: Likewise.
50577         * doc/posix-functions/mq_setattr.texi: Likewise.
50578         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50579         * doc/posix-functions/mq_timedsend.texi: Likewise.
50580         * doc/posix-functions/mq_unlink.texi: Likewise.
50581         * doc/posix-functions/open_memstream.texi: Likewise.
50582         * doc/posix-functions/openat.texi: Likewise.
50583         * doc/posix-functions/posix_fadvise.texi: Likewise.
50584         * doc/posix-functions/posix_fallocate.texi: Likewise.
50585         * doc/posix-functions/posix_madvise.texi: Likewise.
50586         * doc/posix-functions/posix_memalign.texi: Likewise.
50587         * doc/posix-functions/posix_openpt.texi: Likewise.
50588         * doc/posix-functions/readlinkat.texi: Likewise.
50589         * doc/posix-functions/remque.texi: Likewise.
50590         * doc/posix-functions/renameat.texi: Likewise.
50591         * doc/posix-functions/rintl.texi: Likewise.
50592         * doc/posix-functions/sem_unlink.texi: Likewise.
50593         * doc/posix-functions/shm_open.texi: Likewise.
50594         * doc/posix-functions/shm_unlink.texi: Likewise.
50595         * doc/posix-functions/signgam.texi: Likewise.
50596         * doc/posix-functions/sigset.texi: Likewise.
50597         * doc/posix-functions/stpcpy.texi: Likewise.
50598         * doc/posix-functions/stpncpy.texi: Likewise.
50599         * doc/posix-functions/strerror.texi: Likewise.
50600         * doc/posix-functions/strtod.texi: Likewise.
50601         * doc/posix-functions/symlinkat.texi: Likewise.
50602         * doc/posix-functions/unlinkat.texi: Likewise.
50603         * doc/posix-functions/utimensat.texi: Likewise.
50604         * doc/glibc-functions/bindresvport.texi: Likewise.
50605         * doc/glibc-functions/dn_expand.texi: Likewise.
50606         * doc/glibc-functions/exp10.texi: Likewise.
50607         * doc/glibc-functions/exp10f.texi: Likewise.
50608         * doc/glibc-functions/fgetxattr.texi: Likewise.
50609         * doc/glibc-functions/flistxattr.texi: Likewise.
50610         * doc/glibc-functions/fopencookie.texi: Likewise.
50611         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50612         * doc/glibc-functions/fremovexattr.texi: Likewise.
50613         * doc/glibc-functions/fsetxattr.texi: Likewise.
50614         * doc/glibc-functions/getifaddrs.texi: Likewise.
50615         * doc/glibc-functions/getxattr.texi: Likewise.
50616         * doc/glibc-functions/lgetxattr.texi: Likewise.
50617         * doc/glibc-functions/listxattr.texi: Likewise.
50618         * doc/glibc-functions/llistxattr.texi: Likewise.
50619         * doc/glibc-functions/lremovexattr.texi: Likewise.
50620         * doc/glibc-functions/lsetxattr.texi: Likewise.
50621         * doc/glibc-functions/pow10.texi: Likewise.
50622         * doc/glibc-functions/pow10f.texi: Likewise.
50623         * doc/glibc-functions/rcmd_af.texi: Likewise.
50624         * doc/glibc-functions/removexattr.texi: Likewise.
50625         * doc/glibc-functions/res_init.texi: Likewise.
50626         * doc/glibc-functions/res_mkquery.texi: Likewise.
50627         * doc/glibc-functions/res_query.texi: Likewise.
50628         * doc/glibc-functions/res_querydomain.texi: Likewise.
50629         * doc/glibc-functions/res_send.texi: Likewise.
50630         * doc/glibc-functions/rresvport_af.texi: Likewise.
50631         * doc/glibc-functions/setxattr.texi: Likewise.
50632         * doc/glibc-functions/strcasestr.texi: Likewise.
50633
50634 2008-12-15  Bruno Haible  <bruno@clisp.org>
50635
50636         Fix compilation error on OSF/1 4.0.
50637         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50638         <sys/time.h>, simply delegate to the system header.
50639         Reported by Daniel Richard G. <oss@teragram.com>.
50640
50641 2008-12-15  Bruno Haible  <bruno@clisp.org>
50642
50643         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50644         * doc/posix-functions/fchmodat.texi: Likewise.
50645         * doc/posix-functions/fchownat.texi: Likewise.
50646         * doc/posix-functions/fdopendir.texi: Likewise.
50647         * doc/posix-functions/fstatat.texi: Likewise.
50648         * doc/posix-functions/mkdirat.texi: Likewise.
50649         * doc/posix-functions/unlinkat.texi: Likewise.
50650
50651 2008-12-14  Bruno Haible  <bruno@clisp.org>
50652
50653         Update doc for POSIX:2008.
50654         * doc/posix-functions/faccessat.texi: New file.
50655         * doc/posix-functions/fchmodat.texi: New file.
50656         * doc/posix-functions/fchownat.texi: New file.
50657         * doc/posix-functions/fdopendir.texi: New file.
50658         * doc/posix-functions/fstatat.texi: New file.
50659         * doc/posix-functions/futimens.texi: New file.
50660         * doc/posix-functions/linkat.texi: New file.
50661         * doc/posix-functions/mkdirat.texi: New file.
50662         * doc/posix-functions/mkfifoat.texi: New file.
50663         * doc/posix-functions/mknodat.texi: New file.
50664         * doc/posix-functions/open_wmemstream.texi: New file.
50665         * doc/posix-functions/openat.texi: New file.
50666         * doc/posix-functions/psiginfo.texi: New file.
50667         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50668         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50669         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50670         * doc/posix-functions/readlinkat.texi: New file.
50671         * doc/posix-functions/renameat.texi: New file.
50672         * doc/posix-functions/strerror_l.texi: New file.
50673         * doc/posix-functions/symlinkat.texi: New file.
50674         * doc/posix-functions/unlinkat.texi: New file.
50675         * doc/posix-functions/utimensat.texi: New file.
50676         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50677
50678 2008-12-14  Bruno Haible  <bruno@clisp.org>
50679
50680         Update doc for POSIX:2008.
50681         * doc/posix-functions/alphasort.texi: Renamed from
50682         doc/glibc-functions/alphasort.texi.
50683         * doc/posix-functions/dirfd.texi: Renamed from
50684         doc/glibc-functions/dirfd.texi.
50685         * doc/posix-functions/dprintf.texi: Renamed from
50686         doc/glibc-functions/dprintf.texi.
50687         * doc/posix-functions/duplocale.texi: Renamed from
50688         doc/glibc-functions/duplocale.texi.
50689         * doc/posix-functions/fexecve.texi: Renamed from
50690         doc/glibc-functions/fexecve.texi.
50691         * doc/posix-functions/fmemopen.texi: Renamed from
50692         doc/glibc-functions/fmemopen.texi.
50693         * doc/posix-functions/freelocale.texi: Renamed from
50694         doc/glibc-functions/freelocale.texi.
50695         * doc/posix-functions/getdate_err.texi: Renamed from
50696         doc/glibc-functions/getdate_err.texi.
50697         * doc/posix-functions/isalnum_l.texi: Renamed from
50698         doc/glibc-functions/isalnum_l.texi.
50699         * doc/posix-functions/isalpha_l.texi: Renamed from
50700         doc/glibc-functions/isalpha_l.texi.
50701         * doc/posix-functions/isblank_l.texi: Renamed from
50702         doc/glibc-functions/isblank_l.texi.
50703         * doc/posix-functions/iscntrl_l.texi: Renamed from
50704         doc/glibc-functions/iscntrl_l.texi.
50705         * doc/posix-functions/isdigit_l.texi: Renamed from
50706         doc/glibc-functions/isdigit_l.texi.
50707         * doc/posix-functions/isgraph_l.texi: Renamed from
50708         doc/glibc-functions/isgraph_l.texi.
50709         * doc/posix-functions/islower_l.texi: Renamed from
50710         doc/glibc-functions/islower_l.texi.
50711         * doc/posix-functions/isprint_l.texi: Renamed from
50712         doc/glibc-functions/isprint_l.texi.
50713         * doc/posix-functions/ispunct_l.texi: Renamed from
50714         doc/glibc-functions/ispunct_l.texi.
50715         * doc/posix-functions/isspace_l.texi: Renamed from
50716         doc/glibc-functions/isspace_l.texi.
50717         * doc/posix-functions/isupper_l.texi: Renamed from
50718         doc/glibc-functions/isupper_l.texi.
50719         * doc/posix-functions/iswalnum_l.texi: Renamed from
50720         doc/glibc-functions/iswalnum_l.texi.
50721         * doc/posix-functions/iswalpha_l.texi: Renamed from
50722         doc/glibc-functions/iswalpha_l.texi.
50723         * doc/posix-functions/iswblank_l.texi: Renamed from
50724         doc/glibc-functions/iswblank_l.texi.
50725         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50726         doc/glibc-functions/iswcntrl_l.texi.
50727         * doc/posix-functions/iswctype_l.texi: Renamed from
50728         doc/glibc-functions/iswctype_l.texi.
50729         * doc/posix-functions/iswdigit_l.texi: Renamed from
50730         doc/glibc-functions/iswdigit_l.texi.
50731         * doc/posix-functions/iswgraph_l.texi: Renamed from
50732         doc/glibc-functions/iswgraph_l.texi.
50733         * doc/posix-functions/iswlower_l.texi: Renamed from
50734         doc/glibc-functions/iswlower_l.texi.
50735         * doc/posix-functions/iswprint_l.texi: Renamed from
50736         doc/glibc-functions/iswprint_l.texi.
50737         * doc/posix-functions/iswpunct_l.texi: Renamed from
50738         doc/glibc-functions/iswpunct_l.texi.
50739         * doc/posix-functions/iswspace_l.texi: Renamed from
50740         doc/glibc-functions/iswspace_l.texi.
50741         * doc/posix-functions/iswupper_l.texi: Renamed from
50742         doc/glibc-functions/iswupper_l.texi.
50743         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50744         doc/glibc-functions/iswxdigit_l.texi.
50745         * doc/posix-functions/isxdigit_l.texi: Renamed from
50746         doc/glibc-functions/isxdigit_l.texi.
50747         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50748         doc/glibc-functions/mbsnrtowcs.texi.
50749         * doc/posix-functions/mkdtemp.texi: Renamed from
50750         doc/glibc-functions/mkdtemp.texi.
50751         * doc/posix-functions/newlocale.texi: Renamed from
50752         doc/glibc-functions/newlocale.texi.
50753         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50754         doc/glibc-functions/nl_langinfo_l.texi.
50755         * doc/posix-functions/open_memstream.texi: Renamed from
50756         doc/glibc-functions/open_memstream.texi.
50757         * doc/posix-functions/opterr.texi: Renamed from
50758         doc/glibc-functions/opterr.texi.
50759         * doc/posix-functions/optind.texi: Renamed from
50760         doc/glibc-functions/optind.texi.
50761         * doc/posix-functions/optopt.texi: Renamed from
50762         doc/glibc-functions/optopt.texi.
50763         * doc/posix-functions/psignal.texi: Renamed from
50764         doc/glibc-functions/psignal.texi.
50765         * doc/posix-functions/scandir.texi: Renamed from
50766         doc/glibc-functions/scandir.texi.
50767         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50768         doc/glibc-functions/sched_get_priority_min.texi.
50769         * doc/posix-functions/signgam.texi: Renamed from
50770         doc/glibc-functions/signgam.texi.
50771         * doc/posix-functions/stpcpy.texi: Renamed from
50772         doc/glibc-functions/stpcpy.texi.
50773         * doc/posix-functions/stpncpy.texi: Renamed from
50774         doc/glibc-functions/stpncpy.texi.
50775         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50776         doc/glibc-functions/strcasecmp_l.texi.
50777         * doc/posix-functions/strcoll_l.texi: Renamed from
50778         doc/glibc-functions/strcoll_l.texi.
50779         * doc/posix-functions/strfmon_l.texi: Renamed from
50780         doc/glibc-functions/strfmon_l.texi.
50781         * doc/posix-functions/strftime_l.texi: Renamed from
50782         doc/glibc-functions/strftime_l.texi.
50783         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50784         doc/glibc-functions/strncasecmp_l.texi.
50785         * doc/posix-functions/strndup.texi: Renamed from
50786         doc/glibc-functions/strndup.texi.
50787         * doc/posix-functions/strnlen.texi: Renamed from
50788         doc/glibc-functions/strnlen.texi.
50789         * doc/posix-functions/strsignal.texi: Renamed from
50790         doc/glibc-functions/strsignal.texi.
50791         * doc/posix-functions/strxfrm_l.texi: Renamed from
50792         doc/glibc-functions/strxfrm_l.texi.
50793         * doc/posix-functions/timer_gettime.texi: Renamed from
50794         doc/glibc-functions/timer_gettime.texi.
50795         * doc/posix-functions/tolower_l.texi: Renamed from
50796         doc/glibc-functions/tolower_l.texi.
50797         * doc/posix-functions/toupper_l.texi: Renamed from
50798         doc/glibc-functions/toupper_l.texi.
50799         * doc/posix-functions/towctrans_l.texi: Renamed from
50800         doc/glibc-functions/towctrans_l.texi.
50801         * doc/posix-functions/towlower_l.texi: Renamed from
50802         doc/glibc-functions/towlower_l.texi.
50803         * doc/posix-functions/towupper_l.texi: Renamed from
50804         doc/glibc-functions/towupper_l.texi.
50805         * doc/posix-functions/uselocale.texi: Renamed from
50806         doc/glibc-functions/uselocale.texi.
50807         * doc/posix-functions/vdprintf.texi: Renamed from
50808         doc/glibc-functions/vdprintf.texi.
50809         * doc/posix-functions/wcpcpy.texi:
50810         Renamed from doc/glibc-functions/wcpcpy.texi.
50811         * doc/posix-functions/wcpncpy.texi: Renamed from
50812         doc/glibc-functions/wcpncpy.texi.
50813         * doc/posix-functions/wcscasecmp.texi: Renamed from
50814         doc/glibc-functions/wcscasecmp.texi.
50815         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50816         doc/glibc-functions/wcscasecmp_l.texi.
50817         * doc/posix-functions/wcscoll_l.texi: Renamed from
50818         doc/glibc-functions/wcscoll_l.texi.
50819         * doc/posix-functions/wcsdup.texi: Renamed from
50820         doc/glibc-functions/wcsdup.texi.
50821         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50822         doc/glibc-functions/wcsncasecmp.texi.
50823         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50824         doc/glibc-functions/wcsncasecmp_l.texi.
50825         * doc/posix-functions/wcsnlen.texi: Renamed from
50826         doc/glibc-functions/wcsnlen.texi.
50827         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50828         doc/glibc-functions/wcsnrtombs.texi.
50829         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50830         doc/glibc-functions/wcsxfrm_l.texi.
50831         * doc/posix-functions/wctrans_l.texi: Renamed from
50832         doc/glibc-functions/wctrans_l.texi.
50833         * doc/posix-functions/wctype_l.texi: Renamed from
50834         doc/glibc-functions/wctype_l.texi.
50835         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50836         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50837         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50838         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50839         these subsections.
50840         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50841         Remove sections.
50842
50843 2008-12-14  Bruno Haible  <bruno@clisp.org>
50844
50845         Update doc for POSIX:2008.
50846         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50847
50848 2008-12-14  Bruno Haible  <bruno@clisp.org>
50849
50850         Update doc for POSIX:2008.
50851         * doc/pastposix-functions/bcmp.texi: Renamed from
50852         doc/posix-functions/bcmp.texi.
50853         * doc/pastposix-functions/bcopy.texi: Renamed from
50854         doc/posix-functions/bcopy.texi.
50855         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50856         doc/posix-functions/bsd_signal.texi.
50857         * doc/pastposix-functions/bzero.texi: Renamed from
50858         doc/posix-functions/bzero.texi.
50859         * doc/pastposix-functions/ecvt.texi: Renamed from
50860         doc/posix-functions/ecvt.texi.
50861         * doc/pastposix-functions/fcvt.texi: Renamed from
50862         doc/posix-functions/fcvt.texi.
50863         * doc/pastposix-functions/ftime.texi: Renamed from
50864         doc/posix-functions/ftime.texi.
50865         * doc/pastposix-functions/gcvt.texi: Renamed from
50866         doc/posix-functions/gcvt.texi.
50867         * doc/pastposix-functions/getcontext.texi: Renamed from
50868         doc/posix-functions/getcontext.texi.
50869         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50870         doc/posix-functions/gethostbyaddr.texi.
50871         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50872         doc/posix-functions/gethostbyname.texi.
50873         * doc/pastposix-functions/getwd.texi: Renamed from
50874         doc/posix-functions/getwd.texi.
50875         * doc/pastposix-functions/h_errno.texi: Renamed from
50876         doc/posix-functions/h_errno.texi.
50877         * doc/pastposix-functions/index.texi: Renamed from
50878         doc/posix-functions/index.texi.
50879         * doc/pastposix-functions/makecontext.texi: Renamed from
50880         doc/posix-functions/makecontext.texi.
50881         * doc/pastposix-functions/mktemp.texi: Renamed from
50882         doc/posix-functions/mktemp.texi.
50883         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50884         doc/posix-functions/pthread_attr_getstackaddr.texi.
50885         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50886         doc/posix-functions/pthread_attr_setstackaddr.texi.
50887         * doc/pastposix-functions/rindex.texi: Renamed from
50888         doc/posix-functions/rindex.texi.
50889         * doc/pastposix-functions/scalb.texi: Renamed from
50890         doc/posix-functions/scalb.texi.
50891         * doc/pastposix-functions/setcontext.texi: Renamed from
50892         doc/posix-functions/setcontext.texi.
50893         * doc/pastposix-functions/swapcontext.texi: Renamed from
50894         doc/posix-functions/swapcontext.texi.
50895         * doc/pastposix-functions/ualarm.texi: Renamed from
50896         doc/posix-functions/ualarm.texi.
50897         * doc/pastposix-functions/usleep.texi: Renamed from
50898         doc/posix-functions/usleep.texi.
50899         * doc/pastposix-functions/vfork.texi: Renamed from
50900         doc/posix-functions/vfork.texi.
50901         * doc/pastposix-functions/wcswcs.texi: Renamed from
50902         doc/posix-functions/wcswcs.texi.
50903         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50904         (Function Substitutes): Update.
50905
50906 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50907
50908         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50909         m4/strerror.m4.
50910
50911 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50912             Bruno Haible  <bruno@clisp.org>
50913
50914         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50915
50916 2008-12-13  Bruno Haible  <bruno@clisp.org>
50917
50918         * modules/strtoull (Depends-on): Remove unistd.
50919
50920 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50921
50922         * modules/strtoull (Depends-on): Add stdlib.
50923
50924 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50925
50926         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50927
50928 2008-12-10  Jim Meyering  <meyering@redhat.com>
50929
50930         gl_ASSERT: don't say assertions are disabled when they're not
50931         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50932         "checking whether to enable assertions... no", when they are in
50933         fact enabled.  This is solely a bug in the output of configure.
50934         In spite of saying "no", NDEBUG was not defined in that case.
50935         Also, as noted by Eric Blake, leave assertions enabled upon
50936         --enable-assert=INVALID.
50937
50938 2008-12-10  Bruno Haible  <bruno@clisp.org>
50939
50940         Change MODULES.html to refer to POSIX:2008 where possible.
50941         * MODULES.html.sh (POSIX2008_URL): New variable.
50942         (posix_headers): Remove sys/timeb, ucontext.
50943         (posix2001_headers): New variable.
50944         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50945         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50946         index, makecontext, mktemp, pthread_attr_getstackaddr,
50947         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50948         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50949         (posix2001_functions): New variable.
50950         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50951         otherwise.
50952
50953 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50954
50955         add missing include to parse-duration.c
50956         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50957         * modules/parse-duration (Depends-on): Add xalloc.
50958
50959         fix sed script reading maint.mk
50960         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50961         (syntax-check-rules): Use it.
50962
50963 2008-12-09  Bruno Haible  <bruno@clisp.org>
50964
50965         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50966         MacOS X 10.4/PowerPC.
50967         Reported by Simon Josefsson.
50968
50969 2008-12-08  Jim Meyering  <meyering@redhat.com>
50970
50971         work around mingw's lack of some S_IF definitions
50972         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50973         Reported by Simon Josefsson.
50974
50975 2008-12-08  Bruno Haible  <bruno@clisp.org>
50976
50977         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50978         applied to variables. Needed on MacOS X 10.4/PowerPC.
50979         Reported by Simon Josefsson.
50980
50981 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50982         and Eric Blake  <ebb9@byu.net>
50983
50984         assert: honor --enable-assert
50985         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50986         order to honor --enable-assert, rather than treating it as a
50987         synonym for --disable-assert.
50988
50989 2008-12-08  Jim Meyering  <meyering@redhat.com>
50990
50991         * lib/posixtm.c: Remove now-useless declaration of mktime.
50992
50993         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50994
50995 2008-12-07  Bruno Haible  <bruno@clisp.org>
50996
50997         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50998         test_once): Mark functions as static.
50999         * tests/test-tls.c (test_tls): Likewise.
51000
51001 2008-12-07  Bruno Haible  <bruno@clisp.org>
51002
51003         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51004         iconv_register_autodetect.
51005
51006 2008-12-07  Jim Meyering  <meyering@redhat.com>
51007
51008         posixtm.c: avoid a warning
51009         * lib/posixtm.c (posixtime): Don't initialize tm0.
51010         It's no longer needed to placate gcc4's -Wuninitialized,
51011         and the attempt to placate would elicit a new warning.
51012
51013         unicodeio.c: mark unused parameters
51014         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51015         (fallback_failure_callback): Likewise.
51016
51017 2008-12-07  Bruno Haible  <bruno@clisp.org>
51018
51019         * gnulib-tool (func_create_testdir): When building the tests
51020         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51021         Reported by Simon Josefsson.
51022
51023 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51024
51025         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51026
51027 2008-12-06  Bruno Haible  <bruno@clisp.org>
51028
51029         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51030         Suggested by Eric Blake.
51031
51032 2008-12-06  Bruno Haible  <bruno@clisp.org>
51033
51034         Fix a c-stack test failure on MacOS X.
51035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51036         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51037         handler for SIGBUS as well.
51038         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51039         install a signal handler for SIGBUS as well.
51040         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51041
51042 2008-12-06  Bruno Haible  <bruno@clisp.org>
51043
51044         Advocacy documentation.
51045         * doc/gnulib-intro.texi (Benefits): New section.
51046         * doc/gnulib.texi: Update.
51047
51048 2008-12-06  Bruno Haible  <bruno@clisp.org>
51049
51050         Document the 'manywarnings' module.
51051         * doc/manywarnings.texi: New file.
51052         * doc/gnulib.texi: Include it.
51053
51054 2008-12-05  Eric Blake  <ebb9@byu.net>
51055
51056         tests: silence some gcc warnings
51057         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51058         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51059         type mismatches.
51060
51061 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51062             Bruno Haible  <bruno@clisp.org>
51063
51064         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51065
51066 2008-11-29  Jim Meyering  <meyering@redhat.com>
51067
51068         unicodeio.c: mark unused parameters
51069         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51070         (fallback_failure_callback): Likewise.
51071
51072         fts: fix a thinko
51073         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51074         (set_stat_type): Return S_IF*-valued "type" directly.
51075         Prompted by James Youngman's spotting a related bug.
51076         Confirmed by further testing through find.
51077
51078         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51079         * lib/fts.c (D_TYPE): Define.
51080         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51081         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51082         (s_ifmt_shift_bits): New function.
51083         (set_stat_type): New function.
51084         (fts_build): When not calling fts_stat, call set_stat_type
51085         to propagate dirent.d_type info to fts_read caller.
51086         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51087         fts_statp->st_mode type information may be valid.
51088
51089 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51090
51091         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51092         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51093         <sds@gnu.org>.
51094
51095 2008-11-20  Bruno Haible  <bruno@clisp.org>
51096
51097         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51098         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51099         INCLUDE_NEXT.
51100         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51101         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51102         * modules/math (Makefile.am): Substitute
51103         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51104         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51105
51106 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51107             Bruno Haible  <bruno@clisp.org>
51108
51109         * lib/stdint.in.h: Define all type macros so that their expansion is
51110         a single typedef'ed token. Fixes a compilation failure in Boost which
51111         does "using ::int8_t;".
51112
51113 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51114
51115         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51116         gl_MANYWARN_ALL_GCC.
51117         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51118         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51119         * modules/manywarnings: New file.
51120         * MODULES.html.sh: Mention manywarnings module.
51121
51122 2008-11-18  Bruno Haible  <bruno@clisp.org>
51123
51124         * doc/gnulib-tool.texi (Unit tests): New section.
51125
51126 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51127
51128         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51129         paths like 'lib/po/foo.po'.
51130
51131 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51132
51133         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51134         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51135
51136 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51137
51138         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51139         parameter works.
51140
51141 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51142
51143         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51144
51145 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51146
51147         * modules/parse-duration-tests: New file.
51148         * tests/test-parse-duration.sh: New file.
51149         * tests/test-parse-duration.c: New file.
51150
51151         New module 'parse-duration'.
51152         * lib/parse-duration.h: New file.
51153         * lib/parse-duration.c: New file.
51154         * modules/parse-duration: New file.
51155
51156 2008-11-17  Bruno Haible  <bruno@clisp.org>
51157
51158         * tests/test-select-out.sh: Comment out the first pipe test.
51159         Reported by Simon Josefsson.
51160
51161 2008-11-17  Bruno Haible  <bruno@clisp.org>
51162
51163         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51164         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51165         gl_HOSTENT.
51166
51167 2008-11-17  Bruno Haible  <bruno@clisp.org>
51168
51169         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51170         -lnetwork and -lnet. Needed for Haiku and BeOS.
51171
51172 2008-11-16  Bruno Haible  <bruno@clisp.org>
51173
51174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51175
51176 2008-11-16  Bruno Haible  <bruno@clisp.org>
51177
51178         Avoid test failure on Haiku.
51179         * tests/test-fsync.c: Include <errno.h>.
51180         (main): Don't require that fsync (0) fails.
51181
51182 2008-11-15  Bruno Haible  <bruno@clisp.org>
51183
51184         New module 'hostent'.
51185         * modules/hostent: New file.
51186         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51187
51188 2008-11-15  Bruno Haible  <bruno@clisp.org>
51189
51190         New module 'servent'.
51191         * modules/servent: New file.
51192         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51193
51194 2008-11-15  Bruno Haible  <bruno@clisp.org>
51195
51196         Avoid generating same test program with two different rules.
51197         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51198         test-frexp to test-frexp-nolibm.
51199         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51200         test-frexpl to test-frexpl-nolibm.
51201
51202 2008-11-15  Bruno Haible  <bruno@clisp.org>
51203
51204         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51205         $(FREXPL_LIBM).
51206
51207 2008-11-15  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/netdb.in.h: Activate the definitions also when the system's
51210         <netdb.h> has 'struct addrinfo'.
51211         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51212         EAI_OVERFLOW or AI_NUMERICSERV.
51213         * doc/posix-headers/netdb.texi: Document the problem.
51214
51215 2008-11-15  Bruno Haible  <bruno@clisp.org>
51216
51217         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51218
51219         Make the 'sched' module work on platforms where <sched.h> exists but
51220         is incomplete (such as Haiku).
51221         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51222         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51223         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51224         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51225         HAVE_STRUCT_SCHED_PARAM.
51226         * modules/sched (Depends-on): Add include_next.
51227         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51228         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51229         * doc/posix-headers/sched.texi: Document the issue.
51230
51231 2008-11-13  Jim Meyering  <meyering@redhat.com>
51232
51233         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51234         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51235         test would fail due to the difference in the Report bugs to ...
51236         line.  The expected address is empty, "<>", while the actual
51237         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51238
51239 2008-11-12  Bruno Haible  <bruno@clisp.org>
51240
51241         lstat: don't compile lstat.c on systems lacking lstat
51242         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51243         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51244         Reported by Daniel P. Berrange via Jim Meyering.
51245
51246 2008-11-12  Jim Meyering  <meyering@redhat.com>
51247
51248         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51249
51250 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51251
51252         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51253         instead.
51254
51255 2008-11-12  Bruno Haible  <bruno@clisp.org>
51256
51257         * lib/unicodeio.c: Include unistr.h.
51258         (utf8_wctomb): Remove function.
51259         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51260
51261 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51262
51263         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51264         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51265         <bruno@clisp.org>.
51266         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51267
51268 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51269
51270         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51271         * doc/gnulib.texi: Add section for warnings.
51272
51273 2008-11-11  Bruno Haible  <bruno@clisp.org>
51274
51275         * lib/sockets.h: Add a comment.
51276
51277 2008-11-11  Karl Berry  <karl@gnu.org>
51278
51279         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51280
51281 2008-11-11  Eric Blake  <ebb9@byu.net>
51282
51283         fdl.texi: avoid git symlinks
51284         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51285
51286 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51287
51288         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51289
51290 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51291
51292         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51293         (gl_WARN_ADD): Substitute $2 if literal.
51294
51295 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51296
51297         * m4/warning.m4: Remove.
51298
51299 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51300
51301         * m4/warnings.m4: Almost complete rewrite. :-)
51302
51303 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51304
51305         * modules/warnings: New module.
51306         * m4/warnings.m4: New file.
51307         * MODULES.html.sh: Mention warnings module.
51308         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51309         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51310
51311 2008-11-10  Eric Blake  <ebb9@byu.net>
51312
51313         fdl.texi: make a symlink to the latest version
51314         * doc/standards.texi: Revert today's earlier change.
51315         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51316         * doc/fdl.texi: ...and replace this with a symlink to the newer
51317         fdl-1.3.texi.
51318
51319 2008-11-10  Bruno Haible  <bruno@clisp.org>
51320
51321         * tests/test-select-fd.c (main): Accept the result file name as fourth
51322         argument.
51323         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51324         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51325
51326 2008-11-10  Bruno Haible  <bruno@clisp.org>
51327
51328         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51329         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51330         as autoconf-substituted macros.
51331         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51332         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51333         gl_NETDB_H_DEFAULTS. Set these variables.
51334         * modules/netdb (Makefile.am): Substitute these variables.
51335
51336 2008-11-10  Eric Blake  <ebb9@byu.net>
51337
51338         standards.texi: include correct file for FDL 1.3
51339         * doc/standards.texi (GNU Free Documentation License): Change
51340         include file to pull in FDL 1.3, not 1.2.
51341
51342         fdl.texi: revert accidental change to license
51343         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51344
51345 2008-11-10  Bruno Haible  <bruno@clisp.org>
51346
51347         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51348         cross-compiling guesses also when the native compile gives no result.
51349
51350 2008-11-10  Bruno Haible  <bruno@clisp.org>
51351
51352         * lib/spawni.c (__spawni): Force variable into the stack.
51353
51354 2008-11-10  Bruno Haible  <bruno@clisp.org>
51355
51356         Add support for Haiku.
51357         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51358         glibc and BeOS, but also on Haiku.
51359         * lib/fpurge.c (fpurge): Likewise.
51360         * lib/freadable.c (freadable): Likewise.
51361         * lib/freadahead.c (freadahead): Likewise.
51362         * lib/freading.c (freading): Likewise.
51363         * lib/freadptr.c (freadptr): Likewise.
51364         * lib/freadseek.c (freadptrinc): Likewise.
51365         * lib/fseeko.c (rpl_fseeko): Likewise.
51366         * lib/fseterr.c (fseterr): Likewise.
51367         * lib/fwritable.c (fwritable): Likewise.
51368         * lib/fwriting.c (fwriting): Likewise.
51369         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51370
51371 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51372
51373         * lib/config.charset: Treat Haiku like BeOS.
51374
51375 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51376
51377         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51378         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51379
51380 2008-11-08  Bruno Haible  <bruno@clisp.org>
51381
51382         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51383         AC_CACHE_CHECK.
51384
51385 2008-11-08  Bruno Haible  <bruno@clisp.org>
51386
51387         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51388
51389 2008-11-08  Bruno Haible  <bruno@clisp.org>
51390
51391         * tests/test-select-fd.c: New file.
51392         * tests/test-select-in.sh: New file.
51393         * tests/test-select-out.sh: New file.
51394         * tests/test-select-stdin.c: New file.
51395         * modules/select-tests (Files): Add the new files.
51396         (Depends-on): Add gettimeofday.
51397         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51398         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51399         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51400
51401 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51402             Bruno Haible  <bruno@clisp.org>
51403
51404         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51405
51406 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51407
51408         * build-aux/pmccabe2html: Added support for C++ source files.
51409
51410 2008-11-05  Ben Pfaff  <blp@gnu.org>
51411
51412         Fix lib/close.c build on Windows.
51413         * modules/close (Files): Add lib/w32sock.h.
51414
51415 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51416
51417         Accept Bison's NEWS format.
51418         * build-aux/announce-gen (print_news_deltas): Tweak
51419         $re_prefix.
51420
51421 2008-11-04  Bruno Haible  <bruno@clisp.org>
51422
51423         * modules/random_r (Maintainer): Add glibc.
51424
51425 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51426
51427         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51428         by karl@freefriends.org (Karl Berry).
51429         * doc/alloca.texi: Likewise.
51430         * doc/c-ctype.texi: Likewise.
51431         * doc/c-strcase.texi: Likewise.
51432         * doc/c-strcaseeq.texi: Likewise.
51433         * doc/c-strcasestr.texi: Likewise.
51434         * doc/c-strstr.texi: Likewise.
51435         * doc/c-strtod.texi: Likewise.
51436         * doc/c-strtold.texi: Likewise.
51437         * doc/ctime.texi: Likewise.
51438         * doc/error.texi: Likewise.
51439         * doc/fdl.texi: Likewise.
51440         * doc/gcd.texi: Likewise.
51441         * doc/getdate.texi: Likewise.
51442         * doc/gnulib-intro.texi: Likewise.
51443         * doc/gnulib-tool.texi: Likewise.
51444         * doc/gnulib.texi: Likewise.
51445         * doc/inet_ntoa.texi: Likewise.
51446         * doc/maintain.texi: Likewise.
51447         * doc/make-stds.texi: Likewise.
51448         * doc/quote.texi: Likewise.
51449         * doc/regexprops-generic.texi: Likewise.
51450         * doc/standards.texi: Likewise.
51451         * doc/verify.texi: Likewise.
51452         * doc/visibility.texi: Likewise.
51453         * doc/gnulib.texi (GNU Free Documentation License): Include
51454         fdl-1.3.texi instead of fdl.texi.
51455
51456 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51457
51458         * doc/fdl-1.3.texi: New file, from
51459         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51460         * modules/fdl-1.3: Add.
51461         * MODULES.html.sh: Add fdl-1.3.
51462
51463 2008-11-03  Bruno Haible  <bruno@clisp.org>
51464
51465         Make determination of absolute name of header file work with AIX xlc.
51466         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51467         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51468         preprocessing.
51469         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51470         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51471
51472 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51473
51474         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51475         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51476         <ludo@gnu.org>.
51477
51478 2008-11-02  Bruno Haible  <bruno@clisp.org>
51479
51480         Mark 'strpbrk' obsolete.
51481         * modules/strpbrk (Status, Notice): New sections.
51482         * modules/strtok_r (Depends-on): Add strpbrk.
51483
51484 2008-11-02  Bruno Haible  <bruno@clisp.org>
51485
51486         Mark 'strdup' obsolete.
51487         * modules/strdup (Status, Notice): New sections.
51488         * modules/findprog (Depends-on): Add strdup.
51489         * modules/getaddrinfo (Depends-on): Likewise.
51490         * modules/localename (Depends-on): Likewise.
51491         * modules/relocatable-lib (Depends-on): Likewise.
51492         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51493         * modules/relocatable-prog (Depends-on): Likewise.
51494         * modules/trim (Depends-on): Likewise.
51495         * modules/unictype/gen-ctype (Depends-on): Likewise.
51496         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51497
51498 2008-11-02  Bruno Haible  <bruno@clisp.org>
51499
51500         Mark 'strcspn' obsolete.
51501         * modules/strcspn (Status, Notice): New sections.
51502
51503 2008-11-02  Bruno Haible  <bruno@clisp.org>
51504
51505         Mark 'rmdir' obsolete.
51506         * modules/rmdir (Status, Notice): New sections.
51507         * modules/clean-temp (Depends-on): Add rmdir.
51508         * modules/openat (Depends-on): Likewise.
51509
51510 2008-11-02  Bruno Haible  <bruno@clisp.org>
51511
51512         Mark 'raise' obsolete.
51513         * modules/raise (Status, Notice): New sections.
51514         (Include): Specify <signal.h>.
51515         * modules/stdio (Depends-on): Add raise.
51516         * modules/write (Depends-on): Likewise.
51517
51518 2008-11-02  Bruno Haible  <bruno@clisp.org>
51519
51520         Mark 'memset' obsolete.
51521         * modules/memset (Status, Notice): New sections.
51522
51523 2008-11-02  Bruno Haible  <bruno@clisp.org>
51524
51525         Mark 'memmove' obsolete.
51526         * modules/memmove (Status, Notice): New sections.
51527         * modules/argp (Depends-on): Add memmove.
51528         * modules/argz (Depends-on): Likewise.
51529         * modules/canonicalize (Depends-on): Likewise.
51530         * modules/canonicalize-lgpl (Depends-on): Likewise.
51531         * modules/fts (Depends-on): Likewise.
51532         * modules/getcwd (Depends-on): Likewise.
51533         * modules/human (Depends-on): Likewise.
51534         * modules/regex (Depends-on): Likewise.
51535         * modules/striconveh (Depends-on): Likewise.
51536         * modules/trim (Depends-on): Likewise.
51537         * modules/unistr/u8-move (Depends-on): Likewise.
51538         * modules/unistr/u16-move (Depends-on): Likewise.
51539         * modules/unistr/u32-move (Depends-on): Likewise.
51540
51541 2008-11-02  Bruno Haible  <bruno@clisp.org>
51542
51543         Mark 'memcpy' obsolete.
51544         * modules/memcpy (Status, Notice): New sections.
51545
51546 2008-11-02  Bruno Haible  <bruno@clisp.org>
51547
51548         Mark 'memcmp' obsolete.
51549         * modules/memcmp (Status, Notice): New sections.
51550         * modules/argmatch (Depends-on): Add memchr.
51551         * modules/backupfile (Depends-on): Likewise.
51552         * modules/c-strcasestr (Depends-on): Likewise.
51553         * modules/crypto/des (Depends-on): Likewise.
51554         * modules/csharpcomp (Depends-on): Likewise.
51555         * modules/fnmatch (Depends-on): Likewise.
51556         * modules/git-merge-changelog (Depends-on): Likewise.
51557         * modules/isnand (Depends-on): Likewise.
51558         * modules/isnand-nolibm (Depends-on): Likewise.
51559         * modules/isnanf (Depends-on): Likewise.
51560         * modules/isnanf-nolibm (Depends-on): Likewise.
51561         * modules/isnanl (Depends-on): Likewise.
51562         * modules/isnanl-nolibm (Depends-on): Likewise.
51563         * modules/mbchar (Depends-on): Likewise.
51564         * modules/memcoll (Depends-on): Likewise.
51565         * modules/quotearg (Depends-on): Likewise.
51566         * modules/regex (Depends-on): Likewise.
51567         * modules/relocatable-prog (Depends-on): Likewise.
51568         * modules/same (Depends-on): Likewise.
51569         * modules/signbit (Depends-on): Likewise.
51570         * modules/strcasestr-simple (Depends-on): Likewise.
51571         * modules/unictype/gen-ctype (Depends-on): Likewise.
51572         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51573         * modules/uniname/uniname (Depends-on): Likewise.
51574         * modules/unistr/u8-cmp (Depends-on): Likewise.
51575
51576 2008-11-02  Bruno Haible  <bruno@clisp.org>
51577
51578         Mark 'memchr' obsolete.
51579         * modules/memchr (Status, Notice): New sections.
51580         * modules/argp (Depends-on): Add memchr.
51581         * modules/base64 (Depends-on): Likewise.
51582         * modules/c-strcasestr (Depends-on): Likewise.
51583         * modules/chdir-long (Depends-on): Likewise.
51584         * modules/fnmatch (Depends-on): Likewise.
51585         * modules/getsubopt (Depends-on): Likewise.
51586         * modules/git-merge-changelog (Depends-on): Likewise.
51587         * modules/glob (Depends-on): Likewise.
51588         * modules/strcasestr-simple (Depends-on): Likewise.
51589         * modules/strnlen (Depends-on): Likewise.
51590
51591 2008-11-02  Bruno Haible  <bruno@clisp.org>
51592
51593         Mark 'atexit' obsolete.
51594         * modules/atexit (Status, Notice): New sections.
51595         * modules/chdir-long (Depends-on): Add atexit.
51596         * modules/wait-process (Depends-on): Likewise.
51597
51598 2008-11-02  Bruno Haible  <bruno@clisp.org>
51599
51600         * gnulib-tool: New option --with-obsolete.
51601         (func_usage): Document it.
51602         (func_modules_transitive_closure): Drop obsolete dependencies if
51603         incobsolete is not true.
51604         (func_import): Read and save the incobsolete variable to the cache.
51605
51606 2008-11-02  Bruno Haible  <bruno@clisp.org>
51607
51608         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51609         * gnulib-tool: New option --extract-status.
51610         (func_usage): Document it.
51611         (sed_extract_prog): Recognize it.
51612         (func_get_status): New function.
51613
51614 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51615
51616         * modules/sockets (License): Change from LGPL to LGPLv2+.
51617
51618 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51619
51620         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51621
51622 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51623
51624         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51625         Mention times and sys_times.
51626         * modules/sys_times, modules/sys_times-tests: New modules.
51627         * modules/times, modules/times-tests: Likewise
51628         * m4/sys_times_h.m4: New file.
51629         * lib/sys_times.in.h: Likewise
51630         * lib/times.c: Likewise.
51631         * tests/test-sys_times.c: Likewise.
51632         * tests/test-times.c: Likewise.
51633         * doc/posix-headers/sys_times.texi: Update.
51634         * doc/posix-functions/times.texi: Update.
51635
51636 2008-10-28  Jim Meyering  <meyering@redhat.com>
51637
51638         * modules/tempname (Depends-on): Add lstat.
51639
51640         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51641
51642 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51643
51644         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51645         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51646         using idiom used elsewhere in gnulib.
51647
51648 2008-10-27  Jim Meyering  <meyering@redhat.com>
51649
51650         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51651
51652 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51653
51654         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51655         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51656         programs.
51657         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51658
51659 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51660
51661         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51662
51663 2008-10-27  Bruno Haible  <bruno@clisp.org>
51664
51665         * tests/test-lstat.c: Include <stdio.h>.
51666
51667 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51668
51669         * modules/lstat-tests: New module.
51670         * tests/test-lstat.c: New file.
51671
51672 2008-10-26  Jim Meyering  <meyering@redhat.com>
51673
51674         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51675
51676 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51677             Bruno Haible  <bruno@clisp.org>
51678
51679         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51680         * modules/configmake (Include): Add a note that the include must come
51681         after all system headers.
51682         * lib/javaversion.c: Include configmake.h after all other includes.
51683
51684 2008-10-26  Bruno Haible  <bruno@clisp.org>
51685
51686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51687         HAVE_STRUCT_RANDOM_DATA to 1.
51688         (gl_STDLIB_H): Simplify.
51689
51690 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51691
51692         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51693         substitute HAVE_STRUCT_RANDOM_DATA.
51694         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51695         random_data.
51696         * modules/stdlib (Makefile.am): Substitute
51697         HAVE_STRUCT_RANDOM_DATA.
51698
51699 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51700
51701         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51702         * doc/gnulib-intro.texi (Copyright): Likewise.
51703
51704 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51705
51706         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51707         findings.
51708
51709 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51710             Bruno Haible  <bruno@clisp.org>
51711
51712         * lib/unistd.in.h: Include <winsock2.h>.
51713         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51714         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51715         Provide dummy declarations.
51716         (gethostname): Override.
51717         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51718         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51719         gl_PREREQ_SYS_H_WINSOCK2.
51720         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51721         * doc/posix-functions/gethostname.texi: More details.
51722
51723 2008-10-25  Bruno Haible  <bruno@clisp.org>
51724
51725         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51726         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51727         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51728
51729         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51730         here ...
51731         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51732         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51733         gl_UNISTD_H_DEFAULTS.
51734
51735 2008-10-25  Eric Blake  <ebb9@byu.net>
51736
51737         signbit: avoid spurious compiler failure
51738         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51739         declarations inside function.
51740
51741 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51742             Bruno Haible  <bruno@clisp.org>
51743
51744         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51745         * modules/random_r (Depends-on): Add stdint.
51746
51747 2008-10-24  Bruno Haible  <bruno@clisp.org>
51748
51749         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51750         Eggert.
51751         * modules/strerror (License): Likewise.
51752
51753 2008-10-24  Jim Meyering  <meyering@redhat.com>
51754
51755         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51756         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51757
51758 2008-10-24  Eric Blake  <ebb9@byu.net>
51759
51760         getgroups: fix compilation when getgroups is available
51761         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51762         but with <config.h> override of getgroups disabled.
51763
51764 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51765
51766         * doc/gnulib.texi (Header files): Add note about C++ problems.
51767         Explained by Bruno Haible <bruno@clisp.org>.
51768
51769 2008-10-23  Bruno Haible  <bruno@clisp.org>
51770
51771         Define a dummy SA_NODEFER macro on Interix.
51772         * lib/signal.in.h (SA_NODEFER): Define fallback.
51773         Reported by Aleksey Cheusov <cheusov@tut.by> via
51774         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51775
51776 2008-10-23  Bruno Haible  <bruno@clisp.org>
51777
51778         * modules/freadahead (License): Change to LGPLv2+.
51779         Suggested by Simon Josefsson.
51780
51781 2008-10-23  Jim Meyering  <meyering@redhat.com>
51782
51783         random_r: new module
51784         * modules/random_r: New file.
51785         * m4/random_r.m4: New file.
51786         * lib/random_r.c: New file, from glibc.
51787         * modules/random_r-tests: New file.
51788         * tests/test-random_r.c: New file.
51789         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51790          Declare.
51791         (RAND_MAX): Define.
51792         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51793         * modules/stdlib: Substitute them, too.
51794         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51795         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51796         * doc/glibc-functions/random_r.texi: Likewise.
51797         * doc/glibc-functions/setstate_r.texi: Likewise.
51798         * doc/glibc-functions/srandom_r.texi: Likewise.
51799         * config/srclist.txt: Mention it.
51800
51801 2008-10-23  David Lutterkort  <lutter@redhat.com>
51802
51803         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51804         link requirement
51805
51806 2008-10-23  Jim Meyering  <meyering@redhat.com>
51807
51808         selinux-h: mark parameters of stub functions as intentionally unused
51809         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51810         * lib/se-context.in.h: Likewise.
51811
51812 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51813
51814         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51815
51816 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51817
51818         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51819
51820 2008-10-22  Eric Blake  <ebb9@byu.net>
51821
51822         glthread/thread: avoid compiler warning
51823         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51824         Add unreachable abort to silence compiler.
51825
51826 2008-10-22  Eric Blake  <ebb9@byu.net>
51827
51828         netdb: also supply struct addrinfo for cygwin 1.5.x
51829         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51830         older cygwin.
51831         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51832         cygwin.
51833         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51834
51835 2008-10-22  Bruno Haible  <bruno@clisp.org>
51836
51837         * users.txt: Update entry about pspp.
51838
51839 2008-10-21  Bruno Haible  <bruno@clisp.org>
51840
51841         Simplification.
51842         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51843         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51844
51845         Simplification.
51846         * lib/ioctl.c (ioctl): Don't undefine.
51847         * lib/socket.c (socket): Don't undefine.
51848
51849         Remove unused module indicator macros.
51850         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51851         GNULIB_$1 as a C macro.
51852
51853         * doc/posix-functions/close.texi: Undo last change.
51854         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51855         Windows platforms.
51856
51857 2008-10-21  Bruno Haible  <bruno@clisp.org>
51858
51859         Add gethostname() declaration to <unistd.h>.
51860         * lib/unistd.in.h (gethostname): New declaration.
51861         * lib/gethostname.c: Include <unistd.h>.
51862         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51863         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51865         and HAVE_GETHOSTNAME.
51866         * modules/gethostname (Depends-on): Add unistd.
51867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51868         (Include): Specify <unistd.h>.
51869         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51870         HAVE_GETHOSTNAME.
51871         * tests/test-gethostname.c: Include <unistd.h> first.
51872
51873 2008-10-21  Bruno Haible  <bruno@clisp.org>
51874
51875         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51876         * modules/select-tests (Depends-on): Likewise.
51877         Reported by Simon Josefsson.
51878
51879 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51880
51881         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51882         * lib/accept.c: New file, based on winsock.c.
51883         * lib/bind.c: New file, based on winsock.c.
51884         * lib/connect.c: New file, based on winsock.c.
51885         * lib/getpeername.c: New file, based on winsock.c.
51886         * lib/getsockname.c: New file, based on winsock.c.
51887         * lib/getsockopt.c: New file, based on winsock.c.
51888         * lib/ioctl.c: New file, based on winsock.c.
51889         * lib/listen.c: New file, based on winsock.c.
51890         * lib/recv.c: New file, based on winsock.c.
51891         * lib/recvfrom.c: New file, based on winsock.c.
51892         * lib/send.c: New file, based on winsock.c.
51893         * lib/sendto.c: New file, based on winsock.c.
51894         * lib/setsockopt.c: New file, based on winsock.c.
51895         * lib/shutdown.c: New file, based on winsock.c.
51896         * lib/socket.c: New file, based on winsock.c.
51897         * lib/w32sock.h: New file, based on winsock.c.
51898         * lib/winsock.c: Remove file.
51899         * modules/accept: Likewise.
51900         * modules/bind: Likewise.
51901         * modules/connect: Likewise.
51902         * modules/getpeername: Likewise.
51903         * modules/getsockname: Likewise.
51904         * modules/getsockopt: Likewise.
51905         * modules/ioctl: Likewise.
51906         * modules/listen: Likewise.
51907         * modules/recv: Likewise.
51908         * modules/recvfrom: Likewise.
51909         * modules/send: Likewise.
51910         * modules/sendto: Likewise.
51911         * modules/setsockopt: Likewise.
51912         * modules/shutdown: Likewise.
51913         * modules/socket: Use socket.c instead of winsock.c.
51914         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51915         * doc/posix-functions/accept.texi: Doc fix.
51916         * doc/posix-functions/bind.texi: Doc fix.
51917         * doc/posix-functions/close.texi: Doc fix.
51918         * doc/posix-functions/connect.texi: Doc fix.
51919         * doc/posix-functions/getpeername.texi: Doc fix.
51920         * doc/posix-functions/getsockname.texi: Doc fix.
51921         * doc/posix-functions/getsockopt.texi: Doc fix.
51922         * doc/posix-functions/ioctl.texi: Doc fix.
51923         * doc/posix-functions/listen.texi: Doc fix.
51924         * doc/posix-functions/recv.texi: Doc fix.
51925         * doc/posix-functions/recvfrom.texi: Doc fix.
51926         * doc/posix-functions/send.texi: Doc fix.
51927         * doc/posix-functions/sendto.texi: Doc fix.
51928         * doc/posix-functions/setsockopt.texi: Doc fix.
51929         * doc/posix-functions/shutdown.texi: Doc fix.
51930         * doc/posix-functions/socket.texi: Doc fix.
51931
51932 2008-10-20  Bruno Haible  <bruno@clisp.org>
51933
51934         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51935         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51936         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51937         as an alias for SIGABRT.
51938         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51939         (sigaction): Map it to SIGABRT.
51940         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51941
51942 2008-10-20  Bruno Haible  <bruno@clisp.org>
51943
51944         * lib/fts.c: Don't include lstat.h.
51945         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51946
51947         Move the lstat() declaration to <sys/stat.h>.
51948         * lib/lstat.h: Remove file.
51949         * lib/sys_stat.in.h: Add special invocation convention.
51950         (lstat): New declaration.
51951         * lib/lstat.c (orig_lstat): New function.
51952         (rpl_lstat): Use orig_lstat instead of lstat.
51953         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51954         AC_C_INLINE. Set REPLACE_LSTAT.
51955         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51956         and REPLACE_LSTAT.
51957         * modules/lstat (Files): Remove lib/lstat.h.
51958         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51959         (Include): Specify <sys/stat.h> instead of lstat.h.
51960         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51961         REPLACE_LSTAT.
51962         * NEWS: Mention the change.
51963
51964 2008-10-20  Bruno Haible  <bruno@clisp.org>
51965
51966         * modules/posix_spawn-tests: New file.
51967         * tests/test-posix_spawn3.c: New file.
51968
51969 2008-10-20  Bruno Haible  <bruno@clisp.org>
51970
51971         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51972         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51973         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51974         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51975         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51976
51977 2008-10-20  Bruno Haible  <bruno@clisp.org>
51978
51979         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51980         of posix_spawn on AIX 5.3.
51981
51982 2008-10-20  Bruno Haible  <bruno@clisp.org>
51983
51984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51985
51986 2008-10-20  Bruno Haible  <bruno@clisp.org>
51987
51988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51989         of AC_LANG_PROGRAM.
51990
51991 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51992
51993         * lib/netdb.in.h: Don't define GNU specific constants until they
51994         are supported or needed.  Reported by Bruno Haible
51995         <bruno@clisp.org>.
51996
51997 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51998
51999         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52000
52001 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52002
52003         * lib/getaddrinfo.h: Remove file.
52004         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52005         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52006         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52007         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52008         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52009         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52010         * tests/test-getaddrinfo.c: Likewise.
52011         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52012         * NEWS: Mention change.
52013
52014 2008-10-19  Bruno Haible  <bruno@clisp.org>
52015
52016         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52017
52018 2008-10-19  Bruno Haible  <bruno@clisp.org>
52019
52020         * lib/wait-process.c: Include simply <sys/wait.h>.
52021         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52022         WIFSTOPPED): Remove fallback definitions.
52023         * modules/wait-process (Depends-on): Add sys_wait.
52024
52025         New module 'sys_wait'.
52026         * modules/sys_wait: New file.
52027         * lib/sys_wait.in.h: New file, partially copied from
52028         lib/wait-process.c.
52029         * m4/sys_wait_h.m4: New file.
52030         * doc/posix-headers/sys_wait.texi: Mention the new module.
52031
52032 2008-10-19  Bruno Haible  <bruno@clisp.org>
52033
52034         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52035
52036 2008-10-19  Bruno Haible  <bruno@clisp.org>
52037
52038         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52039         * lib/wait-process.c (WAIT_T): Remove type.
52040         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52041         (wait_subprocess): Update.
52042
52043 2008-10-19  Bruno Haible  <bruno@clisp.org>
52044
52045         New module 'atoll'.
52046         * modules/atoll: New file.
52047         * lib/stdlib.in.h (atoll): New declaration.
52048         * lib/atoll.c: New file, from glibc with modifications.
52049         * m4/atoll.m4: New file.
52050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52051         HAVE_ATOLL.
52052         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52053         * doc/posix-functions/atoll.texi: Mention the new module.
52054
52055 2008-10-19  Bruno Haible  <bruno@clisp.org>
52056
52057         Add strtoull() declaration to <stdlib.h>.
52058         * lib/stdlib.in.h (strtoull): New declaration.
52059         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52060         Set HAVE_STRTOULL.
52061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52062         HAVE_STRTOULL.
52063         * modules/strtoull (Depends-on): Add stdlib.
52064         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52065         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52066         HAVE_STRTOULL.
52067
52068 2008-10-19  Bruno Haible  <bruno@clisp.org>
52069
52070         Add strtoll() declaration to <stdlib.h>.
52071         * lib/stdlib.in.h (strtoll): New declaration.
52072         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52073         Set HAVE_STRTOLL.
52074         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52075         HAVE_STRTOLL.
52076         * modules/strtoll (Depends-on): Add stdlib.
52077         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52078         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52079
52080 2008-10-19  Bruno Haible  <bruno@clisp.org>
52081
52082         * modules/bcopy (Depends-on): Add strings.
52083         (Include): Specify <strings.h>.
52084
52085 2008-10-19  Bruno Haible  <bruno@clisp.org>
52086
52087         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52088
52089 2008-10-19  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52092         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52093         mingw.
52094
52095 2008-10-19  Bruno Haible  <bruno@clisp.org>
52096
52097         * lib/atanl.c: Don't include isnanl.h.
52098         * lib/cosl.c: Likewise.
52099         * lib/ldexpl.c: Likewise.
52100         * lib/logl.c: Likewise.
52101         * lib/sinl.c: Likewise.
52102         * lib/sqrtl.c: Likewise.
52103         * lib/tanl.c: Likewise.
52104
52105         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52106         * lib/isnanf.h: Remove file.
52107         * lib/isnand.h: Remove file.
52108         * lib/isnanl.h: Remove file.
52109         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52110         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52111         macros.
52112         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52113         HAVE_ISNANF, don't define it as a C macro.
52114         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52115         HAVE_ISNAND, don't define it as a C macro.
52116         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52117         HAVE_ISNANL, don't define it as a C macro.
52118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52119         HAVE_ISNAN[FDL].
52120         * modules/isnanf (Files): Remove lib/isnanf.h.
52121         (Depends-on): Add math.
52122         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52123         (Include): Specify <math.h> instead of isnanf.h.
52124         * modules/isnand (Files): Remove lib/isnand.h.
52125         (Depends-on): Add math.
52126         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52127         (Include): Specify <math.h> instead of isnand.h.
52128         * modules/isnanl (Files): Remove lib/isnanl.h.
52129         (Depends-on): Add math.
52130         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52131         (Include): Specify <math.h> instead of isnanl.h.
52132         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52133         HAVE_ISNAN[FDL].
52134         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52135         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52136         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52137         * NEWS: Mention the change.
52138
52139 2008-10-18  Bruno Haible  <bruno@clisp.org>
52140
52141         Add getusershell(), setusershell(), endusershell() declarations to
52142         <unistd.h>.
52143         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52144         declarations.
52145         * lib/getusershell.c: Include unistd.h.
52146         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52147         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52148         HAVE_GETUSERSHELL.
52149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52150         and HAVE_GETUSERSHELL.
52151         * modules/getusershell (Depends-on): Add unistd, extensions.
52152         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52153         (Include): Specify <unistd.h>.
52154         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52155         HAVE_GETUSERSHELL.
52156
52157 2008-10-18  Bruno Haible  <bruno@clisp.org>
52158
52159         Add a getloadavg() declaration to <stdlib.h>.
52160         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52161         getloadavg declaration.
52162         (getloadavg): New declaration.
52163         * lib/getloadavg.c: Include <stdlib.h> first.
52164         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52165         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52166         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52168         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52169         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52170         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52171         (Include): Specify <stdlib.h>.
52172         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52173         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52174
52175 2008-10-18  Bruno Haible  <bruno@clisp.org>
52176
52177         * lib/dirchownmod.c: Don't include lchmod.h.
52178
52179         Move the lchmod() declaration to <sys/stat.h>.
52180         * lib/lchmod.h: Remove file.
52181         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52182         (lchmod): New declaration, moved here from lib/lchown.h.
52183         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52184         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52185         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52186         and HAVE_LCHMOD.
52187         * modules/lchmod (Files): Remove lib/lchmod.h.
52188         (Depends-on): Add sys_stat, extensions.
52189         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52190         (Include): Specify <sys/stat.h> instead of lchmod.h.
52191         * modules/sys_stat (Depends-on): Add link-warning.
52192         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52193         definition of GL_LINK_WARNING.
52194         * NEWS: Mention the change.
52195
52196 2008-10-18  Bruno Haible  <bruno@clisp.org>
52197
52198         * lib/fchdir.c: Don't include dirfd.h.
52199         * lib/fts.c: Likewise.
52200         * lib/getcwd.c: Likewise.
52201         * lib/glob.c: Likewise.
52202
52203         Move the dirfd() declaration to <dirent.h>.
52204         * lib/dirfd.h: Remove file.
52205         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52206         (dirfd): New declaration.
52207         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52208         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52209         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52210         HAVE_DECL_DIRFD.
52211         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52212         HAVE_DECL_DIRFD.
52213         * modules/dirfd (Files): Remove lib/dirfd.h.
52214         (Depends-on): Add dirent, extensions.
52215         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52216         (Include): Specify <dirent.h> instead of dirfd.h.
52217         * modules/dirent (Depends-on): Add link-warning.
52218         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52219         definition of GL_LINK_WARNING.
52220         * NEWS: Mention the change.
52221
52222 2008-10-18  Bruno Haible  <bruno@clisp.org>
52223
52224         Move the euidaccess() declaration to <unistd.h>.
52225         * lib/euidaccess.h: Remove file.
52226         * lib/unistd.in.h (euidaccess): New declaration.
52227         * lib/euidaccess.c: Don't include euidaccess.h.
52228         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52229         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52231         and HAVE_EUIDACCESS.
52232         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52233         (Depends-on): Add unistd.
52234         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52235         (Include): Specify <unistd.h> instead of euidaccess.h.
52236         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52237         HAVE_EUIDACCESS.
52238         * NEWS: Mention the change.
52239
52240 2008-10-18  Bruno Haible  <bruno@clisp.org>
52241
52242         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52243
52244         Move the getdomainname() declaration to <unistd.h>.
52245         * lib/getdomainname.h: Remove file.
52246         * lib/unistd.in.h (getdomainname): New declaration.
52247         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52248         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52249         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52250         HAVE_GETDOMAINNAME.
52251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52252         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52253         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52254         (Depends-on): Add unistd, extensions.
52255         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52256         (Includes): Specify <unistd.h> instead of getdomainname.h.
52257         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52258         HAVE_GETDOMAINNAME.
52259         * NEWS: Mention the change.
52260
52261 2008-10-18  Bruno Haible  <bruno@clisp.org>
52262
52263         * modules/dirent: New file.
52264         * m4/dirent_h.m4: New file.
52265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52266         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52267         * modules/fchdir (Files): Remove lib/dirent.in.h.
52268         (Depends-on): Add dirent.
52269         (Makefile.am): Move rules to modules/dirent.
52270         * doc/posix-headers/dirent.texi: Mention the new module.
52271
52272 2008-10-18  Bruno Haible  <bruno@clisp.org>
52273
52274         Avoid -Wunused-parameter warnings in public gnulib header files.
52275         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52276         macro.
52277         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52278
52279 2008-10-18  Bruno Haible  <bruno@clisp.org>
52280
52281         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52282         * doc/glibc-functions/error.texi: Mention the module 'error'.
52283         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52284         * doc/glibc-functions/getdomainname.texi: Mention the module
52285         'getdomainname'.
52286         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52287         * doc/glibc-functions/getpagesize.texi: Mention the module
52288         'getpagesize'.
52289         * doc/glibc-functions/getusershell.texi: Mention the module
52290         'getusershell'.
52291         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52292         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52293         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52294         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52295         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52296         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52297         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52298         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52299         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52300         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52301         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52302         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52303         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52304         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52305
52306 2008-10-17  Bruno Haible  <bruno@clisp.org>
52307
52308         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52309         HP-UX and IRIX, use -0.0L.
52310         * tests/test-ceill.c (minus_zero): Likewise.
52311         * tests/test-floorl.c (minus_zero): Likewise.
52312         * tests/test-frexpl.c (minus_zero): Likewise.
52313         * tests/test-isnan.c (minus_zerol): Likewise.
52314         * tests/test-isnanl.h (minus_zero): Likewise.
52315         * tests/test-ldexpl.c (minus_zero): Likewise.
52316         * tests/test-roundl.c (minus_zero): Likewise.
52317         * tests/test-signbit.c (minus_zerol): Likewise.
52318         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52319         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52320         * tests/test-truncl.c (minus_zero): Likewise.
52321         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52322         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52323         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52324         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52325
52326 2008-10-17  Bruno Haible  <bruno@clisp.org>
52327
52328         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52329         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52330         that it gets activated only for gcc >= 3.0.
52331         * lib/dirent.in.h: Likewise.
52332         * lib/errno.in.h: Likewise.
52333         * lib/fcntl.in.h: Likewise.
52334         * lib/float.in.h: Likewise.
52335         * lib/iconv.in.h: Likewise.
52336         * lib/inttypes.in.h: Likewise.
52337         * lib/locale.in.h: Likewise.
52338         * lib/math.in.h: Likewise.
52339         * lib/netdb.in.h: Likewise.
52340         * lib/netinet_in.in.h: Likewise.
52341         * lib/search.in.h: Likewise.
52342         * lib/signal.in.h: Likewise.
52343         * lib/spawn.in.h: Likewise.
52344         * lib/stdarg.in.h: Likewise.
52345         * lib/stdint.in.h: Likewise.
52346         * lib/stdio.in.h: Likewise.
52347         * lib/stdlib.in.h: Likewise.
52348         * lib/string.in.h: Likewise.
52349         * lib/strings.in.h: Likewise.
52350         * lib/sys_file.in.h: Likewise.
52351         * lib/sys_ioctl.in.h: Likewise.
52352         * lib/sys_select.in.h: Likewise.
52353         * lib/sys_socket.in.h: Likewise.
52354         * lib/sys_stat.in.h: Likewise.
52355         * lib/sys_time.in.h: Likewise.
52356         * lib/sysexits.in.h: Likewise.
52357         * lib/time.in.h: Likewise.
52358         * lib/unistd.in.h: Likewise.
52359         * lib/wchar.in.h: Likewise.
52360         * lib/wctype.in.h: Likewise.
52361         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52362
52363 2008-10-17  Jim Meyering  <meyering@redhat.com>
52364
52365         ignore-value: don't depend on inline module
52366         * modules/ignore-value (Depends-on): Remove 'inline'.
52367         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52368         Suggestion from Bruno Haible.
52369
52370 2008-10-17  Bruno Haible  <bruno@clisp.org>
52371
52372         New implementation of condition variables for Win32.
52373         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52374         (gl_linked_waitqueue_t): New type.
52375         (gl_cond_t): Use it.
52376         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52377         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52378         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52379         (glthread_cond_init_func, glthread_cond_wait_func,
52380         glthread_cond_timedwait_func, glthread_cond_signal_func,
52381         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52382         Reimplemented on the basis of gl_linked_waitqueue_t.
52383         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52384         gl_waitqueue_t.
52385         (gl_rwlock_t): Update.
52386         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52387
52388 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52389
52390         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52391         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52392
52393 2008-10-17  Jim Meyering  <meyering@redhat.com>
52394
52395         ignore-value: new module
52396         * modules/ignore-value: New file.
52397         * lib/ignore-value.h: New file.
52398         * MODULES.html.sh (Compiler warning management): New section,
52399         just for this module.  More to come.
52400
52401 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52402
52403         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52404         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52405         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52406
52407 2008-10-16  Jim Meyering  <meyering@redhat.com>
52408
52409         openat-die.c: avoid 'no previous prototype' warning
52410         * lib/openat-die.c: Include "openat.h".
52411         Reported by Reuben Thomas <rrt@sc3d.org>.
52412
52413 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52414
52415         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52416         * lib/netdb.in.h: Fix typo.
52417         Reported by Bruno Haible  <bruno@clisp.org>
52418
52419         * lib/netdb.in.h: Include sys/socket.h for platforms without
52420         netdb.h, to get structures like hostent on MinGW.
52421         * modules/netdb (Depends-on): Add sys_socket.
52422
52423 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52424
52425         * modules/netdb, modules/netdb-tests: New file.
52426         * m4/netdb_h.m4: New file.
52427         * lib/netdb.in.h: Add, currently just an empty file pending
52428         definitions.
52429         * tests/test-netdb.c: New file.
52430         * doc/posix-headers/netdb.texi: Mention that we replace it if
52431         needed.
52432         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52433         netdb.
52434
52435 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52436
52437         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52438         with code.
52439
52440 2008-10-13  Bruno Haible  <bruno@clisp.org>
52441
52442         * lib/glthread/cond.c (glthread_cond_wait_func,
52443         glthread_cond_timedwait_func): Add a comment.
52444
52445 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52446
52447         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52448         * tests/test-select.c: Likewise,
52449
52450 2008-10-13  Bruno Haible  <bruno@clisp.org>
52451
52452         * lib/glthread/cond.c (glthread_cond_wait_func,
52453         glthread_cond_timedwait_func): Fix variable name.
52454         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52455
52456 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52457
52458         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52459         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52460         struct sockaddr.sa_len.
52461         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52462
52463 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52464
52465         * build-aux/pmccabe2html: Add css and css_url parameters.
52466
52467 2008-10-12  Bruno Haible  <bruno@clisp.org>
52468
52469         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52470         calling aclx_get.
52471         Reported by Rainer Tammer <tammer@tammer.net>.
52472
52473 2008-10-12  Bruno Haible  <bruno@clisp.org>
52474
52475         Use msvcrt aware primitives for creation/termination of Win32 threads.
52476         * lib/glthread/thread.c: Include <process.h>.
52477         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52478         (wrapper_func): Update signature.
52479         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52480
52481 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52482             Bruno Haible  <bruno@clisp.org>
52483
52484         Provide a Win32 implementation of the 'cond' module.
52485         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52486         * lib/glthread/cond.c (glthread_cond_init_func,
52487         glthread_cond_wait_func, glthread_cond_timedwait_func,
52488         glthread_cond_signal_func, glthread_cond_broadcast_func,
52489         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52490         * modules/cond (Dependencies): Add gettimeofday.
52491
52492 2008-10-11  Bruno Haible  <bruno@clisp.org>
52493
52494         Make sleep work on older versions of mingw.
52495         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52496         only whether it exists.
52497         * doc/posix-functions/sleep.texi: Mention the problem with older
52498         versions of mingw.
52499
52500 2008-10-11  Bruno Haible  <bruno@clisp.org>
52501
52502         New module 'shutdown'.
52503         * modules/shutdown: New file.
52504         * lib/sys_socket.in.h (shutdown): New declaration.
52505         * lib/winsock.c (shutdown): New function.
52506         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52507         GNULIB_SHUTDOWN.
52508         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52509         * doc/posix-functions/shutdown.texi: Document the new module.
52510
52511 2008-10-11  Jim Meyering  <meyering@redhat.com>
52512
52513         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52514
52515 2008-10-11  Bruno Haible  <bruno@clisp.org>
52516
52517         New module 'fclose'.
52518         * modules/fclose: New file.
52519         * lib/stdio.in.h (fclose): New declaration.
52520         * lib/fclose.c: New file.
52521         * m4/fclose.m4: New file.
52522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52523         REPLACE_FCLOSE.
52524         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52525         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52526         REPLACE_FCLOSE.
52527         * modules/close (Depends-on): fclose.
52528         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52529
52530 2008-10-11  Bruno Haible  <bruno@clisp.org>
52531
52532         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52533         set errno and don't call _close.
52534
52535 2008-10-10  Bruno Haible  <bruno@clisp.org>
52536
52537         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52538         ACL, not afterwards. Fixes test failure on Cygwin.
52539
52540 2008-10-09  Ben Pfaff  <blp@gnu.org>
52541
52542         * build-aux/announce-gen: Fix gnulib version related part of usage
52543         message.  Die with a useful error message if no tarballs are
52544         found.
52545
52546 2008-10-10  Jim Meyering  <meyering@redhat.com>
52547
52548         bootstrap: use git's --depth=N option only if it's supported
52549         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52550         recognize the --depth option.  Reported by Pádraig Brady.
52551
52552 2008-10-09  Bruno Haible  <bruno@clisp.org>
52553
52554         New module 'ioctl'.
52555         * modules/ioctl: New file.
52556         * lib/sys_socket.in.h (ioctl): Remove declaration.
52557         * lib/winsock.c: Include <sys/ioctl.h>.
52558         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52559         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52560         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52561         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52562         * doc/posix-functions/ioctl.texi: Mention the new module.
52563
52564 2008-10-09  Bruno Haible  <bruno@clisp.org>
52565
52566         New module 'sys_ioctl'.
52567         * lib/sys_ioctl.in.h: New file.
52568         * m4/sys_ioctl_h.m4: New file.
52569         * modules/sys_ioctl: New file.
52570         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52571
52572 2008-10-09  Bruno Haible  <bruno@clisp.org>
52573
52574         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52575         * lib/winsock.c: Include <stdarg.h>.
52576         (rpl_ioctl): Change to second argument 'int' and then varargs.
52577
52578 2008-10-09  Bruno Haible  <bruno@clisp.org>
52579
52580         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52581         when the sys_socket module is present and the system has <winsock2.h>.
52582
52583 2008-10-09  Bruno Haible  <bruno@clisp.org>
52584
52585         * doc/posix-functions/close.texi: Mention module 'close' instead of
52586         module 'sys_socket'.
52587
52588 2008-10-09  Bruno Haible  <bruno@clisp.org>
52589
52590         * doc/glibc-headers/sys_ioctl.texi: New file.
52591         * doc/gnulib.texi: Include it.
52592
52593 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52594             Bruno Haible  <bruno@clisp.org>
52595
52596         Combine the two replacements of 'close'.
52597         * lib/sys_socket.in.h (close): Define to a reminder to include
52598         <unistd.h>.
52599         (_gl_close_fd_maybe_socket): New declaration.
52600         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52601         * lib/winsock.c (close): Remove undefinition.
52602         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52603         needed for the gnulib module 'close'.
52604         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52605         define to an error symbol or to a warning, if suitable.
52606         * lib/close.c: Include <sys/socket.h>.
52607         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52608         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52609         UNISTD_H_HAVE_WINSOCK2_H.
52610         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52612         UNISTD_H_HAVE_WINSOCK2_H.
52613         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52614         (configure.ac): Set a module indicator.
52615         (Makefile.am): Substitute GNULIB_CLOSE.
52616         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52617         * modules/poll-tests (Depends-on): Add close.
52618         * modules/select-tests (Depends-on): Likewise.
52619
52620 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52621             Bruno Haible  <bruno@clisp.org>
52622
52623         New module 'close'.
52624         * modules/close: New file.
52625         * lib/unistd.in.h (close): Move declaration out of the
52626         FCHDIR_REPLACEMENT scope.
52627         (_gl_unregister_fd): New declaration.
52628         * lib/close.c: New file.
52629         * lib/fchdir.c (rpl_close): Remove function.
52630         * m4/close.m4: New file.
52631         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52632         close.
52633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52634         REPLACE_CLOSE.
52635         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52636         REPLACE_CLOSE.
52637         * modules/fchdir (Depends-on): Add close.
52638
52639 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52640             Bruno Haible  <bruno@clisp.org>
52641
52642         * lib/fcntl.in.h (open): Simplify conditionals.
52643         (_gl_register_fd): New declaration.
52644         * lib/fchdir.c (rpl_open): Remove function.
52645         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52646         also.
52647         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52649         open.
52650
52651 2008-10-09  Jim Meyering  <meyering@redhat.com>
52652
52653         GNUmakefile: use the more name-space-friendly "_version"
52654         * top/GNUmakefile (_dummy): Update.
52655         (_version): Rename from "version".
52656
52657 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52658             Bruno Haible  <bruno@clisp.org>
52659
52660         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52661         rpl_close.
52662         (_gl_register_fd): New function, extracted from rpl_open.
52663         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52664         (rpl_open, rpl_opendir): Use _gl_register_fd.
52665
52666 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52667
52668         Fix organization of 'open' replacement.
52669         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52670         (gl_FUNC_OPEN): Use it.
52671         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52672
52673 2008-10-08  Bruno Haible  <bruno@clisp.org>
52674
52675         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52676
52677 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52678
52679         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52680         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52681         listen).
52682
52683 2008-10-08  Eric Blake  <ebb9@byu.net>
52684
52685         GNUmakefile: add 'make version' target
52686         * top/GNUmakefile (_curr-ver): Split version update rules...
52687         (version): ...into a target.
52688
52689 2008-10-07  Bruno Haible  <bruno@clisp.org>
52690
52691         Use a more portable replacement expression for -0.0L.
52692         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52693         instead of -0.0L. Fix m4 quotation.
52694
52695         * tests/test-signbit.c: Include <float.h>.
52696         (minus_zero): New variable.
52697         (test_signbitl): Use minus_zero instead of -zero.
52698         * modules/signbit-tests (Depends-on): Add float.
52699
52700         * tests/test-ceill.c: Include <float.h>.
52701         (zero): Remove variable.
52702         (minus_zero): New variable.
52703         (main): Use minus_zero instead of -zero.
52704         * modules/ceill-tests (Depends-on): Add float.
52705
52706         * tests/test-floorl.c: Include <float.h>.
52707         (zero): Remove variable.
52708         (minus_zero): New variable.
52709         (main): Use minus_zero instead of -zero.
52710         * modules/floorl-tests (Depends-on): Add float.
52711
52712         * tests/test-roundl.c: Include <float.h>.
52713         (zero): Remove variable.
52714         (minus_zero): New variable.
52715         (main): Use minus_zero instead of -zero.
52716         * modules/roundl-tests (Depends-on): Add float.
52717
52718         * tests/test-truncl.c: Include <float.h>.
52719         (zero): Remove variable.
52720         (minus_zero): New variable.
52721         (main): Use minus_zero instead of -zero.
52722         * modules/truncl-tests (Depends-on): Add float.
52723
52724         * tests/test-frexpl.c (zero): Remove variable.
52725         (minus_zero): New variable.
52726         (main): Use minus_zero instead of -zero.
52727         * modules/frexpl-tests (Depends-on): Add float.
52728
52729         * tests/test-isnan.c (zerol): Remove variable.
52730         (minus_zerol): New variable.
52731         (test_long_double): Use minus_zerol instead of -zerol.
52732         * modules/isnan-tests (Depends-on): Add float.
52733
52734         * tests/test-isnanl.h (zero): Remove variable.
52735         (minus_zero): New variable.
52736         (main): Use minus_zero instead of -zero.
52737         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52738         * modules/isnanl-tests (Depends-on): Add float.
52739
52740         * tests/test-ldexpl.c (zero): Remove variable.
52741         (minus_zero): New variable.
52742         (main): Use minus_zero instead of -zero.
52743         * modules/ldexpl-tests (Depends-on): Add float.
52744
52745         * tests/test-snprintf-posix.h (zerol): Remove variable.
52746         (minus_zerol): New variable.
52747         (test_function): Use minus_zerol instead of -zerol.
52748         * modules/snprintf-posix-tests (Depends-on): Add float.
52749         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52750
52751         * tests/test-sprintf-posix.h (zerol): Remove variable.
52752         (minus_zerol): New variable.
52753         (test_function): Use minus_zerol instead of -zerol.
52754         * modules/sprintf-posix-tests (Depends-on): Add float.
52755         * modules/vsprintf-posix-tests (Depends-on): Add float.
52756
52757         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52758         (minus_zerol): New variable.
52759         (test_function): Use minus_zerol instead of -zerol.
52760         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52761
52762         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52763         (minus_zerol): New variable.
52764         (test_function): Use minus_zerol instead of -zerol.
52765         * modules/vasprintf-posix-tests (Depends-on): Add float.
52766
52767 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52768
52769         * MODULES.html.sh (Support for building documentation): Mention
52770         pmccabe2html.  Sort entries.
52771
52772         Add pmccabe2html module, from gnupdf.
52773         * build-aux/pmccabe.css: New file.
52774         * build-aux/pmccabe2html: New file.
52775         * m4/pmccabe2html.m4: New file.
52776         * modules/pmccabe2html: New file.
52777
52778 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52779
52780         flock: new module
52781         * MODULES.html.sh: Add to list of modules.
52782         * lib/flock.c: flock implementation for Windows and Unix systems
52783         which have fcntl.
52784         * doc/glibc-functions/flock.texi: Update documentation.
52785         * lib/sys_file.in.h: <sys/file.h> header file.
52786         * m4/flock.m4: M4 macros.
52787         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52788         * modules/flock: flock module.
52789         * modules/flock-tests: flock tests module.
52790         * modules/sys_file: sys/file.h module.
52791         * tests/test-flock.c: test suite for flock.
52792
52793 2008-10-06  Jim Meyering  <meyering@redhat.com>
52794
52795         bootstrap: check for LT_INIT more portably still ;-)
52796         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52797         Spotted by Bruno Haible.
52798
52799 2008-10-06  Eric Blake  <ebb9@byu.net>
52800
52801         test-signbit: avoid tripping Irix cc bug on -0.0L
52802         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52803         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52804         entire testsuite consistent and avoids an Irix 6.2 bug.
52805
52806 2008-10-05  Bruno Haible  <bruno@clisp.org>
52807             Jim Meyering  <jim@meyering.net>
52808
52809         Add an option for ignoring EPIPE during close_stdout.
52810         * lib/closeout.h: Include <stdbool.h>.
52811         (close_stdout_set_ignore_EPIPE): New declaration.
52812         * lib/closeout.c: Include <stdbool.h>.
52813         (ignore_EPIPE): New variable.
52814         (close_stdout_set_ignore_EPIPE): New function.
52815         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52816         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52817         failure.
52818         * modules/closeout (Depends-on): Add stdbool.
52819
52820 2008-10-05  Bruno Haible  <bruno@clisp.org>
52821
52822         * modules/accept: New file.
52823         * modules/bind: New file.
52824         * modules/connect: New file.
52825         * modules/getpeername: New file.
52826         * modules/getsockname: New file.
52827         * modules/getsockopt: New file.
52828         * modules/listen: New file.
52829         * modules/recv: New file.
52830         * modules/recvfrom: New file.
52831         * modules/send: New file.
52832         * modules/sendto: New file.
52833         * modules/setsockopt: New file.
52834         * modules/socket: New file.
52835         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52836         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52837         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52838         the particular module is requested. Add a link warning when the
52839         particular module is not requested.
52840         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52841         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52842         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52843         the particular module is requested.
52844         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52845         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52846         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52847         * modules/sys_socket (Depends-on): Add link-warning.
52848         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52849         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52850         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52851         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52852         GL_LINK_WARNING.
52853         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52854         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52855         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52856         * doc/posix-functions/getpeername.texi: Mention the new module
52857         'getpeername'.
52858         * doc/posix-functions/getsockname.texi: Mention the new module
52859         'getsockname'.
52860         * doc/posix-functions/getsockopt.texi: Mention the new module
52861         'getsockopt'.
52862         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52863         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52864         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52865         * doc/posix-functions/send.texi: Mention the new module 'send'.
52866         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52867         * doc/posix-functions/setsockopt.texi: Mention the new module
52868         'setsockopt'.
52869         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52870         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52871         listen, connect, accept.
52872         * modules/select-tests (Depends-on): Likewise.
52873
52874 2008-10-05  Bruno Haible  <bruno@clisp.org>
52875
52876         * lib/winsock.c (strerror): Remove unused #undef.
52877         (rpl_close): Remove unused local variable.
52878
52879         * modules/sys_socket (Depends-on); Add errno.
52880
52881 2008-10-05  Bruno Haible  <bruno@clisp.org>
52882
52883         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52884         (select): Add a link warning when the 'select' module is not used.
52885         * modules/sys_select (Depends-on): Add link-warning.
52886         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52887         Suggested by Paolo Bonzini.
52888
52889 2008-10-05  Jim Meyering  <meyering@redhat.com>
52890
52891         bootstrap: check for LT_INIT more portably
52892         * build-aux/bootstrap: Avoid using grep -E, since it's not
52893         portable enough.  Suggestion from Bruno Haible.
52894
52895 2008-10-05  Bruno Haible  <bruno@clisp.org>
52896
52897         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52898         as being fixed by gnulib.
52899
52900 2008-10-05  Bruno Haible  <bruno@clisp.org>
52901
52902         * modules/select-tests: New file, mostly copied from
52903         modules/sys_select-tests.
52904         * tests/test-select.c: New file, mostly copied from
52905         tests/test-sys_select.c.
52906         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52907         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52908         (Makefile.am): Remove test_sys_select_LDADD.
52909
52910         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52911         to an undefined symbol, for an error message.
52912         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52913         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52914         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52915         winsock-select.c here.
52916         * modules/sys_select (Files): Remove lib/winsock-select.c.
52917         (Depends-on): Remove alloca.
52918         (Makefile.am): Substitute GNULIB_SELECT.
52919         * modules/select: New file.
52920         * doc/posix-functions/select.texi: Update.
52921
52922 2008-10-05  Bruno Haible  <bruno@clisp.org>
52923
52924         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52925         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52926         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52927         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52928         getdtablesize.
52929         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52930         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52931
52932 2008-10-05  Bruno Haible  <bruno@clisp.org>
52933
52934         * modules/getdtablesize-tests: New file.
52935         * tests/test-getdtablesize.c: New file.
52936
52937         New module 'getdtablesize'.
52938         * lib/unistd.in.h (getdtablesize): New declaration.
52939         * lib/getdtablesize.c: New file.
52940         * m4/getdtablesize.m4: New file.
52941         * modules/getdtablesize: New file.
52942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52943         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52944         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52945         HAVE_GETDTABLESIZE.
52946         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52947
52948 2008-10-05  Bruno Haible  <bruno@clisp.org>
52949
52950         * modules/sched (Makefile.am): Fix typo.
52951         Reported by Simon Josefsson.
52952
52953 2008-10-05  Jim Meyering  <meyering@redhat.com>
52954
52955         bootstrap: check for LT_INIT, too
52956         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52957         are deprecated.  Suggestion from Ralf Wildenhues.
52958
52959 2008-10-05  Bruno Haible  <bruno@clisp.org>
52960
52961         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52962         overriding them by ours.
52963         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52964
52965 2008-10-05  Jim Meyering  <meyering@redhat.com>
52966
52967         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52968         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52969         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52970
52971 2008-10-04  Bruno Haible  <bruno@clisp.org>
52972
52973         * modules/dup2 (License): Change to LGPLv2+.
52974         * modules/sleep (License): Likewise.
52975         * modules/perror (License): Likewise.
52976         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52977         Blake.
52978         * modules/signal (License): Likewise.
52979         * modules/sigprocmask (License): Likewise.
52980         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52981         Meyering.
52982
52983 2008-10-04  Bruno Haible  <bruno@clisp.org>
52984
52985         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52986         Reported by Rainer Tammer <tammer@tammer.net>.
52987
52988 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52989             Bruno Haible  <bruno@clisp.org>
52990
52991         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52992         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52993         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52994
52995 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52996
52997         filevercmp: new module
52998         * lib/filevercmp.h: New function filevercmp comparing version strings.
52999         * lib/filevercmp.c: Implementation of filevercmp function.
53000         * modules/filevercmp: Module metadata.
53001         * tests/test-filevercmp.c: Unit test for new module.
53002         * modules/filevercmp-tests: Unit test metadata.
53003         * MODULES.html.sh: Add filevercmp module.
53004
53005 2008-10-03  Bruno Haible  <bruno@clisp.org>
53006
53007         * lib/c-ctype.h: Add comment.
53008         Reported by Jim Meyering.
53009
53010 2008-10-02  Bruno Haible  <bruno@clisp.org>
53011
53012         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53013
53014 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53015
53016         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53017         name of bootstrap.conf accordingly.
53018
53019 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53020
53021         * build-aux/bootstrap: Install git-merge-changelog configuration
53022         items into .gitconfig if needed.
53023
53024 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53025
53026         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53027         git repository, and initialize/update it accordingly.
53028
53029 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53030
53031         * modules/fsync-tests: New file.
53032         * tests/test-fsync.c: New file.
53033
53034         New module 'fsync'.
53035         * lib/fsync.c: New file.
53036         * m4/fsync.m4: New file.
53037         * modules/fsync: New file.
53038         * lib/unistd.in.h (fsync): New declaration.
53039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53040         GNULIB_FSYNC and HAVE_FSYNC.
53041         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53042         * MODULES.html.sh (posix_functions): Add fsync.
53043         * doc/posix-functions/fsync.texi: Mention the new module.
53044
53045 2008-10-02  Jim Meyering  <meyering@redhat.com>
53046
53047         fts.c: sync with similar code from coreutils' remove.c
53048         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53049         Guard also with "#if defined __linux__", since for now at least,
53050         this code is Linux-kernel-specific.
53051
53052 2008-10-02  Jim Meyering  <meyering@redhat.com>
53053
53054         fts: bug fixes
53055         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53056         Include <sys/vfs.h>, not <sys/statfs.h>.
53057
53058         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53059         Include <sys/vfs.h>, not <sys/statfs.h>.
53060
53061 2008-10-01  Bruno Haible  <bruno@clisp.org>
53062
53063         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53064         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53065         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53066         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53067         * doc/posix-functions/posix_spawnp.texi: Likewise.
53068         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53069         whether posix_spawn actually works.
53070         * m4/pipe.m4 (gl_PIPE): Likewise.
53071         * modules/execute (Files): Add m4/posix_spawn.m4.
53072         * modules/pipe (Files): Add m4/posix_spawn.m4.
53073         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53074
53075 2008-10-01  Jim Meyering  <meyering@redhat.com>
53076
53077         remove trailing spaces
53078         * NEWS: Likewise.
53079         * lib/poll.c (poll): Likewise.
53080         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53081         * lib/winsock.c (rpl_close): Likewise.
53082         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53083         * modules/yield: Likewise.
53084         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53085         * tests/test-sys_select.c (connect_to_socket): Likewise.
53086
53087         fts.c: adjust a new interface to be more generally useful
53088         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53089         (fts_build): Adjust caller.
53090
53091 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53092
53093         * modules/cond-tests: New file.
53094         * tests/test-cond.c: New file.
53095
53096 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53097             Bruno Haible  <bruno@clisp.org>
53098
53099         * modules/cond (Dependencies): Add errno, time.
53100         * lib/glthread/cond.h: Include <time.h>.
53101         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53102         across platforms.
53103
53104 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53105             Bruno Haible  <bruno@clisp.org>
53106
53107         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53108
53109 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53110             Bruno Haible  <bruno@clisp.org>
53111
53112         * modules/tls-tests (Depends-on): Add thread, yield.
53113         (configure.ac): Remove all checks.
53114         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53115         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53116         gl_thread_self): Remove definitions. Include glthread/thread.h and
53117         glthread/yield.h instead.
53118         (test_tls): Pass an additional NULL argument to gl_thread_join.
53119
53120 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53121             Bruno Haible  <bruno@clisp.org>
53122
53123         * modules/lock-tests (Depends-on): Add thread, yield.
53124         (configure.ac): Remove all checks.
53125         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53126         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53127         gl_thread_self): Remove definitions. Include glthread/thread.h and
53128         glthread/yield.h instead.
53129         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53130         additional NULL argument to gl_thread_join.
53131
53132 2008-09-30  Bruno Haible  <bruno@clisp.org>
53133
53134         Fix the Win32 implementation of the 'thread' module.
53135         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53136         pointer type.
53137         (gl_thread_self): Invoke gl_thread_self_func.
53138         (gl_thread_self_func): New declaration.
53139         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53140         (do_init_self_key, init_self_key): New functions.
53141         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53142         Remove some fields.
53143         (running_threads, running_lock): Remove variables.
53144         (get_current_thread_handle): New function.
53145         (gl_thread_self_func, wrapper_func, glthread_create_func,
53146         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53147         simplified.
53148
53149 2008-09-30  Bruno Haible  <bruno@clisp.org>
53150
53151         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53152         files.
53153
53154 2008-09-30  Jim Meyering  <meyering@redhat.com>
53155
53156         fts.m4: correct the test for statfs.f_type
53157         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53158         when checking for statfs.f_type.
53159
53160 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53161
53162         tests: avoid some compiler warnings
53163         * tests/test-memchr.c (main): Pass NULL indirectly.
53164         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53165
53166 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
53167
53168         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53169         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53170         exactly specified dayshifts.
53171         (dayshift): New rule.
53172         (rel): Add dayshift.
53173         (relative_time_table) [tomorrow, yesterday, today, now]:
53174         Use tDAY_SHIFT in place of tDAY_UNIT.
53175         * tests/test-getdate.c: Add tests for now-disallowed countable
53176         dayshifts, e.g., "4 yesterday ago".
53177
53178 2008-09-29  Bruno Haible  <bruno@clisp.org>
53179
53180         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53181         * tests/test-posix_spawn1.in.sh: Renamed from
53182         tests/test-posix_spawn.in.sh.
53183         * tests/test-posix_spawn2.c: New file.
53184         * tests/test-posix_spawn2.in.sh: New file.
53185         * modules/posix_spawnp-tests (Files): Update.
53186         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53187
53188 2008-09-29  Bruno Haible  <bruno@clisp.org>
53189
53190         Propagate effects of putenv/setenv/unsetenv to child processes.
53191         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53192         * lib/pipe.c (create_pipe): Likewise.
53193
53194 2008-09-29  Bruno Haible  <bruno@clisp.org>
53195
53196         Enable use of shell scripts as executables in mingw.
53197         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53198         run the program as a shell script.
53199         * lib/pipe.c (create_pipe): Likewise.
53200         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53201         resulting array.
53202
53203 2008-09-29  Eric Blake  <ebb9@byu.net>
53204
53205         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53206
53207 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53208
53209         * doc/posix-functions/accept.texi: Update mingw problems.
53210         * doc/posix-functions/bind.texi: Update mingw problems.
53211         * doc/posix-functions/close.texi: Update mingw problems.
53212         * doc/posix-functions/connect.texi: Update mingw problems.
53213         * doc/posix-functions/getpeername.texi: Update mingw problems.
53214         * doc/posix-functions/getsockname.texi: Update mingw problems.
53215         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53216         * doc/posix-functions/ioctl.texi: Update mingw problems.
53217         * doc/posix-functions/listen.texi: Update mingw problems.
53218         * doc/posix-functions/recv.texi: Update mingw problems.
53219         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53220         * doc/posix-functions/select.texi: Update mingw problems.
53221         * doc/posix-functions/send.texi: Update mingw problems.
53222         * doc/posix-functions/sendto.texi: Update mingw problems.
53223         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53224         * doc/posix-functions/socket.texi: Update mingw problems.
53225
53226 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53227             Bruno Haible  <bruno@clisp.org>
53228
53229         * lib/sys_select.in.h: Include sys/time.h.
53230         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53231         * modules/sys_select: Depend on sys_time.
53232         * tests/test-sys_select.c: Test that sys/select.h defines struct
53233         timeval fully.
53234
53235 2008-09-29  Bruno Haible  <bruno@clisp.org>
53236
53237         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53238         * lib/sys_select.in.h: Likewise.
53239
53240 2008-09-29  Bruno Haible  <bruno@clisp.org>
53241
53242         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53243
53244 2008-09-29  Bruno Haible  <bruno@clisp.org>
53245
53246         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53247         Set LIBSOCKET instead of augmenting LIBS.
53248         * modules/sockets (Link): New section.
53249         * modules/sockets-tests (test_sockets_LDADD): New variable.
53250         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53251         * modules/poll-tests (test_poll_LDADD): New variable.
53252         * NEWS: Document the change.
53253
53254 2008-09-29  Bruno Haible  <bruno@clisp.org>
53255
53256         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53257         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53258         ARPA_INET_H directly.
53259         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53260
53261 2008-09-28  Bruno Haible  <bruno@clisp.org>
53262
53263         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53264         from gl_HEADER_SYS_SOCKET.
53265         (gl_HEADER_SYS_SOCKET): Invoke it.
53266         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53267
53268 2008-09-28  Bruno Haible  <bruno@clisp.org>
53269
53270         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53271         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53272         Needed on OSF/1 4.0.
53273
53274 2008-09-28  Bruno Haible  <bruno@clisp.org>
53275
53276         Override open more carefully.
53277         * lib/open.c (orig_open): New function.
53278         (rpl_open): Use orig_open instead of open.
53279         * lib/fcntl.in.h: Add special invocation convention.
53280         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53281         (gl_FUNC_OPEN): Invoke it.
53282
53283         Override freopen more carefully.
53284         * lib/freopen.c (orig_freopen): New function.
53285         (rpl_freopen): Use orig_freopen instead of freopen.
53286         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53287         (gl_FUNC_FREOPEN): Invoke it.
53288
53289         Override fopen more carefully.
53290         * lib/fopen.c (orig_fopen): New function.
53291         (rpl_fopen): Use orig_fopen instead of fopen.
53292         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53293         (gl_FUNC_FOPEN): Invoke it.
53294         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53295
53296 2008-09-28  Bruno Haible  <bruno@clisp.org>
53297
53298         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53299         SIGPIPE.
53300
53301 2008-09-28  Bruno Haible  <bruno@clisp.org>
53302
53303         * tests/test-sigaction.c (handler, main): Disable the check whether
53304         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53305         glibc systems with LinuxThreads.
53306
53307 2008-09-28  Bruno Haible  <bruno@clisp.org>
53308
53309         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53310
53311         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53312         with AIX xlc.
53313         * lib/fcntl.in.h (open): Likewise.
53314         Reported by Rainer Tammer <tammer@tammer.net>.
53315
53316 2008-09-28  Bruno Haible  <bruno@clisp.org>
53317
53318         * modules/posix_spawnp-tests: New file.
53319         * tests/test-posix_spawn.c: New file.
53320         * tests/test-posix_spawn.in.sh: New file.
53321
53322         New module 'posix_spawnp'.
53323         * modules/posix_spawnp: New file.
53324         * lib/spawnp.c: New file, from GNU libc with modifications.
53325         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53326
53327         New module 'posix_spawn'.
53328         * modules/posix_spawn: New file.
53329         * lib/spawn.c: New file, from GNU libc with modifications.
53330         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53331
53332         New module 'posix_spawnattr_destroy'.
53333         * modules/posix_spawnattr_destroy: New file.
53334         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53335         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53336         module.
53337
53338         New module 'posix_spawnattr_setsigmask'.
53339         * modules/posix_spawnattr_setsigmask: New file.
53340         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53341         modifications.
53342         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53343         new module.
53344
53345         New module 'posix_spawnattr_getsigmask'.
53346         * modules/posix_spawnattr_getsigmask: New file.
53347         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53348         modifications.
53349         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53350         new module.
53351
53352         New module 'posix_spawnattr_setsigdefault'.
53353         * modules/posix_spawnattr_setsigdefault: New file.
53354         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53355         modifications.
53356         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53357         new module.
53358
53359         New module 'posix_spawnattr_getsigdefault'.
53360         * modules/posix_spawnattr_getsigdefault: New file.
53361         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53362         modifications.
53363         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53364         new module.
53365
53366         New module 'posix_spawnattr_setschedpolicy'.
53367         * modules/posix_spawnattr_setschedpolicy: New file.
53368         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53369         modifications.
53370         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53371         new module.
53372
53373         New module 'posix_spawnattr_getschedpolicy'.
53374         * modules/posix_spawnattr_getschedpolicy: New file.
53375         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53376         modifications.
53377         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53378         new module.
53379
53380         New module 'posix_spawnattr_setschedparam'.
53381         * modules/posix_spawnattr_setschedparam: New file.
53382         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53383         modifications.
53384         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53385         new module.
53386
53387         New module 'posix_spawnattr_getschedparam'.
53388         * modules/posix_spawnattr_getschedparam: New file.
53389         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53390         modifications.
53391         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53392         new module.
53393
53394         New module 'posix_spawnattr_setpgroup'.
53395         * modules/posix_spawnattr_setpgroup: New file.
53396         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53397         modifications.
53398         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53399         module.
53400
53401         New module 'posix_spawnattr_getpgroup'.
53402         * modules/posix_spawnattr_getpgroup: New file.
53403         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53404         modifications.
53405         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53406         module.
53407
53408         New module 'posix_spawnattr_setflags'.
53409         * modules/posix_spawnattr_setflags: New file.
53410         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53411         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53412         module.
53413
53414         New module 'posix_spawnattr_getflags'.
53415         * modules/posix_spawnattr_getflags: New file.
53416         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53417         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53418         module.
53419
53420         New module 'posix_spawnattr_init'.
53421         * modules/posix_spawnattr_init: New file.
53422         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53423         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53424         module.
53425
53426         New module 'posix_spawn_file_actions_destroy'.
53427         * modules/posix_spawn_file_actions_destroy: New file.
53428         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53429         modifications.
53430         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53431         the new module.
53432
53433         New module 'posix_spawn_file_actions_addopen'.
53434         * modules/posix_spawn_file_actions_addopen: New file.
53435         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53436         modifications.
53437         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53438         the new module.
53439
53440         New module 'posix_spawn_file_actions_adddup2'.
53441         * modules/posix_spawn_file_actions_adddup2: New file.
53442         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53443         modifications.
53444         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53445         the new module.
53446
53447         New module 'posix_spawn_file_actions_addclose'.
53448         * modules/posix_spawn_file_actions_addclose: New file.
53449         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53450         modifications.
53451         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53452         the new module.
53453
53454         New module 'posix_spawn_file_actions_init'.
53455         * modules/posix_spawn_file_actions_init: New file.
53456         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53457         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53458         new module.
53459
53460         New module 'posix_spawn-internal'.
53461         * modules/posix_spawn-internal: New file.
53462         * lib/spawn_int.h: New file, from GNU libc with modifications.
53463         * lib/spawni.c: New file, from GNU libc with modifications.
53464         * m4/posix_spawn.m4: New file.
53465
53466         New module 'spawn'.
53467         * modules/spawn: New file.
53468         * lib/spawn.in.h: New file, from GNU libc with modifications.
53469         * m4/spawn_h.m4: New file.
53470         * doc/posix-headers/spawn.texi: Mention the new module.
53471
53472 2008-09-28  Bruno Haible  <bruno@clisp.org>
53473
53474         * modules/sched-tests: New file.
53475         * tests/test-sched.c: New file.
53476
53477         New module 'sched'.
53478         * modules/sched: New file.
53479         * lib/sched.in.h: New file.
53480         * m4/sched_h.m4: New file.
53481         * doc/posix-headers/sched.texi: Mention the new module.
53482
53483 2008-09-27  Eric Blake  <ebb9@byu.net>
53484
53485         Fix previous patch, and tweak references to $0.
53486         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53487         (func_version, func_gnulib_dir): Don't call this program
53488         gnulib-tool.
53489         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53490         with using $0 in function.
53491         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53492         (func_fatal_error): Reuse the name the user invoked us with.
53493
53494 2008-09-27  Bruno Haible  <bruno@clisp.org>
53495
53496         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53497         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53498         (gl_ICONV_H): Not here.
53499         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53500         instead of assigning ICONV_H directly.
53501
53502         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53503         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53504         WCHAR_H directly.
53505
53506 2008-09-27  Bruno Haible  <bruno@clisp.org>
53507
53508         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53509         * modules/arpa_inet (Depends-on): Add link-warning.
53510         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53511         * modules/unistd (Makefile.am): Likewise.
53512
53513 2008-09-26  Bruno Haible  <bruno@clisp.org>
53514
53515         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53516         variables.
53517         (func_version): Essentially copied from gnulib-tool.
53518         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53519         func_readlink): Copied from gnulib-tool.
53520
53521 2008-09-26  Bruno Haible  <bruno@clisp.org>
53522
53523         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53524         invoking git-version-gen.
53525
53526 2008-09-26  Bruno Haible  <bruno@clisp.org>
53527
53528         * posix-modules: Update to directory names changed on 2008-01-19.
53529         Remove commas in output before splitting into words. No more need to
53530         avoid 'ftruncate' since 2007-02-19.
53531
53532 2008-09-26  Bruno Haible  <bruno@clisp.org>
53533
53534         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53535
53536 2008-09-26  Bruno Haible  <bruno@clisp.org>
53537
53538         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53539         * modules/fwriteerror (Depends-on): Add errno.
53540
53541 2008-09-26  Bruno Haible  <bruno@clisp.org>
53542
53543         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53544         * tests/test-vc-list-files-cvs.sh: Likewise.
53545
53546 2008-09-26  Bruno Haible  <bruno@clisp.org>
53547
53548         * doc/posix-headers/sys_resource.texi: Reorder items.
53549
53550 2008-09-26  Jim Meyering  <meyering@redhat.com>
53551
53552         fts: tweak inode comparison function
53553         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53554         inode numbers, as documented.
53555
53556         fts: sort dirent entries on inode number before traversing
53557         This avoids a quadratic, seek-related performance penalty when
53558         operating on a directory containing many entries (measurable at 10k;
53559         3.5 hours at 2 million entries with a cold cache) on certain types
53560         of file systems, including ext3 and ext4, but not tmpfs.
53561         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53562         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53563         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53564         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53565         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53566         (fts_build): Set the stat.st_ino member from D_INO.
53567         If it is likely to be useful, sort dirent entries on inode number.
53568
53569         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53570         and the struct statfs.f_type member.
53571         * modules/fts (Depends-on): Add d-ino.
53572
53573 2008-09-26  Bruno Haible  <bruno@clisp.org>
53574
53575         * modules/sigpipe-die (Depends-on): Add sigpipe.
53576
53577         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53578         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53579         and GNULIB_STDIO_H_SIGPIPE are set.
53580         * lib/stdio-write.c: New file.
53581         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53582         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53583         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53584         REPLACE_STDIO_WRITE_FUNCS.
53585         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53586         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53587         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53588         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53589         * modules/stdio (Files): Add lib/stdio-write.c.
53590         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53591         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53592         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53593         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53594         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53595         REPLACE_FPRINTF_POSIX.
53596         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53597         REPLACE_PRINTF_POSIX.
53598         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53599         REPLACE_VFPRINTF_POSIX.
53600         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53601         REPLACE_VPRINTF_POSIX.
53602         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53603         SIGPIPE issue.
53604         * doc/posix-functions/fputc.texi: Likewise.
53605         * doc/posix-functions/fputs.texi: Likewise.
53606         * doc/posix-functions/fwrite.texi: Likewise.
53607         * doc/posix-functions/printf.texi: Likewise.
53608         * doc/posix-functions/putc.texi: Likewise.
53609         * doc/posix-functions/putchar.texi: Likewise.
53610         * doc/posix-functions/puts.texi: Likewise.
53611         * doc/posix-functions/vfprintf.texi: Likewise.
53612         * doc/posix-functions/vprintf.texi: Likewise.
53613
53614         * modules/safe-write (Depends-on): Add write.
53615
53616         * modules/sigpipe-tests: New file.
53617         * tests/test-sigpipe.c: New file.
53618         * tests/test-sigpipe.sh: New file.
53619
53620         * modules/write: New file.
53621         * lib/unistd.in.h: Include <sys/types.h>.
53622         (write): New declaration.
53623         * lib/write.c: New file.
53624         * m4/write.m4: New file.
53625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53626         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53627         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53628         GNULIB_WRITE, REPLACE_WRITE.
53629         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53630         and the SIGPIPE issue.
53631
53632         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53633         (raise): New declaration.
53634         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53635         (ext_signal): New function.
53636         (rpl_raise): New function.
53637         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53638         GNULIB_SIGNAL_H_SIGPIPE.
53639         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53640         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53641
53642         * modules/sigpipe: New file.
53643         * m4/sigpipe.m4: New file.
53644
53645 2008-09-25  Derek Price  <derek@ximbiot.com>
53646             Bruno Haible  <bruno@clisp.org>
53647
53648         * gnulib-tool (func_import): Report all license incompatibilities, not
53649         just the first one.
53650
53651 2008-09-25  Bruno Haible  <bruno@clisp.org>
53652
53653         * gnulib-tool (func_import): When computing the edits, consider not
53654         only the Makefile.ams that exist but also those that will be generated.
53655
53656 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53657
53658         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53659         fixes gnulib-tool --test warning about duplicate dependency.
53660
53661 2008-09-25  Bruno Haible  <bruno@clisp.org>
53662
53663         * gnulib-tool: Don't ask the user to perform edits in the generated
53664         Makefile.ams.
53665         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53666         apply to the Makefile.am being generated.
53667         (func_emit_tests_Makefile_am): Execute edits that apply to the
53668         Makefile.am being generated.
53669         (func_import): Setup list of Makefile.am edits before emitting the
53670         Makefile.ams, not at the end.
53671         (func_create_testdir): Update.
53672         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53673
53674 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53675
53676         * gnulib-tool (func_import): Store the --tests-base option in the
53677         comment in gnulib-cache.m4.
53678
53679 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53680
53681         * NEWS: Document increased portability that sys_select now provides.
53682
53683         * lib/sys_select.in.h: Install select wrapper.
53684         * lib/sys_socket.in.h: Use more descriptive name when there is no
53685         select wrapper.
53686         * lib/winsock-select.c: New.
53687         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53688         Require gl_HEADER_SYS_SOCKET.
53689         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53690         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53691         * tests/test-sys_select.c: Add functional tests.
53692
53693 2008-09-24  Eric Blake  <ebb9@byu.net>
53694
53695         open, fopen: close fd leak in last patch
53696         * lib/open.c (rpl_open): Close fd before returning error.
53697         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53698         * doc/posix-functions/open.texi (open): Document that Irix also
53699         has the bug.
53700         * doc/posix-functions/fopen.texi (fopen): Likewise.
53701         Reported by Paolo Bonzini.
53702
53703 2008-09-24  Bruno Haible  <bruno@clisp.org>
53704
53705         Ensure that a filename ending in a slash cannot be used to access a
53706         non-directory.
53707         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53708         to check whether it's really a directory.
53709         * lib/fopen.c: Include fcntl.h, unistd.h.
53710         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53711         and fdopen().
53712         * modules/fopen (Depends-on): Add unistd.
53713         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53714         * tests/test-fopen.c (main): Likewise.
53715         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53716         * doc/posix-functions/fopen.texi: Likewise.
53717         Reported by Eric Blake.
53718
53719 2008-09-23  Eric Blake  <ebb9@byu.net>
53720
53721         c-stack: avoid compiler optimizations when provoking overflow
53722         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53723         recursion harder to optimize, to ensure a stack overflow occurs.
53724         * tests/test-c-stack.c (recurse): Likewise.
53725         Borrowed from libsigsegv.
53726
53727         c-stack: work around Irix sigaltstack bug
53728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53729         whether sigaltstack uses wrong end of stack_t (copied in part from
53730         libsigsegv).
53731         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53732         Irix bug, without requiring an over-allocation.
53733         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53734         bug.
53735
53736         fopen: document mingw bug on directories
53737         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53738         not allowing a stream visiting a directory, even though reading
53739         from such a stream is not portable.
53740
53741 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53742
53743         * lib/poll.c: Rewrite.
53744         * modules/poll: Depend on alloca.
53745
53746 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53747
53748         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53749         instead define prototypes for a full set of wrappers.  Ensure
53750         that Cygwin does not use the compatibility code, which is only
53751         for MinGW.
53752         * lib/winsock.c: New.
53753         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53754         * modules/sys_socket: Add lib/winsock.c.
53755
53756         * modules/poll-tests: Add errno and perror.
53757         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53758
53759 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53760
53761         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53762
53763 2008-09-23  Bruno Haible  <bruno@clisp.org>
53764
53765         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53766         * doc/glibc-functions/*: Likewise.
53767
53768 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53769
53770         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53771         success.
53772
53773 2008-09-22  Eric Blake  <ebb9@byu.net>
53774             Bruno Haible  <bruno@clisp.org>
53775
53776         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53777         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53778         supply %A but mishandle pseudo-NaN.
53779         Reported by Simon Josefsson.
53780
53781 2008-09-21  Bruno Haible  <bruno@clisp.org>
53782
53783         * tests/test-lock.c (main): Tweak skip message.
53784         * tests/test-tls.c (main): Likewise.
53785
53786 2008-09-21  Bruno Haible  <bruno@clisp.org>
53787
53788         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53789         whether 'struct sigaction' has sa_sigaction here...
53790         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53791         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53792
53793 2008-09-21  Bruno Haible  <bruno@clisp.org>
53794
53795         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53796         section.
53797         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53798         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53799         the new section.
53800         (Support for obsolete systems lacking POSIX:2001): New section.
53801         (String handling <string.h>): Move strdup to the new section.
53802         Suggested by Simon Josefsson and Paolo Bonzini.
53803
53804 2008-09-21  Bruno Haible  <bruno@clisp.org>
53805
53806         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53807         exponents in %e and %g results on 'long double'. Needed for mingw's
53808         improved *printf functions.
53809         * tests/test-vasprintf-posix.c (test_function): Likewise.
53810         * tests/test-snprintf-posix.h (test_function): Likewise.
53811         * tests/test-sprintf-posix.h (test_function): Likewise.
53812         Reported by Eric Blake.
53813
53814 2008-09-21  Bruno Haible  <bruno@clisp.org>
53815
53816         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53817         * tests/test-sprintf-posix.h (test_function): Likewise.
53818
53819 2008-09-21  Bruno Haible  <bruno@clisp.org>
53820
53821         * modules/getpass (Depends-on): Add strdup-posix.
53822
53823         New module 'strdup-posix'.
53824         * modules/strdup-posix: New file.
53825         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53826         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53828         REPLACE_STRDUP.
53829         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53830         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53831         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53832         strdup-posix.
53833
53834         * modules/strdup (Depends-on): Remove malloc-posix.
53835
53836 2008-09-20  Bruno Haible  <bruno@clisp.org>
53837
53838         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53839         Wildenhues.
53840
53841 2008-09-20  Bruno Haible  <bruno@clisp.org>
53842
53843         Ensure that wint_t gets defined on IRIX 5.3.
53844         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53845         * lib/wctype.in.h (wint_t): Likewise.
53846         (__wctype_wint_t): Remove type.
53847         (isw*): Use wint_t instead of __wctype_wint_t.
53848         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53849         * modules/wchar (Files): Add m4/wint_t.m4.
53850         (Makefile.am): Substitute HAVE_WINT_T.
53851         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53852         * tests/test-wctype.c: Check that wint_t is defined.
53853         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53854         * doc/posix-headers/wctype.texi: Likewise.
53855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53856
53857 2008-09-18  Bruno Haible  <bruno@clisp.org>
53858
53859         * gnulib-tool (func_exit): Update comment.
53860
53861 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53862
53863         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53864         assumes strdup exists and does not depend on strdup to return
53865         ENOMEM on out of memory conditions.
53866
53867 2008-09-18  Bruno Haible  <bruno@clisp.org>
53868
53869         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53870         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53871         digits for the exponent.
53872
53873 2008-09-18  Jim Meyering  <meyering@redhat.com>
53874             Bruno Haible  <bruno@clisp.org>
53875
53876         * lib/vasnprintf.c (decimal_point_char): Define also if
53877         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53878
53879 2008-09-16  Bruno Haible  <bruno@clisp.org>
53880         and Eric Blake  <ebb9@byu.net>
53881
53882         vasnprintf: support Irix 5.3
53883         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53884         that mishandle long double infinity.
53885         Reported by Tom G. Christensen.
53886
53887 2008-09-16  Bruno Haible  <bruno@clisp.org>
53888
53889         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53890         Solaris 9.
53891         * doc/glibc-functions/alphasort.texi: Likewise.
53892         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53893
53894 2008-09-16  Jim Meyering  <meyering@redhat.com>
53895
53896         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53897         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53898         a umask modification leak out of a subshell.  Otherwise, the
53899         opensolaris /bin/sh would be accepted and thus cause unwarranted
53900         failures in the coreutils test suite.
53901
53902 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53903
53904         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53905         to succeed.
53906
53907 2008-09-16  Jim Meyering  <meyering@redhat.com>
53908
53909         avoid spurious test failure when library is built without ACL support
53910         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53911         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53912         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53913         * tests/test-copy-acl.sh: Likewise.
53914
53915 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53916
53917         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53918         based on character occurrence counts.
53919
53920 2008-09-15  Eric Blake  <ebb9@byu.net>
53921
53922         tests: avoid some compiler warnings
53923         * tests/test-memchr.c (main): Pass NULL indirectly.
53924         * tests/test-closein.c (main): Avoid unused variable.
53925
53926 2008-09-15  Bruno Haible  <bruno@clisp.org>
53927
53928         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53929         are missing on OpenBSD 4.0 individually.
53930         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53931
53932 2008-09-15  Bruno Haible  <bruno@clisp.org>
53933
53934         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53935         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53936         * doc/posix-functions/perror.texi: Likewise.
53937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53938         is missing.
53939         Reported by Eric Blake.
53940
53941         * lib/errno.in.h: Use replacement values >= 2000.
53942         Reported by Eric Blake.
53943
53944 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53945
53946         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53947         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53948         limit.
53949         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53950         compareseq was aborted.
53951
53952 2008-09-14  Bruno Haible  <bruno@clisp.org>
53953
53954         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53955         yvec_edit_count.
53956         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53957         (fstrcmp_bounded): Simplify result computation accordingly.
53958
53959 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53960
53961         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53962         (fstrcmp): Define in terms of fstrcmp_bounded.
53963         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53964         lower_bound argument.
53965         Return quickly if the result is certainly < lower_bound.
53966         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53967
53968 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53969
53970         * lib/diffseq.h (EARLY_ABORT): New macro.
53971         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53972         evaluates to true.
53973
53974 2008-09-14  Bruno Haible  <bruno@clisp.org>
53975
53976         * modules/perror-tests: New file.
53977         * tests/test-perror.sh: New file.
53978         * tests/test-perror.c: New file.
53979
53980         New module 'perror'.
53981         * lib/stdio.in.h (perror): New declaration.
53982         * lib/perror.c: New file.
53983         * m4/perror.m4: New file.
53984         * modules/perror: New file.
53985         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53986         * doc/posix-functions/perror.texi: Mention the perror module.
53987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53988         REPLACE_PERROR.
53989         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53990         REPLACE_PERROR.
53991
53992 2008-09-14  Bruno Haible  <bruno@clisp.org>
53993
53994         * modules/stdio (Makefile.am): Reorder to match the order in
53995         lib/stdio.in.h.
53996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53997
53998 2008-09-13  Bruno Haible  <bruno@clisp.org>
53999
54000         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54001
54002 2008-09-13  Bruno Haible  <bruno@clisp.org>
54003
54004         Extend strerror to cover the added errno values.
54005         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54006         (rpl_strerror): Provide error messages for the added errno values and
54007         for the WSA* values.
54008         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54009         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54010         strerror.
54011         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54012         * modules/strerror (Depends-on): Add errno.
54013         * doc/posix-functions/strerror.texi: Document the change.
54014         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54015         and EOVERFLOW.
54016
54017 2008-09-13  Bruno Haible  <bruno@clisp.org>
54018
54019         * modules/EOVERFLOW: Remove file.
54020         * m4/eoverflow.m4: Remove file.
54021         * modules/EOVERFLOW-tests: Remove file.
54022         * tests/test-EOVERFLOW.c: Remove file.
54023         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54024         * modules/ftell (Depends-on): Likewise.
54025         * modules/getdelim (Depends-on): Likewise.
54026         * modules/getugroups (Depends-on): Likewise.
54027         * modules/poll (Depends-on): Likewise.
54028         * modules/snprintf (Depends-on): Likewise.
54029         * modules/sprintf-posix (Depends-on): Likewise.
54030         * modules/vasnprintf (Depends-on): Likewise.
54031         * modules/vasprintf (Depends-on): Likewise.
54032         * modules/vfprintf-posix (Depends-on): Likewise.
54033         * modules/vsnprintf (Depends-on): Likewise.
54034         * modules/vsprintf-posix (Depends-on): Likewise.
54035         * modules/xvasprintf (Depends-on): Likewise.
54036         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54037         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54038         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54039         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54040         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54041         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54042         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54043         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54044         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54045         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54046         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54047         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54048         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54049         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54050         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54051         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54052         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54053         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54054         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54055         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54056         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54057         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54058         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54059         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54060         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54061         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54062         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54063         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54064         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54065         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54066         * MODULES.html.sh: Remove EOVERFLOW.
54067         * NEWS: Mention the change.
54068
54069 2008-09-13  Bruno Haible  <bruno@clisp.org>
54070
54071         * modules/errno-tests: New file.
54072         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54073
54074         * lib/errno.in.h: New file.
54075         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54076         * modules/errno: New file.
54077         * doc/posix-headers/errno.texi: Update documentation.
54078         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54079
54080 2008-09-13  Bruno Haible  <bruno@clisp.org>
54081
54082         * tests/test-poll.c: Use #if for native Windows, rather than testing
54083         __MSVCRT__.
54084
54085 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54086             Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/glob.c: Don't include <pwd.h> on native Windows.
54089         (WINDOWS32): New macro.
54090         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54091
54092 2008-09-13  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54095         (ETIMEDOUT): Remove macro.
54096         (glthread_cond_timedwait_multithreaded): New declaration.
54097         (glthread_cond_timedwait): Use it.
54098         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54099         (glthread_cond_timedwait_multithreaded): New function.
54100
54101 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54102
54103         * modules/poll-tests: Do not check for io.h.
54104         * tests/test-poll.c: Check for __MSVCRT__ instead.
54105
54106 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54107
54108         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54109         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54110         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54111
54112 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54113
54114         * modules/poll-tests: New.
54115         * tests/test-poll.c: New.
54116
54117 2008-09-12  Eric Blake  <ebb9@byu.net>
54118
54119         frexp: test for NetBSD failure on -0.0
54120         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54121         not all, bugs from NetBSD 3.0 have been fixed.
54122         * doc/posix-functions/frexp.texi (frexp): Document bug.
54123         Reported by Thomas Klausner.
54124
54125         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54126         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54127         literal -0.0.
54128         Reported by Jonathan C. Patschke <jp@centtech.com>.
54129
54130 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54131
54132         * lib/glthread/cond.h: Use dummy implementation also if
54133         USE_WIN32_THREADS.
54134
54135 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54136
54137         * modules/fnmatch-posix (License): Change to LGPLv2+.
54138         * modules/fnmatch-gnu (License): Likewise.
54139
54140 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54141
54142         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54143
54144 2008-09-11  Jim Meyering  <meyering@redhat.com>
54145
54146         * users.txt: Add gtk-vnc.
54147
54148 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54149
54150         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54151         rotate amounts.
54152
54153         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54154         required for 16-bit and 8-bit rotates.
54155         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54156         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54157         UINT8_MAX instead of hard-coded constants.
54158         Suggested by Paul Eggert.
54159
54160 2008-09-07  Bruno Haible  <bruno@clisp.org>
54161
54162         * tests/test-striconveh.c (main): Check behaviour when converting from
54163         UTF-7.
54164
54165         Make striconveh work better with stateful encodings.
54166         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54167         that iconv does not increment the inptr when returning -1/EINVAL.
54168
54169 2008-09-07  Bruno Haible  <bruno@clisp.org>
54170
54171         * build-aux/config.rpath: Update according to libtool-2.2.6.
54172         * build-aux/config.libpath: Likewise.
54173
54174 2008-09-06  Bruno Haible  <bruno@clisp.org>
54175
54176         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54177         * lib/freadptr.c (freadptr): Likewise.
54178         * lib/freadseek.c (freadptrinc): Likewise.
54179         Reported by Simon Josefsson.
54180
54181 2008-09-06  Bruno Haible  <bruno@clisp.org>
54182
54183         * modules/freadptr (License): Change to LGPLv2+.
54184         * modules/freadseek (License): Likewise.
54185         Suggested by Eric Blake.
54186
54187         * modules/memchr2 (License): Change to LGPLv2+.
54188         Approved by Eric Blake.
54189
54190 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54191             Bruno Haible  <bruno@clisp.org>
54192
54193         Make gnulib-tool work with native 'sed' on AIX.
54194         * gnulib-tool (sed_noop): New variable.
54195         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54196         func_add_or_update, func_create_testdir): Use it to initialize sed
54197         script variables.
54198         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54199
54200 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54201             Bruno Haible  <bruno@clisp.org>
54202
54203         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54204         also works after #include directives.
54205
54206 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
54207
54208         getdate.y: reject an out-of-range timezone value
54209         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54210         the range [-24...+24].  When specified with only one or two digits,
54211         * tests/test-getdate.c: Tests for the fix.
54212         * doc/getdate.texi: Document this change.
54213
54214 2008-09-03  Bruno Haible  <bruno@clisp.org>
54215
54216         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54217
54218 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54219
54220         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54221         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54222         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54223         Blake <ebb9@byu.net>.
54224
54225         * tests/test-bitrotate.c: Add more test vectors.
54226
54227 2008-09-02  Eric Blake  <ebb9@byu.net>
54228
54229         vasnprintf-posix: handle large precision via %.*d
54230         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54231         when handling it ourselves.
54232         * tests/test-vasnprintf-posix.c (test_function): Add test.
54233         * tests/test-snprintf-posix.h (test_function): Likewise.
54234         * tests/test-sprintf-posix.h (test_function): Likewise.
54235         * tests/test-vasprintf-posix.c (test_function): Likewise.
54236         Reported by Alain Guibert.
54237
54238 2008-09-01  Eric Blake  <ebb9@byu.net>
54239
54240         c-stack: make configure-time check more robust
54241         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54242         successful sigaction call.
54243         Reported by Tom G. Christensen.
54244
54245 2008-09-01  Bruno Haible  <bruno@clisp.org>
54246
54247         New module 'findprog-lgpl'.
54248         * modules/findprog-lgpl: New file.
54249         * lib/findprog-lgpl.c: New file.
54250         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54251         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54252         to decide whether to use strdup or xstrdup, concatenated_filename or
54253         xconcatenated_filename.
54254
54255 2008-09-01  Bruno Haible  <bruno@clisp.org>
54256
54257         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54258         'xconcat-filename' (GPL).
54259         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54260         (License): Change to LGPLv2+.
54261         * modules/xconcat-filename: New file.
54262         * lib/concat-filename.h (concatenated_filename): Change specification.
54263         (xconcatenated_filename): New declaration.
54264         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54265         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54266         memory situations.
54267         * lib/xconcat-filename.c: New file.
54268         * NEWS: Mention the change.
54269         * lib/findprog.c: Include concat-filename.h, not filename.h.
54270         (find_in_path): Use xconcatenated_filename instead of
54271         concatenated_filename.
54272         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54273         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54274         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54275         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54276         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54277         instead of concatenated_filename.
54278         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54279         (execute_java_class): Use xconcatenated_filename instead of
54280         concatenated_filename.
54281         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54282         * modules/javacomp (Depends-on): Likewise.
54283         * modules/javaexec (Depends-on): Likewise.
54284
54285 2008-09-01  Bruno Haible  <bruno@clisp.org>
54286
54287         Split module 'filename' into 'filename' and 'concat-filename'.
54288         * modules/filename: Keep only lib/filename.h.
54289         (License): Change to LGPLv2+.
54290         * modules/concat-filename: New file, extracted from modules/filename.
54291         * lib/filename.h (concatenated_filename): Remove declaration.
54292         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54293         * lib/concat-filename.c: Include concat-filename.h.
54294         * NEWS: Mention the change.
54295
54296 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54297
54298         * lib/bitrotate.h (rotl8, rotr8): Add.
54299
54300         * modules/bitrotate (configure.ac): Need
54301         AC_REQUIRE([AC_C_INLINE]).
54302         (Description): Mention stdint.h.  Reported by Bruno Haible
54303         <bruno@clisp.org>.
54304
54305         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54306         Paolo Bonzini <bonzini@gnu.org>.
54307
54308 2008-08-31  Bruno Haible  <bruno@clisp.org>
54309
54310         Assume Solaris specific bi-arch conventions on Solaris systems.
54311         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54312         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54313         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54314         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54315         like acl_libdirstem.
54316         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54317         acl_libdirstem.
54318         * NEWS: Mention the change.
54319         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54320
54321 2008-08-31  Jim Meyering  <meyering@redhat.com>
54322
54323         * lib/strftime.h: Add comments describing the two added arguments.
54324
54325         remove duplicate #include directives
54326         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54327         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54328
54329 2008-08-31  Bruno Haible  <bruno@clisp.org>
54330
54331         New module 'sigpipe-die'.
54332         * modules/sigpipe-die: New file.
54333         * lib/sigpipe-die.h: New file.
54334         * lib/sigpipe-die.c: New file.
54335         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54336
54337 2008-08-31  Bruno Haible  <bruno@clisp.org>
54338
54339         Don't override previously installed signal handlers.
54340         * lib/fatal-signal.c (saved_sigactions): New variable.
54341         (uninstall_handlers): Reset the signal to the saved handler, not
54342         to SIG_DFL (except when ignored).
54343         (install_handlers): Save the previous handlers.
54344
54345 2008-08-30  Bruno Haible  <bruno@clisp.org>
54346
54347         * gnulib-tool (func_reset_sigpipe): New function.
54348         (func_get_automake_snippet, func_modules_transitive_closure,
54349         func_import): Invoke it before a join command that reads from stdin,
54350         to avoid "echo: write error: Broken pipe" error messages on stderr.
54351         Reported by Sam Steingold <sds@gnu.org>.
54352
54353 2008-08-30  Bruno Haible  <bruno@clisp.org>
54354
54355         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54356         Code copied from m4/open.m4.
54357         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54358         access and the filename ends in a slash. Code copied from lib/open.c.
54359         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54360         * tests/test-fopen.c (main): Check against bug with trailing slash.
54361
54362 2008-08-29  Bruno Haible  <bruno@clisp.org>
54363
54364         Avoid some "gcc -pedantic" warnings.
54365         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54366         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54367         * lib/dirent.in.h: Likewise.
54368         * lib/fcntl.in.h: Likewise.
54369         * lib/float.in.h: Likewise.
54370         * lib/iconv.in.h: Likewise.
54371         * lib/inttypes.in.h: Likewise.
54372         * lib/locale.in.h: Likewise.
54373         * lib/math.in.h: Likewise.
54374         * lib/netinet_in.in.h: Likewise.
54375         * lib/search.in.h: Likewise.
54376         * lib/signal.in.h: Likewise.
54377         * lib/stdarg.in.h: Likewise.
54378         * lib/stdint.in.h: Likewise.
54379         * lib/stdio.in.h: Likewise.
54380         * lib/stdlib.in.h: Likewise.
54381         * lib/string.in.h: Likewise.
54382         * lib/strings.in.h: Likewise.
54383         * lib/sys_select.in.h: Likewise.
54384         * lib/sys_socket.in.h: Likewise.
54385         * lib/sys_stat.in.h: Likewise.
54386         * lib/sys_time.in.h: Likewise.
54387         * lib/sysexits.in.h: Likewise.
54388         * lib/time.in.h: Likewise.
54389         * lib/unistd.in.h: Likewise.
54390         * lib/wchar.in.h: Likewise.
54391         * lib/wctype.in.h: Likewise.
54392         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54393         * modules/fchdir (Makefile.am): Likewise.
54394         * modules/fcntl (Makefile.am): Likewise.
54395         * modules/float (Makefile.am): Likewise.
54396         * modules/iconv_open (Makefile.am): Likewise.
54397         * modules/inttypes (Makefile.am): Likewise.
54398         * modules/locale (Makefile.am): Likewise.
54399         * modules/math (Makefile.am): Likewise.
54400         * modules/netinet_in (Makefile.am): Likewise.
54401         * modules/search (Makefile.am): Likewise.
54402         * modules/signal (Makefile.am): Likewise.
54403         * modules/stdarg (Makefile.am): Likewise.
54404         * modules/stdint (Makefile.am): Likewise.
54405         * modules/stdio (Makefile.am): Likewise.
54406         * modules/stdlib (Makefile.am): Likewise.
54407         * modules/string (Makefile.am): Likewise.
54408         * modules/strings (Makefile.am): Likewise.
54409         * modules/sys_select (Makefile.am): Likewise.
54410         * modules/sys_socket (Makefile.am): Likewise.
54411         * modules/sys_stat (Makefile.am): Likewise.
54412         * modules/sys_time (Makefile.am): Likewise.
54413         * modules/sysexits (Makefile.am): Likewise.
54414         * modules/time (Makefile.am): Likewise.
54415         * modules/unistd (Makefile.am): Likewise.
54416         * modules/wchar (Makefile.am): Likewise.
54417         * modules/wctype (Makefile.am): Likewise.
54418         Reported by Reuben Thomas <rrt@sc3d.org>.
54419
54420 2008-08-29  Bruno Haible  <bruno@clisp.org>
54421
54422         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54423         any more.
54424
54425 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54426
54427         * MODULES.html.sh (Misc): Add bitrotate.
54428
54429         * modules/bitrotate: New file.
54430
54431         * lib/bitrotate.h: New file.
54432
54433         * modules/bitrotate-tests: New file.
54434
54435         * tests/test-bitrotate.c: New file.
54436
54437         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54438         on the bitrotate module.
54439
54440         * lib/arctwo.c: Use new bitrotate module.
54441
54442 2008-08-29  Jim Meyering  <meyering@redhat.com>
54443
54444         bootstrap: merge changes from coreutils
54445         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54446         of copied files.  Remove a kludge, now that this is fixed.
54447         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54448         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54449         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54450
54451 2008-08-29  Bruno Haible  <bruno@clisp.org>
54452
54453         * MODULES.html.sh: Remove --cvs-urls option.
54454
54455 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54456
54457         maint.mk: adjust to file name change
54458         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54459
54460 2008-08-28  Jim Meyering  <meyering@redhat.com>
54461
54462         * modules/getndelim2 (License): Relicense to LGPLv2+.
54463         Approved by Richard Stallman for the version of 1995, and by
54464         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54465
54466 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54467
54468         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54469         dummy if one is not available.  Do not touch them if
54470         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54471         (getc_maybe_unlocked): New.
54472         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54473
54474 2008-08-26  Eric Blake  <ebb9@byu.net>
54475
54476         doc/INSTALL: resync from autoconf
54477         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54478         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54479         moving...
54480         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54481         * INSTALL: Regenerate.
54482         * INSTALL.ISO: New file.
54483         * INSTALL.UTF-8: Likewise.
54484
54485 2008-08-26  Jim Meyering  <meyering@redhat.com>
54486
54487         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54488         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54489         these definitions conditional, so that they may be overridden, too.
54490
54491 2008-08-26  Bruno Haible  <bruno@clisp.org>
54492
54493         Generate INSTALL file variants with prettier quotes.
54494         * doc/Makefile (INSTALL_PRELUDE): New macro.
54495         (INSTALL): Use it.
54496         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54497
54498 2008-08-26  Bruno Haible  <bruno@clisp.org>
54499
54500         Run makeinfo in an English locale.
54501         * doc/Makefile (MAKEINFO): New variable.
54502
54503 2008-08-26  Bruno Haible  <bruno@clisp.org>
54504
54505         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54506         Suggested by Eric Blake.
54507
54508 2008-08-25  Bruno Haible  <bruno@clisp.org>
54509
54510         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54511
54512 2008-08-25  Eric Blake  <ebb9@byu.net>
54513
54514         c-stack: test that stack overflow can be caught
54515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54516         that platform allows handling stack overflow; at least OS/2 EMX
54517         has sigaltstack, but crashes before transferring control to
54518         handler on stack overflow.
54519         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54520         check for HAVE_STACK_OVERFLOW_HANDLING.
54521         Reported by Elbert Pol.
54522
54523 2008-08-25  Bruno Haible  <bruno@clisp.org>
54524
54525         * doc/posix-functions/strftime.texi: Fix description of strftime
54526         module.
54527
54528 2008-08-24  Bruno Haible  <bruno@clisp.org>
54529
54530         * tests/uniwidth/test-uc_width2.c: New file.
54531         * tests/uniwidth/test-uc_width2.sh: New file.
54532         * modules/uniwidth/width-tests (Files): Add the new files.
54533         (TESTS): Add uniwidth/test-uc_width2.sh.
54534         (TESTS_ENVIRONMENT): New variable.
54535         (check_PROGRAMS): Add test-uc_width2.
54536         (test_uc_width2_SOURCES): New variable.
54537
54538         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54539         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54540         not 0x00AB.
54541         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54542
54543 2008-08-22  Eric Blake  <ebb9@byu.net>
54544
54545         test-lock, test-tls: mention why a test is skipped
54546         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54547         skipped.
54548         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54549
54550         count-one-bits: relax license
54551         * modules/count-one-bits (License): Relicense to LGPLv2+.
54552         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54553
54554 2008-08-22  Andreas Schwab  <schwab@suse.de>
54555
54556         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54557         Remove spurious space in assignment.
54558
54559 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54560
54561         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54562         Paul Eggert <eggert@CS.UCLA.EDU>.
54563
54564 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54565
54566         * modules/gettext: Add m4/threadlib.m4.
54567
54568 2008-08-19  Eric Blake  <ebb9@byu.net>
54569
54570         test-c-stack: fix compilation failure on FreeBSD 5.0
54571         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54572         headers before <sys/resource.h>.
54573         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54574         the bug.
54575         Reported by Nelson H. F. Beebe.
54576
54577         strverscmp: migrate from "strverscmp.h" to <string.h>
54578         * modules/string (Makefile.am): Add new hooks.
54579         * modules/strverscmp (Files): Remove strverscmp.h.
54580         (Depends-on): Add string.
54581         (configure.ac): Add indicator.
54582         (Include): Mention new header.
54583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54584         defaults.
54585         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54586         results.
54587         * lib/strverscmp.h: Delete.
54588         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54589         * tests/test-strverscmp.c (includes): Adjust client.
54590         * lib/check-version.c (includes): Likewise.
54591         * NEWS: Document the change.
54592
54593         strverscmp: add unit test
54594         * modules/strverscmp-tests: New file.
54595         * tests/test-strverscmp.c: Likewise.
54596
54597 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54598
54599         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54600         regarding Windows crypto stuff, from Mono.
54601
54602 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54603
54604         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54605         if present, for intel RND.  Return error on failures.
54606
54607 2008-08-18  Ben Pfaff  <blp@gnu.org>
54608
54609         gitlog-to-changelog: give better diagnostic for failed pipe-open
54610         * build-aux/gitlog-to-changelog: Improve error message: suggest
54611         that the version of Git may be too old.
54612
54613 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54614
54615         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54616         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54617
54618 2008-08-18  Bruno Haible  <bruno@clisp.org>
54619
54620         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54621         pthread_in_use().
54622
54623 2008-08-18  Bruno Haible  <bruno@clisp.org>
54624
54625         * lib/glthread/threadlib.c: Include <pthread.h>.
54626
54627 2008-08-18  Bruno Haible  <bruno@clisp.org>
54628
54629         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54630         glthread_recursive_lock_* macros.
54631         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54632         Fix syntax error.
54633
54634 2008-08-18  Bruno Haible  <bruno@clisp.org>
54635
54636         * lib/glthread/thread.c: Avoid forcing a context switch right after
54637         thread creation.
54638
54639 2008-08-17  Bruno Haible  <bruno@clisp.org>
54640
54641         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54642         * lib/glthread/thread.h: Provide Win32 specific implementation.
54643         * modules/thread (Files): Add lib/glthread/thread.c.
54644         (Depends-on): Add lock.
54645         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54646
54647 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54648
54649         New module 'yield'.
54650         * modules/yield: New file.
54651         * lib/glthread/yield.h: New file.
54652         * m4/yield.m4: New file.
54653         * MODULES.html.sh (Multithreading): Add yield.
54654
54655 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54656
54657         New module 'thread'.
54658         * modules/thread: New file.
54659         * lib/glthread/thread.h: New file.
54660         * m4/thread.m4: New file.
54661         * MODULES.html.sh (Multithreading): Add thread.
54662
54663 2008-08-17  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/glthread/lock.h: Include <stdlib.h> always.
54666         * lib/glthread/tls.h: Likewise.
54667         * lib/glthread/cond.h: Likewise.
54668
54669 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54670
54671         New module 'cond'.
54672         * modules/cond: New file.
54673         * lib/glthread/cond.h: New file.
54674         * lib/glthread/cond.c: New file.
54675         * m4/cond.m4: New file.
54676         * MODULES.html.sh (Multithreading): Add cond.
54677
54678 2008-08-16  Eric Blake  <ebb9@byu.net>
54679
54680         c-stack: fix regression on Irix 5.3 from 2008-06-21
54681         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54682         sa_sigaction...
54683         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54684         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54685         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54686         * modules/signal (Makefile.am): Use the value.
54687         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54688         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54689         * doc/posix-headers/signal.texi (signal.h): Document this
54690         portability issue.
54691         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54692         Reported by Tom G. Christensen.
54693
54694 2008-08-17  Bruno Haible  <bruno@clisp.org>
54695
54696         New module 'threadlib'.
54697         * modules/threadlib: New file.
54698         * lib/glthread/threadlib.c: New file, extracted from
54699         lib/glthread/lock.c.
54700         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54701         functions.
54702         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54703         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54704         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54705         macros.
54706         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54707         (gl_DISABLE_THREADS): Remove macro.
54708         * modules/lock (Files): Remove build-aux/config.rpath.
54709         (Depends-on): Remove havelib. Add threadlib.
54710         (configure.ac-early): Remove section.
54711         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54712         * modules/tls (Depends-on): Remove lock. Add threadlib.
54713         (Link): New section, copied from threadlib.
54714         * MODULES.html.sh (Multithreading): Add threadlib.
54715
54716 2008-08-14  Bruno Haible  <bruno@clisp.org>
54717
54718         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54719         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54720         glthread_rwlock_unlock, glthread_rwlock_destroy,
54721         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54722         glthread_recursive_lock_destroy): Define as macros always.
54723         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54724         glthread_lock_lock.
54725         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54726         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54727         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54728         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54729         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54730         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54731         (glthread_recursive_lock_lock_func): Renamed from
54732         glthread_recursive_lock_lock.
54733         (glthread_recursive_lock_unlock_func): Renamed from
54734         glthread_recursive_lock_unlock.
54735         (glthread_recursive_lock_destroy_func): Renamed from
54736         glthread_recursive_lock_destroy.
54737
54738 2008-08-14  Bruno Haible  <bruno@clisp.org>
54739
54740         * lib/glthread/lock.h: Renamed from lib/lock.h.
54741         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54742         * lib/glthread/tls.h: Renamed from lib/tls.h.
54743         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54744         * lib/fstrcmp.c: Update includes.
54745         * lib/strsignal.c: Update includes.
54746         * modules/lock (Files, Makefile.am): Update.
54747         (Include): Change to "glthread/lock.h".
54748         * modules/tls (Files, Makefile.am): Update.
54749         (Include): Change to "glthread/tls.h".
54750         * tests/test-lock.c: Update includes.
54751         * tests/test-tls.c: Update includes.
54752         * NEWS: Mention the renamed header files.
54753
54754 2008-08-11  Jim Meyering  <meyering@redhat.com>
54755
54756         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54757
54758 2008-08-11  Eric Blake  <ebb9@byu.net>
54759
54760         test-c-stack: avoid C99-ism
54761         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54762         before statement.
54763         Reported by Alain Guibert.
54764
54765 2008-08-10  Jim Meyering  <meyering@redhat.com>
54766
54767         ensure that return value of uinttostr et al are not ignored
54768         * lib/inttostr.h (__GNUC_PREREQ): Define.
54769         (__attribute_warn_unused_result__): Define.
54770         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54771
54772 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54773
54774         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54775         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54776
54777 2008-08-07  Jim Meyering  <meyering@redhat.com>
54778
54779         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54780
54781         * modules/mkstemp (License): Relicense under LGPLv2+.
54782         * modules/tempname (License): Likewise.
54783
54784 2008-08-06  Bruno Haible  <bruno@clisp.org>
54785
54786         * lib/poll.c (poll): Further micro-optimization.
54787
54788 2008-08-06  Jim Meyering  <meyering@redhat.com>
54789
54790         inet_pton.c: use locale-independent tolower
54791         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54792         (inet_pton6): Use c_tolower rather than tolower.
54793         * modules/inet_pton (Depends-on): Add c-ctype.
54794
54795 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54796
54797         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54798         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54799
54800 2008-08-06  Jim Meyering  <meyering@redhat.com>
54801
54802         * modules/inet_pton (License): Relicense under LGPLv2+.
54803
54804 2008-08-03  Bruno Haible  <bruno@clisp.org>
54805
54806         Additional non-aborting API for lock and tls.
54807         * lib/lock.h: Include <errno.h>.
54808         (glthread_lock_init): New macro/function.
54809         (gl_lock_init): Define as wrapper around glthread_lock_init.
54810         (glthread_lock_lock): New macro/function.
54811         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54812         (glthread_lock_unlock): New macro/function.
54813         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54814         (glthread_lock_destroy): New macro/function.
54815         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54816         (glthread_rwlock_init): New macro/function.
54817         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54818         (glthread_rwlock_rdlock): New macro/function.
54819         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54820         (glthread_rwlock_wrlock): New macro/function.
54821         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54822         (glthread_rwlock_unlock): New macro/function.
54823         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54824         (glthread_rwlock_destroy): New macro/function.
54825         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54826         (glthread_recursive_lock_init): New macro/function.
54827         (gl_recursive_lock_init): Define as wrapper around
54828         glthread_recursive_lock_init.
54829         (glthread_recursive_lock_lock): New macro/function.
54830         (gl_recursive_lock_lock): Define as wrapper around
54831         glthread_recursive_lock_lock.
54832         (glthread_recursive_lock_unlock): New macro/function.
54833         (gl_recursive_lock_unlock): Define as wrapper around
54834         glthread_recursive_lock_unlock.
54835         (glthread_recursive_lock_destroy): New macro/function.
54836         (gl_recursive_lock_destroy): Define as wrapper around
54837         glthread_recursive_lock_destroy.
54838         (glthread_once): New macro/function.
54839         (gl_once): Define as wrapper around glthread_once.
54840         Update function declarations.
54841         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54842         glthread_rwlock_init. Return error code.
54843         (glthread_rwlock_rdlock_multithreaded): Renamed from
54844         glthread_rwlock_rdlock. Return error code.
54845         (glthread_rwlock_wrlock_multithreaded): Renamed from
54846         glthread_rwlock_wrlock. Return error code.
54847         (glthread_rwlock_unlock_multithreaded): Renamed from
54848         glthread_rwlock_unlock. Return error code.
54849         (glthread_rwlock_destroy_multithreaded): Renamed from
54850         glthread_rwlock_destroy. Return error code.
54851         (glthread_recursive_lock_init_multithreaded): Renamed from
54852         glthread_recursive_lock_init. Return error code.
54853         (glthread_recursive_lock_lock_multithreaded): Renamed from
54854         glthread_recursive_lock_lock. Return error code.
54855         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54856         glthread_recursive_lock_unlock. Return error code.
54857         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54858         glthread_recursive_lock_destroy. Return error code.
54859         (glthread_once_call): Make static.
54860         (glthread_once_multithreaded): Renamed from glthread_once.
54861         * lib/tls.h: Include <errno.h>.
54862         (glthread_tls_key_init): New macro/function.
54863         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54864         (glthread_tls_set): New macro/function.
54865         (gl_tls_set): Define as wrapper around glthread_tls_set.
54866         (glthread_tls_key_destroy): New macro/function.
54867         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54868         Update function declarations.
54869         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54870         glthread_tls_get.
54871         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54872
54873 2008-08-04  Eric Blake  <ebb9@byu.net>
54874
54875         gnumakefile: use space, not TAB, outside of targets
54876         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54877
54878 2008-08-02  Jim Meyering  <meyering@redhat.com>
54879
54880         getdate.y: avoid locale-dependent date parsing failure
54881         In Turkish locales, getdate would fail to recognize keywords
54882         containing a lowercase "i".  The solution is not to rely on
54883         locale-sensitive case-conversion.
54884         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54885         (lookup_word): Use c_toupper in place of toupper.
54886         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54887         Reported by Vefa Bicakci <bicave@superonline.com> in
54888         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54889         * modules/getdate (Depends-on): Add c-ctype.
54890
54891 2008-08-02  Bruno Haible  <bruno@clisp.org>
54892
54893         * gnulib-tool (func_import): When updating or creating a .gitignore
54894         file, prepend each added line with a slash, and ignore leading slashes
54895         from the existing lines.
54896         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54897
54898 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54899
54900         Portability fix for GNU make 3.79.1.
54901         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54902         versions do not understand.
54903
54904 2008-08-01  Bruno Haible  <bruno@clisp.org>
54905
54906         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54907         * tests/test-isnanf.h (zero): New variable.
54908         (main): Avoid literal -0.0f.
54909         * tests/test-isnand.h (zero): New variable.
54910         (main): Avoid literal -0.0.
54911         * tests/test-isnanl.h (zero): New variable.
54912         (main): Avoid literal -0.0L.
54913         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54914         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54915         -0.0, -0.0L.
54916         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54917         (test_signbitd): Avoid literal -0.0.
54918         (test_signbitl): Avoid literal -0.0L.
54919         * tests/test-ceilf1.c (zero): New variable.
54920         (main): Avoid literal -0.0f.
54921         * tests/test-ceill.c (zero): New variable.
54922         (main): Avoid literal -0.0L.
54923         * tests/test-floorf1.c (zero): New variable.
54924         (main): Avoid literal -0.0f.
54925         * tests/test-floorl.c (zero): New variable.
54926         (main): Avoid literal -0.0L.
54927         * tests/test-roundf1.c (zero): New variable.
54928         (main): Avoid literal -0.0f.
54929         * tests/test-round1.c (zero): New variable.
54930         (main): Avoid literal -0.0.
54931         * tests/test-roundl.c (zero): New variable.
54932         (main): Avoid literal -0.0L.
54933         * tests/test-truncf1.c (zero): New variable.
54934         (main): Avoid literal -0.0f.
54935         * tests/test-trunc1.c (zero): New variable.
54936         (main): Avoid literal -0.0.
54937         * tests/test-truncl.c (zero): New variable.
54938         (main): Avoid literal -0.0L.
54939         * tests/test-frexp.c (zero): New variable.
54940         (main): Avoid literal -0.0.
54941         * tests/test-frexpl.c (zero): New variable.
54942         (main): Avoid literal -0.0L.
54943         * tests/test-ldexpl.c (zero): New variable.
54944         (main): Avoid literal -0.0L.
54945         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54946         (zerod, zerol): New variables.
54947         (test_function): Avoid literals -0.0, -0.0L.
54948         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54949         (zerod, zerol): New variables.
54950         (test_function): Avoid literals -0.0, -0.0L.
54951         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54952         (zerod, zerol): New variables.
54953         (test_function): Avoid literals -0.0, -0.0L.
54954         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54955         (zerod, zerol): New variables.
54956         (test_function): Avoid literals -0.0, -0.0L.
54957         * tests/test-strtod.c (zero): New variable.
54958         (main): Avoid literal -0.0.
54959         Reported by Jonathan C. Patschke <jp@centtech.com>.
54960
54961 2008-07-31  Jim Meyering  <meyering@redhat.com>
54962
54963         sha256.h: correct definition of SHA224_DIGEST_SIZE
54964         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54965         Reported by Paulie Pena IV <paulie4@gmail.com>.
54966         Define as 224 / 8, rather than as a literal.
54967         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54968         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54969         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54970
54971 2008-07-31  Bruno Haible  <bruno@clisp.org>
54972
54973         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54974         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54975         Reported by Jonathan Patschke <jp@centtech.com>.
54976
54977 2008-07-31  Bruno Haible  <bruno@clisp.org>
54978
54979         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54980         Reported by Paolo Bonzini <bonzini@gnu.org>.
54981
54982 2008-07-30  Eric Blake  <ebb9@byu.net>
54983
54984         test-strtod: allow compilation without -lm
54985         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54986         Reported by Dennis Clarke <blastwave@gmail.com>.
54987
54988 2008-07-28  Jim Meyering  <meyering@redhat.com>
54989
54990         bootstrap: work also when there are no .po files in po/
54991         * build-aux/bootstrap (update_po_files): Complete the change
54992         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54993
54994 2008-07-27  Jim Meyering  <meyering@redhat.com>
54995
54996         * users.txt: Add zile.
54997
54998 2008-07-26  Ben Pfaff  <blp@gnu.org>
54999
55000         Add missing dependencies on new m4/exponent[fdl].m4 files.
55001         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55002         * modules/isnand-nolibm: Add m4/exponentd.m4.
55003         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55004         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55005         m4/isnan[fdl].m4, because the macros actually used moved.
55006         Reported by Jim Meyering.
55007
55008 2008-07-14  Ben Pfaff  <blp@gnu.org>
55009
55010         Add isinf module.
55011         * lib/isinf.c: New file.
55012         * lib/math.in.h: Define isinf macro if we have decided to replace
55013         it.
55014         * m4/isinf.m4: New file.
55015         * m4/math_h.m4: Initialize and substitute variables for isinf
55016         module.
55017         * modules/isinf: New file.
55018         * modules/isinf-tests: New file.
55019         * modules/math: Add substitutions for new module.
55020         * tests/test-isinf.c: New file.
55021         * doc/posix-functions/isinf.texi: Mention new module.
55022         * MODULES.html.sh: Mention new module.
55023
55024 2008-07-14  Ben Pfaff  <blp@gnu.org>
55025
55026         Factor out some macros for use by additional modules.
55027         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55028         exponentf.m4.
55029         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55030         exponentd.m4.
55031         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55032         file exponentl.m4.
55033         * m4/exponentf.m4: New file.
55034         * m4/exponentd.m4: New file.
55035         * m4/exponentl.m4: New file.
55036         * modules/isnanf: Use new file m4/exponentf.m4.
55037         * modules/isnand: Use new file m4/exponentd.m4.
55038         * modules/isnanl: Use new file m4/exponentl.m4.
55039
55040 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55041
55042         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55043         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55044         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55045         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55046
55047         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55048         readlink on platforms without PATH_MAX.
55049
55050 2008-07-21  Eric Blake  <ebb9@byu.net>
55051
55052         Warn, not fail, on stale version.
55053         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55054
55055         Don't allow installation with stale devel version number.
55056         * top/GNUmakefile (_is-install-target): New macro.
55057         (_curr-ver): Forbid installation with stale version number.
55058
55059 2008-07-20  Bruno Haible  <bruno@clisp.org>
55060
55061         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55062         TESTS_ENVIRONMENT.
55063         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55064
55065 2008-07-20  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/c-stack.h (c_stack_action): Add documentation.
55068         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55069
55070 2008-07-20  Bruno Haible  <bruno@clisp.org>
55071
55072         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55073         * modules/readlink (License): Likewise.
55074
55075 2008-07-17  Eric Blake  <ebb9@byu.net>
55076
55077         * modules/c-stack (Link): Fix typo.
55078
55079         Make c-stack use libsigsegv, when available.
55080         * modules/c-stack (Depends-on): Add libsigsegv.
55081         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55082         needed.
55083         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55084         (segv_handler, overflow_handler, c_stack_action)
55085         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55086         implementation when libsigsegv is available, but only when using
55087         the library is necessary.
55088         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55089         comment, explaining why XSI check fails on Linux.
55090         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55091         * tests/test-c-stack2.sh: Tweak skip message.
55092         * NEWS: Document new link-time requirements.
55093
55094 2008-07-16  Eric Blake  <ebb9@byu.net>
55095
55096         c-stack: Expose false positives when not using libsigsegv.
55097         * modules/c-stack-tests (Files): Expand test.
55098         * tests/test-c-stack.c (main): Add means to conditionally trigger
55099         non-overflow SIGSEGV.
55100         * tests/test-c-stack2.sh: New file.
55101
55102 2008-07-14  Bruno Haible  <bruno@clisp.org>
55103
55104         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55105         Reported by Eric Blake.
55106
55107 2008-07-14  Sam Steingold  <sds@gnu.org>
55108             Bruno Haible  <bruno@clisp.org>
55109
55110         New module libsigsegv.
55111         * modules/libsigsegv: New file.
55112         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55113         modifications.
55114         * MODULES.html.sh (Signal handling): New section.
55115
55116 2008-07-14  Bruno Haible  <bruno@clisp.org>
55117
55118         * modules/unictype/ctype-* (Description): Add the word "function".
55119         Improves the resulting doc in MODULES.html.
55120
55121 2008-07-12  Ben Pfaff  <blp@gnu.org>
55122
55123         Add longlong module.
55124         * modules/longlong: New file.
55125
55126 2008-07-12  Bruno Haible  <bruno@clisp.org>
55127
55128         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55129         to empty.
55130
55131 2008-07-10  Ben Pfaff  <blp@gnu.org>
55132
55133         Add isnan module.
55134         * doc/posix-functions/isnan.texi: Mention new module.
55135         * lib/math.in.h: Define isnan macro if we have decided to replace
55136         it.
55137         * m4/isnan.m4: New file.
55138         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55139         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55140         also.
55141         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55142         redundancy.
55143         * m4/math_h.m4: Initialize and substitute variables for isnan
55144         module.
55145         * modules/isnan: New file.
55146         * modules/isnan-tests: New file.
55147         * modules/math: Add substitutions for new module.
55148         * tests/test-isnan.c: New file.
55149         * MODULES.html.sh: Mention new module.
55150
55151 2008-07-10  Ben Pfaff  <blp@gnu.org>
55152
55153         Add isnanf module.
55154         * lib/isnanf.m4: New file.
55155         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55156         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55157         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55158         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55159         * modules/isnanf: New file.
55160         * modules/isnanf-tests: New file.
55161         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55162         files.
55163         * tests/test-isnanf-nolibm.c: factored most of its contents into
55164         new file tests/test-isnanf.h.
55165         * tests/test-isnanf.h: New file.
55166         * tests/test-isnanf.c: New file.
55167         * MODULES.html.sh: Mention new module.
55168         * doc/glibc-functions/isnanf.texi: Mention new module.
55169
55170 2008-07-10  Ben Pfaff  <blp@gnu.org>
55171
55172         Add isnand module.
55173         * lib/isnand.h: New file.
55174         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55175         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55176         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55177         functionality also.
55178         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55179         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55180         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55181         * modules/isnand: New file.
55182         * modules/isnand-tests: New file.
55183         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55184         files.
55185         * tests/test-isnand-nolibm.c: factored most of its contents into
55186         new file tests/test-isnand.h.
55187         * tests/test-isnand.h: New file.
55188         * tests/test-isnand.c: New file.
55189         * MODULES.html.sh: Mention new module.
55190
55191 2008-07-10  Ben Pfaff  <blp@gnu.org>
55192
55193         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55194         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55195         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55196         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55197         * modules/isnanf-nolibm: Update references to renamed files.
55198         * modules/isnand-nolibm: Likewise.
55199         * modules/isnanf-nolibm-tests: Likewise.
55200         * modules/isnand-nolibm-tests: Likewise.
55201         * lib/frexp.c: Likewise.
55202         * lib/isfinite.c: Likewise.
55203         * lib/signbitd.c: Likewise.
55204         * lib/signbitf.c: Likewise.
55205         * lib/vasnprintf.c: Likewise.
55206         * tests/test-ceilf1.c: Likewise.
55207         * tests/test-ceilf2.c: Likewise.
55208         * tests/test-floorf1.c: Likewise.
55209         * tests/test-floorf2.c: Likewise.
55210         * tests/test-frexp.c: Likewise.
55211         * tests/test-round1.c: Likewise.
55212         * tests/test-round2.c: Likewise.
55213         * tests/test-roundf1.c: Likewise.
55214         * tests/test-strtod.c: Likewise.
55215         * tests/test-trunc1.c: Likewise.
55216         * tests/test-trunc2.c: Likewise.
55217         * tests/test-truncf1.c: Likewise.
55218         * tests/test-truncf2.c: Likewise.
55219         * NEWS: Mention the renamed header files.
55220
55221 2008-07-11  Jim Meyering  <meyering@redhat.com>
55222
55223         vc-list-files: make the last-resort awk code more portable
55224         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55225         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55226         does not support it.
55227
55228 2008-07-10  Eric Blake  <ebb9@byu.net>
55229
55230         Work with tar's bootstrap.
55231         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55232         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55233         an m4 comment.
55234
55235 2008-07-09  Jim Meyering  <meyering@redhat.com>
55236
55237         posix-shell.m4: fix typo that made this test malfunction
55238         * m4/posix-shell.m4: Remove capitalization in variable name.
55239
55240 2008-07-08  Bruno Haible  <bruno@clisp.org>
55241
55242         * m4/onceonly.m4: Update comments.
55243         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55244
55245 2008-07-04  Jim Meyering  <meyering@redhat.com>
55246
55247         * users.txt: Add vc-dwim.
55248         (bison, coreutils): Use the gitweb URL.
55249
55250 2008-07-03  Jim Meyering  <meyering@redhat.com>
55251
55252         * users.txt: Add libffcall.  From Sam Steingold.
55253
55254 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
55255
55256         getdate.y: do not ignore TZ with relative day, month or year offset
55257         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55258         relative-date-handling, since otherwise, the latter would clobber the
55259         sole output (an updated Start value) of the tz-handling block.
55260         * tests/test-getdate.c: Tests for the fix
55261
55262 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55263
55264         Recognize 'foo_LIBRARIES += libgnu.a'.
55265         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55266         makefile snippet has already specified an installation location,
55267         also using '+='.
55268
55269 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
55270
55271         getdate.y: factor out common actions
55272         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55273         Use them in place of open-coded actions.
55274
55275 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55276
55277         Add self-test for getdate module.
55278         * modules/getdate-tests: New file.
55279         * tests/test-getdate.c: New file.
55280
55281 2008-06-29  Bruno Haible  <bruno@clisp.org>
55282
55283         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55284         .gitignore.
55285         Reported by Sylvain Beucler <beuc@beuc.net>.
55286
55287 2008-06-29  Bruno Haible  <bruno@clisp.org>
55288
55289         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55290         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55291
55292 2008-06-29  Bruno Haible  <bruno@clisp.org>
55293
55294         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55295         EXTRA_DIST.
55296         Reported by Sylvain Beucler <beuc@beuc.net>.
55297
55298 2008-06-26  Jim Meyering  <meyering@redhat.com>
55299
55300         make several modules depend on the "open" module
55301         This provides slightly increased consistency when opening-for-write
55302         the name of a non-directory spelled with a trailing slash.
55303         * modules/chdir-safer: Likewise.
55304         * modules/chown: Likewise.
55305         * modules/clean-temp: Likewise.
55306         * modules/copy-file: Likewise.
55307         * modules/fchdir: Likewise.
55308         * modules/fcntl-safer: Likewise.
55309         * modules/pipe: Likewise.
55310         * modules/utime: Likewise.
55311         Prompted by Eric Blake and Bruno Haible.
55312
55313 2008-06-24  Andreas Schwab  <schwab@suse.de>
55314
55315         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55316         literals can be used as initializers for global variables.
55317
55318 2008-06-23  Eric Blake  <ebb9@byu.net>
55319
55320         Make gnulib-cache.m4 easier to diff.
55321         * gnulib-tool (func_import): Allow newlines when reading cached
55322         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55323
55324 2008-06-23  Bruno Haible  <bruno@clisp.org>
55325
55326         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55327         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55328         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55329         m4/signalblocking.m4.
55330         (gl_PREREQ_SIGACTION): Don't invoke it.
55331         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55332         gl_PREREQ_SIG_HANDLER_H.
55333         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55334         Don't check for sigaction here.
55335
55336 2008-06-23  Bruno Haible  <bruno@clisp.org>
55337
55338         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55339         (install_handlers): Don't set the SA_RESETHAND flag.
55340
55341 2008-06-23  Bruno Haible  <bruno@clisp.org>
55342
55343         * m4/sigaction.m4: Comment fixes.
55344         * lib/signal.in.h: Likewise.
55345
55346 2008-06-23  Eric Blake  <ebb9@byu.net>
55347
55348         Fix typo.
55349         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55350
55351         Avoid SA_ namespace.
55352         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55353         Reported by Ralf Wildenhues.
55354
55355         Avoid test failure due to SA_RESTORER.
55356         * tests/test-sigaction.c (SA_MASK): New macro.
55357         (main): Avoid failing due to extension flags being set.
55358         Reported by Jim Meyering.
55359
55360         Revert use of sig-handler.h in sigprocmask.c.
55361         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55362         it requires the existence of struct sigaction.
55363         * lib/sigprocmask.c (handler_t): Restore typedef.
55364         (rpl_signal, old_handlers): Use local type.
55365
55366 2008-06-22  Bruno Haible  <bruno@clisp.org>
55367
55368         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55369         conditionally.
55370         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55371
55372 2008-06-22  Bruno Haible  <bruno@clisp.org>
55373
55374         * doc/posix-functions/siginterrupt.texi: Move note.
55375
55376         * lib/signal.in.h (SA_RESTART): New macro.
55377         * lib/sigaction.c: Update comment.
55378
55379         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55380
55381         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55382         (gl_PREREQ_SIGPROCMASK): Invoke it.
55383         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55384
55385         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55386
55387         * lib/sigprocmask.c: Update a comment.
55388
55389 2008-06-21  Eric Blake  <ebb9@byu.net>
55390
55391         Use sigaction module rather than signal().
55392         * modules/c-stack (Depends-on): Add sigaction.
55393         * modules/fatal-signal (Depends-on): Likewise.
55394         * modules/nanosleep (Depends-on): Likewise.
55395         * modules/sigprocmask (Files): Add sig-handler.h.
55396         * modules/sigaction (Files): Likewise.
55397         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55398         Eggert.
55399         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55400         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55401         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55402         (init_fatal_signals): Likewise.
55403         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55404         (siginterrupt): Delete fallback.
55405         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55406         instead.
55407         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55408         siginterrupt.
55409
55410         New module sigaction, for mingw.
55411         * modules/sigaction: New module...
55412         * modules/sigaction-tests: ...and its test.
55413         * m4/sigaction.m4: New file.
55414         * lib/sigaction.c: Likewise.
55415         * tests/test-sigaction.c: Likewise.
55416         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55417         * modules/signal (Makefile.am): Likewise.
55418         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55419         needed.
55420         * doc/posix-headers/signal.texi (signal.h): Mention provided
55421         types.
55422         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55423         that sigaction is preferable.
55424         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55425         module.
55426         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55427         sigaction.
55428
55429         Improve robustness of sigprocmask by overriding signal.
55430         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55431         is in use.
55432         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55433         (SIGKILL, SIGSTOP): Provide fallbacks.
55434         (rpl_signal): Implement.
55435         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55436         signal can be called inside handlers.
55437
55438         Fix nanosleep module on mingw.
55439         * modules/nanosleep (Depends-on): Add sys_select.
55440         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55441
55442         Fix licensing of sigprocmask.
55443         * modules/raise (License): Relicense as LGPL.
55444
55445 2008-06-21  Bruno Haible  <bruno@clisp.org>
55446
55447         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55448         result if it contains question marks.
55449         Reported by Michael Geng <linux@michaelgeng.de>.
55450
55451 2008-06-19  Bruno Haible  <bruno@clisp.org>
55452
55453         Fix CVS-ism.
55454         * doc/gnulib.texi: Include updated-stamp.texi.
55455         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55456         (updated-stamp.texi): New rule.
55457         (gnulib.info): Depend on it.
55458         * doc/.gitignore: Add updated-stamp.texi.
55459         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55460
55461 2008-06-19  Bruno Haible  <bruno@clisp.org>
55462
55463         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55464         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55465
55466 2008-06-19  Eric Blake  <ebb9@byu.net>
55467
55468         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55469         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55470         Reported by Stepan Kasal.
55471
55472 2008-06-18  Bruno Haible  <bruno@clisp.org>
55473
55474         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55475         Reported by Eric Blake.
55476
55477 2008-06-18  Eric Blake  <ebb9@byu.net>
55478
55479         Work around cygwin 1.5.25 strsignal bug.
55480         * tests/test-strsignal.c: Allow for const char *.
55481         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55482
55483 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55484
55485         * users.txt: Update URL to article and add author/date
55486         information.
55487
55488 2008-06-17  Bruno Haible  <bruno@clisp.org>
55489
55490         New macro gl_DISABLE_THREADS.
55491         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55492         if the user did not pass --enable-threads or --disable-threads option.
55493         (gl_DISABLE_THREADS): New macro.
55494         Reported by Eric Blake <ebb9@byu.net>.
55495
55496 2008-06-17  Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55499         when the macro ignores it.
55500         Based on a patch by Eric Blake <ebb9@byu.net>.
55501
55502 2008-06-17  Bruno Haible  <bruno@clisp.org>
55503
55504         * modules/tls (License): Change to LGPLv2+.
55505         Reported by Eric Blake.
55506
55507 2008-06-17  Eric Blake  <ebb9@byu.net>
55508
55509         Simplify c-stack prerequisites.
55510         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55512         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55513         check.
55514         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55515         <sys/resource.h>.
55516
55517         Move c-stack test into testsuite.
55518         * modules/c-stack-tests: New file.
55519         * lib/c-stack.c [DEBUG]: Move test program...
55520         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55521         fail test if sigaltstack is lacking.
55522         * tests/test-c-stack.sh: New driver file.
55523
55524 2008-06-16  Eric Blake  <ebb9@byu.net>
55525
55526         Use raise module consistently.
55527         * modules/fatal-signal (Depends-on): Add raise.
55528         * modules/sigprocmask (Depends-on): Likewise.
55529         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55530         * lib/sigprocmask.c (sigprocmask): Likewise.
55531         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55532         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55533
55534         Fix compliance bug in sigpending.
55535         * lib/sigprocmask.c (sigpending): Return pending array via
55536         parameter, not return value.
55537
55538 2008-06-14  Eric Blake  <ebb9@byu.net>
55539
55540         Improve obstack-printf test code.
55541         * tests/test-obstack-printf.c (test_function): Fix comment, and
55542         simplify usage of obstack_* in macros.  Add a test for coverage.
55543         Reported by Bruno Haible.
55544
55545 2008-06-14  Bruno Haible  <bruno@clisp.org>
55546
55547         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55548         array size as a constant, not as a const variable.
55549         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55550         AC_USE_SYSTEM_EXTENSIONS.
55551         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55552         Test whether the obstack_printf function actually exists.
55553         * modules/obstack-printf (Depends-on): Add extensions.
55554         (Include): Remove obstack.h.
55555         * modules/obstack-printf-posix (Depends-on): Add extensions.
55556         (Include): Remove obstack.h.
55557
55558 2008-06-13  Eric Blake  <ebb9@byu.net>
55559
55560         Add obstack-printf and obstack-printf-posix modules.
55561         * modules/obstack-printf: New file.
55562         * modules/obstack-printf-posix: Likewise.
55563         * MODULES.html.sh (Misc): Mention them.
55564         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55565         Likewise.
55566         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55567         Likewise.
55568         * modules/stdio (Makefile.am): Accomodate new modules.
55569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55570         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55571         Declare.
55572         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55573         functions.
55574         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55575         (gl_REPLACE_OBSTACK_PRINTF): New macros
55576         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55577         * tests/test-obstack-printf.c: New file.
55578         * modules/obstack-printf-tests: Likewise.
55579         * modules/obstack-printf-posix-tests: Likewise.
55580
55581 2008-06-11  Bruno Haible  <bruno@clisp.org>
55582
55583         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55584         * lib/open.c: Include errno.h.
55585         (open): Fail when attempting to write to a file that has a trailing
55586         slash.
55587         * tests/test-open.c (main): Test against trailing slash bug.
55588         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55589
55590 2008-06-10  Bruno Haible  <bruno@clisp.org>
55591
55592         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55593         for $? to work inside the trap command, with various /bin/sh-s.
55594         * tests/test-vc-list-files-cvs.sh: Likewise.
55595
55596 2008-06-10  Bruno Haible  <bruno@clisp.org>
55597
55598         * lib/acl-internal.h: Don't include gettext.h here.
55599         * lib/set-mode-acl.c: Include gettext.h here.
55600         * lib/copy-acl.c: Likewise.
55601
55602 2008-06-10  Bruno Haible  <bruno@clisp.org>
55603
55604         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55605         * lib/wait-process.c (wait_subprocess): Likewise.
55606         * lib/execute.h (execute): Add termsigp argument.
55607         * lib/execute.c (execute): Likewise.
55608         * lib/csharpcomp.c (compile_csharp_using_pnet,
55609         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55610         * lib/csharpexec.c (execute_csharp_using_pnet,
55611         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55612         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55613         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55614         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55615         is_jikes_present): Update.
55616         * lib/javaexec.c (execute_java_class): Update.
55617         * lib/javaversion.c (execute_and_read_line): Update.
55618         * NEWS: Document the changes.
55619         Reported by Eric Blake.
55620
55621 2008-06-10  Eric Blake  <ebb9@byu.net>
55622
55623         Add missing include.
55624         * tests/test-strstr.c (includes): Add <signal.h>.
55625         * tests/test-strcasestr.c (includes): Likewise.
55626         * tests/test-memmem.c (includes): Likewise.
55627
55628 2008-06-10  Bruno Haible  <bruno@clisp.org>
55629
55630         * lib/wait-process.c (wait_subprocess): Add an assertion.
55631
55632 2008-06-10  Bruno Haible  <bruno@clisp.org>
55633
55634         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55635
55636 2008-06-10  Bruno Haible  <bruno@clisp.org>
55637
55638         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55639         using alarm().
55640         * tests/test-strcasestr.c (main): Likewise.
55641         * tests/test-strstr.c (main): Likewise.
55642
55643 2008-06-09  Bruno Haible  <bruno@clisp.org>
55644
55645         Work around the Solaris 10 ACE ACLs ABI change.
55646         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55647         declare if ACL_NO_TRIVIAL is present.
55648         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55649         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55650         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55651         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55652         define if ACL_NO_TRIVIAL is present.
55653         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55654         and use the current ABI.
55655         (file_has_acl): Use same #if condition as elsewhere.
55656         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55657         in use, and use the current ABI.
55658         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55659         Reported by Jim Meyering.
55660
55661 2008-06-09  Eric Blake  <ebb9@byu.net>
55662
55663         Work around environments that (stupidly) ignore SIGALRM.
55664         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55665         before using alarm().
55666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55667         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55668         Reported by Ian Beckwith <ianb@erislabs.net>.
55669
55670         Produce autobuild blurb earlier in log.
55671         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55672
55673 2008-06-09  Jim Meyering  <meyering@redhat.com>
55674         and Ondřej Vašík  <ovasik@redhat.com>
55675
55676         utimens.c: correct kernel bug work-around
55677         Ondřej Vašík found that the invalid return value of 280 indicates
55678         failure, not success, and the kernel bug we're trying to work
55679         around affects not just the utimensat call, but also the fallback
55680         futimens call.
55681         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55682         not success.
55683         [HAVE_FUTIMENS]: Use the same work-around, here.
55684
55685 2008-06-09  Jim Meyering  <meyering@redhat.com>
55686
55687         add more guards around definition of ACE_-related code
55688         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55689         ALLOW and ACE_OWNER are also defined.
55690
55691 2008-06-08  Bruno Haible  <bruno@clisp.org>
55692
55693         * lib/acl-internal.h: Add me as co-author.
55694         * lib/file-has-acl.c: Likewise.
55695         * lib/set-mode-acl.c: Likewise.
55696         * lib/copy-acl.c: Likewise.
55697
55698 2008-06-08  Bruno Haible  <bruno@clisp.org>
55699
55700         Add support for AIX ACLs.
55701         * lib/acl-internal.h (acl_nontrivial): New declaration.
55702         * lib/file-has-acl.c (acl_nontrivial): New function.
55703         (file_has_acl): Add implementation using AIX 4 ACL API.
55704         * lib/set-mode-acl.c (qset_acl): Likewise.
55705         * lib/copy-acl.c (qcopy_acl): Likewise.
55706
55707 2008-06-08  Bruno Haible  <bruno@clisp.org>
55708
55709         Add support for HP-UX ACLs.
55710         * lib/acl-internal.h (acl_nontrivial): New declaration.
55711         * lib/file-has-acl.c (acl_nontrivial): New function.
55712         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55713         * lib/set-mode-acl.c (qset_acl): Likewise.
55714         * lib/copy-acl.c (qcopy_acl): Likewise.
55715
55716 2008-06-08  Bruno Haible  <bruno@clisp.org>
55717
55718         Add support for Cygwin ACLs.
55719         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55720         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55721         the chmod_or_fchmod call.
55722         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55723
55724 2008-06-08  Bruno Haible  <bruno@clisp.org>
55725
55726         Fix bug with setuid modes in Solaris 10+ code.
55727         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55728         succeeded, when the mode contains some special bits.
55729
55730 2008-06-08  Bruno Haible  <bruno@clisp.org>
55731
55732         Add support for Solaris 7..10 ACLs.
55733         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55734         declarations.
55735         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55736         functions.
55737         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55738         * lib/set-mode-acl.c (qset_acl): Likewise.
55739         * lib/copy-acl.c (qcopy_acl): Likewise.
55740
55741 2008-06-08  Bruno Haible  <bruno@clisp.org>
55742
55743         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55744         declaration.
55745         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55746         (acl_access_nontrivial): Remove MacOS X case.
55747         (file_has_acl): Use acl_extended_nontrivial.
55748         * lib/copy-acl.c (qcopy_acl): Likewise.
55749
55750 2008-06-08  Bruno Haible  <bruno@clisp.org>
55751
55752         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55753
55754 2008-06-08  Jim Meyering  <meyering@redhat.com>
55755
55756         * modules/acl (Maintainer): Add Bruno Haible.
55757
55758 2008-06-07  Bruno Haible  <bruno@clisp.org>
55759
55760         Improve support for Tru64 ACLs.
55761         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55762         ACL on OSF/1.
55763
55764 2008-06-07  Bruno Haible  <bruno@clisp.org>
55765
55766         Add support for MacOS X ACLs.
55767         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55768         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55769         * lib/set-mode-acl.c (qset_acl): Likewise.
55770         * lib/copy-acl.c (qcopy_acl): Likewise.
55771
55772 2008-06-07  Bruno Haible  <bruno@clisp.org>
55773
55774         Fix memory leak introduced on 2008-05-22.
55775         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55776         use.
55777
55778 2008-06-07  Bruno Haible  <bruno@clisp.org>
55779
55780         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55781         to construct an empty ACL.
55782
55783 2008-06-07  Bruno Haible  <bruno@clisp.org>
55784
55785         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55786         precisely.
55787         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55788
55789 2008-06-07  Bruno Haible  <bruno@clisp.org>
55790
55791         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55792         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55793
55794 2008-06-07  Bruno Haible  <bruno@clisp.org>
55795
55796         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55797         regardless of POSIX.
55798         * doc/posix-functions/_longjmp.texi: Likewise.
55799         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55800         SystemV platform in this case.
55801
55802 2008-06-06  Eric Blake  <ebb9@byu.net>
55803
55804         Document abort() bugs.
55805         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55806
55807         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55808         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55809         sigsetjmp.
55810         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55811         siglongjmp, but only as a macro.
55812         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55813         is obsolete.
55814         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55815
55816         Tweak documentation to cover cygwin argz bugs.
55817         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55818         argz bug fix; no code change needed since no cygwin releases
55819         occurred between the last fix and the bug being tested.
55820         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55821         module and recently fixed cygwin bugs.
55822         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55823         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55824         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55825         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55826         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55827         Likewise.
55828         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55829         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55830         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55831         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55832         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55833         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55834         Likewise.
55835
55836         Avoid gcc warning on cygwin.
55837         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55838         !ACL_NO_TRIVIAL]: Avoid unused variable.
55839
55840 2008-06-05  Eric Blake  <ebb9@byu.net>
55841
55842         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55843         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55844         git-version-gen fails to come up with a version.
55845         Reported by Simon Josefsson.
55846
55847 2008-06-05  Jim Meyering  <meyering@redhat.com>
55848             Paul Eggert  <eggert@cs.ucla.edu>
55849
55850         utimens.c: work around a probable Linux kernel bug
55851         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55852         appears to be a kernel bug that causes utimensat to return 280
55853         instead of 0, indicating success.
55854
55855 2008-06-04  Bruno Haible  <bruno@clisp.org>
55856
55857         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55858         2008-06-01 commit.
55859
55860 2008-06-04  Bruno Haible  <bruno@clisp.org>
55861
55862         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55863         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55864         (file_has_acl): Use it. Save errno afterwards.
55865         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55866
55867 2008-06-03  Bruno Haible  <bruno@clisp.org>
55868
55869         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55870         draft code. Simplify #ifs.
55871         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55872         Put Solaris code after POSIX-draft code. Fix comments regarding
55873         Solaris 10, HP-UX. Mention Cygwin.
55874         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55875
55876 2008-06-03  Eric Blake  <ebb9@byu.net>
55877
55878         Provide fallback for older kernels.
55879         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55880         Provide runtime fallback if kernel lacks support.
55881         Reported by Mike Frysinger.
55882
55883 2008-06-02  Bruno Haible  <bruno@clisp.org>
55884
55885         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55886         it exists.
55887
55888 2008-06-02  Bruno Haible  <bruno@clisp.org>
55889
55890         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55891         * lib/copy-acl.c (qcopy_acl): Update comment.
55892
55893 2008-06-02  Bruno Haible  <bruno@clisp.org>
55894
55895         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55896         like ACL APIs.
55897
55898 2008-06-02  Bruno Haible  <bruno@clisp.org>
55899
55900         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55901         * tests/test-set-mode-acl.sh: Likewise.
55902         * tests/test-copy-acl.sh: Likewise.
55903         * tests/test-copy-file.sh: Likewise.
55904
55905 2008-06-02  Bruno Haible  <bruno@clisp.org>
55906
55907         * tests/test-file-has-acl.sh: Remove unused code.
55908
55909 2008-06-01  Bruno Haible  <bruno@clisp.org>
55910
55911         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55912         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55913         messages.
55914         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55915
55916 2008-06-01  Bruno Haible  <bruno@clisp.org>
55917
55918         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55919         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55920         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55921         APIs.
55922         * modules/acl-tests (configure.ac): Remove tests now contained in
55923         m4/acl.m4.
55924
55925 2008-06-02  Jim Meyering  <meyering@redhat.com>
55926
55927         announce-gen: use a better key-server host name
55928         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55929         it may be more consistently reliable.  Suggested by Werner Koch
55930         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55931
55932 2008-06-01  Bruno Haible  <bruno@clisp.org>
55933
55934         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55935         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55936
55937 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55938
55939         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55940
55941 2008-06-01  Bruno Haible  <bruno@clisp.org>
55942
55943         New ACL tests.
55944         * tests/test-file-has-acl.sh: New file.
55945         * tests/test-file-has-acl.c: New file.
55946         * tests/test-set-mode-acl.sh: New file.
55947         * tests/test-set-mode-acl.c: New file.
55948         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55949         * tests/test-copy-acl.c: New file.
55950         * modules/acl-tests: New file, based on modules/copy-file-tests.
55951         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55952         (Depends-on): Add acl-tests.
55953         (configure.ac): Remove checks.
55954         (Makefile.am): Don't create test-sameacls program here any more.
55955
55956 2008-06-01  Bruno Haible  <bruno@clisp.org>
55957
55958         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55959         * tests/test-sameacls.c: Include progname.h.
55960         (main): Invoke set_program_name. Portability fixes for MacOS X,
55961         Solaris, HP-UX.
55962
55963 2008-06-01  Bruno Haible  <bruno@clisp.org>
55964
55965         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55966         function.
55967         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55968
55969 2008-06-01  Bruno Haible  <bruno@clisp.org>
55970
55971         * modules/rpmatch (Depends-on): Add strdup.
55972
55973 2008-06-01  Bruno Haible  <bruno@clisp.org>
55974
55975         * lib/pipe.c: Include unistd-safer.h.
55976         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55977         * modules/pipe (Depends-on): Add unistd-safer.
55978
55979 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55980
55981         * modules/autobuild (configure.ac): Call AB_INIT.
55982
55983 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55984
55985         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55986         Suggested by Bruno Haible <bruno@clisp.org>.
55987
55988 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55989
55990         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55991         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55992         <bruno@clisp.org>.
55993
55994 2008-05-29  Eric Blake  <ebb9@byu.net>
55995
55996         Prefer new POSIX 200x interfaces over futimesat.
55997         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55998         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55999         when available.
56000         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56001
56002 2008-05-28  Bruno Haible  <bruno@clisp.org>
56003
56004         * modules/stpcpy (License): Change to LGPLv2+.
56005         Requested by David Lutterkort <dlutter@redhat.com>.
56006
56007 2008-05-27  Bruno Haible  <bruno@clisp.org>
56008
56009         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56010         current mingw.
56011         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56012
56013 2008-05-27  Bruno Haible  <bruno@clisp.org>
56014
56015         * modules/iconv_open (Link): New section, from module 'iconv'.
56016         * modules/striconv (Link): Likewise.
56017         * modules/striconveh (Link): Likewise.
56018         * modules/xstriconv (Link): Likewise.
56019         * modules/unicodeio (Link): Likewise.
56020         * modules/propername (Link): Likewise.
56021         Reported by Jim Meyering.
56022
56023 2008-05-26  Jim Meyering  <meyering@redhat.com>
56024
56025         sha256: do not artificially restrict buffer length to be < 2^32
56026         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56027         uint32_t to size_t.
56028         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56029         to match.
56030
56031         avoid unaligned access errors, e.g., on sparc
56032         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56033         direct access through a possibly-unaligned uint64* pointer.
56034         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56035         direct access through a possibly-unaligned uint32* pointer.
56036         Prompted by this patch from Tom "spot" Callaway:
56037         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56038
56039         sha512.c: fix typo in comment
56040         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56041
56042 2008-05-25  Bruno Haible  <bruno@clisp.org>
56043
56044         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56045         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56046         (Makefile.am): Update lib_SOURCES.
56047
56048 2008-05-25  Bruno Haible  <bruno@clisp.org>
56049
56050         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56051
56052 2008-05-25  Jim Meyering  <meyering@redhat.com>
56053
56054         useless-if-before-free: freed expr may have white-space differences
56055         * build-aux/useless-if-before-free: Recognize cases in which the
56056         freed expression differs from the tested one in embedded white
56057         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56058         $1 was used, so we can't make any regexp shy.  Improved tests now
56059         detect this.
56060
56061         useless-if-before-free: accept white space in the expression.
56062         * build-aux/useless-if-before-free: For now, any white space
56063         in the expression must be identical in the free argument.
56064
56065         useless-if-before-free: efficiency tweak
56066         * build-aux/useless-if-before-free: Make the expression-matching
56067         regexp "shy".
56068         Make the *outer* regexp shy, not the expr-matching one.
56069
56070         update code-in-comment to accept cast of free arg
56071         * build-aux/useless-if-before-free: Update regexp.
56072
56073 2008-05-25  Bruno Haible  <bruno@clisp.org>
56074
56075         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56076         * modules/copy-file-tests (Files, Makefile.am): Update.
56077         * tests/test-copy-file.c (func_test_copy): Update.
56078
56079 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56080
56081         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56082
56083 2008-05-23  Bruno Haible  <bruno@clisp.org>
56084
56085         Improve support for ACLs on OSF/1.
56086         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56087         Remove fallback for unknown flavors of ACLs.
56088
56089 2008-05-22  Bruno Haible  <bruno@clisp.org>
56090
56091         Add support for ACLs on OSF/1.
56092         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56093         replacements.
56094         (acl_free_text): New macro fallback.
56095         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56096         acl_free.
56097         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56098         acl_free_text function. Require AC_C_INLINE.
56099
56100 2008-05-22  Bruno Haible  <bruno@clisp.org>
56101
56102         Make copy_acl work on MacOS X 10.5.
56103         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56104         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56105         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56106         If MODE_INSIDE_ACL, don't assume that every system has the same text
56107         representation for ACLs as FreeBSD.
56108         * lib/copy-acl.c (copy_acl): Add support for platforms with
56109         !MODE_INSIDE_ACL.
56110         * lib/file-has-acl.c (file_has_acl): Likewise.
56111         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56112         FreeBSD, MacOS X, or IRIX, respectively.
56113
56114 2008-05-22  Bruno Haible  <bruno@clisp.org>
56115
56116         * lib/acl.h: Don't include <sys/acl.h>.
56117         (GETACLCNT): Move fallback to lib/acl-internal.h.
56118         * lib/acl-internal.h: Include <sys/acl.h> here.
56119         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56120
56121 2008-05-22  Bruno Haible  <bruno@clisp.org>
56122
56123         Split off copy_acl function to separate file.
56124         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56125         * lib/acl.c (copy_acl): Moved function to separate file.
56126         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56127         * modules/acl (Files): Add lib/copy-acl.c.
56128         (Makefiles.am): Augment lib_SOURCES.
56129
56130 2008-05-22  Bruno Haible  <bruno@clisp.org>
56131
56132         * modules/copy-file-tests: New file.
56133         * tests/test-copy-file.sh: New file.
56134         * tests/test-copy-file.c: New file.
56135         * tests/test-copy-file-sameacls.c: New file.
56136
56137 2008-05-22  Eric Blake  <ebb9@byu.net>
56138
56139         Avoid gcc warning.
56140         * tests/test-memcmp.c (main): Pass NULL indirectly.
56141
56142 2008-05-21  Bruno Haible  <bruno@clisp.org>
56143
56144         Add reference doc about ACLs.
56145         * doc/acl-resources.txt: New file.
56146         * doc/acl-cygwin.txt: New file.
56147
56148 2008-05-21  Bruno Haible  <bruno@clisp.org>
56149
56150         Avoid one more warning from gcc.
56151         * lib/vasnprintf.c (IF_LINT): Update comments.
56152         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56153
56154 2008-05-21  Jim Meyering  <meyering@redhat.com>
56155
56156         avoid a warning from gcc
56157         * lib/vasnprintf.c (IF_LINT): Define.
56158         (scale10_round_decimal_long_double):
56159         Use it to avoid a "may be used uninitialized" warning.
56160         (scale10_round_decimal_double): Likewise.
56161
56162 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56163
56164         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56165         declared.
56166
56167 2008-05-20  Bruno Haible  <bruno@clisp.org>
56168
56169         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56170         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56171
56172 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56173
56174         * modules/memcmp-tests: New file.
56175         * tests/test-memcmp.c: New file.
56176
56177 2008-05-19  Bruno Haible  <bruno@clisp.org>
56178
56179         * modules/propername (Notice, configure.ac): Put quoted "..." into
56180         --keyword option.
56181         * lib/propername.h: Update comments accordingly.
56182         Reported by Eric Blake.
56183
56184 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56185
56186         * modules/getpass-gnu (Depends-on): Add fseeko.
56187
56188 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56189
56190         * modules/base64-tests: New file.
56191
56192 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56193
56194         * lib/base64.c (base64_decode_ctx): If a decode context structure
56195         was passed in use it to ignore newlines.  If a context structure
56196         was _not_ passed in, continue to treat newlines as garbage (this
56197         is the historical behavior).  Formerly base64_decode.
56198         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56199         takes a decode context structure.
56200         * lib/base64.h (base64_decode): Macro for four-argument calls.
56201         (base64_decode_alloc): Likewise.
56202         * lib/base64.c (base64_decode_ctx): If a decode context structure
56203         was passed in use it to ignore newlines.  If a context structure
56204         was _not_ passed in, continue to treat newlines as garbage (this
56205         is the historical behavior).  Formerly base64_decode.
56206         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56207         takes a decode context structure.
56208         * lib/base64.h (base64_decode): Macro for four-argument calls.
56209         (base64_decode_alloc): Likewise.
56210
56211 2008-05-19  Jim Meyering  <meyering@redhat.com>
56212
56213         avoid a warning from gcc
56214         * lib/trim.c (IF_LINT): Define.
56215         (trim2): Use it to avoid a "may be used uninitialized" warning.
56216
56217         Fix doc typo.
56218         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56219
56220 2008-05-19  Bruno Haible  <bruno@clisp.org>
56221
56222         * doc/glibc-functions/getpass.texi: Document limits of other
56223         implementations.
56224
56225 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56226             Bruno Haible <bruno@clisp.org>
56227
56228         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56229
56230 2008-05-18  Bruno Haible  <bruno@clisp.org>
56231
56232         * modules/propername: New file, from GNU gettext.
56233         * lib/propername.h: New file, from GNU gettext.
56234         * lib/propername.c: New file, from GNU gettext.
56235         * MODULES.html.sh (Internationalization functions): Add propername.
56236
56237 2008-05-16  Jim Meyering  <meyering@redhat.com>
56238             Bruno Haible  <bruno@clisp.org>
56239
56240         Avoid some warnings from "gcc -Wshadow".
56241         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56242
56243 2008-05-15  Eric Blake  <ebb9@byu.net>
56244
56245         Extend previous patch to cygwin 1.7.0.
56246         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56247         fast implementation in cygwin >= 1.7.0.
56248         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56250
56251 2008-05-15  Bruno Haible  <bruno@clisp.org>
56252
56253         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56254         implementation in glibc >= 2.9.
56255         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56257
56258 2008-05-15  Bruno Haible  <bruno@clisp.org>
56259
56260         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56261         (Unicode string functions): Add unilbrk/*.
56262         Reported by Karl Berry.
56263
56264 2008-05-15  Eric Blake  <ebb9@byu.net>
56265
56266         Fix violation of <stdbool.h> replacement in regex.
56267         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56268         * lib/regexec.c (re_search_internal): Likewise.
56269         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56270
56271 2008-05-15  Jim Meyering  <meyering@redhat.com>
56272
56273         avoid distracting test output when git or cvs is not found
56274         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56275         * tests/test-vc-list-files-git.sh: Likewise.
56276
56277 2008-05-15  Eric Blake  <ebb9@byu.net>
56278
56279         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56280         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56281         glibc version.
56282         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56283         * doc/posix-functions/strstr.texi (strstr): Likewise.
56284         * lib/str-two-way.h (MAX): Sychronize with glibc.
56285
56286 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56287
56288         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56289         opr.ctx_type.
56290         (calc_first): Initialize constraint field.
56291         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56292         Fix grammar.
56293         (duplicate_node): Merge constraint field for all node types.
56294         (calc_eclosure_iter): Look at constraint field for all node types.
56295         * lib/regex_internal.c (create_cd_newstate): Don't look at
56296         opr.ctx_type.
56297
56298 2008-05-14  Bruno Haible  <bruno@clisp.org>
56299
56300         Help GCC to do better code generation.
56301         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56302         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56303         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56304         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56305         Declare with attribute 'malloc' if supported.
56306
56307 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56308
56309         use "echo STR|wc -c" rather than unportable "expr length STR"
56310         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56311         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56312
56313 2008-05-14  Jim Meyering  <meyering@redhat.com>
56314
56315         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56316         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56317         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56318         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56319         via Collin Lasse.
56320
56321 2008-05-14  Eric Blake  <ebb9@byu.net>
56322
56323         Avoid quadratic growth in gl_LIBSOURCES.
56324         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56325         Suggested by Bruno Haible.
56326
56327         Test xmemdup0.
56328         * modules/xmemdup0-tests: New file.
56329         * tests/test-xmemdup0.c: Likewise.
56330
56331 2008-05-13  Eric Blake  <ebb9@byu.net>
56332
56333         Split xmemdup0 into its own module.
56334         * modules/xmemdup0: New file.
56335         * lib/xmemdup0.h: Likewise.
56336         * lib/xmemdup0.c: Likewise.
56337         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56338         * lib/xalloc.h (xmemdup0): Remove.
56339         * lib/xmalloc.c (xmemdup0): Likewise.
56340
56341 2008-05-13  Eric Blake  <ebb9@byu.net>
56342             Bruno Haible  <bruno@clisp.org>
56343
56344         Reduce number of forks required during autoconf.
56345         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56346         and gl_LIBSOURCES_DIR.
56347         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56348         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56349         m4_syscmd per file.
56350         <m4_foreach_w>: Move...
56351         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56352
56353 2008-05-13  Eric Blake  <ebb9@byu.net>
56354
56355         * gnulib-tool: Fix various comment typos.
56356
56357 2008-05-12  Bruno Haible  <bruno@clisp.org>
56358
56359         Tailor the linebreaking algorithm.
56360         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56361
56362 2008-05-12  Bruno Haible  <bruno@clisp.org>
56363
56364         Update to Unicode 5.0.0.
56365         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56366         LBP_JV, LBP_JT. Redistribute values.
56367         (unilbrk_table): Change size.
56368         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56369         Unicode TR#14 rev. 22.
56370         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56371         LBP_JV, LBP_JT. Redistribute values.
56372         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56373         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56374         Update.
56375         * lib/unilbrk/lbrkprop1.h: Regenerated.
56376         * lib/unilbrk/lbrkprop2.h: Regenerated.
56377         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56378         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56379         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56380         Likewise.
56381         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56382         Likewise.
56383         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56384         result.
56385         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56386         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56387         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56388         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56389         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56390         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56391
56392 2008-05-11  Bruno Haible  <bruno@clisp.org>
56393
56394         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56395
56396 2008-05-11  Bruno Haible  <bruno@clisp.org>
56397
56398         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56399         * modules/unilbrk/gen-lbrk: New file.
56400
56401 2008-05-11  Bruno Haible  <bruno@clisp.org>
56402
56403         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56404         * m4/sha512.m4 (gl_SHA512): Likewise.
56405
56406 2008-05-11  Jim Meyering  <meyering@redhat.com>
56407
56408         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56409         * modules/crypto/sha256: New file.
56410         * modules/crypto/sha512: Likewise.
56411         * lib/sha256.c: Likewise.
56412         * lib/sha256.h: Likewise.
56413         * lib/sha512.c: Likewise.
56414         * lib/sha512.h: Likewise.
56415         * lib/u64.h: Likewise.
56416         * m4/sha256.m4: Likewise.
56417         * m4/sha512.m4: Likewise.
56418         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56419
56420 2008-05-10  Bruno Haible  <bruno@clisp.org>
56421
56422         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56423         (Input/Output <stdio.h>): Add xprintf.
56424         (Signal handling <signal.h>): Add strsignal.
56425         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56426         (Core language properties): Add func.
56427         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56428         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56429         strings.
56430         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56431         (Input/output): New section.
56432         (File system functions): Add openat-die, stat-macros.
56433         (Networking functions): Add sockets.
56434         (Unicode string functions): Add unictype/*.
56435         (Support for building libraries and executables): Add gperf.
56436         (Support for building documentation): Add agpl-3.0.
56437         (Misc): Add nocrash.
56438
56439 2008-05-10  Bruno Haible  <bruno@clisp.org>
56440
56441         * modules/unictype/gen-ctype: New file.
56442
56443 2008-05-10  Jim Meyering  <meyering@redhat.com>
56444
56445         Make chdir-safer.c more efficient on a system with no symlinks.
56446         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56447         also if ELOOP is zero.  Suggested by Bruno Haible.
56448
56449         Make chdir-safer.c slightly safer.
56450         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56451         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56452
56453         Avoid compile failure on systems without ELOOP (like mingw).
56454         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56455         Reported by Bruno Haible.
56456
56457 2008-05-10  Bruno Haible  <bruno@clisp.org>
56458
56459         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56460         (is_utf8_encoding): Use a case-insensitive comparison.
56461         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56462         streq.
56463
56464 2008-05-10  Bruno Haible  <bruno@clisp.org>
56465
56466         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56467         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56468         * lib/unilbrk/ulc-common.h (iconv_string_length,
56469         iconv_string_keeping_offsets): Remove declarations.
56470         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56471         Don't include <iconv.h>, streq.h, xsize.h.
56472         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56473         conversion.
56474         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56475         <iconv.h>, streq.h, xsize.h.
56476         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56477         conversion.
56478         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56479         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56480         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56481         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56482
56483 2008-05-10  Bruno Haible  <bruno@clisp.org>
56484
56485         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56486         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56487
56488         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56489         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56490
56491         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56492         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56493
56494         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56495         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56496
56497         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56498         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56499
56500         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56501         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56502
56503         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56504         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56505
56506         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56507         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56508
56509 2008-05-10  Bruno Haible  <bruno@clisp.org>
56510
56511         Split up 'linebreak' module.
56512         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56513         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56514         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56515         modifications.
56516         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56517         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56518         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56519         lib/linebreak.c.
56520         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56521         lib/linebreak.c.
56522         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56523         lib/linebreak.c.
56524         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56525         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56526         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56527         lib/linebreak.c.
56528         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56529         lib/linebreak.c.
56530         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56531         lib/linebreak.c.
56532         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56533         lib/linebreak.c.
56534         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56535         lib/linebreak.c.
56536         * modules/unilbrk/base: New file.
56537         * modules/unilbrk/tables: New file.
56538         * modules/unilbrk/u8-possible-linebreaks: New file.
56539         * modules/unilbrk/u16-possible-linebreaks: New file.
56540         * modules/unilbrk/u32-possible-linebreaks: New file.
56541         * modules/unilbrk/ulc-common: New file.
56542         * modules/unilbrk/ulc-possible-linebreaks: New file.
56543         * modules/unilbrk/u8-width-linebreaks: New file.
56544         * modules/unilbrk/u16-width-linebreaks: New file.
56545         * modules/unilbrk/u32-width-linebreaks: New file.
56546         * modules/unilbrk/ulc-width-linebreaks: New file.
56547         * lib/linebreak.h: Remove file.
56548         * lib/linebreak.c: Remove file.
56549         * m4/linebreak.m4: Remove file.
56550         * modules/linebreak: Remove file.
56551         * NEWS: Mention the changes.
56552
56553 2008-05-09  Eric Blake  <ebb9@byu.net>
56554
56555         Add xmemdup0.
56556         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56557         implementation.
56558         * lib/xmalloc.c (xmemdup0): New C implementation.
56559
56560 2008-05-08  Bruno Haible  <bruno@clisp.org>
56561
56562         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56563
56564 2008-05-07  Eric Blake  <ebb9@byu.net>
56565
56566         Support cross-compilation of <wctype.h>.
56567         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56568         AC_CACHE_CHECK.
56569
56570 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56571
56572         * build-aux/vc-list-files: Add support for bzr.
56573
56574 2008-05-03  Jim Meyering  <meyering@redhat.com>
56575
56576         avoid failed assertion with tight malloc
56577         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56578
56579 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56580
56581         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56582         are needed from arpa/inet.h.
56583         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56584         Reported by Bruno Haible.
56585
56586 2008-05-02  Jim Meyering  <meyering@redhat.com>
56587
56588         avoid compilation error on FreeBSD 6
56589         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56590
56591 2008-05-01  Jim Meyering  <meyering@redhat.com>
56592
56593         useless-if-before-free: correct --help's exit status description
56594         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56595         for one or more matches, etc.  Reported by Bruno Haible.
56596
56597         vc-list-files: make the stand-alone gnulib test work
56598         * modules/vc-list-files-tests (configure.ac):
56599         Define and AC_SUBST abs_aux_dir.
56600         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56601         $(abs_top_srcdir) to each script and having each of them
56602         duplicate the work of setting PATH, set PATH here, using
56603         the new variable, abs_aux_dir instead.
56604         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56605         * tests/test-vc-list-files-git.sh: Likewise.
56606         Reported by Bruno Haible.
56607
56608 2008-05-01  Bruno Haible  <bruno@clisp.org>
56609
56610         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56611         reallocation. Rename 'done' to 'found_delimiter'.
56612
56613 2008-05-01  Jim Meyering  <meyering@redhat.com>
56614
56615         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56616         * build-aux/vc-list-files: Use `...`, not $(...).
56617
56618 2008-04-30  Jim Meyering  <meyering@redhat.com>
56619
56620         add tests for vc-list-files
56621         * modules/vc-list-files-tests: New module.
56622         * tests/test-vc-list-files-cvs.sh: New file.
56623         * tests/test-vc-list-files-git.sh: New file.
56624
56625         avoid a warning from gcc
56626         * lib/getndelim2.c (IF_LINT): Define.
56627         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56628
56629         vc-list-files: work properly with build-aux/cvsu, too
56630         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56631         to all cvs-based clauses.
56632
56633         vc-list-files: work properly in the CVS+awk case, too
56634         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56635
56636         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56637         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56638         take more than one file argument, so .  Add quotes, just in case $dir
56639         ever contains a shell meta-character.  Prompted by Soren Hansen in
56640         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56641
56642 2008-04-29  Eric Blake  <ebb9@byu.net>
56643
56644         Optimize getndelim2 to use block operations when possible.
56645         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56646         freadseek, and memchr2.
56647         * lib/getndelim2.c (getndelim2): Use them for block reads.
56648
56649 2008-04-29  Bruno Haible  <bruno@clisp.org>
56650
56651         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56652         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56653         * modules/inet_ntop (Depends-on): Add extensions.
56654         * modules/inet_pton (Depends-on): Likewise.
56655         Reported by Simon Josefsson.
56656
56657 2008-04-29  Jim Meyering  <meyering@redhat.com>
56658
56659         When the is more than one match in a block, match all of them.
56660         * build-aux/useless-if-before-free: Iterate through each block
56661         until there are no more matches.
56662
56663         Fix broken useless-if-before-free script.
56664         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56665         the expression to match cast of argument to free-like function.
56666
56667 2008-04-29  Eric Blake  <ebb9@byu.net>
56668
56669         Use new header.
56670         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56671
56672 2008-04-29  Jim Meyering  <meyering@redhat.com>
56673
56674         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56675         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56676         by gnulib to exist and to declare e.g., inet_ntop.
56677         Don't include "inet_ntop.h", now removed.
56678
56679         * m4/arpa_inet_h.m4: Remove trailing blanks.
56680
56681 2008-04-29  Eric Blake  <ebb9@byu.net>
56682
56683         Silence valgrind on safe reads beyond potential array bounds.
56684         * lib/rawmemchr.valgrind: New file.
56685         * lib/strchrnul.valgrind: Likewise.
56686         * modules/rawmemchr (Files): Distribute new file.
56687         * modules/strchrnul (Files): Likewise.
56688         Suggested by Bruno Haible.
56689
56690 2008-04-29  Bruno Haible  <bruno@clisp.org>
56691
56692         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56693         (inet_ntop, inet_pton): Change portability warning's wording.
56694         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56695         Invoke gl_CHECK_NEXT_HEADERS.
56696         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56697         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56698         set ARPA_INET_H.
56699         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56700         * modules/arpa_inet (Description): No longer only for systems that
56701         lack it.
56702         (Depends-on): Add include_next.
56703         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56704         HAVE_ARPA_INET_H.
56705
56706 2008-04-29  Jim Meyering  <meyering@redhat.com>
56707
56708         * modules/mkdir (License): Re-license as LGPLv2+.
56709
56710 2008-04-29  Bruno Haible  <bruno@clisp.org>
56711
56712         * modules/rawmemchr (Maintainer): Set to Eric.
56713         * modules/strchrnul (Maintainer): Likewise.
56714
56715 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56716
56717         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56718         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56719
56720         * modules/arpa_inet (arpa/inet.h): Use them.
56721
56722 2008-04-28  Eric Blake  <ebb9@byu.net>
56723
56724         Test getndelim2.
56725         * modules/getndelim2-tests: New file.
56726         * tests/test-getndelim2.c: Likewise.
56727         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56728         stream.
56729         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56730
56731         * MODULES.html.sh: Document new module.
56732
56733 2008-04-20  Bruno Haible  <bruno@clisp.org>
56734
56735         * lib/c-stack.c (die): Use raise.
56736         * modules/c-stack (Depends-on): Add raise.
56737
56738 2008-04-28  Bruno Haible  <bruno@clisp.org>
56739
56740         Expect rpmatch to be declared.
56741         * lib/yesno.c (rpmatch): Remove declaration.
56742
56743         Declare rpmatch.
56744         * lib/stdlib.in.h (rpmatch): New declaration.
56745         * lib/rpmatch.c: Include <stdlib.h> first.
56746         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56747         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56749         HAVE_RPMATCH.
56750         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56751         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56752         (Include): Set to <stdlib.h>.
56753         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56754         HAVE_RPMATCH.
56755         * NEWS: Document the change.
56756
56757 2008-04-28  Bruno Haible  <bruno@clisp.org>
56758
56759         Change rpmatch to use nl_langinfo when appropriate.
56760         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56761         (N_): New macro.
56762         (localized_pattern): New function/macro.
56763         (try): Remove match, nomatch arguments. Copy the pattern into safe
56764         memory before caching it.
56765         (rpmatch): Use localized_pattern. Add translator comments.
56766         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56767         Suggested by Eric Blake.
56768         * modules/rpmatch (Depends-on): Add stdbool.
56769
56770 2008-04-28  Eric Blake  <ebb9@byu.net>
56771
56772         Add rawmemchr module, matching glibc.
56773         * modules/string (Makefile.am): New indicator.
56774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56775         * lib/string.in.h (rawmemchr): Declare when appropriate.
56776         * modules/rawmemchr: New file.
56777         * m4/rawmemchr.m4: Likewise.
56778         * lib/rawmemchr.c: Likewise.
56779         * modules/rawmemchr-tests: Likewise.
56780         * tests/test-rawmemchr.c: Likewise.
56781         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56782         module.
56783         * modules/strchrnul (Depends-on): Add rawmemchr.
56784         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56785
56786         Whitespace cleanup.
56787         * tests/test-strchrnul.c: Reindent.
56788         * lib/strchrnul.c: Likewise.
56789
56790         Optimize and test strchrnul.
56791         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56792         * modules/strchrnul-tests: New file.
56793         * tests/test-strchrnul.c: Likewise.
56794
56795         Remove intprops dependency.
56796         * modules/memchr (Depends-on): Remove intprops.
56797         * modules/memrchr (Depends-on): Likewise.
56798         * modules/memchr2 (Depends-on): Likewise.
56799         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56800         * lib/memrchr.c (__memrchr): Likewise.
56801         * lib/memrchr2.c (memchr2): Likewise.
56802         Reported by Simon Josefsson.
56803
56804 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56805
56806         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56807         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56808
56809 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56810
56811         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56812
56813         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56814
56815         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56816
56817         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56818         declarations.
56819         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56820
56821         * m4/inet_pton.m4: Don't check for header files.
56822
56823         * m4/inet_ntop.m4: Don't check for header files.
56824
56825 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56826
56827         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56828         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56829         trigger for cygwin).
56830         Reported by Bruno Haible  <bruno@clisp.org>.
56831
56832 2008-04-28  Bruno Haible  <bruno@clisp.org>
56833
56834         * doc/posix-functions/strdup.texi: Mention mingw problem.
56835
56836 2008-04-27  Bruno Haible  <bruno@clisp.org>
56837
56838         * modules/stat-time-tests (Depends-on): Add sleep.
56839         * tests/test-stat-time.c (force_unlink): New function.
56840         (cleanup): Use it.
56841         (test_mtime): Remove the ctime related tests.
56842         (test_ctime): New function, containing the ctime related tests.
56843         (main): Call test_ctime, except on native Windows platforms.
56844
56845 2008-04-27  Bruno Haible  <bruno@clisp.org>
56846
56847         * lib/rpmatch.c (rpmatch): Add some comments.
56848         Reported by James Youngman <jay@gnu.org>.
56849
56850 2008-04-27  Bruno Haible  <bruno@clisp.org>
56851
56852         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56853         quiet NaNs.
56854
56855 2008-04-27  Bruno Haible  <bruno@clisp.org>
56856
56857         Make test-yesno.sh work on mingw.
56858         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56859         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56860         (main): Set stdin to binary mode.
56861         * modules/yesno-tests (Depends-on): Add binary-io.
56862
56863 2008-04-27  Bruno Haible  <bruno@clisp.org>
56864
56865         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56866         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56867         argument that lie outside the IEEE 854 domain.
56868         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56869         (gl_ISFINITE): Use it.
56870         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56871
56872 2008-04-27  Bruno Haible  <bruno@clisp.org>
56873
56874         Allow local renaming in config.h.
56875         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56876
56877 2008-04-27  Bruno Haible  <bruno@clisp.org>
56878
56879         * lib/memchr.c (__memchr): Change type of 'i'.
56880         * lib/memchr2.c (memchr2): Likewise.
56881
56882 2008-04-26  Eric Blake  <ebb9@byu.net>
56883         and Bruno Haible  <bruno@clisp.org>
56884
56885         Optimize and test memrchr.
56886         * modules/memrchr (Depends-on): Add intprops.
56887         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56888         * modules/memrchr-tests: New file.
56889         * tests/test-memrchr.c: New file.
56890
56891 2008-04-26  Bruno Haible  <bruno@clisp.org>
56892
56893         Add tentative support for DragonFly BSD.
56894         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56895         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56896         fp.
56897         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56898         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56899         * lib/fpurge.c (fpurge): Likewise.
56900         * lib/freadable.c (freaadable): Likewise.
56901         * lib/freadahead.c (freadahead): Likewise.
56902         * lib/freading.c (freading): Likewise.
56903         * lib/freadptr.c (freadptr): Likewise.
56904         * lib/freadseek.c (freadptrinc): Likewise.
56905         * lib/fseeko.c (fseeko): Likewise.
56906         * lib/fseterr.c (fseterr): Likewise.
56907         * lib/fwritable.c (fwritable): Likewise.
56908         * lib/fwriting.c (fwriting): Likewise.
56909
56910 2008-04-26  Bruno Haible  <bruno@clisp.org>
56911
56912         * lib/stdio-impl.h: New file.
56913         * lib/fbufmode.c: Include stdio-impl.h.
56914         (fbufmode): Use fp_, remove redundant #defines.
56915         * lib/fflush.c: Include stdio-impl.h.
56916         (clear_ungetc_buffer): Remove redundant #defines.
56917         * lib/fpurge.c: Include stdio-impl.h.
56918         (fpurge): Remove redundant #defines.
56919         * lib/freadable.c: Include stdio-impl.h.
56920         (freadable): Remove redundant #defines.
56921         * lib/freadahead.c: Include stdio-impl.h.
56922         (freadahead): Remove redundant #defines.
56923         * lib/freading.c: Include stdio-impl.h.
56924         (freading): Remove redundant #defines.
56925         * lib/freadptr.c: Include stdio-impl.h.
56926         (freadptr): Remove redundant #defines.
56927         * lib/freadseek.c: Include stdio-impl.h.
56928         (freadptrinc): Remove redundant #defines.
56929         * lib/fseeko.c: Include stdio-impl.h.
56930         (rpl_fseeko): Remove redundant #defines.
56931         * lib/fseterr.c: Include stdio-impl.h.
56932         (fseterr): Remove redundant #defines.
56933         * lib/fwritable.c: Include stdio-impl.h.
56934         (fwritable: Remove redundant #defines.
56935         * lib/fwriting.c: Include stdio-impl.h.
56936         (fwriting): Remove redundant #defines.
56937         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56938         * modules/fflush (Files): Likewise.
56939         * modules/fpurge (Files): Likewise.
56940         * modules/freadable (Files): Likewise.
56941         * modules/freadahead (Files): Likewise.
56942         * modules/freading (Files): Likewise.
56943         * modules/freadptr (Files): Likewise.
56944         * modules/freadseek (Files): Likewise.
56945         * modules/fseeko (Files): Likewise.
56946         * modules/fseterr (Files): Likewise.
56947         * modules/fwritable (Files): Likewise.
56948         * modules/fwriting (Files): Likewise.
56949
56950 2008-04-26  Bruno Haible  <bruno@clisp.org>
56951
56952         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56953         restore_seek_optimization, update_fpos_cache): New functions, extracted
56954         from rpl_fflush.
56955         (rpl_fflush): Use them.
56956         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56957         (gl_REPLACE_FFLUSH): Use it.
56958
56959 2008-04-26  Bruno Haible  <bruno@clisp.org>
56960
56961         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56962         on Solaris.
56963         * tests/test-xstrtoimax.sh: Likewise.
56964         * tests/test-xstrtoumax.sh: Likewise.
56965         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56966
56967 2008-04-26  Bruno Haible  <bruno@clisp.org>
56968
56969         * modules/memchr-tests: New file.
56970         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56971
56972 2008-04-26  Eric Blake  <ebb9@byu.net>
56973             Bruno Haible  <bruno@clisp.org>
56974
56975         * lib/memchr.c: Include intprops.h.
56976         (__memchr): Optimize parallel detection of matching bytes. Rename local
56977         variables. Add explanatory comments.
56978
56979 2008-04-26  Bruno Haible  <bruno@clisp.org>
56980
56981         Fix module 'memchr', broken since 2000-10-28.
56982         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56983
56984 2008-04-26  Bruno Haible  <bruno@clisp.org>
56985
56986         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56987         comments.
56988
56989 2008-04-25  Eric Blake  <ebb9@byu.net>
56990
56991         Use native fstatat on cygwin 1.7.0.
56992         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56993         first.
56994
56995 2008-04-23  Eric Blake  <ebb9@byu.net>
56996
56997         Improve memchr2 performance.
56998         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56999         NUL bytes.
57000         * modules/memchr2 (Depends-on): Use intprops.h.
57001
57002 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57003
57004         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57005         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57006         <blp@cs.stanford.edu>.
57007
57008 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57009
57010         * lib/arpa_inet.in.h: New file.
57011
57012         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57013         (Makefile.am): Sed in substitute header file.
57014
57015         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57016         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57017
57018         * modules/inet_ntop (configure.ac): Use
57019         gl_ARPA_INET_MODULE_INDICATOR.
57020
57021         * modules/inet_pton (configure.ac): Use
57022         gl_ARPA_INET_MODULE_INDICATOR.
57023
57024 2008-04-22  Jim Meyering  <meyering@redhat.com>
57025
57026         * modules/verify (License): Re-license as LGPLv2+.
57027
57028 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57029
57030         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57031         parameter to void* as per POSIX standard (MinGW uses char*).
57032
57033 2008-04-21  Bruno Haible  <bruno@clisp.org>
57034
57035         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57036         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57037         Define to replacements if REPLACE_ISWCNTRL is 1.
57038         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57039         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57040         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57041         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57042         what it fixes.
57043         * doc/posix-functions/iswalpha.texi: Likewise.
57044         * doc/posix-functions/iswblank.texi: Likewise.
57045         * doc/posix-functions/iswcntrl.texi: Likewise.
57046         * doc/posix-functions/iswdigit.texi: Likewise.
57047         * doc/posix-functions/iswgraph.texi: Likewise.
57048         * doc/posix-functions/iswlower.texi: Likewise.
57049         * doc/posix-functions/iswprint.texi: Likewise.
57050         * doc/posix-functions/iswpunct.texi: Likewise.
57051         * doc/posix-functions/iswspace.texi: Likewise.
57052         * doc/posix-functions/iswupper.texi: Likewise.
57053         * doc/posix-functions/iswxdigit.texi: Likewise.
57054         Reported by Alain Guibert.
57055
57056 2008-04-21  Bruno Haible  <bruno@clisp.org>
57057
57058         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57059         Patch by Alain Guibert.
57060
57061 2008-04-21  Bruno Haible  <bruno@clisp.org>
57062
57063         Fix test failures on mingw.
57064         * tests/test-xstrtol.c (print_no_progname): New function.
57065         (main): Install it in error_print_progname hook.
57066         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57067         * tests/test-xstrtoimax.sh: Likewise.
57068         * tests/test-xstrtoumax.sh: Likewise.
57069
57070 2008-04-21  Bruno Haible  <bruno@clisp.org>
57071
57072         Fix test failure on mingw.
57073         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57074
57075 2008-04-21  Bruno Haible  <bruno@clisp.org>
57076
57077         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57078         Actually assign a value.
57079
57080 2008-04-20  Bruno Haible  <bruno@clisp.org>
57081
57082         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57083         take 2.
57084         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57085         'canonicalize-lgpl' module is also used.
57086         * lib/canonicalize-lgpl.c: Undo last change.
57087         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57088
57089 2008-04-20  Bruno Haible  <bruno@clisp.org>
57090
57091         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57092         config.h. Provide _mkdir based fallback for mingw.
57093         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57094         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57095         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57096         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57097         rather than defining mkdir in config.h.
57098         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57099         (gl_SYS_STAT_H_DEFAULTS): New macro.
57100         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57101         HAVE_IO_H any more.
57102         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57103         HAVE_DECL_MKDIR and HAVE_IO_H.
57104
57105 2008-04-20  Bruno Haible  <bruno@clisp.org>
57106
57107         * lib/isapipe.c: Port to native Windows platforms.
57108
57109 2008-04-20  Bruno Haible  <bruno@clisp.org>
57110
57111         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57112
57113 2008-04-21  Eric Blake  <ebb9@byu.net>
57114
57115         Work around preprocessors that don't handle UINTMAX_MAX.
57116         * lib/memchr2.c (memchr2): Avoid embedded #if.
57117         Reported by Alain Guibert, fix suggested by Bruno Haible.
57118
57119 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57120
57121         * doc/posix-functions/strftime.texi (strftime): Explain better
57122         Windows incompatibility.  Suggested by Micah Cowan
57123         <micah@cowan.name>.
57124
57125 2008-04-20  Bruno Haible  <bruno@clisp.org>
57126
57127         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57128         unistr/u8-mblen.
57129
57130 2008-04-20  Bruno Haible  <bruno@clisp.org>
57131
57132         Fix test failure on platforms with non-GNU iconv.
57133         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57134         (U_TO_U8): Use it, rather than u16_to_u8.
57135         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57136         units at the end of the input string.
57137         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57138
57139 2008-04-20  Bruno Haible  <bruno@clisp.org>
57140
57141         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57142         when the resulting length is 0.
57143         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57144
57145 2008-04-20  Bruno Haible  <bruno@clisp.org>
57146
57147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57148         works.
57149         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57150
57151 2008-04-20  Bruno Haible  <bruno@clisp.org>
57152
57153         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57154         * modules/tsearch-tests (configure.ac): Test for initstate function.
57155
57156 2008-04-20  Bruno Haible  <bruno@clisp.org>
57157
57158         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57159         for nlink_t if missing.
57160         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57161
57162 2008-04-19  Bruno Haible  <bruno@clisp.org>
57163
57164         Work around snprintf bug on Linux libc5.
57165         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57166         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57167         gl_SNPRINTF_SIZE1.
57168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57169         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57170         that test failed.
57171         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57172         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57173         * modules/snprintf (Files): Add m4/printf.m4.
57174         * modules/vsnprintf (Files): Likewise.
57175         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57176         * doc/posix-functions/vsnprintf.texi: Likewise.
57177
57178 2008-04-19  Bruno Haible  <bruno@clisp.org>
57179
57180         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57181         from 0.0058 to less than 10^-7.
57182
57183 2008-04-19  Bruno Haible  <bruno@clisp.org>
57184
57185         Fix rounding when a precision is given.
57186         * lib/vasnprintf.c (is_borderline): New function.
57187         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57188         9...9x.
57189         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57190         %e, %g.
57191         * tests/test-vasprintf-posix.c (test_function): Likewise.
57192         * tests/test-snprintf-posix.h (test_function): Likewise.
57193         * tests/test-sprintf-posix.h (test_function): Likewise.
57194         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57195         * tests/test-printf-posix.h (test_function): Likewise.
57196         * tests/test-printf-posix.output: Update.
57197         Reported by John Darrington <john@darrington.wattle.id.au> via
57198         Ben Pfaff <blp@cs.stanford.edu>.
57199
57200 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57201
57202         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57203         Suggested by Bruno Haible <bruno@clisp.org>.
57204
57205 2008-04-17  Bruno Haible  <bruno@clisp.org>
57206
57207         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57208         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57209         implementation.
57210         Patch by Bruce Merry <bmerry@gmail.com>.
57211
57212 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57213
57214         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57215         doesn't work under Windows.
57216
57217 2008-04-16  Bruno Haible  <bruno@clisp.org>
57218
57219         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57220         New macros.
57221         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57222         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57223         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57224         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57225         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57226         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57227         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57228         macros.
57229         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57230         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57231         Northern Sotho, Uighur.
57232
57233 2008-04-16  Bruno Haible  <bruno@clisp.org>
57234
57235         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57236         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57237         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57238         Reported by Daniel Bergström <daniel@octocode.com>.
57239
57240 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57241             Bruno Haible  <bruno@clisp.org>
57242
57243         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57244         function.
57245         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57246         New functions, mostly extracted from gl_locale_name_default.
57247         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57248
57249 2008-04-16  Eric Blake  <ebb9@byu.net>
57250
57251         Adjust strtod detection to catch glibc 2.7 bug.
57252         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57253         Reported by John Gatewood Ham.
57254
57255 2008-04-16  Bruno Haible  <bruno@clisp.org>
57256
57257         Add tentative support for Linux libc5.
57258         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57259         * lib/fpurge.c (fpurge): Likewise.
57260         * lib/freadable.c (freadable): Likewise.
57261         * lib/freadahead.c (freadahead): Likewise.
57262         * lib/freading.c (freading): Likewise.
57263         * lib/freadptr.c (freadptr): Likewise.
57264         * lib/freadseek.c (freadptrinc): Likewise.
57265         * lib/fseeko.c (rpl_fseeko): Likewise.
57266         * lib/fseterr.c (fseterr): Likewise.
57267         * lib/fwritable.c (fwritable): Likewise.
57268         * lib/fwriting.c (fwriting): Likewise.
57269         Reported by Alain Guibert <alguibert+bts@free.fr>.
57270
57271 2008-04-15  Bruno Haible  <bruno@clisp.org>
57272
57273         * modules/mathl (configure.ac): Define module indicator.
57274
57275 2008-04-15  Bruno Haible  <bruno@clisp.org>
57276
57277         * lib/logl.c (logl): Remove unused variables.
57278
57279 2008-04-15  Bruno Haible  <bruno@clisp.org>
57280
57281         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57282         fails.
57283
57284 2008-04-15  Bruno Haible  <bruno@clisp.org>
57285
57286         * lib/trim.c (trim2): Fix argument of isspace() macro.
57287
57288 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57289
57290         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57291         to 0.
57292         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57293
57294 2008-04-14  Bruno Haible  <bruno@clisp.org>
57295
57296         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57297         AC_LANG_PROGRAM argument.
57298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57299         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57300         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57301         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57302         * m4/math_h.m4 (gl_MATH_H): Likewise.
57303         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57304         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57305         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57306         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57307         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57308         * m4/regex.m4 (gl_REGEX): Likewise.
57309         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57310         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57311         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57312         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57313         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57314         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57317
57318 2008-04-14  Jim Meyering  <meyering@redhat.com>
57319
57320         test-strtod: fix typos: s/abs/fabs/
57321         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57322
57323 2008-04-13  Bruno Haible  <bruno@clisp.org>
57324
57325         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57326         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57327         module is also used and while not building the reloc-wrapper.
57328
57329 2008-04-13  Bruno Haible  <bruno@clisp.org>
57330
57331         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57332
57333 2008-04-13  Bruno Haible  <bruno@clisp.org>
57334
57335         Fix AIX compilation failure introduced on 2008-04-02.
57336         * tests/test-frexp.c (exp): Undefine before redefining.
57337         * tests/test-frexpl.c (exp): Likewise.
57338
57339 2008-04-13  Bruno Haible  <bruno@clisp.org>
57340
57341         Work around a HP-UX stdio bug.
57342         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57343         * tests/test-ftello.c (main): Likewise.
57344         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57345         * doc/posix-functions/ftello.texi: Likewise.
57346
57347 2008-04-13  Bruno Haible  <bruno@clisp.org>
57348
57349         Make test-signbit pass on HP-UX/hppa.
57350         * tests/test-signbit.c (minus_zerol): New variable.
57351         (test_signbitl): Use it.
57352
57353 2008-04-13  Bruno Haible  <bruno@clisp.org>
57354
57355         Make truncl work on OSF/1 4.0.
57356         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57357         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57358         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57360         HAVE_DECL_TRUNCL.
57361         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57362         HAVE_DECL_TRUNCL.
57363         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57364
57365 2008-04-13  Bruno Haible  <bruno@clisp.org>
57366
57367         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57368
57369 2008-04-13  Bruno Haible  <bruno@clisp.org>
57370
57371         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57372         expression, so as to avoid HP-UX 11 cc compiler bug.
57373
57374 2008-04-13  Bruno Haible  <bruno@clisp.org>
57375
57376         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57377
57378 2008-04-13  Bruno Haible  <bruno@clisp.org>
57379
57380         * lib/git-merge-changelog.c: Remove empty declaration outside of
57381         functions.
57382
57383 2008-04-13  Bruno Haible  <bruno@clisp.org>
57384
57385         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57386
57387 2008-04-13  Bruno Haible  <bruno@clisp.org>
57388
57389         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57390         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57391         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57392         also if it exists but lacks definitions of the SHUT_* macros.
57393         * modules/sys_socket (Description): Update.
57394         Reported by Elbert Pol <e.pol@chello.nl>.
57395
57396 2008-04-13  Bruno Haible  <bruno@clisp.org>
57397
57398         * lib/localcharset.c (OS2): Don't redefine if already defined.
57399         Reported by Elbert Pol <e.pol@chello.nl>.
57400
57401 2008-04-13  Bruno Haible  <bruno@clisp.org>
57402
57403         * lib/binary-io.h [__EMX__]: Include <io.h>.
57404         Reported by Elbert Pol <e.pol@chello.nl>.
57405
57406 2008-04-12  Bruno Haible  <bruno@clisp.org>
57407
57408         * lib/fpucw.h: Enable the definitions also for x86_64.
57409         Needed for NetBSD/x86_64.
57410         Reported by Thomas Klausner <tk@giga.or.at>.
57411
57412 2008-04-12  Bruno Haible  <bruno@clisp.org>
57413
57414         * tests/test-strtod.c: Include isnand.h.
57415         (main): Use isnand instead of isnan.
57416         Reported by Jim Meyering.
57417
57418 2008-04-12  Bruno Haible  <bruno@clisp.org>
57419
57420         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57421         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57422
57423 2008-04-12  Jim Meyering  <meyering@redhat.com>
57424
57425         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57426
57427 2008-04-12  Bruno Haible  <bruno@clisp.org>
57428
57429         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57430         Reported by Elbert Pol <e.pol@chello.nl>.
57431
57432 2008-04-12  Eric Blake  <ebb9@byu.net>
57433
57434         Work around Solaris 10 math.h bug.
57435         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57436         (gl_MATH_H_DEFAULTS): Set up default.
57437         * modules/math (Makefile.am): Replace new indicators.
57438         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57439         * tests/test-math.c (main): Test this.
57440         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57441         * doc/posix-headers/math.texi (math.h): Mention bug.
57442         Reported by Nelson H. F. Beebe and Jim Meyering.
57443
57444 2008-04-11  Bruno Haible  <bruno@clisp.org>
57445
57446         Adapt to future versions of Apple GCC.
57447         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57448         Reported by Peter O'Gorman <peter@pogma.com>.
57449
57450 2008-04-11  Bruno Haible  <bruno@clisp.org>
57451
57452         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57453
57454 2008-04-11  Bruno Haible  <bruno@clisp.org>
57455
57456         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57457
57458         * modules/getaddrinfo-tests (Makefile.am): Define
57459         test_getaddrinfo_LDADD.
57460
57461 2008-04-11  Bruno Haible  <bruno@clisp.org>
57462
57463         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57464         (init): Fix syntax error.
57465         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57466         is declared.
57467
57468 2008-04-11  Bruno Haible  <bruno@clisp.org>
57469
57470         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57471         * modules/glob (Depends-on): Add stdbool.
57472
57473 2008-04-11  Bruno Haible  <bruno@clisp.org>
57474
57475         * lib/trim.c: Include <string.h>.
57476
57477 2008-04-11  Eric Blake  <ebb9@byu.net>
57478
57479         Avoid compile failure on OS/2.
57480         * lib/regex_internal.h (internal_function): Disable optimization
57481         on OS/2 (__EMX__), where it caused compiler error.
57482         Reported by Elbert Pol.
57483
57484 2008-04-11  Bruno Haible  <bruno@clisp.org>
57485
57486         Flush the standard error stream before aborting. Needed on mingw.
57487         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57488         * tests/test-array_list.c (ASSERT): Likewise.
57489         * tests/test-array_oset.c (ASSERT): Likewise.
57490         * tests/test-avltree_list.c (ASSERT): Likewise.
57491         * tests/test-avltree_oset.c (ASSERT): Likewise.
57492         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57493         * tests/test-binary-io.c (ASSERT): Likewise.
57494         * tests/test-byteswap.c (ASSERT): Likewise.
57495         * tests/test-c-ctype.c (ASSERT): Likewise.
57496         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57497         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57498         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57499         * tests/test-c-strstr.c (ASSERT): Likewise.
57500         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57501         * tests/test-canonicalize.c (ASSERT): Likewise.
57502         * tests/test-carray_list.c (ASSERT): Likewise.
57503         * tests/test-ceilf1.c (ASSERT): Likewise.
57504         * tests/test-ceilf2.c (ASSERT): Likewise.
57505         * tests/test-ceill.c (ASSERT): Likewise.
57506         * tests/test-count-one-bits.c (ASSERT): Likewise.
57507         * tests/test-fbufmode.c (ASSERT): Likewise.
57508         * tests/test-fflush2.c (ASSERT): Likewise.
57509         * tests/test-floorf1.c (ASSERT): Likewise.
57510         * tests/test-floorf2.c (ASSERT): Likewise.
57511         * tests/test-floorl.c (ASSERT): Likewise.
57512         * tests/test-fopen.c (ASSERT): Likewise.
57513         * tests/test-fpending.c (ASSERT): Likewise.
57514         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57515         * tests/test-fpurge.c (ASSERT): Likewise.
57516         * tests/test-freadable.c (ASSERT): Likewise.
57517         * tests/test-freadahead.c (ASSERT): Likewise.
57518         * tests/test-freading.c (ASSERT): Likewise.
57519         * tests/test-freadptr.c (ASSERT): Likewise.
57520         * tests/test-freadptr2.c (ASSERT): Likewise.
57521         * tests/test-freadseek.c (ASSERT): Likewise.
57522         * tests/test-freopen.c (ASSERT): Likewise.
57523         * tests/test-frexp.c (ASSERT): Likewise.
57524         * tests/test-frexpl.c (ASSERT): Likewise.
57525         * tests/test-fseek.c (ASSERT): Likewise.
57526         * tests/test-fseeko.c (ASSERT): Likewise.
57527         * tests/test-fstrcmp.c (ASSERT): Likewise.
57528         * tests/test-ftell.c (ASSERT): Likewise.
57529         * tests/test-ftello.c (ASSERT): Likewise.
57530         * tests/test-func.c (ASSERT): Likewise.
57531         * tests/test-fwritable.c (ASSERT): Likewise.
57532         * tests/test-fwriting.c (ASSERT): Likewise.
57533         * tests/test-getdelim.c (ASSERT): Likewise.
57534         * tests/test-getline.c (ASSERT): Likewise.
57535         * tests/test-i-ring.c (ASSERT): Likewise.
57536         * tests/test-iconv-utf.c (ASSERT): Likewise.
57537         * tests/test-iconv.c (ASSERT): Likewise.
57538         * tests/test-isfinite.c (ASSERT): Likewise.
57539         * tests/test-isnand.c (ASSERT): Likewise.
57540         * tests/test-isnanf.c (ASSERT): Likewise.
57541         * tests/test-isnanl.h (ASSERT): Likewise.
57542         * tests/test-ldexpl.c (ASSERT): Likewise.
57543         * tests/test-linked_list.c (ASSERT): Likewise.
57544         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57545         * tests/test-localename.c (ASSERT): Likewise.
57546         * tests/test-lseek.c (ASSERT): Likewise.
57547         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57548         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57549         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57550         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57551         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57552         * tests/test-mbschr.c (ASSERT): Likewise.
57553         * tests/test-mbscspn.c (ASSERT): Likewise.
57554         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57555         * tests/test-mbspbrk.c (ASSERT): Likewise.
57556         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57557         * tests/test-mbsrchr.c (ASSERT): Likewise.
57558         * tests/test-mbsspn.c (ASSERT): Likewise.
57559         * tests/test-mbsstr1.c (ASSERT): Likewise.
57560         * tests/test-mbsstr2.c (ASSERT): Likewise.
57561         * tests/test-mbsstr3.c (ASSERT): Likewise.
57562         * tests/test-memchr2.c (ASSERT): Likewise.
57563         * tests/test-memmem.c (ASSERT): Likewise.
57564         * tests/test-open.c (ASSERT): Likewise.
57565         * tests/test-printf-frexp.c (ASSERT): Likewise.
57566         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57567         * tests/test-printf-posix.c (ASSERT): Likewise.
57568         * tests/test-quotearg.c (ASSERT): Likewise.
57569         * tests/test-rbtree_list.c (ASSERT): Likewise.
57570         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57571         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57572         * tests/test-round1.c (ASSERT): Likewise.
57573         * tests/test-roundf1.c (ASSERT): Likewise.
57574         * tests/test-roundl.c (ASSERT): Likewise.
57575         * tests/test-signbit.c (ASSERT): Likewise.
57576         * tests/test-sleep.c (ASSERT): Likewise.
57577         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57578         * tests/test-snprintf.c (ASSERT): Likewise.
57579         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57580         * tests/test-stat-time.c (ASSERT): Likewise.
57581         * tests/test-strcasestr.c (ASSERT): Likewise.
57582         * tests/test-strerror.c (ASSERT): Likewise.
57583         * tests/test-striconv.c (ASSERT): Likewise.
57584         * tests/test-striconveh.c (ASSERT): Likewise.
57585         * tests/test-striconveha.c (ASSERT): Likewise.
57586         * tests/test-strsignal.c (ASSERT): Likewise.
57587         * tests/test-strstr.c (ASSERT): Likewise.
57588         * tests/test-strtod.c (ASSERT): Likewise.
57589         * tests/test-trunc1.c (ASSERT): Likewise.
57590         * tests/test-trunc2.c (ASSERT): Likewise.
57591         * tests/test-truncf1.c (ASSERT): Likewise.
57592         * tests/test-truncf2.c (ASSERT): Likewise.
57593         * tests/test-truncl.c (ASSERT): Likewise.
57594         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57595         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57596         * tests/test-vasnprintf.c (ASSERT): Likewise.
57597         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57598         * tests/test-vasprintf.c (ASSERT): Likewise.
57599         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57600         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57601         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57602         * tests/test-vsnprintf.c (ASSERT): Likewise.
57603         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57604         * tests/test-wcwidth.c (ASSERT): Likewise.
57605         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57606         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57607         * tests/test-xvasprintf.c (ASSERT): Likewise.
57608         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57609         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57610         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57611         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57612         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57613         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57614         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57615         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57616         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57617         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57618         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57619         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57620         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57621         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57622         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57623         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57624         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57625         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57626         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57627         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57628         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57629         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57630         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57631         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57632         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57633         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57634         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57635         * tests/unictype/test-combining.c (ASSERT): Likewise.
57636         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57637         * tests/unictype/test-digit.c (ASSERT): Likewise.
57638         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57639         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57640         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57641         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57642         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57643         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57644         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57645         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57646         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57647         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57648         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57649         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57650         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57651         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57652         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57653         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57654         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57655         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57656         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57657         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57658         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57659         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57660         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57661         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57662         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57663         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57664         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57665         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57666         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57667         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57668         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57669         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57670         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57671         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57672         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57673         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57674         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57675         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57676         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57677         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57678         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57679         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57680         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57681         Reported by Eric Blake.
57682
57683 2008-04-11  Bruno Haible  <bruno@clisp.org>
57684
57685         * lib/wchar.in.h: Tweak comment.
57686
57687 2008-04-11  Bruno Haible  <bruno@clisp.org>
57688
57689         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57690         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57691         gl_COMMON.
57692         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57693
57694 2008-04-11  Bruno Haible  <bruno@clisp.org>
57695
57696         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57697
57698 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57699
57700         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57701         of attempting to use non-existing /dev/*random.  Based on patch
57702         from Adam Strzelecki <ono@java.pl> in
57703         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57704
57705 2008-04-08  Bruno Haible  <bruno@clisp.org>
57706
57707         Add tentative support for emx+gcc.
57708         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57709         * lib/fpurge.c (fpurge): Likewise.
57710         * lib/freadable.c (freadable): Likewise.
57711         * lib/freadahead.c (freadahead): Likewise.
57712         * lib/freading.c (freading): Likewise.
57713         * lib/freadptr.c (freadptr): Likewise.
57714         * lib/freadseek.c (freadptrinc): Likewise.
57715         * lib/fseeko.c (rpl_fseeko): Likewise.
57716         * lib/fseterr.c (fseterr): Likewise.
57717         * lib/fwritable.c (fwritable): Likewise.
57718         * lib/fwriting.c (fwriting): Likewise.
57719         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57720
57721 2008-04-09  Eric Blake  <ebb9@byu.net>
57722
57723         Avoid some autoconf warnings.
57724         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57725         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57726         * m4/afs.m4 (gl_AFS): Likewise.
57727         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57728         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57729         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57730         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57731         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57732         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57733         (AC_CHECK_DECLS_ONCE): Likewise.
57734         Rename file...
57735         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57736         gnulib-tool requires autoconf 2.59 or better.
57737         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57738
57739 2008-04-08  Eric Blake  <ebb9@byu.net>
57740
57741         Use 'git describe --match' if present (added in git 1.5.5).
57742         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57743         if possible.
57744
57745 2008-04-08  Bruno Haible  <bruno@clisp.org>
57746
57747         Add tentative support for OpenServer.
57748         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57749         _ptr, _cnt.
57750         * lib/fpurge.c (fpurge): Likewise.
57751         * lib/freadable.c (freadable): Likewise.
57752         * lib/freadahead.c (freadahead): Likewise.
57753         * lib/freading.c (freading): Likewise.
57754         * lib/freadptr.c (freadptr): Likewise.
57755         * lib/freadseek.c (freadptrinc): Likewise.
57756         * lib/fseeko.c (rpl_fseeko): Likewise.
57757         * lib/fseterr.c (fseterr): Likewise.
57758         * lib/fwritable.c (fwritable): Likewise.
57759         * lib/fwriting.c (fwriting): Likewise.
57760         Reported by Roger Cornelius <rac@tenzing.org> and
57761         Brian K. White <brian@aljex.com>.
57762
57763 2008-04-06  Jim Meyering  <meyering@redhat.com>
57764
57765         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57766
57767 2008-04-06  Bruno Haible  <bruno@clisp.org>
57768
57769         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57770         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57771         * tests/test-printf-posix.sh: Likewise.
57772         * tests/test-vfprintf-posix.sh: Likewise.
57773         * tests/test-vprintf-posix.sh: Likewise.
57774         * tests/test-xprintf-posix.sh: Likewise.
57775
57776 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57777
57778         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57779         hide error from 'ls', needed on OS/2.
57780         Report by Elbert Pol <elbert.pol@gmail.com>.
57781
57782 2008-04-04  Eric Blake  <ebb9@byu.net>
57783
57784         Make test-fseeko.c failures meaningful.
57785         * tests/test-fseeko.c: Print line number on failure.
57786         * tests/test-fseek.c: Likewise.
57787         Reported by Nelson H. F. Beebe.
57788
57789         Improve strtod bug detection check.
57790         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57791         required for Solaris 10.
57792         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57793
57794 2008-04-04  Bruno Haible  <bruno@clisp.org>
57795
57796         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57797         by m4/setenv.m4.
57798
57799 2008-04-03  Eric Blake  <ebb9@byu.net>
57800
57801         Ensure sane .version contents.
57802         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57803         version string.
57804         * build-aux/git-version-gen: Improve documentation.
57805
57806         Make GNU make output nicer.
57807         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57808         MAKECMDGOALS to enforce message for all command line targets.  Set
57809         srcdir for use in maint.mk.
57810
57811         Another maintainer tweak.
57812         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57813         a target that regenerates version.
57814
57815 2008-04-03  Jim Meyering  <meyering@redhat.com>
57816
57817         vc-list-files: don't cause coreutils "make po-check" failure
57818         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57819
57820 2008-04-03  Eric Blake  <ebb9@byu.net>
57821
57822         Allow VPATH usage of vc-list-files.
57823         * build-aux/vc-list-files (scriptversion): Add timestamp.
57824         (options): Add --help, --version, -C.
57825         (CVS): Support installed cvsu.
57826
57827 2008-04-02  Bruno Haible  <bruno@clisp.org>
57828
57829         Avoid some "statement with no effect" warnings from gcc.
57830         * tests/test-wctype.c (main): Explicitly ignore unused values.
57831         Reported by Jim Meyering.
57832
57833 2008-04-02  Jim Meyering  <meyering@redhat.com>
57834
57835         Avoid some warnings from "gcc -Wshadow".
57836         * tests/test-frexp.c (exp): Define to a different identifier.
57837         * tests/test-frexpl.c (exp): Likewise.
57838
57839 2008-04-03  Jim Meyering  <meyering@redhat.com>
57840
57841         bootstrap: remove dangling *.[ch] symlinks from lib
57842         * build-aux/bootstrap [dangling symlink removal]: Move find's
57843         -depth option to precede all others, to avoid a warning.
57844         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57845
57846 2008-04-02  Bruno Haible  <bruno@clisp.org>
57847
57848         Avoid some warnings from "gcc -Wshadow".
57849         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57850         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57851         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57852         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57853         Reported by Jim Meyering.
57854
57855 2008-04-01  Bruno Haible  <bruno@clisp.org>
57856
57857         Fix test to work on IRIX 6.5 with cc.
57858         * tests/test-math.c (numeric_equal): New function.
57859         (main): Use it.
57860
57861 2008-04-01  Bruno Haible  <bruno@clisp.org>
57862
57863         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57864
57865 2008-04-01  Bruno Haible  <bruno@clisp.org>
57866
57867         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57868         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57869         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57870         (Depends-on): Remove math.
57871
57872         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57873         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57874         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57875         (Depends-on): Remove math.
57876
57877         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57878         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57879         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57880         (Depends-on): Remove math.
57881         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57882         (Depends-on): Remove math.
57883
57884         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57885         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57886         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57887         (Depends-on): Remove math.
57888         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57889         (Depends-on): Remove math.
57890
57891         * tests/test-round1.c: Include nan.h.
57892         (main): Use NaNd instead of NAN.
57893         * modules/round-tests (Files): Add tests/nan.h.
57894
57895         * tests/test-trunc1.c: Include nan.h.
57896         (main): Use NaNd instead of NAN.
57897         * modules/trunc-tests (Files): Add tests/nan.h.
57898
57899         * tests/test-roundf1.c: Include nan.h.
57900         (main): Use NaNf instead of NAN.
57901         * modules/roundf-tests (Files): Add tests/nan.h.
57902
57903         * tests/test-truncf1.c: Include nan.h.
57904         (main): Use NaNf instead of NAN.
57905         * modules/truncf-tests (Files): Add tests/nan.h.
57906
57907         * tests/test-ceilf1.c: Include nan.h.
57908         (main): Use NaNf instead of NAN.
57909         * modules/ceilf-tests (Files): Add tests/nan.h.
57910
57911         * tests/test-floorf1.c: Include nan.h.
57912         (main): Use NaNf instead of NAN.
57913         * modules/floorf-tests (Files): Add tests/nan.h.
57914
57915         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57916         (main): Use NaNf instead of NAN.
57917         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57918
57919         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57920         (main): Use NaNd instead of NAN.
57921         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57922
57923         * tests/test-frexp.c: Include nan.h.
57924         (main): Use NaNd instead of NAN.
57925         * modules/frexp-tests (Files): Add tests/nan.h.
57926
57927         * lib/isnan.c: Don't include <math.h>.
57928         (FUNC): Don't use NAN macro.
57929         * modules/isnand-nolibm (Depends-on): Remove math.
57930         * modules/isnanf-nolibm (Depends-on): Remove math.
57931         * modules/isnanl (Depends-on): Remove math.
57932         * modules/isnanl-nolibm (Depends-on): Remove math.
57933
57934         * tests/nan.h: New file.
57935
57936 2008-04-01  Eric Blake  <ebb9@byu.net>
57937
57938         Fix typos.
57939         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57940         values to be the right type.
57941
57942         For now, cater to gnulib strtod inaccuracies.
57943         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57944         fractional results.  While not as nice from a QoI perspective, it
57945         is a quicker patch than correctly implementing decimal to binary
57946         rounding.
57947
57948 2008-03-31  Eric Blake  <ebb9@byu.net>
57949
57950         Guarantee a definition of NAN.
57951         * lib/math.in.h (NAN): Define if missing.
57952         * tests/test-math.c (main): Test it.
57953         * doc/posix-headers/math.texi (math.h): Document this.
57954         * lib/isnan.c (rpl_isnand): Use it.
57955         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57956         * tests/test-floorf1.c (NaN): Likewise.
57957         * tests/test-frexp.c (NaN): Likewise.
57958         * tests/test-isnand.c (NaN): Likewise.
57959         * tests/test-isnanf.c (NaN): Likewise.
57960         * tests/test-round1.c (NaN): Likewise.
57961         * tests/test-roundf1.c (NaN): Likewise.
57962         * tests/test-snprintf-posix.h (NaN): Likewise.
57963         * tests/test-sprintf-posix.h (NaN): Likewise.
57964         * tests/test-trunc1.c (NaN): Likewise.
57965         * tests/test-truncf1.c (NaN): Likewise.
57966         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57967         * tests/test-vasprintf-posix.c (NaN): Likewise.
57968         * modules/isnand-nolibm (Depends-on): Add math.
57969         * modules/isnanf-nolibm (Depends-on): Likewise.
57970         * modules/isnanl (Depends-on): Likewise.
57971         * modules/isnanl-nolibm (Depends-on): Likewise.
57972         * modules/snprintf-posix-tests (Depends-on): Likewise.
57973         * modules/sprintf-posix-tests (Depends-on): Likewise.
57974         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57975         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57976         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57977         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57978
57979 2008-03-31  Bruno Haible  <bruno@clisp.org>
57980
57981         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57982         * doc/posix-functions/strtod.texi: Likewise.
57983
57984 2008-03-31  Bruno Haible  <bruno@clisp.org>
57985
57986         * tests/test-strtod.c (main): Don't use C99 syntax.
57987
57988 2008-03-31  Bruno Haible  <bruno@clisp.org>
57989
57990         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57991         Reported by Eric Blake.
57992
57993 2008-03-31  Jim Meyering  <meyering@redhat.com>
57994
57995         Don't compare actual signbit return values.
57996         * tests/test-strtod.c (main): Rather, compare only their
57997         zero/non-zero nature.
57998
57999 2008-03-31  Eric Blake  <ebb9@byu.net>
58000
58001         More strtod documentation.
58002         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58003         failures as distinct bugs.
58004
58005 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58006
58007         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58008         Problem reported by Erik Benada in
58009         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58010
58011 2008-03-30  Bruno Haible  <bruno@clisp.org>
58012
58013         * tests/test-strtod.c: Add comments about which assertion fails on which
58014         platform.
58015         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58016
58017 2008-03-30  Eric Blake  <ebb9@byu.net>
58018
58019         Test signbit behavior on zeros.
58020         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58021         (test_signbitd, test_signbitl): Likewise.
58022
58023         More strtod touchups.
58024         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58025         sign of negative underflow, for now.  Use .5, not .1.
58026         * doc/posix-functions/strtod.texi (strtod): Mention these
58027         limitations.
58028         Reported by Jim Meyering.
58029
58030 2008-03-30  Bruno Haible  <bruno@clisp.org>
58031
58032         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58033         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58034
58035 2008-03-30  Bruno Haible  <bruno@clisp.org>
58036
58037         Avoid failure when attempting to return empty iconv results on some
58038         platforms.
58039         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58040         allocation, don't report ENOMEM when the resulting string is empty.
58041
58042 2008-03-30  Bruno Haible  <bruno@clisp.org>
58043
58044         Fix buffer overrun.
58045         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58046         Don't consider the width for tmp_length. Check count against tmp_length
58047         before doing the padding. Ensure enough allocation during padding.
58048
58049 2008-03-30  Eric Blake  <ebb9@byu.net>
58050
58051         strtod touchups.
58052         * lib/strtod.c (strtod): Avoid compiler warnings.
58053         Reported by Jim Meyering.
58054
58055 2008-03-30  Bruno Haible  <bruno@clisp.org>
58056
58057         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58058         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58059         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58060         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58061         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58062         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58063         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58064         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58065
58066         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58067         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58068         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58069         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58070         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58071         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58072         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58073         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58074
58075         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58076         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58077         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58078         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58079         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58080         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58081         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58082         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58083
58084         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58085         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58086
58087         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58088         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58089
58090         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58091         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58092
58093         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58095         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58096
58097         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58098         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58099         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58100
58101         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58102         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58103         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58104
58105         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58106         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58107         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58108
58109         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58110         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58112         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58113         (Depends-on): Add EOVERFLOW.
58114         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58115         (Depends-on): Add EOVERFLOW.
58116         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58117         (Depends-on): Add EOVERFLOW.
58118         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58119         (Depends-on): Add EOVERFLOW.
58120         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58121         (Depends-on): Add EOVERFLOW.
58122         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58123         (Depends-on): Add EOVERFLOW.
58124         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58125         (Depends-on): Add EOVERFLOW.
58126         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58127         (Depends-on): Add EOVERFLOW.
58128
58129         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58130         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58131         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58132
58133         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58135         * modules/snprintf (Depends-on): Add EOVERFLOW.
58136
58137         * lib/poll.c (EOVERFLOW): Remove fallback.
58138         * modules/poll (Depends-on): Add EOVERFLOW.
58139
58140         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58141         * modules/getugroups (Depends-on): Add EOVERFLOW.
58142
58143         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58144         * modules/getdelim (Depends-on): Add EOVERFLOW.
58145
58146         * lib/ftell.c (EOVERFLOW): Remove fallback.
58147         * modules/ftell (Depends-on): Add EOVERFLOW.
58148
58149         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58150         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58151         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58152
58153         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58154
58155         * modules/EOVERFLOW-tests: New file.
58156         * tests/test-EOVERFLOW.c: New file.
58157
58158         * modules/EOVERFLOW: New file.
58159         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58160
58161 2008-03-30  Bruno Haible  <bruno@clisp.org>
58162
58163         Fix bug introduced on 2007-06-10.
58164         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58165         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58166
58167 2008-03-30  Bruno Haible  <bruno@clisp.org>
58168
58169         Improve freadseek's efficiency after ungetc.
58170         * lib/freadseek.c: Include freadahead.h.
58171         (freadptrinc): New function, extracted from freadseek.
58172         (freadseek): Use it in a loop. Use freadahead to determine the number
58173         of loop iterations.
58174         * modules/freadseek (Depends-on): Add freadahead.
58175         (configure.ac): Require AC_C_INLINE.
58176
58177 2008-03-30  Bruno Haible  <bruno@clisp.org>
58178
58179         * lib/freadseek.c (freadseek): Don't ignore the return value of
58180         freadptr.
58181
58182 2008-03-29  Eric Blake  <ebb9@byu.net>
58183
58184         Add hex float support.
58185         * modules/strtod (Depends-on): Add c-ctype.
58186         (Link): Mention POW_LIB.
58187         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58188         whitespace between 'e' and exponent.
58189         * tests/test-strtod.c (main): Enable hex float tests.
58190         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58191         now provides.
58192
58193         Document various strtod bugs, with some fixes.
58194         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58195         "-0x", "inf", "nan", and hex constants.
58196         * doc/posix-functions/atof.texi (atof): Likewise.
58197         * modules/stdlib (Makefile.am): Support strtod.
58198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58199         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58200         detect additional strtod bugs.
58201         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58202         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58203         bool where appropriate.  Parse 'inf' and 'nan'.
58204         * tests/test-strtod.c: New file.
58205         * modules/strtod (Depends-on): Add stdbool, stdlib.
58206         (configure.ac): Turn on module indicator.
58207         * modules/strtod-tests: New module.
58208
58209 2008-03-29  Eric Blake  <ebb9@byu.net>
58210
58211         Fix ftell on mingw.
58212         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58213         * modules/ftell-tests (Depends-on): Add binary-io.
58214         * modules/ftello-tests (Depends-on): Likewise.
58215         * tests/test-ftell.c (main): Enhance test to cover behavior after
58216         ungetc.  Enforce binary mode.
58217         * tests/test-ftello.c (main): Likewise.
58218
58219         Pass test-freadseek on cygwin.
58220         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58221         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58222         ungetc buffer.
58223
58224         * tests/test-fflush2.c (main): Fix typo.
58225
58226 2008-03-29  Bruno Haible  <bruno@clisp.org>
58227
58228         * tests/test-fflush2.c (main): Temporarily disable the contents of
58229         this test.
58230         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58231         Reported by Eric Blake.
58232
58233 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58234
58235         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58236         (GC_SHA224_DIGEST_SIZE): Add.
58237
58238         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58239         (gc_hash_digest_length): Likewise.
58240         (gc_hash_buffer): Likewise.
58241
58242 2008-03-25  Bruno Haible  <bruno@clisp.org>
58243
58244         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58245         detail which gettext release to use.
58246         Reported by Simon Josefsson.
58247
58248 2008-03-26  Jim Meyering  <meyering@redhat.com>
58249
58250         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58251         * modules/gnumakefile (clean-GNUmakefile): Also, use
58252         test ... && ... || : syntax rather than if-then ... fi.
58253
58254         gnumakefile: Don't double-quote-expand $(VPATH) value.
58255         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58256
58257 2008-03-24  Eric Blake  <ebb9@byu.net>
58258
58259         Alter GNUmakefile to install into top directory.
58260         * modules/maintainer-makefile: Split, and add dependency...
58261         * modules/gnumakefile: to this new module.
58262         * build-aux/GNUmakefile: Move...
58263         * top/GNUmakefile: ...here.
58264         * build-aux/maint.mk: Move...
58265         * top/maint.mk: ...here.
58266         * MODULES.html.sh (Support for maintaining...): Document new
58267         module.
58268
58269 2008-03-23  Bruno Haible  <bruno@clisp.org>
58270
58271         * gnulib-tool: New options --vc-files, --no-vc-files.
58272         (func_usage): Document them.
58273         (vc_files): New variable.
58274         (func_import): Consider vc_files.
58275         (func_create_testdir): Set vc_files to empty.
58276         Suggested by Jim Meyering and Karl Berry.
58277
58278 2008-03-23  Bruno Haible  <bruno@clisp.org>
58279
58280         Fix regex compilation error on HP-UX 11.
58281         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58282         * modules/regex (Files): Add m4/mbstate_t.m4.
58283         Reported by Ton Voon <ton.voon@altinity.com>.
58284
58285 2008-03-23  Bruno Haible  <bruno@clisp.org>
58286
58287         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58288
58289 2008-03-23  Eric Blake  <ebb9@byu.net>
58290             Bruno Haible  <bruno@clisp.org>
58291
58292         Install files from top/ in the destination directory.
58293         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58294         augmentation also for the files from top/.
58295         (func_import, func_create_testdir): Rewrite file names:
58296         top/filename -> filename.
58297
58298 2008-03-23  Bruno Haible  <bruno@clisp.org>
58299
58300         Tweak "gnulib --version" output.
58301         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58302
58303 2008-03-23  Bruno Haible  <bruno@clisp.org>
58304
58305         Tweak "gnulib --version" output.
58306         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58307         rather than contents of ChangeLog, when possible.
58308
58309 2008-03-21  Eric Blake  <ebb9@byu.net>
58310
58311         More --version tweaks.
58312         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58313         date of last ChangeLog entry.
58314
58315 2008-03-21  Jim Meyering  <meyering@redhat.com>
58316
58317         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58318
58319 2008-03-20  Eric Blake  <ebb9@byu.net>
58320
58321         VPATH fix.
58322         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58323
58324 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58325
58326         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58327         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58328
58329 2008-03-20  Eric Blake  <ebb9@byu.net>
58330
58331         Sync GNUmakefile with coreutils.
58332         * build-aux/GNUmakefile (have-Makefile): Rename...
58333         (_have-Makefile): ...to this, for namespace consideration.
58334         (GNUmakefile.cfg): Include, if present.
58335         (_autoreconf): Define a default.
58336         (_is-dist-target): New rule for rebuilds to pick up intra-release
58337         version.
58338         (maint-cfg.mk): Rename...
58339         (cfg.mk): ...to this.
58340
58341 2008-03-18  Jim Meyering  <meyering@redhat.com>
58342
58343         New script and module: mktempd
58344         * MODULES.html.sh (maint+release support): Add mktempd.
58345         * build-aux/mktempd: New file.
58346         * modules/mktempd: New file.
58347
58348 2008-03-15  Jim Meyering  <meyering@redhat.com>
58349
58350         Undo last change.
58351         * lib/sha1.c, lib/md5.c: 63 != ~63.
58352         Reported by Andreas Schwab.
58353
58354         sha1.c, md5.c: Hoist a redundant expression.
58355         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58356         "ctx->buflen" only once, before calling *_process_block.
58357         * lib/md5.c (md5_process_bytes): Likewise.
58358
58359 2008-03-14  Eric Blake  <ebb9@byu.net>
58360
58361         Bump copyright year in files generated by gnulib-tool.
58362         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58363         gnulib-tool, rather than hard-coding it.
58364
58365         Fix 'gnulib-tool --version' output to work with git.
58366         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58367         (startup): ...here.
58368         (func_version): Use it to invoke git-version-gen, rather than
58369         relying on CVS keyword expansion.  Modernize wording.
58370         (cvsdatestamp, last_checkin_date, version): Kill unused
58371         variables.
58372
58373 2008-03-12  Jim Meyering  <meyering@redhat.com>
58374
58375         Recognize optional cast of the argument to free.
58376         * build-aux/useless-if-before-free: Update regexps.
58377
58378         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58379
58380 2008-03-11  Bruno Haible  <bruno@clisp.org>
58381
58382         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58383         by a single package.
58384         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58385         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58386         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58387         Reported by Sam Steingold <sds@gnu.org>.
58388
58389 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58390
58391         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58392         repositories.
58393
58394 2008-03-11  Bruno Haible  <bruno@clisp.org>
58395
58396         Avoid conflicts between local macro definitions.
58397         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58398         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58399
58400 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58401             Bruno Haible  <bruno@clisp.org>
58402
58403         Make va_copy work with some version of xlc on AIX 5.1.
58404         * lib/stdarg.in.h: New file.
58405         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58406         On AIX, use a <stdarg.h> file substitute.
58407         * modules/stdarg (Files): Add lib/stdarg.in.h.
58408         (Depends-on): Add include_next.
58409         (Makefile.am): Build a stdarg.h substitute if requested.
58410         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58411
58412 2008-03-10  Bruno Haible  <bruno@clisp.org>
58413
58414         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58415         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58416         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58417
58418 2008-03-10  Bruno Haible  <bruno@clisp.org>
58419
58420         * modules/stdlib (Depends-on): Add include_next, remove
58421         absolute-header.
58422
58423 2008-03-09  Bruno Haible  <bruno@clisp.org>
58424
58425         * lib/freadahead.h (freadahead): Document more precisely.
58426         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58427         the sum of both buffer sizes.
58428         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58429         * NEWS: Document the change.
58430
58431 2008-03-09  Bruno Haible  <bruno@clisp.org>
58432
58433         Extend freadptr to return also the buffer size.
58434         * lib/freadptr.h (freadptr): Add sizep argument.
58435         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58436         (freadptr): Add sizep argument. Determine buffer size like freadahead
58437         does.
58438         * tests/test-freadptr.c: Don't include freadahead.h.
58439         (main): Adapt for new calling convention of freadptr.
58440         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58441         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58442         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58443         tests/test-freadptr2.sh.
58444         (Depends): Remove freadahead.
58445         (TESTS): Add test-freadptr2.sh.
58446         (check_PROGRAMS): Add test-freadptr2.
58447
58448 2008-03-09  Bruno Haible  <bruno@clisp.org>
58449
58450         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58451         Report and solution by Simon Josefsson.
58452
58453 2008-03-06  Bruno Haible  <bruno@clisp.org>
58454
58455         Make fflush after ungetc work on BSD platforms.
58456         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58457         * tests/test-fflush2.c: New file.
58458         * tests/test-fflush2.sh: New file.
58459         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58460         tests/test-fflush2.c.
58461         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58462         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58463
58464 2008-03-06  Eric Blake  <ebb9@byu.net>
58465
58466         Likewise for ftello.
58467         * modules/ftello (Dependencies): Add extensions.
58468         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58469
58470 2008-03-06  Bruno Haible  <bruno@clisp.org>
58471
58472         * modules/fseeko (Dependencies): Add extensions.
58473         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58474         Needed on glibc systems.
58475
58476 2008-03-06  Bruno Haible  <bruno@clisp.org>
58477
58478         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58479         email address.
58480         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58481
58482 2008-03-06  Bruno Haible  <bruno@clisp.org>
58483
58484         * users.txt: Add libgnupdf.
58485
58486 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58487
58488         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58489         (Header File Substitutes, Function Substitutes,
58490         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58491         (Build robot for gnulib): Fix typo.
58492
58493 2008-03-06  Bruno Haible  <bruno@clisp.org>
58494
58495         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58496         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58497
58498 2008-03-06  Bruno Haible  <bruno@clisp.org>
58499
58500         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58501         * doc/gnulib.texi: Include it.
58502
58503 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58504
58505         * modules/func (License): Change license to unlimited; there was
58506         no LGPL parts in the module anyway.
58507
58508 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58509
58510         * modules/__func__: Renamed to modules/func.
58511         * modules/__func__-tests: Renamed to modules/func-tests.
58512         * tests/test-__func__.c: Renamed to tests/test-func.c.
58513         * m4/__func__.m4: Renamed to m4/func.m4.
58514         * doc/gnulib.texi (__func__): Section renamed to func.
58515         Suggested by Eric Blake <ebb9@byu.net>.
58516
58517 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58518
58519         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58520         about __func__.  Make example self-contained.  Suggested by Eric
58521         Blake <ebb9@byu.net>.
58522
58523         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58524         Suggested by Eric Blake <ebb9@byu.net>.
58525
58526 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58527
58528         * modules/__func__: New file.
58529         * modules/__func__-tests: New file.
58530         * tests/test-__func__.c: New file.
58531         * m4/__func__.m4: New file.
58532         * doc/gnulib.texi (__func__): Document __func__ module.
58533
58534 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58535
58536         * modules/byteswap (License): Re-license as LGPLv2+.
58537
58538 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58539
58540         * doc/Makefile: Add pdf target.
58541
58542 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58543
58544         * modules/inline (License): Use 'unlimited', since there are only
58545         *.m4 files in this module.
58546
58547 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58548             Bruno Haible  <bruno@clisp.org>
58549
58550         Add support for HP C 7.1 on OpenVMS 8.3.
58551         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58552
58553 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58554
58555         Update VMS specifics.
58556         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58557
58558 2008-03-02  Jim Meyering  <meyering@redhat.com>
58559
58560         Remove the last dependency on the "free" module.
58561         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58562         Reported by Bob Proulx.
58563
58564         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58565
58566         Remove useless "if" tests before free.  Deprecate "free" module.
58567         * doc/posix-functions/free.texi: Mention that this
58568         module is no longer useful.
58569         * modules/free (Notice): Say this module is obsolete.
58570         * modules/readutmp (Depends-on): Remove free.
58571         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58572         * lib/putenv.c (putenv): Likewise.
58573         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58574         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58575         * tests/test-c-strcasestr.c (main): Likewise.
58576         * tests/test-c-strstr.c (main): Likewise.
58577         * tests/test-mbscasestr1.c (main): Likewise.
58578         * tests/test-mbscasestr2.c (main): Likewise.
58579         * tests/test-mbsstr1.c (main): Likewise.
58580         * tests/test-mbsstr2.c (main): Likewise.
58581         * tests/test-memmem.c (main): Likewise.
58582         * tests/test-strcasestr.c (main): Likewise.
58583         * tests/test-striconv.c (main): Likewise.
58584         * tests/test-striconveh.c (main): Likewise.
58585         * tests/test-striconveha.c (main): Likewise.
58586         * tests/test-strstr.c (main): Likewise.
58587
58588         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58589
58590         bootstrap: sync from coreutils again
58591         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58592
58593 2008-03-01  Jim Meyering  <meyering@redhat.com>
58594
58595         bootstrap: sync from coreutils
58596         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58597         also when the target doesn't exist.
58598
58599 2008-03-01  Eric Blake  <ebb9@byu.net>
58600
58601         Fix bugs in last patch.
58602         * lib/memchr2.c (memchr2): Fix typo.
58603         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58604         extension.
58605         Reported by Bruce Korb.
58606
58607         New module 'memchr2'.
58608         * modules/memchr2: New file.
58609         * modules/memchr2-tests: Likewise.
58610         * lib/memchr2.h: Likewise.
58611         * lib/memchr2.c: Likewise, based on memchr.c.
58612         * tests/test-memchr2.c: New test.
58613         * MODULES.html.sh (String handling): Add memchr2.
58614
58615 2008-02-29  Bruno Haible  <bruno@clisp.org>
58616
58617         * modules/freadseek-tests: New file.
58618         * tests/test-freadseek.sh: New file.
58619         * tests/test-freadseek.c: New file.
58620
58621         New module 'freadseek'.
58622         * modules/freadseek: New file.
58623         * lib/freadseek.h: New file.
58624         * lib/freadseek.c: New file.
58625         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58626
58627 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58628
58629         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58630         wydawca.
58631
58632         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58633         program_invocation_name and program_invocation_short_name are
58634         present.
58635
58636 2008-02-28  Bruno Haible  <bruno@clisp.org>
58637
58638         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58639         * tests/test-freadptr.sh: Also test non-seekable stdin.
58640
58641 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58642
58643         * build-aux/bootstrap (source_base, m4_base)
58644         (doc_base, tests_base): New variables.
58645         (gnulib_tool_options): Do not hardcode base directories, use
58646         the above variables instead.
58647
58648 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58649
58650         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58651
58652 2008-02-28  Bruno Haible  <bruno@clisp.org>
58653
58654         * modules/freadptr-tests: New file.
58655         * tests/test-freadptr.sh: New file.
58656         * tests/test-freadptr.c: New file.
58657
58658         New module 'freadptr'.
58659         * modules/freadptr: New file.
58660         * lib/freadptr.h: New file.
58661         * lib/freadptr.c: New file.
58662         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58663
58664 2008-02-26  Karl Berry  <karl@freefriends.org>
58665
58666         Sync from Libtool:
58667         * libltdl/argz.c (argz_add, argz_count): New functions.
58668         * libltdl/argz.in.h: Declare them.
58669         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58670
58671 2008-02-22  Bruno Haible  <bruno@clisp.org>
58672
58673         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58674         is a pointer type.  Needed for HP-UX 10.
58675         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58676         * doc/posix-functions/gmtime_r.texi: Likewise.
58677         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58678
58679 2008-02-24  Bruno Haible  <bruno@clisp.org>
58680
58681         * modules/environ-tests: New file.
58682         * tests/test-environ.c: New file.
58683
58684         New module 'environ'.
58685         * modules/environ: New file.
58686         * lib/unistd.in.h (environ): New declaration.
58687         * m4/environ.m4: New file.
58688         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58689         after use.
58690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58691         HAVE_DECL_ENVIRON.
58692         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58693         HAVE_DECL_ENVIRON.
58694         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58695         wrong claim that 'environ' is missing on some systems.
58696         * modules/execute (Depends-on): Add environ.
58697         * lib/execute.c (environ): Remove fallback declaration.
58698         * modules/pipe (Depends-on): Add environ.
58699         * lib/pipe.c (environ): Remove fallback declaration.
58700         * modules/setenv (Depends-on): Add environ.
58701         * lib/setenv.c (environ): Remove fallback declaration.
58702         * modules/unsetenv (Depends-on): Add environ.
58703         * lib/unsetenv.c (environ): Remove fallback declaration.
58704         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58705         m4/environ.m4.
58706         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58707         (gl_PREREQ_UNSETENV): Likewise.
58708
58709 2008-02-24  Bruno Haible  <bruno@clisp.org>
58710
58711         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58712
58713 2008-02-20  Bob Proulx  <bob@proulx.com>
58714
58715         Enable use of older two part flavor 'git describe'.
58716         * build-aux/git-version-gen: If using the older two part flavor of
58717         git version then recreate the third part now present in the
58718         newer three part flavor of git describe.
58719
58720 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58721
58722         * lib/fts.c (fts_build): Typo correction to comment.
58723
58724 2008-02-17  Bruno Haible  <bruno@clisp.org>
58725
58726         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58727         generating no-op conflicts.
58728
58729 2008-02-17  Bruno Haible  <bruno@clisp.org>
58730
58731         Speed up by 10%.
58732         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58733         result_entries, rather than an index-based loop.
58734
58735 2008-02-17  Bruno Haible  <bruno@clisp.org>
58736
58737         Speed up by 25%.
58738         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58739         'hashcode_cached'.
58740         (entry_create): New function.
58741         (entry_hashcode): Use the cached hashcode if possible.
58742         (read_changelog_file, try_split_merged_entry): Use entry_create.
58743
58744 2008-02-17  Bruno Haible  <bruno@clisp.org>
58745
58746         Speed up from O(n^2) to O(n) for long ChangeLog files.
58747         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58748         (read_changelog_file): Change implementation of entries_reversed list
58749         to rbtreehash.
58750         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58751
58752 2008-02-17  Bruno Haible  <bruno@clisp.org>
58753
58754         New option --split-merged-entry.
58755         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58756         (find_paragraph_end, try_split_merged_entry): New functions.
58757         (long_options): Add option --split-merged-entry.
58758         (usage): Document option --split-merged-entry.
58759         (main): Implement option --split-merged-entry.
58760         Reported by Eric Blake.
58761
58762 2008-02-17  Bruno Haible  <bruno@clisp.org>
58763
58764         * lib/git-merge-changelog.c: Include c-strstr.h.
58765         (main): Support the "git pull --rebase" situation.
58766         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58767         Reported by Eric Blake.
58768
58769 2008-02-16  Eric Blake  <ebb9@byu.net>
58770
58771         Avoid doubling \ in common case of "c-maybe" quoting style.
58772         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58773         eliding outer quotes.
58774         * lib/quotearg.h: Document this.
58775         * tests/test-quotearg.c (result_strings, inputs, results_g)
58776         (flag_results, locale_results): Test it by adding a new string to
58777         each test group.
58778         (compare_strings): Test new string.
58779
58780 2008-02-13  Eric Blake  <ebb9@byu.net>
58781
58782         Avoid trigraph quoting in default output.
58783         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58784         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58785         unless explicitly requested.
58786         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58787
58788 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58789
58790         Don't rely on signed integer overflowing to negative value.
58791         * lib/getugroups.c (getugroups): Include <limits.h>.
58792         Instead, compare against INT_MAX, and increment only if the test passes.
58793
58794 2008-02-13  Jim Meyering  <meyering@redhat.com>
58795         and Eric Blake  <ebb9@byu.net>
58796
58797         Avoid shadowing warning and compile errors on Linux.
58798         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58799         forwarding macros on Linux.
58800         (dcgettext): Define a stub, for Linux.
58801         (results_g, main): Avoid warnings.
58802
58803 2008-02-12  Eric Blake  <ebb9@byu.net>
58804
58805         Silence warning in last patch.
58806         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58807
58808         Quotearg part 4: add tests, fix c-maybe colon quoting.
58809         * lib/quotearg.h: Improve documentation.
58810         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58811         escapes when adding outer quotes.  When quoting trigraphs, use
58812         valid C notation.  When quoting NUL, omit extra characters if next
58813         character is not digit.  Alter prototype.
58814         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58815         callers.
58816         * modules/quotearg-tests: New module.
58817         * tests/test-quotearg.c: New test.
58818
58819 2008-02-07  Eric Blake  <ebb9@byu.net>
58820
58821         Quotearg part 3: add flag to control outer quote elision.
58822         * lib/quotearg.h (c_maybe_quoting_style): New style.
58823         (enum quoting_flags): Better documentation of flags.
58824         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58825         c-maybe style.
58826         (quotearg_buffer_restyled): Handle new flag to elide outer
58827         quotes.
58828
58829         Quotearg part 2: add flag that can control NUL elision.
58830         * lib/quotearg.h (set_quoting_flags): New prototype.
58831         * lib/quotearg.c (struct quoting_options): Add flag field.
58832         (set_quoting_flags): New function.
58833         (quotearg_buffer_restyled): Add flags parameter.
58834         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58835         (quotearg_n_options): Set the flag, since length cannot be
58836         returned.
58837         (quoting_options_from_style): Default flags correctly.
58838
58839         Quotearg part 1: more wrappers, restore quotearg_char state.
58840         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58841         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58842         (quotearg_colon_mem): New wrappers.
58843         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58844         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58845         functions.
58846         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58847         (quotearg_colon_mem): New functions.
58848
58849 2008-02-11  Bruno Haible  <bruno@clisp.org>
58850
58851         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58852         library in the current directory: it does not work with parallel make.
58853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58854
58855 2008-02-11  Bruno Haible  <bruno@clisp.org>
58856
58857         * .gitattributes: New file.
58858
58859 2008-02-11  Jim Meyering  <meyering@redhat.com>
58860
58861         useless-if-before-free: Fix reversed exit values.
58862         * build-aux/useless-if-before-free: Use correct values
58863         for EXIT_MATCH and EXIT_NO_MATCH.
58864
58865         * build-aux/useless-if-before-free: Close stdout carefully.
58866
58867 2008-02-10  Bruno Haible  <bruno@clisp.org>
58868
58869         New module 'git-merge-changelog'.
58870         * modules/git-merge-changelog: New file.
58871         * lib/git-merge-changelog.c: New file.
58872
58873 2008-02-10  Jim Meyering  <meyering@redhat.com>
58874
58875         useless-if-before-free: New option: --list (-l).
58876
58877         useless-if-before-free: Don't exit immediately upon open failure.
58878         * build-aux/useless-if-before-free: Exit 2 for errors.
58879         Upon failure to open a file, don't exit immediately.
58880         Rather, just warn and continue with any remaining files.
58881
58882 2008-02-10  Bruno Haible  <bruno@clisp.org>
58883
58884         New abstract list operation 'node_set_value'.
58885         * lib/gl_list.h (gl_list_node_set_value): New function.
58886         (struct gl_list_implementation): New field node_set_value.
58887         * lib/gl_list.c (gl_list_node_set_value): New function.
58888         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58889         (gl_array_list_implementation): Update.
58890         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58891         (gl_carray_list_implementation): Update.
58892         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58893         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58894         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58895         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58896         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58897         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58898         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58899         Update.
58900         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58901         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58902         (gl_sublist_list_implementation): Update.
58903
58904 2008-02-10  Bruno Haible  <bruno@clisp.org>
58905
58906         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58907         Needed when ELEMENT is #defined to 'some_type *'.
58908
58909 2008-02-10  Jim Meyering  <meyering@redhat.com>
58910
58911         New script and module: useless-if-before-free
58912         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58913         * build-aux/useless-if-before-free: New file.
58914         * modules/useless-if-before-free: New file.
58915
58916         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58917
58918         xstrtol_error: Fix typo.
58919         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58920         s/exit_failure/exit_status/.
58921
58922 2008-02-09  Jim Meyering  <meyering@redhat.com>
58923
58924         New script and module: gitlog-to-changelog
58925         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58926         * modules/gitlog-to-changelog: New file.
58927         * build-aux/gitlog-to-changelog: New file.
58928
58929 2008-02-08  Jim Meyering  <meyering@redhat.com>
58930
58931         Avoid two "parameter unused" warnings.
58932         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58933         Mark "st" as used.
58934
58935         Use "git COMMAND", not "git-COMMAND".
58936         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58937         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58938         * build-aux/git-version-gen: Use "git status", not "git-status".
58939
58940 2008-02-07  Bruno Haible  <bruno@clisp.org>
58941
58942         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58943         Avoids a crash on Windows Vista.
58944         Reported by Adam Strzelecki <ono@java.pl> via
58945         Simon Josefsson <simon@josefsson.org>.
58946
58947 2008-02-06  Bruno Haible  <bruno@clisp.org>
58948
58949         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58950         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58951         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58953         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58954         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58955         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58956         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58957         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58958         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58959         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58960         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58961         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58962         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58963         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58964         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58965         left-adjust flag.
58966         * tests/test-snprintf-posix.h (test_function): Likewise.
58967         * tests/test-sprintf-posix.h (test_function): Likewise.
58968         * tests/test-vasprintf-posix.c (test_function): Likewise.
58969         * doc/posix-functions/fprintf.texi: Update.
58970         * doc/posix-functions/printf.texi: Update.
58971         * doc/posix-functions/snprintf.texi: Update.
58972         * doc/posix-functions/sprintf.texi: Update.
58973         * doc/posix-functions/vfprintf.texi: Update.
58974         * doc/posix-functions/vprintf.texi: Update.
58975         * doc/posix-functions/vsnprintf.texi: Update.
58976         * doc/posix-functions/vsprintf.texi: Update.
58977         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58978
58979 2008-02-06  Bruno Haible  <bruno@clisp.org>
58980
58981         Fix bug introduced on 2008-01-26.
58982         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58983
58984 2008-02-06  Bruno Haible  <bruno@clisp.org>
58985
58986         Fix bug introduced on 2007-06-10.
58987         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58988         !NEED_PRINTF_FLAG_ZERO.
58989
58990 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58991
58992         getloadavg: use libperfstat on AIX5
58993         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58994
58995 2008-02-03  Bruno Haible  <bruno@clisp.org>
58996
58997         * lib/diffseq.h: Add comments about required #includes.
58998         Reported by Michael Biggs <gnulib@doubleplum.net>.
58999
59000 2008-02-01  Bruno Haible  <bruno@clisp.org>
59001
59002         * users.txt: Add gnuit.
59003
59004 2008-01-31  Bruno Haible  <bruno@clisp.org>
59005
59006         * lib/md4.c (set_uint32): Mark as inline.
59007         * lib/md5.c (set_uint32): Likewise.
59008         * lib/sha1.c (set_uint32): Likewise.
59009         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59010         * m4/md5.m4 (gl_MD5): Likewise.
59011         * m4/sha1.m4 (gl_SHA1): Likewise.
59012
59013 2008-01-31  Jim Meyering  <meyering@redhat.com>
59014
59015         Use "sizeof VAR", rather than a literal "4".
59016         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59017         * lib/md4.c (md4_read_ctx): Likewise.
59018         * lib/sha1.c (sha1_read_ctx): Likewise.
59019
59020 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59021
59022         * tests/test-sha1.c: New file, based on test-md5.c.
59023
59024         * modules/crypto/sha1-tests: New file.
59025
59026 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59027
59028         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59029
59030 2008-01-31  Jim Meyering  <meyering@redhat.com>
59031
59032         Prefer "sizeof v" over the equivalent "4".
59033         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59034         * lib/md5.c (set_uint32): Likewise.
59035         * lib/sha1.c (set_uint32): Likewise.
59036
59037 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59038
59039         * lib/sha1.c (set_uint32): Mark function as static.
59040
59041 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59042
59043         md2: clarify comments to say that alignment is not required.
59044         * lib/md2.h: Remove warning about alignment in comment.
59045         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59046         never been required.
59047
59048 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59049
59050         md4: adapt alignment constraint fix from sha1.
59051         * lib/md4.c (set_uint32): New function, from sha1.c
59052         (md4_read_ctx): Use it.
59053         (md4_finish_ctx): Doc fix.
59054         * lib/md4.h: Doc fix.
59055
59056 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59057
59058         md5: adapt alignment constraint fix from sha1.
59059         * lib/md5.c (set_uint32): New function, from sha1.c
59060         (md5_read_ctx): Use it.
59061         (md5_finish_ctx): Doc fix.
59062         * lib/md5.h: Doc fix.
59063
59064 2008-01-30  Peter Palfrader  <weasel@debian.org>
59065
59066         sha1: remove the result buffer alignment constraint
59067         * lib/sha1.c (set_uint32): New function.
59068         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59069         constraint.
59070         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59071         * lib/sha1.h: Likewise.
59072
59073 2008-01-30  Andreas Schwab  <schwab@suse.de>
59074             Bruno Haible  <bruno@clisp.org>
59075
59076         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59077         correct definition of LDBL_MIN_EXP.
59078
59079 2008-01-30  Karl Berry  <karl@gnu.org>
59080
59081         * config/srclist-update: try to preserve x bit on updates.
59082         * config/srclistvars.sh: update for karl.
59083
59084 2008-01-29  Jim Meyering  <meyering@redhat.com>
59085
59086         vasnprintf.c: Avoid warning about unused label
59087         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59088         "overflow" label definition and associated code with the
59089         same cpp condition that guards the sole use of that label.
59090
59091 2008-01-26  Bruno Haible  <bruno@clisp.org>
59092
59093         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59094         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59095         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59096         * lib/isnanl-nolibm.h (isnanl): Likewise.
59097         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59098
59099 2008-01-26  Bruno Haible  <bruno@clisp.org>
59100
59101         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59102         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59103
59104 2008-01-26  Bruno Haible  <bruno@clisp.org>
59105
59106         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59107         GCC >= 4.0 built-in.
59108         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59109
59110 2008-01-26  Bruno Haible  <bruno@clisp.org>
59111
59112         Rename isnan, applicable to 'double' only, to isnand.
59113         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59114         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59115         (configure.ac): Update.
59116         (Include): Replace "isnan.h" with "isnand.h".
59117         * m4/isnand.m4: Renamed from m4/isnan.m4.
59118         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59119         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59120         instead of isnan.c.
59121         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59122         instead of HAVE_ISNAN_IN_LIBC.
59123         (isnand): Renamed from isnan.
59124         * lib/isnand.c: New file.
59125         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59126         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59127         (Makefile.am): Update.
59128         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59129         Include isnand.h instead of isnan.h.
59130         (main): Test isnand instead of isnan.
59131         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59132         isnan-nolibm.
59133         * modules/frexp (Depends-on): Likewise.
59134         * modules/frexp-tests (Depends-on): Likewise.
59135         * modules/frexp-nolibm (Depends-on): Likewise.
59136         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59137         * modules/isfinite (Depends-on): Likewise.
59138         * modules/round-tests (Depends-on): Likewise.
59139         * modules/signbit (Depends-on): Likewise.
59140         * modules/signbit-tests (Depends-on): Likewise.
59141         * modules/snprintf-posix (Depends-on): Likewise.
59142         * modules/sprintf-posix (Depends-on): Likewise.
59143         * modules/trunc-tests (Depends-on): Likewise.
59144         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59145         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59146         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59147         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59148         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59149         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59150         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59151         * modules/vasnprintf-posix (Depends-on): Likewise.
59152         * modules/vasprintf-posix (Depends-on): Likewise.
59153         * modules/vfprintf-posix (Depends-on): Likewise.
59154         * modules/vsnprintf-posix (Depends-on): Likewise.
59155         * modules/vsprintf-posix (Depends-on): Likewise.
59156         * lib/frexp.c: Include isnand.h instead of isnan.h.
59157         (ISNAN): Set to isnand instead of isnan.
59158         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59159         (gl_isfinited): Use isnand instead of isnan.
59160         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59161         (gl_signbitd): Use isnand instead of isnan.
59162         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59163         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59164         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59165         (main): Use isnand instead of isnan.
59166         * tests/test-round1.c: Include isnand.h.
59167         (main): Use isnand instead of isnan.
59168         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59169         (ISNAN): Set to isnand instead of isnan.
59170         * tests/test-trunc1.c: Include isnand.h.
59171         (main): Use isnand instead of isnan.
59172         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59173         (equal): Use isnand instead of isnan.
59174         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59175         isnand-nolibm.
59176         * NEWS: Mention the change.
59177
59178 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59179             Bruno Haible  <bruno@clisp.org>
59180
59181         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59182         the GCC builtins for signbits are present and set
59183         REPLACE_SIGNBIT_USING_GCC if so.
59184         * lib/math.in.h (signbit): Define using GCC builtins if
59185         REPLACE_SIGNBIT_USING_GCC is set.
59186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59187         REPLACE_SIGNBIT_USING_GCC.
59188         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59189
59190 2008-01-25  Jim Meyering  <meyering@redhat.com>
59191
59192         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59193         * lib/poll.c: Include <config.h>, not "config.h".
59194         * tests/test-getaddrinfo.c: Likewise.
59195
59196 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59197
59198         * modules/sockets-tests: New file.
59199
59200 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59201
59202         * modules/sockets: New module, can be used to call WSA_Startup and
59203         WSA_Cleanup when needed.
59204
59205         * lib/sockets.h, lib/sockets.c: New files.
59206
59207         * m4/sockets.m4: New file.
59208
59209         * tests/test-sockets.c: New file.
59210
59211 2008-01-19  Bruno Haible  <bruno@clisp.org>
59212
59213         * doc/posix-headers: Renamed from doc/headers.
59214         * doc/posix-functions: Renamed from doc/functions.
59215         * doc/gnulib.texi: Update.
59216
59217 2008-01-19  Bruno Haible  <bruno@clisp.org>
59218
59219         * doc/glibc-functions/strcasestr.texi: Include contents of
59220         doc/functions/strcasestr.texi, fixing the list of platforms.
59221         * doc/functions/strcasestr.texi: Remove file.
59222
59223 2008-01-19  Bruno Haible  <bruno@clisp.org>
59224
59225         * doc/glibc-functions/memmem.texi: Include contents of
59226         doc/functions/memmem.texi.
59227         * doc/functions/memmem.texi: Remove file.
59228
59229 2008-01-18  Bruno Haible  <bruno@clisp.org>
59230
59231         * doc/glibc-functions/*.texi: New files.
59232         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59233         to use the new files.
59234
59235 2008-01-17  Bruno Haible  <bruno@clisp.org>
59236
59237         * tests/test-gethostname.c (main): Fix printf statement.
59238
59239 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59240
59241         * modules/gethostname-tests: New file.
59242
59243         * tests/test-gethostname.c: New file.
59244
59245 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59246
59247         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59248         used by the UNAME case.  Reported by Bruno Haible
59249         <bruno@clisp.org>.
59250
59251 2008-01-17  Eric Blake  <ebb9@byu.net>
59252
59253         Convert c-strcasestr to be more efficient.
59254         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59255         (Depends-on): Add c-strcase, remove malloca, strnlen.
59256         * tests/test-c-strcasestr.c (main): Enhance test.
59257         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59258
59259 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59260
59261         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59262         Use it in creating po/Makevars.
59263
59264 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59265
59266         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59267         Applications that requires it should initialize libgcrypt
59268         manually.
59269
59270 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59271
59272         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59273
59274 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59275
59276         Fix problem with getdate on mingw32 reported by Simon Josefsson
59277         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59278         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59279         tzname", when deciding whether to declare tzname.
59280         * lib/strftime.c (tzname): Likewise.
59281
59282 2008-01-15  Bruno Haible  <bruno@clisp.org>
59283
59284         Work around a MacOS X 10.5 bug in frexpl().
59285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59286         * doc/functions/frexpl.texi: Document the bug.
59287         Reported by Elias Pipping <pipping@gentoo.org>.
59288
59289 2008-01-14  Eric Blake  <ebb9@byu.net>
59290
59291         Touch up previous patch.
59292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59293         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59294
59295         Convert strcasestr module to use Two-Way algorithm.
59296         * modules/strcasestr-simple: New module, based on the old
59297         strcasestr, but with Two-Way rather than KMP.
59298         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59299         * lib/string.in.h (rpl_strcasestr): Declare.
59300         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59301         performance.
59302         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59303         * modules/string (Makefile.am): Support strcasestr.
59304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59305         * modules/strcasestr-tests (Depends-on): Check for alarm.
59306         * tests/test-strcasestr.c: Augment test.
59307         * lib/str-two-way.h: Clean up stray macro.
59308         * NEWS: Document new module.
59309         * MODULES.html.sh (string handling): Likewise.
59310         * doc/functions/strcasestr.texi: New file.
59311         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59312         here, since it is not a POSIX function.
59313
59314 2008-01-14  Colin Watson  <cjwatson@debian.org>
59315             Bruno Haible  <bruno@clisp.org>
59316
59317         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59318         works fine; if not, set REPLACE_STRSIGNAL.
59319         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59321         REPLACE_STRSIGNAL.
59322         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59323         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59324         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59325
59326 2008-01-14  Bruno Haible  <bruno@clisp.org>
59327
59328         * modules/strsignal (Include): Change to <string.h>.
59329
59330 2008-01-14  Colin Watson  <cjwatson@debian.org>
59331
59332         * modules/argp (Notice): Add a notice recommending to change
59333         XGETTEXT_OPTIONS.
59334         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59335
59336 2008-01-13  Colin Watson  <cjwatson@debian.org>
59337
59338         * modules/strsignal-tests: New file.
59339         * tests/test-strsignal.c: New file.
59340
59341         * lib/strsignal.c: New file, from glibc with modifications.
59342         * lib/siglist.h: New file, from glibc with modifications.
59343         * lib/string.in.h (strsignal): New declaration.
59344         * m4/strsignal.m4: New file.
59345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59346         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59347         * modules/strsignal: New file.
59348         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59349         HAVE_DECL_STRSIGNAL.
59350
59351 2008-01-13  Bruno Haible  <bruno@clisp.org>
59352
59353         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59354         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59355         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59357
59358 2008-01-13  Bruno Haible  <bruno@clisp.org>
59359
59360         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59361         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59362         * lib/argp.h (__attribute__): Likewise.
59363         * lib/c-stack.c (__attribute__): Likewise.
59364         * lib/error.h (__attribute__): Likewise.
59365         * lib/fts.c (__attribute__): Likewise.
59366         * lib/openat.h (__attribute__): Likewise.
59367         * lib/stdio.in.h (__attribute__): Likewise.
59368         * lib/string.in.h (__attribute__): Likewise.
59369         * lib/utimens.c (__attribute__): Likewise.
59370         * lib/vasnprintf.h (__attribute__): Likewise.
59371         * lib/xalloc.h (__attribute__): Likewise.
59372         * lib/xprintf.h (__attribute__): Likewise.
59373         * lib/xstrtol.h (__attribute__): Likewise.
59374         * lib/xvasprintf.h (__attribute__): Likewise.
59375
59376 2008-01-12  Bruno Haible  <bruno@clisp.org>
59377
59378         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59379         * doc/glibc-headers/a.out.texi: New file.
59380         * doc/glibc-headers/aliases.texi: New file.
59381         * doc/glibc-headers/alloca.texi: New file.
59382         * doc/glibc-headers/ar.texi: New file.
59383         * doc/glibc-headers/argp.texi: New file.
59384         * doc/glibc-headers/argz.texi: New file.
59385         * doc/glibc-headers/byteswap.texi: New file.
59386         * doc/glibc-headers/crypt.texi: New file.
59387         * doc/glibc-headers/endian.texi: New file.
59388         * doc/glibc-headers/envz.texi: New file.
59389         * doc/glibc-headers/err.texi: New file.
59390         * doc/glibc-headers/error.texi: New file.
59391         * doc/glibc-headers/execinfo.texi: New file.
59392         * doc/glibc-headers/fpu_control.texi: New file.
59393         * doc/glibc-headers/fstab.texi: New file.
59394         * doc/glibc-headers/fts.texi: New file.
59395         * doc/glibc-headers/getopt.texi: New file.
59396         * doc/glibc-headers/ieee754.texi: New file.
59397         * doc/glibc-headers/ifaddrs.texi: New file.
59398         * doc/glibc-headers/libintl.texi: New file.
59399         * doc/glibc-headers/mcheck.texi: New file.
59400         * doc/glibc-headers/mntent.texi: New file.
59401         * doc/glibc-headers/obstack.texi: New file.
59402         * doc/glibc-headers/paths.texi: New file.
59403         * doc/glibc-headers/printf.texi: New file.
59404         * doc/glibc-headers/pty.texi: New file.
59405         * doc/glibc-headers/resolv.texi: New file.
59406         * doc/glibc-headers/shadow.texi: New file.
59407         * doc/glibc-headers/sysexits.texi: New file.
59408         * doc/glibc-headers/ttyent.texi: New file.
59409
59410 2008-01-12  Jim Meyering  <meyering@redhat.com>
59411
59412         announce-gen: emit Gnulib's git-based version string.
59413         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59414         New option --gnulib-version=V, where V is expected to be
59415         the output of running git describe in the gnulib directory.
59416         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59417         not useful, and plan to stop publishing an xdelta file with each
59418         coreutils release.
59419
59420         * build-aux/announce-gen: Also check for lzma-compressed files.
59421
59422 2008-01-11  Bruno Haible  <bruno@clisp.org>
59423
59424         * tests/test-memmem.c (main): Increase maximum allowed time.
59425         * tests/test-strstr.c (main): Likewise.
59426
59427 2008-01-11  Bruno Haible  <bruno@clisp.org>
59428
59429         * doc/functions/memmem.texi: Add more precisions about platforms.
59430         * doc/functions/strstr.texi: Likewise.
59431
59432 2008-01-10  Eric Blake  <ebb9@byu.net>
59433
59434         * m4/strstr.m4: Delete cruft from copy-n-paste.
59435         Reported by Bruno Haible.
59436
59437 2008-01-10  Bruno Haible  <bruno@clisp.org>
59438
59439         Make c-strstr rely on strstr.
59440         * lib/c-strstr.c: Don't include str-kmp.h.
59441         (c_strstr): Define in terms of strstr.
59442         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59443         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59444
59445 2008-01-10  Bruno Haible  <bruno@clisp.org>
59446
59447         * doc/gnulib.texi (String Functions in C Locale): New section.
59448         * doc/c-ctype.texi: New file.
59449         * doc/c-strcase.texi: New file.
59450         * doc/c-strcaseeq.texi: New file.
59451         * doc/c-strcasestr.texi: New file.
59452         * doc/c-strstr.texi: New file.
59453         * doc/c-strtod.texi: New file.
59454         * doc/c-strtold.texi: New file.
59455
59456 2008-01-10  Eric Blake  <ebb9@byu.net>
59457
59458         * lib/relocatable.h: Fix a comment.
59459
59460 2008-01-10  Eric Blake  <ebb9@byu.net>
59461
59462         Share two-way algorithm.
59463         * lib/str-two-way.h: New file, merged from...
59464         * lib/memmem.c: ...here...
59465         * lib/strstr.c: ...and here.
59466         * modules/memmem (Files): Use it.
59467         * modules/strstr (Files): Likewise.
59468
59469         Avoid quadratic strstr implementations.
59470         * lib/strstr.c: New file.
59471         * m4/strstr.m4: Likewise.
59472         * modules/strstr: Likewise.
59473         * modules/strstr-tests: Likewise.
59474         * tests/test-strstr.c: Likewise.
59475         * lib/string.in.h (rpl_strstr): Declare.
59476         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59478         * modules/string (Makefile.am): Likewise.
59479         * MODULES.html.sh (string handling): Mention new module.
59480         * doc/functions/strstr.texi (strstr): Document the bug.
59481
59482 2008-01-10  Bruno Haible  <bruno@clisp.org>
59483
59484         * lib/relocatable.h (relocate): State whether result is freshly
59485         allocated or not.
59486         * lib/relocatable.c (relocate): Return a freshly allocated string
59487         instead of a pointer to a privately held string.
59488         Reported by Sylvain Beucler <beuc@gnu.org>.
59489
59490 2008-01-10  Colin Watson  <cjwatson@debian.org>
59491
59492         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59493         s/S_ISNLK/S_ISLNK/.
59494
59495 2008-01-09  Bruno Haible  <bruno@clisp.org>
59496
59497         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59498         and other files.
59499         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59500         if it's only a guess.
59501         * modules/memmem: Simplify by depending on memmem-simple.
59502
59503 2008-01-09  Bruno Haible  <bruno@clisp.org>
59504
59505         Work around OpenBSD 4.0 tdelete() bug.
59506         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59507         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59508         macros and don't redefine the enum values.
59509         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59510         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59511         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59512
59513 2008-01-09  Bruno Haible  <bruno@clisp.org>
59514
59515         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59516         (main): Don't perform the tests if setlocale did not install a UTF-8
59517         locale. Needed on OpenBSD 4.0.
59518         * modules/wcwidth-tests (Depends-on): Add localcharset.
59519
59520 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59521
59522         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59523         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59524         * NEWS: announce this.
59525         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59526
59527 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59528         and Eric Blake  <ebb9@byu.net>
59529
59530         Add memmem-simple module.
59531         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59532         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59533         * modules/memmem-simple: New file.
59534         * modules/memmem (Description): Tweak.
59535         * MODULES.html.sh (string handling): Mention new module.
59536         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59537         addressed by memmem-simple.
59538         * NEWS: Document the difference.
59539
59540 2008-01-09  Eric Blake  <ebb9@byu.net>
59541
59542         Give gcc some memmem optimization hints.
59543         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59544         (strcasestr): Declare as pure.
59545         * modules/memmem (Maintainer): Claim my implementation.
59546
59547 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59548
59549         Support AIX 6.1 and higher.
59550         * build-aux/config.libpath: Likewise.
59551         * build-aux/config.rpath: Likewise.
59552
59553 2008-01-08  Jim Meyering  <meyering@redhat.com>
59554             Bruno Haible  <bruno@clisp.org>
59555
59556         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59557         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59558         Reported by Peter Fales in
59559         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59560
59561 2008-01-08  Bruno Haible  <bruno@clisp.org>
59562
59563         * modules/unictype/category-of (Depends-on): Add
59564         unictype/category-none.
59565         * modules/unictype/category-and-tests (Depends-on): Add
59566         unictype/category-{L,N,Lu,Nd}.
59567         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59568         * modules/unictype/category-or-tests (Depends-on): Add
59569         unictype/category-{L,N}.
59570         * modules/unictype/category-name-tests (Depends-on): Add
59571         unictype/category-{Z,Nl}.
59572         Reported by Simon Josefsson.
59573
59574 2008-01-08  Bruno Haible  <bruno@clisp.org>
59575
59576         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59577         convention better.
59578         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59579         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59580         Reported by Peter Miller <millerp@canb.auug.org.au>.
59581
59582 2008-01-08  Eric Blake  <ebb9@byu.net>
59583
59584         Rewrite memmem to guarantee linear complexity without malloc.
59585         * lib/memmem.c (memmem): Use Two-Way rather than
59586         Knuth-Morris-Pratt, to allow O(1) space usage.
59587         (critical_factorization, two_way_short_needle)
59588         (two_way_long_needle): New functions.
59589         (knuth_morris_pratt): Delete.
59590         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59591         Add stdint.
59592         * tests/test-memmem.c (main): Add tests for periodic needle and
59593         sublinear performance.
59594         * doc/functions/memmem.texi (memmem): Document other deficiencies
59595         in cygwin and older glibc.
59596
59597 2008-01-08  Bruno Haible  <bruno@clisp.org>
59598
59599         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59600         augmentation.
59601
59602 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59603
59604         Add a configure time option: --disable-acl.
59605         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59606         AC_ARG_ENABLE(acl).
59607
59608 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59609
59610         * tests/test-localename.c: Don't include obsolete "setenv.h".
59611
59612         * modules/localename-tests (Depends-on): Need unsetenv.
59613
59614 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59615
59616         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59617
59618 2008-01-06  Colin Watson  <cjwatson@debian.org>
59619
59620         * users.txt: Add man-db.
59621
59622 2008-01-07  Bruno Haible  <bruno@clisp.org>
59623
59624         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59625         previous section name.
59626
59627 2008-01-07  Bruno Haible  <bruno@clisp.org>
59628
59629         * lib/progname.c (set_program_name): Don't strip off a leading
59630         "lt-" prefix outside a .libs directory.
59631         Suggested by Paul Eggert.
59632
59633 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59634             Bruno Haible  <bruno@clisp.org>
59635
59636         Improve memory cleanup in 'relocatable' module.
59637         * lib/relocatable.h (compute_curr_prefix): Change return type to
59638         'char *'.
59639         * lib/relocatable.c (compute_curr_prefix): Change return type to
59640         'char *'. Free curr_installdir after use.
59641         (relocate): Free curr_prefix_better after use.
59642         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59643
59644 2008-01-01  Bruno Haible  <bruno@clisp.org>
59645
59646         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59647         failure on older glibc systems.
59648         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59649
59650 2008-01-05  Eric Blake  <ebb9@byu.net>
59651
59652         Avoid quadratic system memmem.
59653         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59654         Reported by Ralf Wildenhues.
59655
59656         Fix memmem test for mingw.
59657         * modules/memmem-tests (configure.ac): Check for alarm.
59658         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59659         it.
59660         * doc/functions/memmem.texi: New file.
59661         * doc/gnulib.texi (Function Substitutes): Add memmem.
59662         Reported by Bruno Haible.
59663
59664 2008-01-04  Bruno Haible  <bruno@clisp.org>
59665
59666         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59667         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59668         gl_HEADER_STRING_H_DEFAULTS.
59669
59670 2008-01-04  Eric Blake  <ebb9@byu.net>
59671
59672         Shorten duration of memmem test.
59673         * tests/test-memmem.c (main): Use alarm to declare failure if test
59674         is taking too long.
59675         Reported by Ralf Wildenhues.
59676
59677 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59678
59679         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59680         string, needed by strerror.
59681
59682 2008-01-03  Colin Watson  <cjwatson@debian.org>
59683             Bruno Haible  <bruno@clisp.org>
59684
59685         * doc/gnulib-tool.texi (Localization): New section.
59686
59687 2008-01-02  Bruno Haible  <bruno@clisp.org>
59688
59689         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59690         variables to 'unsigned char *' type.
59691         Reported by Paul Eggert.
59692
59693 2008-01-02  Jim Meyering  <jim@meyering.net>
59694
59695         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59696
59697 2007-12-31  Jim Meyering  <jim@meyering.net>
59698
59699         Avoid use of private FTS type name.
59700         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59701
59702 2007-12-30  Karl Berry  <karl@gnu.org>
59703
59704         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59705         work around defect in Texinfo and/or the standalone Info browser.
59706
59707 2007-12-30  Bruno Haible  <bruno@clisp.org>
59708
59709         Unify 5 copies of the KMP code.
59710         * lib/str-kmp.h: New file.
59711         * lib/c-strcasestr.c: Include str-kmp.h.
59712         (knuth_morris_pratt): Remove function.
59713         (c_strcasestr): Update.
59714         * lib/c-strstr.c: Include str-kmp.h.
59715         (knuth_morris_pratt): Remove function.
59716         (c_strcasestr): Update.
59717         * lib/mbscasestr.c: Include str-kmp.h.
59718         (knuth_morris_pratt_unibyte): Remove function.
59719         * lib/mbsstr.c: Include str-kmp.h.
59720         (knuth_morris_pratt_unibyte): Remove function.
59721         * lib/strcasestr.c: Include str-kmp.h.
59722         (knuth_morris_pratt): Remove function.
59723         (strcasestr): Update.
59724         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59725         * modules/c-strstr (Files): Likewise.
59726         * modules/mbscasestr (Files): Likewise.
59727         * modules/mbsstr (Files): Likewise.
59728         * modules/strcasestr (Files): Likewise.
59729         Suggested by Paul Eggert.
59730
59731 2007-12-30  Bruno Haible  <bruno@clisp.org>
59732
59733         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59734         defined.
59735
59736 2007-12-30  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/xmalloca.h: Include xalloc.h.
59739         (xnmalloca): New macro.
59740
59741 2007-12-30  Bruno Haible  <bruno@clisp.org>
59742
59743         * lib/malloca.h (nmalloca): New macro.
59744         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59745         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59746         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59747         knuth_morris_pratt_multibyte): Likewise.
59748         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59749         knuth_morris_pratt_multibyte): Likewise.
59750         * lib/memmem.c (knuth_morris_pratt): Likewise.
59751         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59752
59753 2007-12-25  Bruno Haible  <bruno@clisp.org>
59754
59755         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59756         * lib/glob.c: Don't include openat.h.
59757         (link_exists2_p): Add back the code that deals with the
59758         !GLOB_ALTDIRFUNC case.
59759         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59760         let it do the filename concatenation.
59761         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59762         * modules/glob (Depends-on): Remove openat.
59763
59764 2007-12-31  Bruno Haible  <bruno@clisp.org>
59765
59766         * modules/dirfd (License): Change to LGPLv2+.
59767         Approved by Jim Meyering.
59768
59769 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59770
59771         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59772         when multiplying M by sizeof (size_t).
59773
59774 2007-12-10  Martin Lambers  <marlam@marlam.de>
59775
59776         Override getpagesize on mingw.
59777         * lib/getpagesize.c: New file.
59778         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59779         * modules/getpagesize (Files): Add lib/getpagesize.c.
59780         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59782         REPLACE_GETPAGESIZE.
59783         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59784
59785 2007-12-25  Bruno Haible  <bruno@clisp.org>
59786
59787         * modules/localcharset (Notice): New field.
59788         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59789         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59790
59791 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59792             Bruno Haible  <bruno@clisp.org>
59793
59794         Avoid using the syntax symbol() in formatted documentation.
59795         * MODULES.html.sh (func_module): When replacing symbol() with a
59796         hyperlink, remove the parentheses. Show an error if some remain.
59797         Recognize and render the '...' syntax.
59798         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59799         Rework. Add paragraph about GCC's inlining.
59800         * doc/alloca.texi: Likewise.
59801         * doc/error.texi: Remove parentheses from symbol reference.
59802         * doc/gnulib-intro.texi: Likewise.
59803         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59804         * modules/fnmatch (Description): Reword to say "the ... function".
59805         * modules/full-read (Description): Likewise.
59806         * modules/full-write (Description): Likewise.
59807         * modules/safe-read (Description): Likewise.
59808         * modules/safe-write (Description): Likewise.
59809         * modules/strchrnul (Description): Likewise.
59810         * modules/trim (Description): Likewise.
59811         * modules/error (Description): Remove parentheses from symbol
59812         references.
59813         * modules/verror (Description): Likewise.
59814         Reported by Karl Berry.
59815
59816 2007-12-25  Bruno Haible  <bruno@clisp.org>
59817
59818         Fixup after 2007-10-16 commit.
59819         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59820
59821 2007-12-24  Bruno Haible  <bruno@clisp.org>
59822
59823         Make --enable-relocatable work with DESTDIR.
59824         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59825         to compute installdir from destprog.
59826         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59827         also set the RELOC_DESTDIR variable.
59828         Reported by Левашев Иван <octagram@bluebottle.com>.
59829
59830 2007-12-24  Bruno Haible  <bruno@clisp.org>
59831
59832         Fix link error due to xalloc_die().
59833         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59834         of xreadlink.
59835         * lib/relocwrapper.c: Update comments.
59836         * build-aux/install-reloc: Remove xreadlink.c from file list.
59837         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59838         xreadlink.c.
59839         Reported by Левашев Иван <octagram@bluebottle.com>.
59840
59841 2007-12-24  Bruno Haible  <bruno@clisp.org>
59842
59843         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59844         * lib/setenv.h: Remove file.
59845         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59846         lib/setenv.h.
59847         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59848         (Depends-on): Add stdlib.
59849         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59850         gl_FUNC_UNSETENV.
59851         (Include): Replace setenv.h with <stdlib.h>.
59852         * modules/unsetenv: New file.
59853         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59854         * lib/unsetenv.c: Include <stdlib.h> first.
59855         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59856         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59857         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59858         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59859         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59860         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59862         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59863         * doc/functions/unsetenv.texi: Update.
59864         * modules/xsetenv (Depends-on): Add unsetenv.
59865         * modules/getdate (Depends-on): Likewise.
59866         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59867         * lib/xsetenv.c: Don't include setenv.h.
59868         * lib/getdate.y: Likewise.
59869         * lib/relocwrapper.c: Likewise.
59870         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59871         (Depends-on): Add stdlib.
59872         * NEWS: Mention the changes.
59873         Reported by Левашев Иван <octagram@bluebottle.com>.
59874
59875 2007-12-23  Bruno Haible  <bruno@clisp.org>
59876
59877         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59878         indentation.
59879
59880 2007-12-23  Bruno Haible  <bruno@clisp.org>
59881
59882         * lib/c-strcasestr.c: Add more comments.
59883         * lib/c-strstr.c: Likewise.
59884         * lib/mbscasestr.c: Likewise.
59885         * lib/mbsstr.c: Likewise.
59886         * lib/strcasestr.c: Likewise.
59887         * lib/memmem.c: Likewise.
59888
59889 2007-12-23  Bruno Haible  <bruno@clisp.org>
59890
59891         * tests/test-memmem.c: Include <string.h> first.
59892
59893 2007-12-22  Bruno Haible  <bruno@clisp.org>
59894
59895         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59896         the contents of $testsbase.
59897         Reported by Ralf Wildenhues.
59898
59899 2007-12-22  Bruno Haible  <bruno@clisp.org>
59900
59901         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59902         two variables local_ldadd_before, local_ldadd_last.
59903
59904 2007-12-20  Eric Blake  <ebb9@byu.net>
59905
59906         Work around circular library issue when cross-compiling.
59907         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59908         that progname.o does not need to pull in rpl_memcmp.
59909
59910 2007-12-19  Eric Blake  <ebb9@byu.net>
59911
59912         Fix memmem to avoid O(n^2) worst-case complexity.
59913         * lib/memmem.c (knuth_morris_pratt): New function.
59914         (memmem): Use it if first few naive iterations fail.
59915         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59916         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59917         * modules/memchr (License): Likewise.
59918         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59919         malloca.
59920         * tests/test-memmem.c: Rewrite, borrowing ideas from
59921         test-mbsstr1.c; the old version wouldn't even compile!
59922         * modules/memmem-tests: New file.
59923         * lib/string.in.h (rpl_memmem): Add declaration.
59924         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59926         REPLACE_MEMMEM.
59927
59928 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59929
59930         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59931         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59932         before any system include files, and undef after them all.  This
59933         should fix a problem on VMS reported by John E. Malmberg in
59934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59935
59936 2007-12-17  Eric Blake  <ebb9@byu.net>
59937
59938         Revert addition of verify, for BSD/OS.
59939         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59940         can't handle large files, for the sake of obsolete platforms.
59941         * modules/fseeko (Depends-on): Remove verify.
59942         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59943         * doc/functions/ftello.texi (ftello): Likewise.
59944         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59945         Reported by Larry Jones.
59946
59947 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59948
59949         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59950         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59951
59952 2007-12-17  Jim Meyering  <meyering@redhat.com>
59953
59954         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59955         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59956         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59957         * modules/getcwd (Depends-on): Add openat.
59958         Reported by Petr Salinger.
59959
59960 2007-12-17  Bruno Haible  <bruno@clisp.org>
59961
59962         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59963         avoid a segmentation fault of the configure test on x86_64 systems.
59964
59965 2007-12-15  Jim Meyering  <meyering@redhat.com>
59966
59967         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59968
59969 2007-12-13  Eric Blake  <ebb9@byu.net>
59970
59971         Another fseek test.
59972         * tests/test-fseek.c (main): Also test ungetc handling.
59973         * tests/test-fseeko.c (main): Likewise.
59974         * modules/fseeko (Depends-on): Add verify.
59975         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59976         large.
59977         Reported by Larry Jones.
59978
59979         Fix fseeko on mingw.
59980         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59981         seek.
59982
59983         Beef up fseek tests.
59984         * tests/test-fseek.c (main): Also test eof handling.
59985         * tests/test-fseeko.c (main): Likewise.
59986         Reported by Larry Jones.
59987
59988 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59989
59990         Fix fseeko on BSD-based platforms.
59991         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59992         successful seek.
59993
59994 2007-12-12  Eric Blake  <ebb9@byu.net>
59995
59996         Allow circular dependency of separate libtests.a
59997         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59998         when use_libtests.
59999
60000 2007-12-11  Eric Blake  <ebb9@byu.net>
60001
60002         Fix bug with -0.0L in previous patch.
60003         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60004         * tests/test-isnan.c (main): Also test on zeroes.
60005         * tests/test-isnanf.c (main): Likewise.
60006         * tests/test-isnanl.h (main): Likewise.
60007
60008         Detect pseudo-denormals on x86 even when cross-compiling.
60009         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60010         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60011         invalid bit patterns that happen to satisfy ==.
60012
60013         Avoid link failures with separate libtests.a.
60014         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60015         last, to satisfy circular dependencies.
60016
60017 2007-12-11  Eric Blake  <ebb9@byu.net>
60018         and Bruno Haible  <bruno@clisp.org>
60019
60020         Fix OpenBSD 4.0 <float.h> handling of long double.
60021         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60022         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60023         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60024
60025 2007-12-11  Jim Meyering  <meyering@redhat.com>
60026
60027         * users.txt: Add libvirt.
60028
60029         Support versions of autoconf prior to 2.59c.
60030         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60031         if it is not already defined.
60032
60033 2007-12-09  Bruno Haible  <bruno@clisp.org>
60034
60035         Let 'gnulib-tool --import' collect sources needed for the tests in
60036         tests/ rather than in lib/.
60037         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60038         argument. If true, add rules to generate libtests.a, and put libtests.a
60039         into $(LDADD). Consider source files in subdirectories and set
60040         uses_subdirs.
60041         (func_emit_initmacro_start, func_emit_initmacro_end,
60042         func_emit_initmacro_done): Pass all arguments explicitly.
60043         (func_import): Determine two module lists main_modules,
60044         testsrelated_modules. Determine use_libtests. Determine two variables
60045         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60046         instead of just sed_transform_lib_file. Determine two variables
60047         main_files and testsrelated_files. Compute 'files' as the union of
60048         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60049         func_add_or_update. In the generated gnulib-comp.m4, collect the
60050         object files for tests/ in different variables than those for lib/.
60051         Substitute LIBTESTS_LIBDEPS.
60052         (func_create_testdir): Combine the uses_subdirs results from
60053         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60054
60055 2007-12-09  Bruno Haible  <bruno@clisp.org>
60056
60057         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60058         the build-aux directory.
60059
60060 2007-12-09  Bruno Haible  <bruno@clisp.org>
60061
60062         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60063         introduced on 2006-09-09.
60064
60065 2007-12-07  Jim Meyering  <meyering@redhat.com>
60066
60067         Let these macros work also with autoconf-2.59.
60068         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60069         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60070         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60071
60072 2007-12-06  Jim Meyering  <meyering@redhat.com>
60073
60074         Avoid a configure-time syntax error in gl_FUNC_ACL.
60075         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60076         function in each branch, before testing the cache variable.
60077
60078 2007-12-04  Eric Blake  <ebb9@byu.net>
60079
60080         Make scripts executable.
60081         * build-aux/config.guess: Add execute permissions.
60082         * build-aux/config.sub: Likewise.
60083         * build-aux/gendocs.sh: Likewise.
60084
60085         Fix frexp on mingw.
60086         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60087         cross-compiling.
60088         * doc/functions/frexp.texi (frexp): Document the bug.
60089
60090         Make cygwin fseeko check more reliable.
60091         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60092         version numbers, rather than unrelated feature check.
60093         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60094         * doc/functions/ftello.texi (ftello): Likewise.
60095         Reported by Bruno Haible.
60096
60097         * m4/strerror.m4: Bump version number.
60098
60099 2007-12-03  Bruno Haible  <bruno@clisp.org>
60100
60101         * doc/functions/mprotect.texi: Mention the mingw problem.
60102
60103 2007-12-03  Eric Blake  <ebb9@byu.net>
60104
60105         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60106         REPLACE_STRERROR is initialized before this macro.
60107
60108 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60109
60110         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60111         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60112         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60113         put -lsec in even for programs other than 'ls'.  This fixes a problem
60114         for gettext reported by Bruno Haible in
60115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60116         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60117         Add support for Solaris 10.  This isn't efficient, but should get the
60118         job done for now.
60119
60120 2007-12-03  James Youngman  <jay@gnu.org>
60121
60122         * doc/regexprops-generic.texi: change "an close-group" to "a
60123         close-group" and "illegal" to "not allowed".
60124
60125 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60126
60127         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60128         pr_byname.h. Needed for the rare case when the maintainer has done
60129         "make maintainer-clean" in the source directory and then attempts a
60130         build outside the source directory.
60131         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60132         scripts_byname.h.
60133
60134 2007-12-02  Martin Lambers <marlam@marlam.de>
60135             Bruno Haible  <bruno@clisp.org>
60136
60137         * lib/getpagesize.h: Remove file.
60138         * lib/unistd.in.h: Include declaration of getpagesize here.
60139         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60140         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60141         HAVE_SYS_PARAM_H.
60142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60143         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60144         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60145         (Depends-on): Add unistd.
60146         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60147         (Include): Use <unistd.h> instead of getpagesize.h.
60148         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60149         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60150         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60151         gl_GETPAGESIZE invocation, already handled by module dependency.
60152         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60153
60154 2007-12-02  Bruno Haible  <bruno@clisp.org>
60155
60156         * modules/strings-tests: New file.
60157         * tests/test-strings.c: New file.
60158
60159         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60160         * lib/strings.in.h: New file.
60161         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60162         * m4/strings_h.m4: New file.
60163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60164         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60165         * modules/strings: New file.
60166         * modules/string (Makefile.am): Update.
60167         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60168         Reported by Karl Berry.
60169
60170 2007-12-01  Eric Blake  <ebb9@byu.net>
60171
60172         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60173         accommodate fix in cygwin 1.5.25.
60174
60175 2007-12-01  Jim Meyering  <meyering@redhat.com>
60176
60177         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60178         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60179         that would inhibit utf8-optimization of a regexp containing line-
60180         or buffer-anchors, e.g., `^', `$'.
60181
60182 2007-11-30  Bruno Haible  <bruno@clisp.org>
60183
60184         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60185         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60186         glthread_recursive_lock_init.
60187         * lib/lock.c (glthread_recursive_lock_init)
60188         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60189         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60190
60191 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60192
60193         New function qset_acl, like set_acl but with syscall semantics.
60194         * lib/acl.h (qset_acl): New decl.
60195         * lib/acl.c (qset_acl): New function.
60196         (set_acl): Use new function.  Use more-consistent diagnostics.
60197
60198 2007-11-28  Jim Meyering  <meyering@redhat.com>
60199
60200         * modules/physmem (License): Change from GPL to LGPLv2+.
60201
60202 2007-11-26  Bruno Haible  <bruno@clisp.org>
60203
60204         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60205         'long double' type has excess precision.
60206         Reported by Jim Meyering in
60207         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60208
60209 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60210
60211         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60212         Sync from <http://gnu.org/licenses>.
60213         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60214         with license text from same location.
60215         * doc/maintain.texi, doc/standards.texi:  Sync from
60216         <http://savannah.gnu.org/projects/gnustandards>.
60217
60218 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
60219         and Jim Meyering  <meyering@redhat.com>
60220
60221         Adjust getdate' grammar to accept a slightly more regular language.
60222         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60223         Before, the former was rejected.
60224         * lib/getdate.y (digits_to_date_time): New function, factored
60225         out of ...
60226         (number): ...here.  Just call digits_to_date_time.
60227         (hybrid): New non-terminal to handle an <unsigned number,
60228         signed relative offset> sequence consistently.
60229
60230 2007-11-18  Jim Meyering  <meyering@redhat.com>
60231
60232         Pull my changes from coreutils:
60233         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60234         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60235         use of $gnulib_tool_option_extras, so that it's separated from the
60236         preceding argument.
60237
60238         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60239         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60240         parent destination directories before copying a file into place.
60241
60242 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60243
60244         bootstrap: work also with 4-argument variant of AC_INIT
60245         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60246
60247 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60248
60249         Port test-getaddrinfo to Solaris.
60250         Problem reported by Bruno Haible in
60251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60252         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60253         explanation of setting 'hints'.
60254         Don't reject an implementation merely because it returns EAI_SERVICE.
60255         (EAI_SERVICE): Define to 0 if not defined.
60256
60257 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60258
60259         The license of gnu-make and posix-shell is now "GPLed build tool".
60260         * modules/gnu-make (License): Likewise.
60261         * modules/posix-shell (License): Likewise.
60262
60263         New module posix-shell, for determining a POSIX shell
60264         or perhaps something that is close enough to a POSIX shell.
60265         * m4/posix-shell.m4: New file.
60266         * modules/posix-shell: New file.
60267
60268         * MODULES.html.sh: Mention new module.
60269
60270         New module gnu-make, for determining whether we're using GNU Make.
60271         * m4/gnu-make.m4: New file.
60272         * modules/gnu-make: New file.
60273         * MODULES.html.sh: Mention new module.
60274
60275 2007-11-14  Jim Meyering  <meyering@redhat.com>
60276
60277         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60278         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60279         use this macro to create a function _definition_.
60280         Remove useless "#undef ARGMATCH_DIE".
60281
60282 2007-11-14  Bruno Haible  <bruno@clisp.org>
60283
60284         * lib/config.charset: Update for OpenBSD 4.1.
60285         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60286
60287 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60288
60289         Document 64-bit #if problems in stdint.texi.
60290         * doc/headers/stdint.texi (stdint.h): Mention problems with
60291         64-bit-#if, and how to work around them.
60292
60293         Don't insist on 'long long int' support in the preprocessor.  It
60294         breaks too many things.  For example, PRIdMAX still uses a 'long
60295         long int' format with the latest Sun compiler, even though
60296         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60297         preprocessor problem.  This causes the latest coreutils to dump
60298         core on Solaris 10 sparc with the Sun C compiler.
60299         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60300         the troublesome expressions at configure-time, not at #if-time.
60301         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60302         preprocessor.
60303         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60304         compile-time C checks, done at 'configure'-time.
60305         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60306         * modules/inttypes (Makefile): Substitute the new symbols that
60307         gl_INTTYPES_H now generates.
60308         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60309
60310 2007-11-12  Bruno Haible  <bruno@clisp.org>
60311
60312         Tests for Unicode character classification functions.
60313
60314         * modules/unictype/bidicategory-byname-tests: New file.
60315         * modules/unictype/bidicategory-name-tests: New file.
60316         * modules/unictype/bidicategory-of-tests: New file.
60317         * modules/unictype/bidicategory-test-tests: New file.
60318         * modules/unictype/block-list-tests: New file.
60319         * modules/unictype/block-of-tests: New file.
60320         * modules/unictype/block-test-tests: New file.
60321         * modules/unictype/category-C-tests: New file.
60322         * modules/unictype/category-Cc-tests: New file.
60323         * modules/unictype/category-Cf-tests: New file.
60324         * modules/unictype/category-Cn-tests: New file.
60325         * modules/unictype/category-Co-tests: New file.
60326         * modules/unictype/category-Cs-tests: New file.
60327         * modules/unictype/category-L-tests: New file.
60328         * modules/unictype/category-Ll-tests: New file.
60329         * modules/unictype/category-Lm-tests: New file.
60330         * modules/unictype/category-Lo-tests: New file.
60331         * modules/unictype/category-Lt-tests: New file.
60332         * modules/unictype/category-Lu-tests: New file.
60333         * modules/unictype/category-M-tests: New file.
60334         * modules/unictype/category-Mc-tests: New file.
60335         * modules/unictype/category-Me-tests: New file.
60336         * modules/unictype/category-Mn-tests: New file.
60337         * modules/unictype/category-N-tests: New file.
60338         * modules/unictype/category-Nd-tests: New file.
60339         * modules/unictype/category-Nl-tests: New file.
60340         * modules/unictype/category-No-tests: New file.
60341         * modules/unictype/category-P-tests: New file.
60342         * modules/unictype/category-Pc-tests: New file.
60343         * modules/unictype/category-Pd-tests: New file.
60344         * modules/unictype/category-Pe-tests: New file.
60345         * modules/unictype/category-Pf-tests: New file.
60346         * modules/unictype/category-Pi-tests: New file.
60347         * modules/unictype/category-Po-tests: New file.
60348         * modules/unictype/category-Ps-tests: New file.
60349         * modules/unictype/category-S-tests: New file.
60350         * modules/unictype/category-Sc-tests: New file.
60351         * modules/unictype/category-Sk-tests: New file.
60352         * modules/unictype/category-Sm-tests: New file.
60353         * modules/unictype/category-So-tests: New file.
60354         * modules/unictype/category-Z-tests: New file.
60355         * modules/unictype/category-Zl-tests: New file.
60356         * modules/unictype/category-Zp-tests: New file.
60357         * modules/unictype/category-Zs-tests: New file.
60358         * modules/unictype/category-and-not-tests: New file.
60359         * modules/unictype/category-and-tests: New file.
60360         * modules/unictype/category-byname-tests: New file.
60361         * modules/unictype/category-name-tests: New file.
60362         * modules/unictype/category-none-tests: New file.
60363         * modules/unictype/category-of-tests: New file.
60364         * modules/unictype/category-or-tests: New file.
60365         * modules/unictype/category-test-withtable-tests: New file.
60366         * modules/unictype/combining-class-tests: New file.
60367         * modules/unictype/ctype-alnum-tests: New file.
60368         * modules/unictype/ctype-alpha-tests: New file.
60369         * modules/unictype/ctype-blank-tests: New file.
60370         * modules/unictype/ctype-cntrl-tests: New file.
60371         * modules/unictype/ctype-digit-tests: New file.
60372         * modules/unictype/ctype-graph-tests: New file.
60373         * modules/unictype/ctype-lower-tests: New file.
60374         * modules/unictype/ctype-print-tests: New file.
60375         * modules/unictype/ctype-punct-tests: New file.
60376         * modules/unictype/ctype-space-tests: New file.
60377         * modules/unictype/ctype-upper-tests: New file.
60378         * modules/unictype/ctype-xdigit-tests: New file.
60379         * modules/unictype/decimal-digit-tests: New file.
60380         * modules/unictype/digit-tests: New file.
60381         * modules/unictype/mirror-tests: New file.
60382         * modules/unictype/numeric-tests: New file.
60383         * modules/unictype/property-alphabetic-tests: New file.
60384         * modules/unictype/property-ascii-hex-digit-tests: New file.
60385         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60386         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60387         * modules/unictype/property-bidi-block-separator-tests: New file.
60388         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60389         * modules/unictype/property-bidi-common-separator-tests: New file.
60390         * modules/unictype/property-bidi-control-tests: New file.
60391         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60392         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60393         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60394         * modules/unictype/property-bidi-european-digit-tests: New file.
60395         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60396         * modules/unictype/property-bidi-left-to-right-tests: New file.
60397         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60398         * modules/unictype/property-bidi-other-neutral-tests: New file.
60399         * modules/unictype/property-bidi-pdf-tests: New file.
60400         * modules/unictype/property-bidi-segment-separator-tests: New file.
60401         * modules/unictype/property-bidi-whitespace-tests: New file.
60402         * modules/unictype/property-byname-tests: New file.
60403         * modules/unictype/property-combining-tests: New file.
60404         * modules/unictype/property-composite-tests: New file.
60405         * modules/unictype/property-currency-symbol-tests: New file.
60406         * modules/unictype/property-dash-tests: New file.
60407         * modules/unictype/property-decimal-digit-tests: New file.
60408         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60409         * modules/unictype/property-deprecated-tests: New file.
60410         * modules/unictype/property-diacritic-tests: New file.
60411         * modules/unictype/property-extender-tests: New file.
60412         * modules/unictype/property-format-control-tests: New file.
60413         * modules/unictype/property-grapheme-base-tests: New file.
60414         * modules/unictype/property-grapheme-extend-tests: New file.
60415         * modules/unictype/property-grapheme-link-tests: New file.
60416         * modules/unictype/property-hex-digit-tests: New file.
60417         * modules/unictype/property-hyphen-tests: New file.
60418         * modules/unictype/property-id-continue-tests: New file.
60419         * modules/unictype/property-id-start-tests: New file.
60420         * modules/unictype/property-ideographic-tests: New file.
60421         * modules/unictype/property-ids-binary-operator-tests: New file.
60422         * modules/unictype/property-ids-trinary-operator-tests: New file.
60423         * modules/unictype/property-ignorable-control-tests: New file.
60424         * modules/unictype/property-iso-control-tests: New file.
60425         * modules/unictype/property-join-control-tests: New file.
60426         * modules/unictype/property-left-of-pair-tests: New file.
60427         * modules/unictype/property-line-separator-tests: New file.
60428         * modules/unictype/property-logical-order-exception-tests: New file.
60429         * modules/unictype/property-lowercase-tests: New file.
60430         * modules/unictype/property-math-tests: New file.
60431         * modules/unictype/property-non-break-tests: New file.
60432         * modules/unictype/property-not-a-character-tests: New file.
60433         * modules/unictype/property-numeric-tests: New file.
60434         * modules/unictype/property-other-alphabetic-tests: New file.
60435         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60436         * modules/unictype/property-other-grapheme-extend-tests: New file.
60437         * modules/unictype/property-other-id-continue-tests: New file.
60438         * modules/unictype/property-other-id-start-tests: New file.
60439         * modules/unictype/property-other-lowercase-tests: New file.
60440         * modules/unictype/property-other-math-tests: New file.
60441         * modules/unictype/property-other-uppercase-tests: New file.
60442         * modules/unictype/property-paired-punctuation-tests: New file.
60443         * modules/unictype/property-paragraph-separator-tests: New file.
60444         * modules/unictype/property-pattern-syntax-tests: New file.
60445         * modules/unictype/property-pattern-white-space-tests: New file.
60446         * modules/unictype/property-private-use-tests: New file.
60447         * modules/unictype/property-punctuation-tests: New file.
60448         * modules/unictype/property-quotation-mark-tests: New file.
60449         * modules/unictype/property-radical-tests: New file.
60450         * modules/unictype/property-sentence-terminal-tests: New file.
60451         * modules/unictype/property-soft-dotted-tests: New file.
60452         * modules/unictype/property-space-tests: New file.
60453         * modules/unictype/property-terminal-punctuation-tests: New file.
60454         * modules/unictype/property-test-tests: New file.
60455         * modules/unictype/property-titlecase-tests: New file.
60456         * modules/unictype/property-unassigned-code-value-tests: New file.
60457         * modules/unictype/property-unified-ideograph-tests: New file.
60458         * modules/unictype/property-uppercase-tests: New file.
60459         * modules/unictype/property-variation-selector-tests: New file.
60460         * modules/unictype/property-white-space-tests: New file.
60461         * modules/unictype/property-xid-continue-tests: New file.
60462         * modules/unictype/property-xid-start-tests: New file.
60463         * modules/unictype/property-zero-width-tests: New file.
60464         * modules/unictype/scripts-tests: New file.
60465         * modules/unictype/syntax-c-ident-tests: New file.
60466         * modules/unictype/syntax-c-whitespace-tests: New file.
60467         * modules/unictype/syntax-java-ident-tests: New file.
60468         * modules/unictype/syntax-java-whitespace-tests: New file.
60469         * tests/unictype/test-bidi_byname.c: New file.
60470         * tests/unictype/test-bidi_name.c: New file.
60471         * tests/unictype/test-bidi_of.c: New file.
60472         * tests/unictype/test-bidi_test.c: New file.
60473         * tests/unictype/test-block_list.c: New file.
60474         * tests/unictype/test-block_of.c: New file.
60475         * tests/unictype/test-block_test.c: New file.
60476         * tests/unictype/test-categ_and.c: New file.
60477         * tests/unictype/test-categ_and_not.c: New file.
60478         * tests/unictype/test-categ_byname.c: New file.
60479         * tests/unictype/test-categ_name.c: New file.
60480         * tests/unictype/test-categ_none.c: New file.
60481         * tests/unictype/test-categ_of.c: New file.
60482         * tests/unictype/test-categ_or.c: New file.
60483         * tests/unictype/test-categ_test_withtable.c: New file.
60484         * tests/unictype/test-combining.c: New file.
60485         * tests/unictype/test-decdigit.c: New file.
60486         * tests/unictype/test-digit.c: New file.
60487         * tests/unictype/test-mirror.c: New file.
60488         * tests/unictype/test-numeric.c: New file.
60489         * tests/unictype/test-pr_byname.c: New file.
60490         * tests/unictype/test-pr_test.c: New file.
60491         * tests/unictype/test-predicate-part1.h: New file.
60492         * tests/unictype/test-predicate-part2.h: New file.
60493         * tests/unictype/test-scripts.c: New file.
60494         * tests/unictype/test-sy_c_ident.c: New file.
60495         * tests/unictype/test-sy_java_ident.c: New file.
60496
60497         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60498         for Unicode 5.0.0.
60499         * tests/unictype/test-categ_Cc.c: Likewise.
60500         * tests/unictype/test-categ_Cf.c: Likewise.
60501         * tests/unictype/test-categ_Cn.c: Likewise.
60502         * tests/unictype/test-categ_Co.c: Likewise.
60503         * tests/unictype/test-categ_Cs.c: Likewise.
60504         * tests/unictype/test-categ_L.c: Likewise.
60505         * tests/unictype/test-categ_Ll.c: Likewise.
60506         * tests/unictype/test-categ_Lm.c: Likewise.
60507         * tests/unictype/test-categ_Lo.c: Likewise.
60508         * tests/unictype/test-categ_Lt.c: Likewise.
60509         * tests/unictype/test-categ_Lu.c: Likewise.
60510         * tests/unictype/test-categ_M.c: Likewise.
60511         * tests/unictype/test-categ_Mc.c: Likewise.
60512         * tests/unictype/test-categ_Me.c: Likewise.
60513         * tests/unictype/test-categ_Mn.c: Likewise.
60514         * tests/unictype/test-categ_N.c: Likewise.
60515         * tests/unictype/test-categ_Nd.c: Likewise.
60516         * tests/unictype/test-categ_Nl.c: Likewise.
60517         * tests/unictype/test-categ_No.c: Likewise.
60518         * tests/unictype/test-categ_P.c: Likewise.
60519         * tests/unictype/test-categ_Pc.c: Likewise.
60520         * tests/unictype/test-categ_Pd.c: Likewise.
60521         * tests/unictype/test-categ_Pe.c: Likewise.
60522         * tests/unictype/test-categ_Pf.c: Likewise.
60523         * tests/unictype/test-categ_Pi.c: Likewise.
60524         * tests/unictype/test-categ_Po.c: Likewise.
60525         * tests/unictype/test-categ_Ps.c: Likewise.
60526         * tests/unictype/test-categ_S.c: Likewise.
60527         * tests/unictype/test-categ_Sc.c: Likewise.
60528         * tests/unictype/test-categ_Sk.c: Likewise.
60529         * tests/unictype/test-categ_Sm.c: Likewise.
60530         * tests/unictype/test-categ_So.c: Likewise.
60531         * tests/unictype/test-categ_Z.c: Likewise.
60532         * tests/unictype/test-categ_Zl.c: Likewise.
60533         * tests/unictype/test-categ_Zp.c: Likewise.
60534         * tests/unictype/test-categ_Zs.c: Likewise.
60535         * tests/unictype/test-ctype_alnum.c: Likewise.
60536         * tests/unictype/test-ctype_alpha.c: Likewise.
60537         * tests/unictype/test-ctype_blank.c: Likewise.
60538         * tests/unictype/test-ctype_cntrl.c: Likewise.
60539         * tests/unictype/test-ctype_digit.c: Likewise.
60540         * tests/unictype/test-ctype_graph.c: Likewise.
60541         * tests/unictype/test-ctype_lower.c: Likewise.
60542         * tests/unictype/test-ctype_print.c: Likewise.
60543         * tests/unictype/test-ctype_punct.c: Likewise.
60544         * tests/unictype/test-ctype_space.c: Likewise.
60545         * tests/unictype/test-ctype_upper.c: Likewise.
60546         * tests/unictype/test-ctype_xdigit.c: Likewise.
60547         * tests/unictype/test-decdigit.h: Likewise.
60548         * tests/unictype/test-digit.h: Likewise.
60549         * tests/unictype/test-numeric.h: Likewise.
60550         * tests/unictype/test-pr_alphabetic.c: Likewise.
60551         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60552         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60553         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60554         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60555         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60556         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60557         * tests/unictype/test-pr_bidi_control.c: Likewise.
60558         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60559         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60560         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60561         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60562         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60563         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60564         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60565         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60566         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60567         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60568         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60569         * tests/unictype/test-pr_combining.c: Likewise.
60570         * tests/unictype/test-pr_composite.c: Likewise.
60571         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60572         * tests/unictype/test-pr_dash.c: Likewise.
60573         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60574         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60575         * tests/unictype/test-pr_deprecated.c: Likewise.
60576         * tests/unictype/test-pr_diacritic.c: Likewise.
60577         * tests/unictype/test-pr_extender.c: Likewise.
60578         * tests/unictype/test-pr_format_control.c: Likewise.
60579         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60580         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60581         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60582         * tests/unictype/test-pr_hex_digit.c: Likewise.
60583         * tests/unictype/test-pr_hyphen.c: Likewise.
60584         * tests/unictype/test-pr_id_continue.c: Likewise.
60585         * tests/unictype/test-pr_id_start.c: Likewise.
60586         * tests/unictype/test-pr_ideographic.c: Likewise.
60587         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60588         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60589         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60590         * tests/unictype/test-pr_iso_control.c: Likewise.
60591         * tests/unictype/test-pr_join_control.c: Likewise.
60592         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60593         * tests/unictype/test-pr_line_separator.c: Likewise.
60594         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60595         * tests/unictype/test-pr_lowercase.c: Likewise.
60596         * tests/unictype/test-pr_math.c: Likewise.
60597         * tests/unictype/test-pr_non_break.c: Likewise.
60598         * tests/unictype/test-pr_not_a_character.c: Likewise.
60599         * tests/unictype/test-pr_numeric.c: Likewise.
60600         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60601         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60602         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60603         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60604         * tests/unictype/test-pr_other_id_start.c: Likewise.
60605         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60606         * tests/unictype/test-pr_other_math.c: Likewise.
60607         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60608         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60609         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60610         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60611         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60612         * tests/unictype/test-pr_private_use.c: Likewise.
60613         * tests/unictype/test-pr_punctuation.c: Likewise.
60614         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60615         * tests/unictype/test-pr_radical.c: Likewise.
60616         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60617         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60618         * tests/unictype/test-pr_space.c: Likewise.
60619         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60620         * tests/unictype/test-pr_titlecase.c: Likewise.
60621         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60622         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60623         * tests/unictype/test-pr_uppercase.c: Likewise.
60624         * tests/unictype/test-pr_variation_selector.c: Likewise.
60625         * tests/unictype/test-pr_white_space.c: Likewise.
60626         * tests/unictype/test-pr_xid_continue.c: Likewise.
60627         * tests/unictype/test-pr_xid_start.c: Likewise.
60628         * tests/unictype/test-pr_zero_width.c: Likewise.
60629         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60630         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60631
60632 2007-11-12  Bruno Haible  <bruno@clisp.org>
60633
60634         Unicode character classification functions.
60635         * lib/unictype.h: New file.
60636         * modules/unictype/base: New file.
60637         * modules/unictype/category-L: New file.
60638         * modules/unictype/category-Lu: New file.
60639         * modules/unictype/category-Ll: New file.
60640         * modules/unictype/category-Lt: New file.
60641         * modules/unictype/category-Lm: New file.
60642         * modules/unictype/category-Lo: New file.
60643         * modules/unictype/category-M: New file.
60644         * modules/unictype/category-Mn: New file.
60645         * modules/unictype/category-Mc: New file.
60646         * modules/unictype/category-Me: New file.
60647         * modules/unictype/category-N: New file.
60648         * modules/unictype/category-Nd: New file.
60649         * modules/unictype/category-Nl: New file.
60650         * modules/unictype/category-No: New file.
60651         * modules/unictype/category-P: New file.
60652         * modules/unictype/category-Pc: New file.
60653         * modules/unictype/category-Pd: New file.
60654         * modules/unictype/category-Ps: New file.
60655         * modules/unictype/category-Pe: New file.
60656         * modules/unictype/category-Pi: New file.
60657         * modules/unictype/category-Pf: New file.
60658         * modules/unictype/category-Po: New file.
60659         * modules/unictype/category-S: New file.
60660         * modules/unictype/category-Sm: New file.
60661         * modules/unictype/category-Sc: New file.
60662         * modules/unictype/category-Sk: New file.
60663         * modules/unictype/category-So: New file.
60664         * modules/unictype/category-Z: New file.
60665         * modules/unictype/category-Zs: New file.
60666         * modules/unictype/category-Zl: New file.
60667         * modules/unictype/category-Zp: New file.
60668         * modules/unictype/category-C: New file.
60669         * modules/unictype/category-Cc: New file.
60670         * modules/unictype/category-Cf: New file.
60671         * modules/unictype/category-Cs: New file.
60672         * modules/unictype/category-Co: New file.
60673         * modules/unictype/category-Cn: New file.
60674         * modules/unictype/category-or: New file.
60675         * modules/unictype/category-of: New file.
60676         * modules/unictype/category-test: New file.
60677         * modules/unictype/category-test-withtable: New file.
60678         * modules/unictype/category-byname: New file.
60679         * modules/unictype/category-none: New file.
60680         * modules/unictype/category-and: New file.
60681         * modules/unictype/category-and-not: New file.
60682         * modules/unictype/category-name: New file.
60683         * modules/unictype/combining-class: New file.
60684         * modules/unictype/category-all: New file.
60685         * modules/unictype/bidicategory-all: New file.
60686         * modules/unictype/bidicategory-byname: New file.
60687         * modules/unictype/bidicategory-name: New file.
60688         * modules/unictype/bidicategory-of: New file.
60689         * modules/unictype/bidicategory-test: New file.
60690         * modules/unictype/decimal-digit: New file.
60691         * modules/unictype/digit: New file.
60692         * modules/unictype/numeric: New file.
60693         * modules/unictype/mirror: New file.
60694         * modules/unictype/property-white-space: New file.
60695         * modules/unictype/property-alphabetic: New file.
60696         * modules/unictype/property-other-alphabetic: New file.
60697         * modules/unictype/property-not-a-character: New file.
60698         * modules/unictype/property-default-ignorable-code-point: New file.
60699         * modules/unictype/property-other-default-ignorable-code-point: New
60700         file.
60701         * modules/unictype/property-deprecated: New file.
60702         * modules/unictype/property-logical-order-exception: New file.
60703         * modules/unictype/property-variation-selector: New file.
60704         * modules/unictype/property-private-use: New file.
60705         * modules/unictype/property-unassigned-code-value: New file.
60706         * modules/unictype/property-uppercase: New file.
60707         * modules/unictype/property-other-uppercase: New file.
60708         * modules/unictype/property-lowercase: New file.
60709         * modules/unictype/property-other-lowercase: New file.
60710         * modules/unictype/property-titlecase: New file.
60711         * modules/unictype/property-soft-dotted: New file.
60712         * modules/unictype/property-id-start: New file.
60713         * modules/unictype/property-other-id-start: New file.
60714         * modules/unictype/property-id-continue: New file.
60715         * modules/unictype/property-other-id-continue: New file.
60716         * modules/unictype/property-xid-start: New file.
60717         * modules/unictype/property-xid-continue: New file.
60718         * modules/unictype/property-pattern-white-space: New file.
60719         * modules/unictype/property-pattern-syntax: New file.
60720         * modules/unictype/property-join-control: New file.
60721         * modules/unictype/property-grapheme-base: New file.
60722         * modules/unictype/property-grapheme-extend: New file.
60723         * modules/unictype/property-other-grapheme-extend: New file.
60724         * modules/unictype/property-grapheme-link: New file.
60725         * modules/unictype/property-bidi-control: New file.
60726         * modules/unictype/property-bidi-left-to-right: New file.
60727         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60728         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60729         * modules/unictype/property-bidi-european-digit: New file.
60730         * modules/unictype/property-bidi-eur-num-separator: New file.
60731         * modules/unictype/property-bidi-eur-num-terminator: New file.
60732         * modules/unictype/property-bidi-arabic-digit: New file.
60733         * modules/unictype/property-bidi-common-separator: New file.
60734         * modules/unictype/property-bidi-block-separator: New file.
60735         * modules/unictype/property-bidi-segment-separator: New file.
60736         * modules/unictype/property-bidi-whitespace: New file.
60737         * modules/unictype/property-bidi-non-spacing-mark: New file.
60738         * modules/unictype/property-bidi-boundary-neutral: New file.
60739         * modules/unictype/property-bidi-pdf: New file.
60740         * modules/unictype/property-bidi-embedding-or-override: New file.
60741         * modules/unictype/property-bidi-other-neutral: New file.
60742         * modules/unictype/property-hex-digit: New file.
60743         * modules/unictype/property-ascii-hex-digit: New file.
60744         * modules/unictype/property-ideographic: New file.
60745         * modules/unictype/property-unified-ideograph: New file.
60746         * modules/unictype/property-radical: New file.
60747         * modules/unictype/property-ids-binary-operator: New file.
60748         * modules/unictype/property-ids-trinary-operator: New file.
60749         * modules/unictype/property-zero-width: New file.
60750         * modules/unictype/property-space: New file.
60751         * modules/unictype/property-non-break: New file.
60752         * modules/unictype/property-iso-control: New file.
60753         * modules/unictype/property-format-control: New file.
60754         * modules/unictype/property-dash: New file.
60755         * modules/unictype/property-hyphen: New file.
60756         * modules/unictype/property-punctuation: New file.
60757         * modules/unictype/property-line-separator: New file.
60758         * modules/unictype/property-paragraph-separator: New file.
60759         * modules/unictype/property-quotation-mark: New file.
60760         * modules/unictype/property-sentence-terminal: New file.
60761         * modules/unictype/property-terminal-punctuation: New file.
60762         * modules/unictype/property-currency-symbol: New file.
60763         * modules/unictype/property-math: New file.
60764         * modules/unictype/property-other-math: New file.
60765         * modules/unictype/property-paired-punctuation: New file.
60766         * modules/unictype/property-left-of-pair: New file.
60767         * modules/unictype/property-combining: New file.
60768         * modules/unictype/property-composite: New file.
60769         * modules/unictype/property-decimal-digit: New file.
60770         * modules/unictype/property-numeric: New file.
60771         * modules/unictype/property-diacritic: New file.
60772         * modules/unictype/property-extender: New file.
60773         * modules/unictype/property-ignorable-control: New file.
60774         * modules/unictype/property-test: New file.
60775         * modules/unictype/property-byname: New file.
60776         * modules/unictype/property-all: New file.
60777         * modules/unictype/scripts: New file.
60778         * modules/unictype/scripts-all: New file.
60779         * modules/unictype/block-of: New file.
60780         * modules/unictype/block-test: New file.
60781         * modules/unictype/block-list: New file.
60782         * modules/unictype/block-all: New file.
60783         * modules/unictype/syntax-c-whitespace: New file.
60784         * modules/unictype/syntax-java-whitespace: New file.
60785         * modules/unictype/syntax-c-ident: New file.
60786         * modules/unictype/syntax-java-ident: New file.
60787         * modules/unictype/ctype-alnum: New file.
60788         * modules/unictype/ctype-alpha: New file.
60789         * modules/unictype/ctype-cntrl: New file.
60790         * modules/unictype/ctype-digit: New file.
60791         * modules/unictype/ctype-graph: New file.
60792         * modules/unictype/ctype-lower: New file.
60793         * modules/unictype/ctype-print: New file.
60794         * modules/unictype/ctype-punct: New file.
60795         * modules/unictype/ctype-space: New file.
60796         * modules/unictype/ctype-upper: New file.
60797         * modules/unictype/ctype-xdigit: New file.
60798         * modules/unictype/ctype-blank: New file.
60799         * lib/unictype/bidi_byname.c: New file.
60800         * lib/unictype/bidi_name.c: New file.
60801         * lib/unictype/bidi_of.c: New file.
60802         * lib/unictype/bidi_test.c: New file.
60803         * lib/unictype/bitmap.h: New file.
60804         * lib/unictype/block_test.c: New file.
60805         * lib/unictype/blocks.c: New file.
60806         * lib/unictype/categ_C.c: New file.
60807         * lib/unictype/categ_Cc.c: New file.
60808         * lib/unictype/categ_Cf.c: New file.
60809         * lib/unictype/categ_Cn.c: New file.
60810         * lib/unictype/categ_Co.c: New file.
60811         * lib/unictype/categ_Cs.c: New file.
60812         * lib/unictype/categ_L.c: New file.
60813         * lib/unictype/categ_Ll.c: New file.
60814         * lib/unictype/categ_Lm.c: New file.
60815         * lib/unictype/categ_Lo.c: New file.
60816         * lib/unictype/categ_Lt.c: New file.
60817         * lib/unictype/categ_Lu.c: New file.
60818         * lib/unictype/categ_M.c: New file.
60819         * lib/unictype/categ_Mc.c: New file.
60820         * lib/unictype/categ_Me.c: New file.
60821         * lib/unictype/categ_Mn.c: New file.
60822         * lib/unictype/categ_N.c: New file.
60823         * lib/unictype/categ_Nd.c: New file.
60824         * lib/unictype/categ_Nl.c: New file.
60825         * lib/unictype/categ_No.c: New file.
60826         * lib/unictype/categ_P.c: New file.
60827         * lib/unictype/categ_Pc.c: New file.
60828         * lib/unictype/categ_Pd.c: New file.
60829         * lib/unictype/categ_Pe.c: New file.
60830         * lib/unictype/categ_Pf.c: New file.
60831         * lib/unictype/categ_Pi.c: New file.
60832         * lib/unictype/categ_Po.c: New file.
60833         * lib/unictype/categ_Ps.c: New file.
60834         * lib/unictype/categ_S.c: New file.
60835         * lib/unictype/categ_Sc.c: New file.
60836         * lib/unictype/categ_Sk.c: New file.
60837         * lib/unictype/categ_Sm.c: New file.
60838         * lib/unictype/categ_So.c: New file.
60839         * lib/unictype/categ_Z.c: New file.
60840         * lib/unictype/categ_Zl.c: New file.
60841         * lib/unictype/categ_Zp.c: New file.
60842         * lib/unictype/categ_Zs.c: New file.
60843         * lib/unictype/categ_and.c: New file.
60844         * lib/unictype/categ_and_not.c: New file.
60845         * lib/unictype/categ_byname.c: New file.
60846         * lib/unictype/categ_name.c: New file.
60847         * lib/unictype/categ_none.c: New file.
60848         * lib/unictype/categ_of.c: New file.
60849         * lib/unictype/categ_or.c: New file.
60850         * lib/unictype/categ_test.c: New file.
60851         * lib/unictype/combining.c: New file.
60852         * lib/unictype/ctype_alnum.c: New file.
60853         * lib/unictype/ctype_alpha.c: New file.
60854         * lib/unictype/ctype_blank.c: New file.
60855         * lib/unictype/ctype_cntrl.c: New file.
60856         * lib/unictype/ctype_digit.c: New file.
60857         * lib/unictype/ctype_graph.c: New file.
60858         * lib/unictype/ctype_lower.c: New file.
60859         * lib/unictype/ctype_print.c: New file.
60860         * lib/unictype/ctype_punct.c: New file.
60861         * lib/unictype/ctype_space.c: New file.
60862         * lib/unictype/ctype_upper.c: New file.
60863         * lib/unictype/ctype_xdigit.c: New file.
60864         * lib/unictype/decdigit.c: New file.
60865         * lib/unictype/digit.c: New file.
60866         * lib/unictype/identsyntaxmap.h: New file.
60867         * lib/unictype/mirror.c: New file.
60868         * lib/unictype/numeric.c: New file.
60869         * lib/unictype/pr_alphabetic.c: New file.
60870         * lib/unictype/pr_ascii_hex_digit.c: New file.
60871         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60872         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60873         * lib/unictype/pr_bidi_block_separator.c: New file.
60874         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60875         * lib/unictype/pr_bidi_common_separator.c: New file.
60876         * lib/unictype/pr_bidi_control.c: New file.
60877         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60878         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60879         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60880         * lib/unictype/pr_bidi_european_digit.c: New file.
60881         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60882         * lib/unictype/pr_bidi_left_to_right.c: New file.
60883         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60884         * lib/unictype/pr_bidi_other_neutral.c: New file.
60885         * lib/unictype/pr_bidi_pdf.c: New file.
60886         * lib/unictype/pr_bidi_segment_separator.c: New file.
60887         * lib/unictype/pr_bidi_whitespace.c: New file.
60888         * lib/unictype/pr_byname.c: New file.
60889         * lib/unictype/pr_byname.gperf: New file.
60890         * lib/unictype/pr_combining.c: New file.
60891         * lib/unictype/pr_composite.c: New file.
60892         * lib/unictype/pr_currency_symbol.c: New file.
60893         * lib/unictype/pr_dash.c: New file.
60894         * lib/unictype/pr_decimal_digit.c: New file.
60895         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60896         * lib/unictype/pr_deprecated.c: New file.
60897         * lib/unictype/pr_diacritic.c: New file.
60898         * lib/unictype/pr_extender.c: New file.
60899         * lib/unictype/pr_format_control.c: New file.
60900         * lib/unictype/pr_grapheme_base.c: New file.
60901         * lib/unictype/pr_grapheme_extend.c: New file.
60902         * lib/unictype/pr_grapheme_link.c: New file.
60903         * lib/unictype/pr_hex_digit.c: New file.
60904         * lib/unictype/pr_hyphen.c: New file.
60905         * lib/unictype/pr_id_continue.c: New file.
60906         * lib/unictype/pr_id_start.c: New file.
60907         * lib/unictype/pr_ideographic.c: New file.
60908         * lib/unictype/pr_ids_binary_operator.c: New file.
60909         * lib/unictype/pr_ids_trinary_operator.c: New file.
60910         * lib/unictype/pr_ignorable_control.c: New file.
60911         * lib/unictype/pr_iso_control.c: New file.
60912         * lib/unictype/pr_join_control.c: New file.
60913         * lib/unictype/pr_left_of_pair.c: New file.
60914         * lib/unictype/pr_line_separator.c: New file.
60915         * lib/unictype/pr_logical_order_exception.c: New file.
60916         * lib/unictype/pr_lowercase.c: New file.
60917         * lib/unictype/pr_math.c: New file.
60918         * lib/unictype/pr_non_break.c: New file.
60919         * lib/unictype/pr_not_a_character.c: New file.
60920         * lib/unictype/pr_numeric.c: New file.
60921         * lib/unictype/pr_other_alphabetic.c: New file.
60922         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60923         * lib/unictype/pr_other_grapheme_extend.c: New file.
60924         * lib/unictype/pr_other_id_continue.c: New file.
60925         * lib/unictype/pr_other_id_start.c: New file.
60926         * lib/unictype/pr_other_lowercase.c: New file.
60927         * lib/unictype/pr_other_math.c: New file.
60928         * lib/unictype/pr_other_uppercase.c: New file.
60929         * lib/unictype/pr_paired_punctuation.c: New file.
60930         * lib/unictype/pr_paragraph_separator.c: New file.
60931         * lib/unictype/pr_pattern_syntax.c: New file.
60932         * lib/unictype/pr_pattern_white_space.c: New file.
60933         * lib/unictype/pr_private_use.c: New file.
60934         * lib/unictype/pr_punctuation.c: New file.
60935         * lib/unictype/pr_quotation_mark.c: New file.
60936         * lib/unictype/pr_radical.c: New file.
60937         * lib/unictype/pr_sentence_terminal.c: New file.
60938         * lib/unictype/pr_soft_dotted.c: New file.
60939         * lib/unictype/pr_space.c: New file.
60940         * lib/unictype/pr_terminal_punctuation.c: New file.
60941         * lib/unictype/pr_test.c: New file.
60942         * lib/unictype/pr_titlecase.c: New file.
60943         * lib/unictype/pr_unassigned_code_value.c: New file.
60944         * lib/unictype/pr_unified_ideograph.c: New file.
60945         * lib/unictype/pr_uppercase.c: New file.
60946         * lib/unictype/pr_variation_selector.c: New file.
60947         * lib/unictype/pr_white_space.c: New file.
60948         * lib/unictype/pr_xid_continue.c: New file.
60949         * lib/unictype/pr_xid_start.c: New file.
60950         * lib/unictype/pr_zero_width.c: New file.
60951         * lib/unictype/scripts.c: New file.
60952         * lib/unictype/sy_c_ident.c: New file.
60953         * lib/unictype/sy_c_whitespace.c: New file.
60954         * lib/unictype/sy_java_ident.c: New file.
60955         * lib/unictype/sy_java_whitespace.c: New file.
60956
60957         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60958         Unicode 5.0.0.
60959         * lib/unictype/blocks.h: Likewise.
60960         * lib/unictype/categ_C.h: Likewise.
60961         * lib/unictype/categ_Cc.h: Likewise.
60962         * lib/unictype/categ_Cf.h: Likewise.
60963         * lib/unictype/categ_Cn.h: Likewise.
60964         * lib/unictype/categ_Co.h: Likewise.
60965         * lib/unictype/categ_Cs.h: Likewise.
60966         * lib/unictype/categ_L.h: Likewise.
60967         * lib/unictype/categ_Ll.h: Likewise.
60968         * lib/unictype/categ_Lm.h: Likewise.
60969         * lib/unictype/categ_Lo.h: Likewise.
60970         * lib/unictype/categ_Lt.h: Likewise.
60971         * lib/unictype/categ_Lu.h: Likewise.
60972         * lib/unictype/categ_M.h: Likewise.
60973         * lib/unictype/categ_Mc.h: Likewise.
60974         * lib/unictype/categ_Me.h: Likewise.
60975         * lib/unictype/categ_Mn.h: Likewise.
60976         * lib/unictype/categ_N.h: Likewise.
60977         * lib/unictype/categ_Nd.h: Likewise.
60978         * lib/unictype/categ_Nl.h: Likewise.
60979         * lib/unictype/categ_No.h: Likewise.
60980         * lib/unictype/categ_P.h: Likewise.
60981         * lib/unictype/categ_Pc.h: Likewise.
60982         * lib/unictype/categ_Pd.h: Likewise.
60983         * lib/unictype/categ_Pe.h: Likewise.
60984         * lib/unictype/categ_Pf.h: Likewise.
60985         * lib/unictype/categ_Pi.h: Likewise.
60986         * lib/unictype/categ_Po.h: Likewise.
60987         * lib/unictype/categ_Ps.h: Likewise.
60988         * lib/unictype/categ_S.h: Likewise.
60989         * lib/unictype/categ_Sc.h: Likewise.
60990         * lib/unictype/categ_Sk.h: Likewise.
60991         * lib/unictype/categ_Sm.h: Likewise.
60992         * lib/unictype/categ_So.h: Likewise.
60993         * lib/unictype/categ_Z.h: Likewise.
60994         * lib/unictype/categ_Zl.h: Likewise.
60995         * lib/unictype/categ_Zp.h: Likewise.
60996         * lib/unictype/categ_Zs.h: Likewise.
60997         * lib/unictype/categ_of.h: Likewise.
60998         * lib/unictype/combining.h: Likewise.
60999         * lib/unictype/ctype_alnum.h: Likewise.
61000         * lib/unictype/ctype_alpha.h: Likewise.
61001         * lib/unictype/ctype_blank.h: Likewise.
61002         * lib/unictype/ctype_cntrl.h: Likewise.
61003         * lib/unictype/ctype_digit.h: Likewise.
61004         * lib/unictype/ctype_graph.h: Likewise.
61005         * lib/unictype/ctype_lower.h: Likewise.
61006         * lib/unictype/ctype_print.h: Likewise.
61007         * lib/unictype/ctype_punct.h: Likewise.
61008         * lib/unictype/ctype_space.h: Likewise.
61009         * lib/unictype/ctype_upper.h: Likewise.
61010         * lib/unictype/ctype_xdigit.h: Likewise.
61011         * lib/unictype/decdigit.h: Likewise.
61012         * lib/unictype/digit.h: Likewise.
61013         * lib/unictype/mirror.h: Likewise.
61014         * lib/unictype/numeric.h: Likewise.
61015         * lib/unictype/pr_alphabetic.h: Likewise.
61016         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61017         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61018         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61019         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61020         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61021         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61022         * lib/unictype/pr_bidi_control.h: Likewise.
61023         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61024         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61025         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61026         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61027         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61028         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61029         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61030         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61031         * lib/unictype/pr_bidi_pdf.h: Likewise.
61032         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61033         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61034         * lib/unictype/pr_combining.h: Likewise.
61035         * lib/unictype/pr_composite.h: Likewise.
61036         * lib/unictype/pr_currency_symbol.h: Likewise.
61037         * lib/unictype/pr_dash.h: Likewise.
61038         * lib/unictype/pr_decimal_digit.h: Likewise.
61039         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61040         * lib/unictype/pr_deprecated.h: Likewise.
61041         * lib/unictype/pr_diacritic.h: Likewise.
61042         * lib/unictype/pr_extender.h: Likewise.
61043         * lib/unictype/pr_format_control.h: Likewise.
61044         * lib/unictype/pr_grapheme_base.h: Likewise.
61045         * lib/unictype/pr_grapheme_extend.h: Likewise.
61046         * lib/unictype/pr_grapheme_link.h: Likewise.
61047         * lib/unictype/pr_hex_digit.h: Likewise.
61048         * lib/unictype/pr_hyphen.h: Likewise.
61049         * lib/unictype/pr_id_continue.h: Likewise.
61050         * lib/unictype/pr_id_start.h: Likewise.
61051         * lib/unictype/pr_ideographic.h: Likewise.
61052         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61053         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61054         * lib/unictype/pr_ignorable_control.h: Likewise.
61055         * lib/unictype/pr_iso_control.h: Likewise.
61056         * lib/unictype/pr_join_control.h: Likewise.
61057         * lib/unictype/pr_left_of_pair.h: Likewise.
61058         * lib/unictype/pr_line_separator.h: Likewise.
61059         * lib/unictype/pr_logical_order_exception.h: Likewise.
61060         * lib/unictype/pr_lowercase.h: Likewise.
61061         * lib/unictype/pr_math.h: Likewise.
61062         * lib/unictype/pr_non_break.h: Likewise.
61063         * lib/unictype/pr_not_a_character.h: Likewise.
61064         * lib/unictype/pr_numeric.h: Likewise.
61065         * lib/unictype/pr_other_alphabetic.h: Likewise.
61066         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61067         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61068         * lib/unictype/pr_other_id_continue.h: Likewise.
61069         * lib/unictype/pr_other_id_start.h: Likewise.
61070         * lib/unictype/pr_other_lowercase.h: Likewise.
61071         * lib/unictype/pr_other_math.h: Likewise.
61072         * lib/unictype/pr_other_uppercase.h: Likewise.
61073         * lib/unictype/pr_paired_punctuation.h: Likewise.
61074         * lib/unictype/pr_paragraph_separator.h: Likewise.
61075         * lib/unictype/pr_pattern_syntax.h: Likewise.
61076         * lib/unictype/pr_pattern_white_space.h: Likewise.
61077         * lib/unictype/pr_private_use.h: Likewise.
61078         * lib/unictype/pr_punctuation.h: Likewise.
61079         * lib/unictype/pr_quotation_mark.h: Likewise.
61080         * lib/unictype/pr_radical.h: Likewise.
61081         * lib/unictype/pr_sentence_terminal.h: Likewise.
61082         * lib/unictype/pr_soft_dotted.h: Likewise.
61083         * lib/unictype/pr_space.h: Likewise.
61084         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61085         * lib/unictype/pr_titlecase.h: Likewise.
61086         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61087         * lib/unictype/pr_unified_ideograph.h: Likewise.
61088         * lib/unictype/pr_uppercase.h: Likewise.
61089         * lib/unictype/pr_variation_selector.h: Likewise.
61090         * lib/unictype/pr_white_space.h: Likewise.
61091         * lib/unictype/pr_xid_continue.h: Likewise.
61092         * lib/unictype/pr_xid_start.h: Likewise.
61093         * lib/unictype/pr_zero_width.h: Likewise.
61094         * lib/unictype/scripts.h: Likewise.
61095         * lib/unictype/scripts_byname.gperf: Likewise.
61096         * lib/unictype/sy_c_ident.h: Likewise.
61097         * lib/unictype/sy_c_whitespace.h: Likewise.
61098         * lib/unictype/sy_java_ident.h: Likewise.
61099         * lib/unictype/sy_java_whitespace.h: Likewise.
61100
61101         * lib/unictype/Makefile: New file.
61102         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61103         glibc.
61104         * lib/unictype/3level.h: New file, copied from glibc.
61105         * lib/unictype/3levelbit.h: New file.
61106
61107 2007-11-11  Bruno Haible  <bruno@clisp.org>
61108
61109         * modules/gperf: New file.
61110         * modules/iconv_open (Depends-on): Add it.
61111         (Makefile.am): Remove the GPERF definition.
61112
61113 2007-11-11  Bruno Haible  <bruno@clisp.org>
61114
61115         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61116         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61117
61118 2007-11-11  Bruno Haible  <bruno@clisp.org>
61119
61120         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61121         (usage): Remove function.
61122
61123 2007-11-11  Bruno Haible  <bruno@clisp.org>
61124
61125         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61126         gl_FUNC_CEILF_LIBS.
61127         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61128         gl_FUNC_CEIL_LIBS.
61129         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61130         gl_FUNC_CEILL_LIBS.
61131         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61132         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61133         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61134
61135 2007-11-11  Bruno Haible  <bruno@clisp.org>
61136
61137         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61138         roundf were declared but do not exist on functions.
61139         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61140         roundl were declared but do not exist on functions.
61141         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61142         HAVE_FLOORL_AND_CEILL, respectively.
61143         Needed for Sun C on Solaris 10.
61144
61145 2007-11-11  Bruno Haible  <bruno@clisp.org>
61146
61147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61148         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61149         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61150         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61151         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61152         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61153         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61154         HAVE_DECL_ROUNDF.
61155         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61156         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61158         of HAVE_DECL_ROUND*.
61159         * modules/math (Makefile.am): Update.
61160
61161 2007-11-10  Bruno Haible  <bruno@clisp.org>
61162
61163         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61164         ptrdiff_t as m4/intl.m4.
61165
61166 2007-11-10  Jim Meyering  <meyering@redhat.com>
61167
61168         Avoid link failure for the argmatch test.
61169         * tests/test-argmatch.c (usage): Define function to avoid a link
61170         failure: argmatch_die requires a usage function.
61171
61172 2007-11-09  Bruno Haible  <bruno@clisp.org>
61173
61174         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61175         * doc/functions/vsnprintf.texi: Likewise.
61176         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61177         with a size argument < 2.
61178
61179 2007-11-09  Bruno Haible  <bruno@clisp.org>
61180
61181         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61182         buffer. Fixes an inefficiency introduced on 2007-11-03.
61183
61184 2007-11-09  Bruno Haible  <bruno@clisp.org>
61185
61186         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61187         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61188
61189 2007-11-08  Jim Meyering  <meyering@redhat.com>
61190
61191         Change cache variable name prefix "jm_" to "gl_" everywhere.
61192         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61193         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61194         * m4/uptime.m4: s/gl_/jm_/
61195
61196 2007-11-07  Bruno Haible  <bruno@clisp.org>
61197
61198         Update to GNU gettext 0.17.
61199         * m4/intl.m4: Update to GNU gettext 0.17.
61200         * m4/po.m4: Likewise.
61201         * modules/gettext (Files): Remove m4/ulonglong.m4.
61202         (configure.ac): Require gettext infrastructure from version 0.17.
61203
61204 2007-11-06  Bruno Haible  <bruno@clisp.org>
61205
61206         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61207         symbolic values are not defined in a public header.
61208         * lib/freadable.c (freadable) [QNX]: Likewise.
61209         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61210         * lib/freading.c (freading) [QNX]: Likewise.
61211         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61212         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61213         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61214         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61215         Reported by Alain Magloire.
61216
61217         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61218
61219 2007-11-05  Bruno Haible  <bruno@clisp.org>
61220
61221         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61222         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61223         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61224         Reported by Eric Blake.
61225
61226 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61227             Bruno Haible  <bruno@clisp.org>
61228
61229         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61230         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61231         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61232         (malloc): Undefine also before including <stdlib.h>.
61233         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61234         Needed on OSF/1 4.0.
61235
61236 2007-11-05  Jim Meyering  <meyering@redhat.com>
61237
61238         git-version-gen: sync from coreutils.
61239         * build-aux/git-version-gen: Add comments.
61240         Change the first '-' to '.' in the snapshot version string,
61241         e.g., 6.9-377-08144 -> 6.9.377-08144
61242         Remove first parameter.
61243         Don't declare a version "-dirty" merely because a time
61244         stamp has changed.
61245
61246 2007-11-04  Bruno Haible  <bruno@clisp.org>
61247
61248         * lib/lock.h: Protect all macro definitions containing an 'if'
61249         statement through a "do { ... } while (0)".
61250         * lib/tls.h: Likewise.
61251
61252 2007-11-04  Bruno Haible  <bruno@clisp.org>
61253
61254         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61255
61256 2007-11-04  Bruno Haible  <bruno@clisp.org>
61257
61258         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61259         * modules/fprintf-posix (Depends-on): Add nocrash.
61260         * modules/snprintf-posix (Depends-on): Likewise.
61261         * modules/sprintf-posix (Depends-on): Likewise.
61262         * modules/vasnprintf-posix (Depends-on): Likewise.
61263         * modules/vasprintf-posix (Depends-on): Likewise.
61264         * modules/vfprintf-posix (Depends-on): Likewise.
61265         * modules/vsnprintf-posix (Depends-on): Likewise.
61266         * modules/vsprintf-posix (Depends-on): Likewise.
61267         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61268         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61269         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61270         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61271         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61272         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61273         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61274
61275 2007-11-04  Bruno Haible  <bruno@clisp.org>
61276
61277         * modules/nocrash: New file.
61278         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61279         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61280
61281 2007-11-04  Bruno Haible  <bruno@clisp.org>
61282
61283         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61284         precision handling.
61285         * tests/test-vasprintf-posix.c (test_function): Likewise.
61286         * tests/test-snprintf-posix.h (test_function): Likewise.
61287         * tests/test-sprintf-posix.h (test_function): Likewise.
61288
61289         Fix *printf behaviour for large precisions on mingw and BeOS.
61290         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61291         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61293         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61295         gl_PRINTF_PRECISION and test its result. Invoke
61296         gl_PREREQ_VASNPRINTF_PRECISION.
61297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61304         * doc/functions/fprintf.texi: Update.
61305         * doc/functions/printf.texi: Update.
61306         * doc/functions/snprintf.texi: Update.
61307         * doc/functions/sprintf.texi: Update.
61308         * doc/functions/vfprintf.texi: Update.
61309         * doc/functions/vprintf.texi: Update.
61310         * doc/functions/vsnprintf.texi: Update.
61311         * doc/functions/vsprintf.texi: Update.
61312
61313 2007-11-04  Bruno Haible  <bruno@clisp.org>
61314
61315         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61316
61317 2007-11-04  Bruno Haible  <bruno@clisp.org>
61318
61319         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61320         Reported by Sylvain Beucler <beuc@gnu.org>.
61321
61322 2007-11-03  Bruno Haible  <bruno@clisp.org>
61323
61324         * tests/test-fprintf-posix2.sh: New file.
61325         * tests/test-fprintf-posix2.c: New file.
61326         * modules/fprintf-posix-tests (Files): Add them.
61327         (TESTS): Add test-fprintf-posix2.sh.
61328         (configure.ac): Check for getrlimit and setrlimit.
61329         (check_PROGRAMS): Add test-fprintf-posix2.
61330
61331         * tests/test-printf-posix2.sh: New file.
61332         * tests/test-printf-posix2.c: New file.
61333         * modules/printf-posix-tests (Files): Add them.
61334         (TESTS): Add test-printf-posix2.sh.
61335         (configure.ac): Check for getrlimit and setrlimit.
61336         (check_PROGRAMS): Add test-printf-posix2.
61337
61338         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61339         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61340         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61341         (decode_double): New function, copied from decode_long_double.
61342         (scale10_round_decimal_decoded): New function, extracted from
61343         scale10_round_decimal_long_double.
61344         (scale10_round_decimal_long_double): Use it.
61345         (scale10_round_decimal_double): New function.
61346         (floorlog10): New function.
61347         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61348         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61349         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61350         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61351         gl_PRINTF_ENOMEM and test its result. Invoke
61352         gl_PREREQ_VASNPRINTF_ENOMEM.
61353         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61354         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61355         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61356         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61357         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61358         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61359         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61360         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61361         * modules/snprintf-posix (Depends-on): Likewise.
61362         * modules/sprintf-posix (Depends-on): Likewise.
61363         * modules/vasnprintf-posix (Depends-on): Likewise.
61364         * modules/vasprintf-posix (Depends-on): Likewise.
61365         * modules/vfprintf-posix (Depends-on): Likewise.
61366         * modules/vsnprintf-posix (Depends-on): Likewise.
61367         * modules/vsprintf-posix (Depends-on): Likewise.
61368         * doc/functions/fprintf.texi: Update.
61369         * doc/functions/printf.texi: Update.
61370         * doc/functions/snprintf.texi: Update.
61371         * doc/functions/sprintf.texi: Update.
61372         * doc/functions/vfprintf.texi: Update.
61373         * doc/functions/vprintf.texi: Update.
61374         * doc/functions/vsnprintf.texi: Update.
61375         * doc/functions/vsprintf.texi: Update.
61376
61377 2007-11-03  Bruno Haible  <bruno@clisp.org>
61378
61379         * modules/frexp-nolibm-tests: New file.
61380
61381         * modules/frexp-nolibm: New file.
61382         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61383
61384 2007-11-03  Bruno Haible  <bruno@clisp.org>
61385
61386         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61387         value is C99 compliant.
61388         Needed for OSF/1 5.1.
61389
61390 2007-11-03  Bruno Haible  <bruno@clisp.org>
61391
61392         Fix out-of-memory handling of vasnprintf.
61393         * lib/printf-parse.c: Include <errno.h>.
61394         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61395         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61396         is already set.
61397
61398 2007-11-02  Eric Blake  <ebb9@byu.net>
61399
61400         Fix tests on cygwin.
61401         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61402
61403 2007-11-01  Bruno Haible  <bruno@clisp.org>
61404
61405         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61406         warning.
61407         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61408         needed for POSIX compatibility.
61409
61410 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61411
61412         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61413         for compatibility with GNU.
61414
61415 2007-11-01  Bruno Haible  <bruno@clisp.org>
61416
61417         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61418         (putenv): Renamed from rpl_putenv. Change argument type from
61419         'const char *' to 'char *'.
61420         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61421         of defining putenv in config.h, just set REPLACE_PUTENV.
61422         * modules/putenv (Depends-on): Add stdlib.
61423         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61424         (Include): Use <stdlib.h>.
61425         * lib/stdlib.in.h (putenv): New declaration.
61426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61427         REPLACE_PUTENV.
61428         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61429         REPLACE_PUTENV.
61430         Needed for MacOS X 10.5.0.
61431         Reported by Peter O'Gorman <peter@pogma.com>.
61432
61433 2007-11-01  Jim Meyering  <meyering@redhat.com>
61434
61435         Treat an empty date string exactly like "0".
61436         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61437         if the remaining date string (to be parsed) is empty, use "0".
61438         Reported by Mischa Molhoek and discussed in this thread:
61439         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61440
61441 2007-10-31  Bruno Haible  <bruno@clisp.org>
61442
61443         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61444         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61445         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61446         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61447         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61448         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61449
61450 2007-10-31  Bruno Haible  <bruno@clisp.org>
61451
61452         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61453         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61454         (AC_TYPE_LONG_LONG_INT): Use it.
61455         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61456         it as well.
61457         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61458         to m4/longlong.m4.
61459         * modules/stdint (Files): Remove m4/ulonglong.m4.
61460         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61461         m4/ulonglong.m4.
61462         * modules/strtoumax (Files): Likewise.
61463
61464 2007-10-30  Bruno Haible  <bruno@clisp.org>
61465
61466         * modules/xvasprintf-posix: New file.
61467         Suggested by Eric Blake.
61468
61469 2007-10-30  Bruno Haible  <bruno@clisp.org>
61470
61471         * modules/xprintf-posix-tests: New file.
61472         * tests/test-xprintf-posix.sh: New file.
61473         * tests/test-xprintf-posix.c: New file.
61474         * tests/test-xfprintf-posix.c: New file.
61475
61476         * modules/xprintf-posix: New file.
61477
61478 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61479
61480         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61481         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61482         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61483
61484 2007-10-29  Bruno Haible  <bruno@clisp.org>
61485
61486         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61487         contain the special marker '_cv_'.
61488         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61489         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61490         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61491         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61492         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61493         Reported by Ralf Wildenhues.
61494
61495 2007-10-29  Bruno Haible  <bruno@clisp.org>
61496
61497         * gnulib-tool (func_import): When --lgpl is not specified, set
61498         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61499         GPLv3.
61500         Reported by Simon Josefsson.
61501
61502 2007-10-28  Bruno Haible  <bruno@clisp.org>
61503
61504         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61505         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61506         HAVE_DECL_ISFINITE.
61507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61508         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61509         HAVE_DECL_ISFINITE.
61510
61511 2007-10-28  Bruno Haible  <bruno@clisp.org>
61512
61513         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61514         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61515
61516 2007-10-28  Bruno Haible  <bruno@clisp.org>
61517
61518         Fix link errors with Sun C 5.0 on Solaris 10.
61519         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61520         function is declared but not present in the compiler's libm.
61521         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61522         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61523         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61524         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61525         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61526         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61527         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61529         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61530         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61531         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61532         HAVE_DECL_FLOORL.
61533
61534 2007-10-28  Bruno Haible  <bruno@clisp.org>
61535
61536         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61537         gl_FUNC_FLOORL. Cache the result.
61538         (gl_FUNC_FLOORL): Use it.
61539         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61540         gl_FUNC_CEILL. Cache the result.
61541         (gl_FUNC_CEILL): Use it.
61542
61543         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61544         gl_FUNC_FLOOR. Cache the result.
61545         (gl_FUNC_FLOOR): Use it.
61546         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61547         gl_FUNC_CEIL. Cache the result.
61548         (gl_FUNC_CEIL): Use it.
61549
61550         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61551         gl_FUNC_FLOORF. Cache the result.
61552         (gl_FUNC_FLOORF): Use it.
61553         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61554         gl_FUNC_CEILF. Cache the result.
61555         (gl_FUNC_CEILF): Use it.
61556
61557 2007-10-28  Bruno Haible  <bruno@clisp.org>
61558
61559         * gnulib-tool: Allow specifying the LGPL version number through
61560         --lgpl=2 or --lgpl=3.
61561         (func_usage): Document --lgpl with argument.
61562         Handle --lgpl=... arguments.
61563         (func_import): Recognize also gl_LGPL calls with an argument. When
61564         --lgpl=2 is used and the module's license is just LGPL, report an
61565         error. Set sed_transform_lib_file according to the lgpl variable. In
61566         the generated files, use --lgpl or gl_LGPL invocations with argument,
61567         if necessary.
61568         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61569         an LGPv2+ license.
61570         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61571         gl_LGPL macro.
61572
61573 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61574             Bruno Haible  <bruno@clisp.org>
61575
61576         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61577         (u16_uctomb_aux): Likewise.
61578         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61579         !HAVE_INLINE.
61580         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61581
61582 2007-10-28  Bruno Haible  <bruno@clisp.org>
61583
61584         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61585         Invoke AM_GETTEXT_OPTION if it exists.
61586         * modules/vasprintf: Likewise.
61587         * modules/verror: Likewise.
61588         * modules/xprintf: Likewise.
61589         * modules/xvasprintf: Likewise.
61590
61591 2007-10-27  Ben Pfaff  <blp@gnu.org>
61592
61593         * lib/math.in.h: Define isfinite macro and prototypes for
61594         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61595         implementations.
61596         * m4/math_h.m4: New substitutions for isfinite module.
61597         * lib/isfinite.c: New file.
61598         * m4/isfinite.m4: New file.
61599         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61600         * modules/isfinite: New file.
61601         * modules/isfinite-tests: New file.
61602         * tests/tests-isfinite.c: New file.
61603         * doc/functions/isfinite.texi: Mention isfinite module.
61604         * MODULES.html.sh: Mention new module.
61605
61606 2007-10-27  Ben Pfaff  <blp@gnu.org>
61607
61608         Ralf Wildenhues reported that Tru64 4.0D declares the round
61609         functions but does not have definitions.
61610         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61611         cannot be found in any library, set the output variable to
61612         "missing" instead of "".
61613         * m4/round.m4: Also use our substitute if we cannot find round in
61614         any library, even if it is declared.
61615         * m4/roundf.m4: Likewise for roundf.
61616         * m4/roundl.m4: Likewise for roundl.
61617         * lib/math.in.h: Undefine roundf, round, roundl before defining
61618         their replacements, to allow for hypothetical systems where these
61619         may be defined as macros but not available in libraries.
61620
61621 2007-10-27  Bruno Haible  <bruno@clisp.org>
61622
61623         * doc/gnulib.texi: Invoke @firstparagraphindent.
61624         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61625         changes in gnulib.
61626         (Source changes): New section.
61627
61628 2007-10-26  Bruno Haible  <bruno@clisp.org>
61629
61630         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61631         borrowed from autoconf.
61632
61633 2007-10-26  Bruno Haible  <bruno@clisp.org>
61634
61635         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61636         strerror returned the empty string. Needed on HP-UX 11.00.
61637
61638 2007-10-24  Micah Cowan  <micah@cowan.name>
61639
61640         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61641         * build-aux/bootstrap: Remove support for now-unnecessary option,
61642         --cvs-user, and envvars CVS_USER, CVS_RSH.
61643
61644 2007-10-24  Jim Meyering  <meyering@redhat.com>
61645
61646         Avoid diagnostics from sha1sum when there is no cached checksum.
61647         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61648         if the po.s1 file hasn't been created yet.
61649
61650         * build-aux/bootstrap: Sync from coreutils:
61651         2007-10-24  Jim Meyering  <meyering@redhat.com>
61652         Get gnulib from the git repository, not from an obsolete cvs one.
61653         * build-aux/bootstrap: Suggestion from Micah Cowan.
61654         2007-10-04  Jim Meyering  <jim@meyering.net>
61655         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61656         (update_po_files): Work also when there are no .po files in po/.
61657
61658 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61659
61660         * README: Append ".git" to git and cg examples.
61661         Problem reported by Benoit Sigoure.
61662
61663 2007-10-23  Micah Cowan  <micah@cowan.name>
61664
61665         * users.txt: Add wget.
61666
61667 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61668
61669         Fix linking of some unistdio tests on FreeBSD.
61670         * modules/unistdio/u16-vsnprintf-tests
61671         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61672         * modules/unistdio/u16-vsprintf-tests
61673         (test_u16_vsnprintf1_LDADD): Likewise.
61674         * modules/unistdio/u32-vsnprintf-tests
61675         (test_u32_vsnprintf1_LDADD): Likewise.
61676         * modules/unistdio/u32-vsprintf-tests
61677         (test_u32_vsprintf1_LDADD): Likewise.
61678         * modules/unistdio/u8-vsnprintf-tests
61679         (test_u8_vsnprintf1_LDADD): Likewise.
61680         * modules/unistdio/u8-vsprintf-tests
61681         (test_u8_vsprintf1_LDADD): Likewise.
61682         * modules/unistdio/ulc-vsnprintf-tests
61683         (test_ulc_vsnprintf1_LDADD): Likewise.
61684         * modules/unistdio/ulc-vsprintf-tests
61685         (test_ulc_vsprintf1_LDADD): Likewise.
61686
61687         Fix linking of some uniconv tests on FreeBSD.
61688         * modules/uniconv/u16-conv-from-enc-tests
61689         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61690         * modules/uniconv/u16-conv-to-enc-tests
61691         (test_u16_conv_to_enc_LDADD): Likewise.
61692         * modules/uniconv/u16-strconv-from-enc-tests
61693         (test_u16_strconv_from_enc_LDADD): Likewise.
61694         * modules/uniconv/u16-strconv-to-enc-tests
61695         (test_u16_strconv_to_enc_LDADD): Likewise.
61696         * modules/uniconv/u32-conv-from-enc-tests
61697         (test_u32_conv_from_enc_LDADD): Likewise.
61698         * modules/uniconv/u32-conv-to-enc-tests
61699         (test_u32_conv_to_enc_LDADD): Likewise.
61700         * modules/uniconv/u32-strconv-from-enc-tests
61701         (test_u32_strconv_from_enc_LDADD): Likewise.
61702         * modules/uniconv/u32-strconv-to-enc-tests
61703         (test_u32_strconv_to_enc_LDADD): Likewise.
61704         * modules/uniconv/u8-conv-from-enc-tests
61705         (test_u8_conv_from_enc_LDADD): Likewise.
61706         * modules/uniconv/u8-conv-to-enc-tests
61707         (test_u8_conv_to_enc_LDADD): Likewise.
61708         * modules/uniconv/u8-strconv-from-enc-tests
61709         (test_u8_strconv_from_enc_LDADD): Likewise.
61710         * modules/uniconv/u8-strconv-to-enc-tests
61711         (test_u8_strconv_to_enc_LDADD): Likewise.
61712
61713 2007-10-22  Bruno Haible  <bruno@clisp.org>
61714
61715         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61716         size.
61717
61718 2007-10-22  Eric Blake  <ebb9@byu.net>
61719
61720         Tweak x*printf documentation.
61721         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61722         variable name and comments.
61723         Suggested by Bruno Haible.
61724
61725 2007-10-22  Bruno Haible  <bruno@clisp.org>
61726
61727         * lib/acl.c (copy_acl): Fix file name in comment.
61728
61729 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61730
61731         Fix Tru64 problem with stdbool.h.
61732         * lib/stdbool.in.h (false, true):
61733         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61734         Don't declare as an enum in this situation; it runs afoul of Tru64.
61735         Problem reported by Steven M. Schweda in
61736         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61737
61738 2007-10-22  Eric Blake  <ebb9@byu.net>
61739
61740         Also wrap vf?printf.
61741         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61742         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61743         (xvprintf, xvfprintf): New functions.
61744
61745 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61746
61747         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61748         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61749
61750         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61751         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61752
61753 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61754
61755         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61756         by Bruno Haible.
61757
61758 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61759
61760         * lib/getloadavg.c
61761         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61762         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61763
61764         * tests/test-i-ring.c: Work for C89.
61765
61766 2007-10-22  Bruno Haible  <bruno@clisp.org>
61767
61768         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61769         -1u, in preprocessor expression, so that we don't test for the bug
61770         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61772
61773 2007-10-22  Eric Blake  <ebb9@byu.net>
61774
61775         * tests/test-yesno.sh: Silence stderr during test.
61776
61777 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61778
61779         * modules/crypto/gc-camellia: New file.
61780
61781         * m4/gc-camellia.m4: New file.
61782
61783         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61784
61785         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61786
61787 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61788
61789         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61790         --help to stdout.  Reported by sms@antinode.org (Steven
61791         M. Schweda).
61792
61793 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61794
61795         * users.txt: Fix link to libksba.
61796
61797 2007-10-21  Ben Pfaff  <blp@gnu.org>
61798
61799         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61800         round.c roundf implementation that depends on floorf and ceilf to
61801         be tested unconditionally.
61802
61803 2007-10-21  Ben Pfaff  <blp@gnu.org>
61804
61805         * m4/check-libm-func.m4: Removed.
61806         * m4/check-math-lib.m4: New file.
61807         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61808         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61809         definition and lack of AC_LIBOBJ([roundf]).
61810         * m4/roundl.m4: Ditto, and similarly for roundl.
61811         * modules/round: Reference new m4 file.
61812         * modules/roundf: Ditto.
61813         * modules/roundl: Ditto.
61814         * tests/test-round2.c (main): Use ROUND instead of round.
61815         Bug report from Bruno Haible.
61816
61817 2007-10-21  Bruno Haible  <bruno@clisp.org>
61818
61819         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61820         context.
61821
61822 2007-10-21  Bruno Haible  <bruno@clisp.org>
61823
61824         * tests/test-wcwidth.c (main): Allow negative result for some control
61825         characters.
61826
61827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61828         Needed on OSF/1 5.1.
61829
61830 2007-10-21  Bruno Haible  <bruno@clisp.org>
61831
61832         * tests/test-floorf1.c: Include isnanf.h.
61833         (main): Use isnanf() instead of isnan().
61834         * tests/test-ceilf1.c: Include isnanf.h.
61835         (main): Use isnanf() instead of isnan().
61836         * tests/test-truncf1.c: Include isnanf.h.
61837         (main): Use isnanf() instead of isnan().
61838         * tests/test-roundf1.c: Include isnanf.h.
61839         (main): Use isnanf() instead of isnan().
61840
61841 2007-10-21  Eric Blake  <ebb9@byu.net>
61842
61843         * users.txt: Update URL for m4.
61844
61845 2007-10-21  Bruno Haible  <bruno@clisp.org>
61846
61847         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61848
61849 2007-10-21  Bruno Haible  <bruno@clisp.org>
61850
61851         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61852         Git's management files if the CVS files are not present.
61853
61854 2007-10-20  Bruno Haible  <bruno@clisp.org>
61855
61856         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61857         gcc-3.4.x.
61858
61859 2007-10-20  Ben Pfaff  <blp@gnu.org>
61860
61861         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61862         implementations.
61863         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61864         * lib/round.c: New file.
61865         * lib/roundf.c: New file.
61866         * lib/roundl.c: New file.
61867         * m4/round.m4: New file.
61868         * m4/roundf.m4: New file.
61869         * m4/roundl.m4: New file.
61870         * m4/check-libm-func-m4: New file.
61871         * modules/math: Replace round, roundf, roundl related @VARS@ in
61872         math.in.h.
61873         * modules/round: New file.
61874         * modules/round-tests: New file.
61875         * modules/roundf: New file.
61876         * modules/roundf-tests: New file.
61877         * modules/roundl: New file.
61878         * modules/roundl-tests: New file.
61879         * tests/test-round1.c: New file.
61880         * tests/test-round2.c: New file.
61881         * tests/test-roundf1.c: New file.
61882         * tests/test-roundf2.c: New file.
61883         * tests/test-roundl.c: New file.
61884         * doc/functions/round.texi: Mention round module.
61885         * doc/functions/roundf.texi: Mention roundf module.
61886         * doc/functions/roundl.texi: Mention roundl module.
61887         * MODULES.html.sh: Mention new modules.
61888         Thanks to Bruno Haible for suggestions.
61889
61890 2007-10-20  Jim Meyering  <meyering@redhat.com>
61891
61892         * lib/xprintf.c: Include <config.h> unconditionally.
61893
61894         Change xprintf's license to GPL.
61895         * modules/xprintf (License): s/LGPL/GPL/, since this module
61896         depends on modules (exit and exitfail) which are GPL.
61897         Suggestion from Bruno Haible.
61898
61899         xprintf fixes.
61900         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61901         Use a clearer diagnostic.
61902         Patch from Bruno Haible.
61903
61904 2007-10-20  Bruno Haible  <bruno@clisp.org>
61905
61906         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61907         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61908         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61909
61910 2007-10-20  Bruno Haible  <bruno@clisp.org>
61911
61912         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61913         precision in the comparison result > x - 1 or similar.
61914         * tests/test-ceilf2.c (correct_result_p): Likewise.
61915         * tests/test-truncf2.c (correct_result_p): Likewise.
61916         * tests/test-trunc2.c (correct_result_p): Likewise.
61917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61918
61919 2007-10-20  Bruno Haible  <bruno@clisp.org>
61920
61921         * modules/ceil: New file.
61922         * m4/ceil.m4: New file.
61923         * doc/functions/ceil.texi: Mention the 'ceil' module.
61924
61925 2007-10-20  Bruno Haible  <bruno@clisp.org>
61926
61927         * modules/floor: New file.
61928         * m4/floor.m4: New file.
61929         * doc/functions/floor.texi: Mention the 'floor' module.
61930
61931 2007-10-20  Bruno Haible  <bruno@clisp.org>
61932
61933         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61934         of %a.
61935         * modules/floorf-tests (Depends-on): Likewise.
61936         * modules/truncf-tests (Depends-on): Likewise.
61937         * modules/trunc-tests (Depends-on): Likewise.
61938         Reported by Ben Pfaff.
61939
61940 2007-10-19  Jim Meyering  <meyering@redhat.com>
61941
61942         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61943         Don't bother testing specific errno values.  Just test ferror.
61944
61945         New module: xprintf
61946         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61947
61948 2007-10-19  Bruno Haible  <bruno@clisp.org>
61949
61950         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61951         syntax.
61952         * modules/javaexec (Makefile.am): Likewise.
61953         * modules/relocatable-prog (Makefile.am): Likewise.
61954         Suggested by Jim Meyering.
61955
61956 2007-10-18  Bruno Haible  <bruno@clisp.org>
61957
61958         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61959         Reported by Jim Meyering.
61960
61961 2007-10-18  Eric Blake  <ebb9@byu.net>
61962
61963         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61964
61965 2007-10-18  Bruno Haible  <bruno@clisp.org>
61966
61967         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61968         the format string into writable memory. Needed in Fortify conditions.
61969
61970 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61971             Bruno Haible  <bruno@clisp.org>
61972
61973         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61974         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61975         * modules/trim (Depends-on): Add mbchar.
61976         (configure.ac): Add gl_FUNC_MBRTOWC.
61977         (Makefile.am): Augment lib_SOURCES.
61978
61979 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61980
61981         Modify glob.c to use fstatat and dirfd, to simplify it.
61982         Suggested by Eric Blake.
61983         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61984         Don't include <stdbool.h>; not used.
61985         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61986         (link_exists_p): Simplify implementation, since we can now assume
61987         dirfd and fstatat.
61988         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61989
61990 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61991
61992         * gnulib-tool (func_get_dependencies): Fix sed script to
61993         match only tests.
61994
61995 2007-10-17  Bruno Haible  <bruno@clisp.org>
61996
61997         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61998         allow locale names without encoding suffix.
61999         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62000         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62001
62002 2007-10-16  Bruno Haible  <bruno@clisp.org>
62003
62004         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62005         * lib/getgroups.c (getgroups): Likewise.
62006         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62007
62008 2007-10-16  Bruno Haible  <bruno@clisp.org>
62009
62010         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62011         * modules/malloc-posix (License): Likewise.
62012         * modules/realloc-posix (License): Likewise.
62013         * modules/calloc-posix (License): Likewise.
62014         * modules/intprops (License): Change from GPL to LGPL, with
62015         Paul Eggert's approval.
62016
62017 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62018
62019         Merge glibc changes into lib/glob.c.
62020
62021         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62022         2007-10-15 04:59:03 UTC.  Here are the changes:
62023
62024         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62025
62026         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62027
62028         * lib/glob.c: Add some branch prediction throughout.
62029
62030         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62031
62032         [BZ #5103]
62033         * lib/glob.c (glob): Recognize patterns starting \/.
62034
62035         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62036
62037         [BZ #3996]
62038         * lib/glob.c (attribute_hidden): Define if not defined.
62039         (glob): Unescape dirname, filename or username when needed and not
62040         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62041         is NULL.  Handle unescaped [ in pattern without closing ].
62042         Don't pass GLOB_CHECK down to recursive glob for directories.
62043         (__glob_pattern_type): New function.
62044         (__glob_pattern_p): Implement using __glob_pattern_type.
62045         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62046         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62047         Remove unreachable code.
62048
62049         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62050
62051         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62052         explain why there are no leaks.
62053
62054         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62055
62056         [BZ #3253]
62057         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62058         time, rather allocate increasingly bigger arrays of pointers, if
62059         possible with alloca, if too large with malloc.
62060
62061 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62062
62063         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62064         Problem reported by H.Merijn Brand in
62065         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62066         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62067         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62068
62069 2007-10-15  Bruno Haible  <bruno@clisp.org>
62070
62071         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62072         with explicit rpl_ prefix.
62073         * lib/fopen.c (fopen): Likewise.
62074         * lib/freopen.c (freopen): Likewise.
62075         * lib/iconv.c (iconv): Likewise.
62076         * lib/iconv_close.c (iconv_close): Likewise.
62077
62078 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62079
62080         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62081
62082 2007-10-15  Bruno Haible  <bruno@clisp.org>
62083
62084         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62085         <stddef.h> instead of <stdlib.h> since we only need NULL.
62086         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62087
62088 2007-10-15  Bruno Haible  <bruno@clisp.org>
62089
62090         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62091         Replace paragraph talking about LIBOBJS.
62092         Reported by Colin Watson <cjwatson@debian.org>.
62093
62094 2007-10-15  Bruno Haible  <bruno@clisp.org>
62095
62096         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62097         <stdlib.h> before using NULL.
62098
62099 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62100
62101         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62102         Reported by Albert Chin <china@thewrittenword.com>.
62103
62104 2007-10-14  Bruno Haible  <bruno@clisp.org>
62105
62106         * modules/iconv_open-utf-tests: New file.
62107         * tests/test-iconv-utf.c: New file.
62108
62109         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62110         * modules/iconv_open-utf: New file.
62111         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62112         (iconv, iconv_close): New declarations.
62113         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62114         be defined.
62115         (iconv_open): Add special handling of conversion between UTF-8 and
62116         UTF-{16,32}{BE,LE}.
62117         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62118         * lib/iconv_close.c: New file.
62119         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62120         gl_FUNC_ICONV_OPEN.
62121         (gl_FUNC_ICONV_OPEN): Use it.
62122         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62123         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62124         and REPLACE_ICONV_UTF.
62125         * modules/iconv_open (Depends-on): Add c-strcase.
62126         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62127         ICONV_CONST.
62128         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62129
62130 2007-10-13  Albert Chin  <china@thewrittenword.com>
62131             Bruno Haible  <bruno@clisp.org>
62132
62133         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62134         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62135
62136 2007-10-13  Bruno Haible  <bruno@clisp.org>
62137
62138         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62139         defined, use the ISO C99 inline semantics.
62140         * lib/argp.h (ARGP_EI): Likewise.
62141
62142 2007-10-13  Bruno Haible  <bruno@clisp.org>
62143
62144         Handle 'inline' change in gcc 4.3.0.
62145         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62146         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62147         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62148         argp_fmtstream_point): Disable 'extern' declaration if the function
62149         definition is going to be provided inline.
62150         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62151         semantics, not the ISO C99 inline semantics.
62152         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62153         'extern' declaration if the function definition is going to be provided
62154         inline.
62155         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62156         the GNU C inline semantics, not the ISO C99 inline semantics. With
62157         GCC 4.2, avoid a warning.
62158
62159 2007-10-13  Bruno Haible  <bruno@clisp.org>
62160
62161         * lib/freading.h (freading): Enable the use of __freading for
62162         glibc >= 2.7.
62163         * lib/freading.c (freading): Likewise.
62164
62165 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62166
62167         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62168         "warning: C99 inline functions are not supported; using GNU89".
62169
62170 2007-10-12  Bruno Haible  <bruno@clisp.org>
62171
62172         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62173         of 2.
62174         * tests/test-ceilf2.c: New file.
62175         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62176
62177         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62178         * modules/ceilf-tests: Update.
62179
62180 2007-10-12  Bruno Haible  <bruno@clisp.org>
62181
62182         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62183         of 2.
62184         * tests/test-floorf2.c: New file.
62185         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62186
62187         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62188         * modules/floorf-tests: Update.
62189
62190 2007-10-12  Bruno Haible  <bruno@clisp.org>
62191
62192         * tests/test-trunc2.c: New file.
62193         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62194
62195         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62196         * modules/trunc-tests: Update.
62197
62198 2007-10-12  Bruno Haible  <bruno@clisp.org>
62199
62200         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62201         of 2.
62202         * tests/test-truncf2.c: New file.
62203         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62204
62205         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62206         * modules/truncf-tests: Update.
62207
62208 2007-10-11  Eric Blake  <ebb9@byu.net>
62209
62210         Don't claim strerror is broken on Interix.
62211         * doc/functions/strerror.texi (strerror): Known broken systems are
62212         now Solaris 8, and not Interix.
62213         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62214         Interix on cross-compile.
62215         Reported by Martin Koeppe in
62216         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62217
62218 2007-10-11  Bruno Haible  <bruno@clisp.org>
62219
62220         * modules/i-ring-tests: New file.
62221         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62222         instead of assert.
62223
62224 2007-10-11  Bruno Haible  <bruno@clisp.org>
62225
62226         * modules/filenamecat-tests: New file.
62227         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62228         * lib/filenamecat.c: Remove test code.
62229
62230 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62231
62232         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62233
62234         * lib/strerror.c: Include <string.h> always, to test interface,
62235         and to remove the need for the dummy.
62236         Include intprops.h to compute width instead of doing it ourselves
62237         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62238         (strerror): Define it to return NULL if there's no system strerror.
62239         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62240         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62241         ancient pre-strerror Unix systems well any more.  Saying "unknown
62242         system error" is enough.
62243         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62244         simpler strerror.c implementation.
62245         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62246         Simplify the tests to reflect the simpler strerror implementation.
62247         * modules/strerror (Depends-on): Add intprops.
62248
62249 2007-10-09  Eric Blake  <ebb9@byu.net>
62250
62251         Silence test-fpending.
62252         * modules/fpending-tests (Files): Add wrapper script.
62253         * tests/test-fpending.sh: New file.
62254
62255 2007-10-09  Bruno Haible  <bruno@clisp.org>
62256
62257         * MODULES.html.sh (func_module): Don't create a hyperlink for
62258         function names like 'printf_frexp'.
62259         (Misc): Add crc, memxor.
62260         (Characteristics of floating types): New section.
62261         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62262         isnanf-nolibm, signbit, trunc, truncf, truncl.
62263         (Enhancements for ISO C 99 functions): New subsection Input/output.
62264         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62265         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62266         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62267         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62268         (Enhancements for POSIX:2001 functions): Add chdir-long.
62269         (File system functions): Add areadlink, chdir-safer, read-file.
62270         Remove cycle-check.
62271         (File system as inode set): New section.
62272         (Date and time): Add gethrxtime.
62273         (Multithreading): Add openmp.
62274         (Internationalization functions): Add localename.
62275         (Unicode string functions): Add unistr/u*-mbsnlen.
62276         (Support for maintaining and releasing projects): Add git-version-gen.
62277         (Lone files): Remove directories.
62278
62279 2007-10-08  Ben Pfaff  <blp@gnu.org>
62280
62281         * lib/xmalloca.h: Fix typo in comment.
62282
62283 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62284
62285         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62286         when avoiding problems with integer overflow.  Use a portable test
62287         instead.
62288
62289 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62290
62291         * modules/dummy (License): Change to LGPLv2+.
62292         * modules/float (License): Likewise
62293         * modules/realloc (License): Likewise
62294         * modules/stdlib (License): Likewise
62295
62296 2007-10-07  Bruno Haible  <bruno@clisp.org>
62297
62298         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62299         * floor.c (TWO_MANT_DIG): Likewise.
62300         * ceil.c (TWO_MANT_DIG): Likewise.
62301         Reported by Ben Pfaff.
62302
62303 2007-10-07  Bruno Haible  <bruno@clisp.org>
62304
62305         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62306         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62307         * lib/frexp.c (FUNC): Likewise.
62308         * lib/printf-frexp.h (printf_frexp): Likewise.
62309         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62310         * lib/printf-frexp.c (FUNC): Likewise.
62311         Suggested by Jim Meyering.
62312
62313 2007-10-07  Jim Meyering  <meyering@redhat.com>
62314
62315         Make xnanosleep's integer overflow test more robust.
62316         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62317         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62318
62319 2007-10-07  Bruno Haible  <bruno@clisp.org>
62320
62321         * NEWS: Mention the license change.
62322
62323         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62324         abbreviations in the modules files.
62325
62326         Change copyright notice from GPLv2+ to GPLv3+.
62327         * README: Change copyright notice.
62328         * MODULES.html.sh: Likewise.
62329         * build-aux/bootstrap.conf: Likewise.
62330         * build-aux/config.libpath: Likewise.
62331         * build-aux/csharpcomp.sh.in: Likewise.
62332         * build-aux/csharpexec.sh.in: Likewise.
62333         * build-aux/install-reloc: Likewise.
62334         * build-aux/javacomp.sh.in: Likewise.
62335         * build-aux/javaexec.sh.in: Likewise.
62336         * build-aux/ldd.sh.in: Likewise.
62337         * build-aux/reloc-ldflags: Likewise.
62338         * build-aux/relocatable.sh.in: Likewise.
62339         * build-aux/x-to-1.in: Likewise.
62340         * check-module: Likewise.
62341         * config/srclistvars.sh: Likewise.
62342         * gnulib-tool: Likewise.
62343         * lib/acl-internal.h: Likewise.
62344         * lib/acl.c: Likewise.
62345         * lib/acl.h: Likewise.
62346         * lib/acl_entries.c: Likewise.
62347         * lib/areadlink-with-size.c: Likewise.
62348         * lib/areadlink.c: Likewise.
62349         * lib/areadlink.h: Likewise.
62350         * lib/argmatch.c: Likewise.
62351         * lib/argmatch.h: Likewise.
62352         * lib/argp-ba.c: Likewise.
62353         * lib/argp-eexst.c: Likewise.
62354         * lib/argp-fmtstream.c: Likewise.
62355         * lib/argp-fmtstream.h: Likewise.
62356         * lib/argp-fs-xinl.c: Likewise.
62357         * lib/argp-help.c: Likewise.
62358         * lib/argp-namefrob.h: Likewise.
62359         * lib/argp-parse.c: Likewise.
62360         * lib/argp-pin.c: Likewise.
62361         * lib/argp-pv.c: Likewise.
62362         * lib/argp-pvh.c: Likewise.
62363         * lib/argp-xinl.c: Likewise.
62364         * lib/argp.h: Likewise.
62365         * lib/at-func.c: Likewise.
62366         * lib/atanl.c: Likewise.
62367         * lib/backupfile.c: Likewise.
62368         * lib/backupfile.h: Likewise.
62369         * lib/basename.c: Likewise.
62370         * lib/binary-io.h: Likewise.
62371         * lib/byteswap.in.h: Likewise.
62372         * lib/c-stack.c: Likewise.
62373         * lib/c-stack.h: Likewise.
62374         * lib/c-strcasestr.c: Likewise.
62375         * lib/c-strcasestr.h: Likewise.
62376         * lib/c-strstr.c: Likewise.
62377         * lib/c-strstr.h: Likewise.
62378         * lib/c-strtod.c: Likewise.
62379         * lib/calloc.c: Likewise.
62380         * lib/canon-host.c: Likewise.
62381         * lib/canon-host.h: Likewise.
62382         * lib/canonicalize-lgpl.c: Likewise.
62383         * lib/canonicalize.c: Likewise.
62384         * lib/canonicalize.h: Likewise.
62385         * lib/ceil.c: Likewise.
62386         * lib/ceilf.c: Likewise.
62387         * lib/ceill.c: Likewise.
62388         * lib/chdir-long.c: Likewise.
62389         * lib/chdir-long.h: Likewise.
62390         * lib/chdir-safer.c: Likewise.
62391         * lib/chdir-safer.h: Likewise.
62392         * lib/chown.c: Likewise.
62393         * lib/classpath.c: Likewise.
62394         * lib/classpath.h: Likewise.
62395         * lib/clean-temp.c: Likewise.
62396         * lib/clean-temp.h: Likewise.
62397         * lib/cloexec.c: Likewise.
62398         * lib/close-stream.c: Likewise.
62399         * lib/closein.c: Likewise.
62400         * lib/closein.h: Likewise.
62401         * lib/closeout.c: Likewise.
62402         * lib/closeout.h: Likewise.
62403         * lib/concat-filename.c: Likewise.
62404         * lib/copy-file.c: Likewise.
62405         * lib/copy-file.h: Likewise.
62406         * lib/count-one-bits.h: Likewise.
62407         * lib/crc.c: Likewise.
62408         * lib/crc.h: Likewise.
62409         * lib/creat-safer.c: Likewise.
62410         * lib/csharpcomp.c: Likewise.
62411         * lib/csharpcomp.h: Likewise.
62412         * lib/csharpexec.c: Likewise.
62413         * lib/csharpexec.h: Likewise.
62414         * lib/cycle-check.c: Likewise.
62415         * lib/cycle-check.h: Likewise.
62416         * lib/diacrit.c: Likewise.
62417         * lib/diacrit.h: Likewise.
62418         * lib/diffseq.h: Likewise.
62419         * lib/dirchownmod.c: Likewise.
62420         * lib/dirent.in.h: Likewise.
62421         * lib/dirfd.c: Likewise.
62422         * lib/dirfd.h: Likewise.
62423         * lib/dirname.c: Likewise.
62424         * lib/dirname.h: Likewise.
62425         * lib/dummy.c: Likewise.
62426         * lib/dup-safer.c: Likewise.
62427         * lib/dup2.c: Likewise.
62428         * lib/eealloc.h: Likewise.
62429         * lib/error.c: Likewise.
62430         * lib/error.h: Likewise.
62431         * lib/euidaccess.c: Likewise.
62432         * lib/exclude.c: Likewise.
62433         * lib/exclude.h: Likewise.
62434         * lib/execute.c: Likewise.
62435         * lib/execute.h: Likewise.
62436         * lib/exitfail.c: Likewise.
62437         * lib/exitfail.h: Likewise.
62438         * lib/expl.c: Likewise.
62439         * lib/fatal-signal.c: Likewise.
62440         * lib/fatal-signal.h: Likewise.
62441         * lib/fbufmode.c: Likewise.
62442         * lib/fbufmode.h: Likewise.
62443         * lib/fchdir.c: Likewise.
62444         * lib/fchmodat.c: Likewise.
62445         * lib/fchownat.c: Likewise.
62446         * lib/fcntl--.h: Likewise.
62447         * lib/fcntl-safer.h: Likewise.
62448         * lib/fcntl.in.h: Likewise.
62449         * lib/fd-safer.c: Likewise.
62450         * lib/fflush.c: Likewise.
62451         * lib/file-has-acl.c: Likewise.
62452         * lib/file-set.c: Likewise.
62453         * lib/file-type.c: Likewise.
62454         * lib/file-type.h: Likewise.
62455         * lib/fileblocks.c: Likewise.
62456         * lib/filemode.c: Likewise.
62457         * lib/filemode.h: Likewise.
62458         * lib/filename.h: Likewise.
62459         * lib/filenamecat.c: Likewise.
62460         * lib/filenamecat.h: Likewise.
62461         * lib/findprog.c: Likewise.
62462         * lib/findprog.h: Likewise.
62463         * lib/float.in.h: Likewise.
62464         * lib/floor.c: Likewise.
62465         * lib/floorf.c: Likewise.
62466         * lib/floorl.c: Likewise.
62467         * lib/fopen-safer.c: Likewise.
62468         * lib/fopen.c: Likewise.
62469         * lib/fpending.c: Likewise.
62470         * lib/fpending.h: Likewise.
62471         * lib/fprintf.c: Likewise.
62472         * lib/fprintftime.h: Likewise.
62473         * lib/fpucw.h: Likewise.
62474         * lib/fpurge.c: Likewise.
62475         * lib/fpurge.h: Likewise.
62476         * lib/freadable.c: Likewise.
62477         * lib/freadable.h: Likewise.
62478         * lib/freadahead.c: Likewise.
62479         * lib/freadahead.h: Likewise.
62480         * lib/freading.c: Likewise.
62481         * lib/freading.h: Likewise.
62482         * lib/free.c: Likewise.
62483         * lib/freopen.c: Likewise.
62484         * lib/frexp.c: Likewise.
62485         * lib/frexpl.c: Likewise.
62486         * lib/fseek.c: Likewise.
62487         * lib/fseterr.c: Likewise.
62488         * lib/fseterr.h: Likewise.
62489         * lib/fstatat.c: Likewise.
62490         * lib/fstrcmp.c: Likewise.
62491         * lib/fstrcmp.h: Likewise.
62492         * lib/fsusage.c: Likewise.
62493         * lib/fsusage.h: Likewise.
62494         * lib/ftell.c: Likewise.
62495         * lib/ftello.c: Likewise.
62496         * lib/fts-cycle.c: Likewise.
62497         * lib/fts.c: Likewise.
62498         * lib/fts_.h: Likewise.
62499         * lib/full-read.c: Likewise.
62500         * lib/full-read.h: Likewise.
62501         * lib/full-write.c: Likewise.
62502         * lib/full-write.h: Likewise.
62503         * lib/fwritable.c: Likewise.
62504         * lib/fwritable.h: Likewise.
62505         * lib/fwriteerror.c: Likewise.
62506         * lib/fwriteerror.h: Likewise.
62507         * lib/fwriting.c: Likewise.
62508         * lib/fwriting.h: Likewise.
62509         * lib/gcd.c: Likewise.
62510         * lib/gcd.h: Likewise.
62511         * lib/getcwd.c: Likewise.
62512         * lib/getdate.h: Likewise.
62513         * lib/getdate.y: Likewise.
62514         * lib/getdomainname.c: Likewise.
62515         * lib/getdomainname.h: Likewise.
62516         * lib/getgroups.c: Likewise.
62517         * lib/gethostname.c: Likewise.
62518         * lib/gethrxtime.c: Likewise.
62519         * lib/gethrxtime.h: Likewise.
62520         * lib/getloadavg.c: Likewise.
62521         * lib/getndelim2.c: Likewise.
62522         * lib/getndelim2.h: Likewise.
62523         * lib/getnline.c: Likewise.
62524         * lib/getnline.h: Likewise.
62525         * lib/getopt.c: Likewise.
62526         * lib/getopt.in.h: Likewise.
62527         * lib/getopt1.c: Likewise.
62528         * lib/getopt_int.h: Likewise.
62529         * lib/getpagesize.h: Likewise.
62530         * lib/getsubopt.c: Likewise.
62531         * lib/gettime.c: Likewise.
62532         * lib/getugroups.c: Likewise.
62533         * lib/getugroups.h: Likewise.
62534         * lib/getusershell.c: Likewise.
62535         * lib/gl_anyavltree_list1.h: Likewise.
62536         * lib/gl_anyavltree_list2.h: Likewise.
62537         * lib/gl_anyhash_list1.h: Likewise.
62538         * lib/gl_anyhash_list2.h: Likewise.
62539         * lib/gl_anylinked_list1.h: Likewise.
62540         * lib/gl_anylinked_list2.h: Likewise.
62541         * lib/gl_anyrbtree_list1.h: Likewise.
62542         * lib/gl_anyrbtree_list2.h: Likewise.
62543         * lib/gl_anytree_list1.h: Likewise.
62544         * lib/gl_anytree_list2.h: Likewise.
62545         * lib/gl_anytree_oset.h: Likewise.
62546         * lib/gl_anytreehash_list1.h: Likewise.
62547         * lib/gl_anytreehash_list2.h: Likewise.
62548         * lib/gl_array_list.c: Likewise.
62549         * lib/gl_array_list.h: Likewise.
62550         * lib/gl_array_oset.c: Likewise.
62551         * lib/gl_array_oset.h: Likewise.
62552         * lib/gl_avltree_list.c: Likewise.
62553         * lib/gl_avltree_list.h: Likewise.
62554         * lib/gl_avltree_oset.c: Likewise.
62555         * lib/gl_avltree_oset.h: Likewise.
62556         * lib/gl_avltreehash_list.c: Likewise.
62557         * lib/gl_avltreehash_list.h: Likewise.
62558         * lib/gl_carray_list.c: Likewise.
62559         * lib/gl_carray_list.h: Likewise.
62560         * lib/gl_linked_list.c: Likewise.
62561         * lib/gl_linked_list.h: Likewise.
62562         * lib/gl_linkedhash_list.c: Likewise.
62563         * lib/gl_linkedhash_list.h: Likewise.
62564         * lib/gl_list.c: Likewise.
62565         * lib/gl_list.h: Likewise.
62566         * lib/gl_oset.c: Likewise.
62567         * lib/gl_oset.h: Likewise.
62568         * lib/gl_rbtree_list.c: Likewise.
62569         * lib/gl_rbtree_list.h: Likewise.
62570         * lib/gl_rbtree_oset.c: Likewise.
62571         * lib/gl_rbtree_oset.h: Likewise.
62572         * lib/gl_rbtreehash_list.c: Likewise.
62573         * lib/gl_rbtreehash_list.h: Likewise.
62574         * lib/gl_sublist.c: Likewise.
62575         * lib/gl_sublist.h: Likewise.
62576         * lib/group-member.c: Likewise.
62577         * lib/group-member.h: Likewise.
62578         * lib/hard-locale.c: Likewise.
62579         * lib/hard-locale.h: Likewise.
62580         * lib/hash-pjw.c: Likewise.
62581         * lib/hash-pjw.h: Likewise.
62582         * lib/hash-triple.c: Likewise.
62583         * lib/hash.c: Likewise.
62584         * lib/hash.h: Likewise.
62585         * lib/human.c: Likewise.
62586         * lib/human.h: Likewise.
62587         * lib/i-ring.c: Likewise.
62588         * lib/i-ring.h: Likewise.
62589         * lib/idcache.c: Likewise.
62590         * lib/imaxabs.c: Likewise.
62591         * lib/imaxdiv.c: Likewise.
62592         * lib/inet_pton.c: Likewise.
62593         * lib/inet_pton.h: Likewise.
62594         * lib/intprops.h: Likewise.
62595         * lib/inttostr.c: Likewise.
62596         * lib/inttostr.h: Likewise.
62597         * lib/inttypes.in.h: Likewise.
62598         * lib/isapipe.c: Likewise.
62599         * lib/isdir.c: Likewise.
62600         * lib/isnan.c: Likewise.
62601         * lib/isnan.h: Likewise.
62602         * lib/isnanf.c: Likewise.
62603         * lib/isnanf.h: Likewise.
62604         * lib/isnanl-nolibm.h: Likewise.
62605         * lib/isnanl.c: Likewise.
62606         * lib/isnanl.h: Likewise.
62607         * lib/javacomp.c: Likewise.
62608         * lib/javacomp.h: Likewise.
62609         * lib/javaexec.c: Likewise.
62610         * lib/javaexec.h: Likewise.
62611         * lib/javaversion.c: Likewise.
62612         * lib/javaversion.h: Likewise.
62613         * lib/javaversion.java: Likewise.
62614         * lib/lbrkprop.h: Likewise.
62615         * lib/lchmod.h: Likewise.
62616         * lib/lchown.c: Likewise.
62617         * lib/ldexpl.c: Likewise.
62618         * lib/linebreak.c: Likewise.
62619         * lib/linebreak.h: Likewise.
62620         * lib/linebuffer.c: Likewise.
62621         * lib/linebuffer.h: Likewise.
62622         * lib/locale.in.h: Likewise.
62623         * lib/logl.c: Likewise.
62624         * lib/long-options.c: Likewise.
62625         * lib/long-options.h: Likewise.
62626         * lib/lstat.c: Likewise.
62627         * lib/lstat.h: Likewise.
62628         * lib/math.in.h: Likewise.
62629         * lib/mbchar.c: Likewise.
62630         * lib/mbchar.h: Likewise.
62631         * lib/mbfile.h: Likewise.
62632         * lib/mbiter.h: Likewise.
62633         * lib/mbscasecmp.c: Likewise.
62634         * lib/mbscasestr.c: Likewise.
62635         * lib/mbschr.c: Likewise.
62636         * lib/mbscspn.c: Likewise.
62637         * lib/mbslen.c: Likewise.
62638         * lib/mbsncasecmp.c: Likewise.
62639         * lib/mbsnlen.c: Likewise.
62640         * lib/mbspbrk.c: Likewise.
62641         * lib/mbspcasecmp.c: Likewise.
62642         * lib/mbsrchr.c: Likewise.
62643         * lib/mbssep.c: Likewise.
62644         * lib/mbsspn.c: Likewise.
62645         * lib/mbsstr.c: Likewise.
62646         * lib/mbstok_r.c: Likewise.
62647         * lib/mbswidth.c: Likewise.
62648         * lib/mbswidth.h: Likewise.
62649         * lib/mbuiter.h: Likewise.
62650         * lib/memcasecmp.c: Likewise.
62651         * lib/memcasecmp.h: Likewise.
62652         * lib/memchr.c: Likewise.
62653         * lib/memcmp.c: Likewise.
62654         * lib/memcoll.c: Likewise.
62655         * lib/memcoll.h: Likewise.
62656         * lib/memcpy.c: Likewise.
62657         * lib/memrchr.c: Likewise.
62658         * lib/mkancesdirs.c: Likewise.
62659         * lib/mkdir-p.c: Likewise.
62660         * lib/mkdir-p.h: Likewise.
62661         * lib/mkdir.c: Likewise.
62662         * lib/mkdirat.c: Likewise.
62663         * lib/mkdtemp.c: Likewise.
62664         * lib/mkstemp-safer.c: Likewise.
62665         * lib/mkstemp.c: Likewise.
62666         * lib/modechange.c: Likewise.
62667         * lib/modechange.h: Likewise.
62668         * lib/mountlist.c: Likewise.
62669         * lib/mountlist.h: Likewise.
62670         * lib/mpsort.c: Likewise.
62671         * lib/nanosleep.c: Likewise.
62672         * lib/obstack.c: Likewise.
62673         * lib/obstack.h: Likewise.
62674         * lib/open-safer.c: Likewise.
62675         * lib/open.c: Likewise.
62676         * lib/openat-die.c: Likewise.
62677         * lib/openat-priv.h: Likewise.
62678         * lib/openat-proc.c: Likewise.
62679         * lib/openat.c: Likewise.
62680         * lib/openat.h: Likewise.
62681         * lib/pagealign_alloc.c: Likewise.
62682         * lib/pagealign_alloc.h: Likewise.
62683         * lib/physmem.c: Likewise.
62684         * lib/physmem.h: Likewise.
62685         * lib/pipe-safer.c: Likewise.
62686         * lib/pipe.c: Likewise.
62687         * lib/pipe.h: Likewise.
62688         * lib/posixtm.c: Likewise.
62689         * lib/posixtm.h: Likewise.
62690         * lib/posixver.c: Likewise.
62691         * lib/printf-frexp.c: Likewise.
62692         * lib/printf-frexp.h: Likewise.
62693         * lib/printf-frexpl.c: Likewise.
62694         * lib/printf-frexpl.h: Likewise.
62695         * lib/printf.c: Likewise.
62696         * lib/progname.c: Likewise.
62697         * lib/progname.h: Likewise.
62698         * lib/progreloc.c: Likewise.
62699         * lib/putenv.c: Likewise.
62700         * lib/quote.c: Likewise.
62701         * lib/quote.h: Likewise.
62702         * lib/quotearg.c: Likewise.
62703         * lib/quotearg.h: Likewise.
62704         * lib/raise.c: Likewise.
62705         * lib/readline.c: Likewise.
62706         * lib/readline.h: Likewise.
62707         * lib/readlink.c: Likewise.
62708         * lib/readtokens.c: Likewise.
62709         * lib/readtokens.h: Likewise.
62710         * lib/readtokens0.c: Likewise.
62711         * lib/readtokens0.h: Likewise.
62712         * lib/readutmp.c: Likewise.
62713         * lib/readutmp.h: Likewise.
62714         * lib/realloc.c: Likewise.
62715         * lib/relocwrapper.c: Likewise.
62716         * lib/rename-dest-slash.c: Likewise.
62717         * lib/rename.c: Likewise.
62718         * lib/rmdir.c: Likewise.
62719         * lib/rpmatch.c: Likewise.
62720         * lib/safe-read.c: Likewise.
62721         * lib/safe-read.h: Likewise.
62722         * lib/safe-write.c: Likewise.
62723         * lib/safe-write.h: Likewise.
62724         * lib/same-inode.h: Likewise.
62725         * lib/same.c: Likewise.
62726         * lib/same.h: Likewise.
62727         * lib/save-cwd.c: Likewise.
62728         * lib/save-cwd.h: Likewise.
62729         * lib/savedir.c: Likewise.
62730         * lib/savedir.h: Likewise.
62731         * lib/savewd.c: Likewise.
62732         * lib/savewd.h: Likewise.
62733         * lib/search.in.h: Likewise.
62734         * lib/setenv.c: Likewise.
62735         * lib/setenv.h: Likewise.
62736         * lib/settime.c: Likewise.
62737         * lib/sh-quote.c: Likewise.
62738         * lib/sh-quote.h: Likewise.
62739         * lib/sig2str.c: Likewise.
62740         * lib/sig2str.h: Likewise.
62741         * lib/signal.in.h: Likewise.
62742         * lib/signbitd.c: Likewise.
62743         * lib/signbitf.c: Likewise.
62744         * lib/signbitl.c: Likewise.
62745         * lib/sigprocmask.c: Likewise.
62746         * lib/sincosl.c: Likewise.
62747         * lib/sleep.c: Likewise.
62748         * lib/sprintf.c: Likewise.
62749         * lib/sqrtl.c: Likewise.
62750         * lib/stat-time.h: Likewise.
62751         * lib/stdio--.h: Likewise.
62752         * lib/stdio-safer.h: Likewise.
62753         * lib/stdlib--.h: Likewise.
62754         * lib/stdlib-safer.h: Likewise.
62755         * lib/stdlib.in.h: Likewise.
62756         * lib/stpcpy.c: Likewise.
62757         * lib/stpncpy.c: Likewise.
62758         * lib/strchrnul.c: Likewise.
62759         * lib/strcspn.c: Likewise.
62760         * lib/strerror.c: Likewise.
62761         * lib/strftime.c: Likewise.
62762         * lib/strftime.h: Likewise.
62763         * lib/striconveh.c: Likewise.
62764         * lib/striconveh.h: Likewise.
62765         * lib/striconveha.c: Likewise.
62766         * lib/striconveha.h: Likewise.
62767         * lib/stripslash.c: Likewise.
62768         * lib/strnlen1.c: Likewise.
62769         * lib/strnlen1.h: Likewise.
62770         * lib/strtod.c: Likewise.
62771         * lib/strtoimax.c: Likewise.
62772         * lib/strtok_r.c: Likewise.
62773         * lib/strtol.c: Likewise.
62774         * lib/strtoll.c: Likewise.
62775         * lib/strtoul.c: Likewise.
62776         * lib/strtoull.c: Likewise.
62777         * lib/sysexits.in.h: Likewise.
62778         * lib/tempname.c: Likewise.
62779         * lib/tempname.h: Likewise.
62780         * lib/timespec.h: Likewise.
62781         * lib/tls.c: Likewise.
62782         * lib/tls.h: Likewise.
62783         * lib/tmpdir.c: Likewise.
62784         * lib/tmpdir.h: Likewise.
62785         * lib/tmpfile-safer.c: Likewise.
62786         * lib/tmpfile.c: Likewise.
62787         * lib/trigl.c: Likewise.
62788         * lib/trigl.h: Likewise.
62789         * lib/trim.c: Likewise.
62790         * lib/trim.h: Likewise.
62791         * lib/trunc.c: Likewise.
62792         * lib/truncf.c: Likewise.
62793         * lib/truncl.c: Likewise.
62794         * lib/tsearch.c: Likewise.
62795         * lib/unicodeio.c: Likewise.
62796         * lib/unicodeio.h: Likewise.
62797         * lib/unistd--.h: Likewise.
62798         * lib/unistd-safer.h: Likewise.
62799         * lib/unistdio/ulc-fprintf.c: Likewise.
62800         * lib/unistdio/ulc-vfprintf.c: Likewise.
62801         * lib/unlinkdir.c: Likewise.
62802         * lib/unlinkdir.h: Likewise.
62803         * lib/unlocked-io.h: Likewise.
62804         * lib/unsetenv.c: Likewise.
62805         * lib/userspec.c: Likewise.
62806         * lib/utime.c: Likewise.
62807         * lib/utimecmp.c: Likewise.
62808         * lib/utimecmp.h: Likewise.
62809         * lib/utimens.c: Likewise.
62810         * lib/verify.h: Likewise.
62811         * lib/verror.c: Likewise.
62812         * lib/verror.h: Likewise.
62813         * lib/version-etc-fsf.c: Likewise.
62814         * lib/version-etc.c: Likewise.
62815         * lib/version-etc.h: Likewise.
62816         * lib/vfprintf.c: Likewise.
62817         * lib/vprintf.c: Likewise.
62818         * lib/vsprintf.c: Likewise.
62819         * lib/w32spawn.h: Likewise.
62820         * lib/wait-process.c: Likewise.
62821         * lib/wait-process.h: Likewise.
62822         * lib/wcwidth.c: Likewise.
62823         * lib/write-any-file.c: Likewise.
62824         * lib/xalloc-die.c: Likewise.
62825         * lib/xalloc.h: Likewise.
62826         * lib/xasprintf.c: Likewise.
62827         * lib/xgetcwd.c: Likewise.
62828         * lib/xgetcwd.h: Likewise.
62829         * lib/xgetdomainname.c: Likewise.
62830         * lib/xgetdomainname.h: Likewise.
62831         * lib/xgethostname.c: Likewise.
62832         * lib/xmalloc.c: Likewise.
62833         * lib/xmalloca.c: Likewise.
62834         * lib/xmalloca.h: Likewise.
62835         * lib/xmemcoll.c: Likewise.
62836         * lib/xnanosleep.c: Likewise.
62837         * lib/xreadlink.c: Likewise.
62838         * lib/xreadlink.h: Likewise.
62839         * lib/xsetenv.c: Likewise.
62840         * lib/xsetenv.h: Likewise.
62841         * lib/xstriconv.c: Likewise.
62842         * lib/xstriconv.h: Likewise.
62843         * lib/xstrndup.c: Likewise.
62844         * lib/xstrndup.h: Likewise.
62845         * lib/xstrtod.c: Likewise.
62846         * lib/xstrtod.h: Likewise.
62847         * lib/xstrtol-error.c: Likewise.
62848         * lib/xstrtol.c: Likewise.
62849         * lib/xstrtol.h: Likewise.
62850         * lib/xtime.h: Likewise.
62851         * lib/xvasprintf.c: Likewise.
62852         * lib/xvasprintf.h: Likewise.
62853         * lib/yesno.c: Likewise.
62854         * lib/yesno.h: Likewise.
62855         * posix-modules: Likewise.
62856         * tests/test-alloca-opt.c: Likewise.
62857         * tests/test-arcfour.c: Likewise.
62858         * tests/test-arctwo.c: Likewise.
62859         * tests/test-argmatch.c: Likewise.
62860         * tests/test-argp-2.sh: Likewise.
62861         * tests/test-argp.c: Likewise.
62862         * tests/test-arpa_inet.c: Likewise.
62863         * tests/test-array_list.c: Likewise.
62864         * tests/test-array_oset.c: Likewise.
62865         * tests/test-atexit.c: Likewise.
62866         * tests/test-avltree_list.c: Likewise.
62867         * tests/test-avltree_oset.c: Likewise.
62868         * tests/test-avltreehash_list.c: Likewise.
62869         * tests/test-base64.c: Likewise.
62870         * tests/test-binary-io.c: Likewise.
62871         * tests/test-byteswap.c: Likewise.
62872         * tests/test-c-ctype.c: Likewise.
62873         * tests/test-c-strcasecmp.c: Likewise.
62874         * tests/test-c-strcasestr.c: Likewise.
62875         * tests/test-c-strncasecmp.c: Likewise.
62876         * tests/test-c-strstr.c: Likewise.
62877         * tests/test-canonicalize-lgpl.c: Likewise.
62878         * tests/test-canonicalize.c: Likewise.
62879         * tests/test-carray_list.c: Likewise.
62880         * tests/test-ceilf.c: Likewise.
62881         * tests/test-ceill.c: Likewise.
62882         * tests/test-count-one-bits.c: Likewise.
62883         * tests/test-crc.c: Likewise.
62884         * tests/test-dirname.c: Likewise.
62885         * tests/test-fbufmode.c: Likewise.
62886         * tests/test-fcntl.c: Likewise.
62887         * tests/test-fflush.c: Likewise.
62888         * tests/test-floorf.c: Likewise.
62889         * tests/test-floorl.c: Likewise.
62890         * tests/test-fopen.c: Likewise.
62891         * tests/test-fprintf-posix.c: Likewise.
62892         * tests/test-fprintf-posix.h: Likewise.
62893         * tests/test-fpurge.c: Likewise.
62894         * tests/test-freadable.c: Likewise.
62895         * tests/test-freadahead.c: Likewise.
62896         * tests/test-freading.c: Likewise.
62897         * tests/test-freopen.c: Likewise.
62898         * tests/test-frexp.c: Likewise.
62899         * tests/test-frexpl.c: Likewise.
62900         * tests/test-fseek.c: Likewise.
62901         * tests/test-fseeko.c: Likewise.
62902         * tests/test-fseterr.c: Likewise.
62903         * tests/test-fstrcmp.c: Likewise.
62904         * tests/test-ftell.c: Likewise.
62905         * tests/test-ftello.c: Likewise.
62906         * tests/test-fwritable.c: Likewise.
62907         * tests/test-fwriting.c: Likewise.
62908         * tests/test-getaddrinfo.c: Likewise.
62909         * tests/test-getpass.c: Likewise.
62910         * tests/test-gettimeofday.c: Likewise.
62911         * tests/test-hmac-md5.c: Likewise.
62912         * tests/test-hmac-sha1.c: Likewise.
62913         * tests/test-iconv.c: Likewise.
62914         * tests/test-iconvme.c: Likewise.
62915         * tests/test-inttypes.c: Likewise.
62916         * tests/test-isnan.c: Likewise.
62917         * tests/test-isnanf.c: Likewise.
62918         * tests/test-isnanl-nolibm.c: Likewise.
62919         * tests/test-isnanl.c: Likewise.
62920         * tests/test-isnanl.h: Likewise.
62921         * tests/test-ldexpl.c: Likewise.
62922         * tests/test-linked_list.c: Likewise.
62923         * tests/test-linkedhash_list.c: Likewise.
62924         * tests/test-locale.c: Likewise.
62925         * tests/test-localename.c: Likewise.
62926         * tests/test-lock.c: Likewise.
62927         * tests/test-lseek.c: Likewise.
62928         * tests/test-malloca.c: Likewise.
62929         * tests/test-math.c: Likewise.
62930         * tests/test-mbscasecmp.c: Likewise.
62931         * tests/test-mbscasestr1.c: Likewise.
62932         * tests/test-mbscasestr2.c: Likewise.
62933         * tests/test-mbscasestr3.c: Likewise.
62934         * tests/test-mbscasestr4.c: Likewise.
62935         * tests/test-mbschr.c: Likewise.
62936         * tests/test-mbscspn.c: Likewise.
62937         * tests/test-mbsncasecmp.c: Likewise.
62938         * tests/test-mbspbrk.c: Likewise.
62939         * tests/test-mbspcasecmp.c: Likewise.
62940         * tests/test-mbsrchr.c: Likewise.
62941         * tests/test-mbsspn.c: Likewise.
62942         * tests/test-mbsstr1.c: Likewise.
62943         * tests/test-mbsstr2.c: Likewise.
62944         * tests/test-mbsstr3.c: Likewise.
62945         * tests/test-md5.c: Likewise.
62946         * tests/test-memmem.c: Likewise.
62947         * tests/test-netinet_in.c: Likewise.
62948         * tests/test-open.c: Likewise.
62949         * tests/test-printf-frexp.c: Likewise.
62950         * tests/test-printf-frexpl.c: Likewise.
62951         * tests/test-printf-posix.c: Likewise.
62952         * tests/test-printf-posix.h: Likewise.
62953         * tests/test-rbtree_list.c: Likewise.
62954         * tests/test-rbtree_oset.c: Likewise.
62955         * tests/test-rbtreehash_list.c: Likewise.
62956         * tests/test-read-file.c: Likewise.
62957         * tests/test-rijndael.c: Likewise.
62958         * tests/test-search.c: Likewise.
62959         * tests/test-signbit.c: Likewise.
62960         * tests/test-sleep.c: Likewise.
62961         * tests/test-snprintf-posix.c: Likewise.
62962         * tests/test-snprintf-posix.h: Likewise.
62963         * tests/test-snprintf.c: Likewise.
62964         * tests/test-sprintf-posix.c: Likewise.
62965         * tests/test-sprintf-posix.h: Likewise.
62966         * tests/test-stat-time.c: Likewise.
62967         * tests/test-stdbool.c: Likewise.
62968         * tests/test-stdint.c: Likewise.
62969         * tests/test-stdio.c: Likewise.
62970         * tests/test-stdlib.c: Likewise.
62971         * tests/test-stpncpy.c: Likewise.
62972         * tests/test-strcasestr.c: Likewise.
62973         * tests/test-striconv.c: Likewise.
62974         * tests/test-striconveh.c: Likewise.
62975         * tests/test-striconveha.c: Likewise.
62976         * tests/test-string.c: Likewise.
62977         * tests/test-sys_select.c: Likewise.
62978         * tests/test-sys_socket.c: Likewise.
62979         * tests/test-sys_stat.c: Likewise.
62980         * tests/test-sys_time.c: Likewise.
62981         * tests/test-sysexits.c: Likewise.
62982         * tests/test-time.c: Likewise.
62983         * tests/test-tls.c: Likewise.
62984         * tests/test-trunc.c: Likewise.
62985         * tests/test-truncf.c: Likewise.
62986         * tests/test-truncl.c: Likewise.
62987         * tests/test-unistd.c: Likewise.
62988         * tests/test-vasnprintf-posix.c: Likewise.
62989         * tests/test-vasnprintf-posix2.c: Likewise.
62990         * tests/test-vasnprintf.c: Likewise.
62991         * tests/test-vasprintf-posix.c: Likewise.
62992         * tests/test-vasprintf.c: Likewise.
62993         * tests/test-verify.c: Likewise.
62994         * tests/test-vfprintf-posix.c: Likewise.
62995         * tests/test-vprintf-posix.c: Likewise.
62996         * tests/test-vsnprintf-posix.c: Likewise.
62997         * tests/test-vsnprintf.c: Likewise.
62998         * tests/test-vsprintf-posix.c: Likewise.
62999         * tests/test-wchar.c: Likewise.
63000         * tests/test-wctype.c: Likewise.
63001         * tests/test-wcwidth.c: Likewise.
63002         * tests/test-xstrtol.c: Likewise.
63003         * tests/test-xvasprintf.c: Likewise.
63004         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63005         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63006         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63007         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63008         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63009         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63010         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63011         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63012         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63013         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63014         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63015         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63016         * tests/uniname/test-uninames.c: Likewise.
63017         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63018         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63019         * tests/unistdio/test-u16-printf1.h: Likewise.
63020         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63021         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63022         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63023         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63024         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63025         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63026         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63027         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63028         * tests/unistdio/test-u32-printf1.h: Likewise.
63029         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63030         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63031         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63032         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63033         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63034         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63035         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63036         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63037         * tests/unistdio/test-u8-printf1.h: Likewise.
63038         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63039         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63040         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63041         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63042         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63043         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63044         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63045         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63046         * tests/unistdio/test-ulc-printf1.h: Likewise.
63047         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63048         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63049         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63050         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63051         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63052         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63053         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63054         * tests/uniwidth/test-u16-width.c: Likewise.
63055         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63056         * tests/uniwidth/test-u32-width.c: Likewise.
63057         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63058         * tests/uniwidth/test-u8-width.c: Likewise.
63059         * tests/uniwidth/test-uc_width.c: Likewise.
63060         * config/srclist-update: Likewise.
63061         (fixlicense): Update to GPLv3+.
63062
63063         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63064         * tests/test-tsearch.c: Change copyright notice.
63065
63066         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63067         * lib/c-strcaseeq.h: Change copyright notice.
63068         * lib/streq.h: Likewise.
63069         * lib/uniconv.h: Likewise.
63070         * lib/uniconv/u-conv-from-enc.h: Likewise.
63071         * lib/uniconv/u-conv-to-enc.h: Likewise.
63072         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63073         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63074         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63075         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63076         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63077         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63078         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63079         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63080         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63081         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63082         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63083         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63084         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63085         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63086         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63087         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63088         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63089         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63090         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63091         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63092         * lib/uniname.h: Likewise.
63093         * lib/uniname/uniname.c: Likewise.
63094         * lib/unistdio.h: Likewise.
63095         * lib/unistdio/u-asnprintf.h: Likewise.
63096         * lib/unistdio/u-asprintf.h: Likewise.
63097         * lib/unistdio/u-printf-args.c: Likewise.
63098         * lib/unistdio/u-printf-args.h: Likewise.
63099         * lib/unistdio/u-printf-parse.h: Likewise.
63100         * lib/unistdio/u-snprintf.h: Likewise.
63101         * lib/unistdio/u-sprintf.h: Likewise.
63102         * lib/unistdio/u-vasprintf.h: Likewise.
63103         * lib/unistdio/u-vsnprintf.h: Likewise.
63104         * lib/unistdio/u-vsprintf.h: Likewise.
63105         * lib/unistdio/u16-asnprintf.c: Likewise.
63106         * lib/unistdio/u16-asprintf.c: Likewise.
63107         * lib/unistdio/u16-printf-parse.c: Likewise.
63108         * lib/unistdio/u16-snprintf.c: Likewise.
63109         * lib/unistdio/u16-sprintf.c: Likewise.
63110         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63111         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63112         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63113         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63114         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63115         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63116         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63117         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63118         * lib/unistdio/u16-vasnprintf.c: Likewise.
63119         * lib/unistdio/u16-vasprintf.c: Likewise.
63120         * lib/unistdio/u16-vsnprintf.c: Likewise.
63121         * lib/unistdio/u16-vsprintf.c: Likewise.
63122         * lib/unistdio/u32-asnprintf.c: Likewise.
63123         * lib/unistdio/u32-asprintf.c: Likewise.
63124         * lib/unistdio/u32-printf-parse.c: Likewise.
63125         * lib/unistdio/u32-snprintf.c: Likewise.
63126         * lib/unistdio/u32-sprintf.c: Likewise.
63127         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63128         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63129         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63130         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63131         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63132         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63133         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63134         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63135         * lib/unistdio/u32-vasnprintf.c: Likewise.
63136         * lib/unistdio/u32-vasprintf.c: Likewise.
63137         * lib/unistdio/u32-vsnprintf.c: Likewise.
63138         * lib/unistdio/u32-vsprintf.c: Likewise.
63139         * lib/unistdio/u8-asnprintf.c: Likewise.
63140         * lib/unistdio/u8-asprintf.c: Likewise.
63141         * lib/unistdio/u8-printf-parse.c: Likewise.
63142         * lib/unistdio/u8-snprintf.c: Likewise.
63143         * lib/unistdio/u8-sprintf.c: Likewise.
63144         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63145         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63146         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63147         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63148         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63149         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63150         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63151         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63152         * lib/unistdio/u8-vasnprintf.c: Likewise.
63153         * lib/unistdio/u8-vasprintf.c: Likewise.
63154         * lib/unistdio/u8-vsnprintf.c: Likewise.
63155         * lib/unistdio/u8-vsprintf.c: Likewise.
63156         * lib/unistdio/ulc-asnprintf.c: Likewise.
63157         * lib/unistdio/ulc-asprintf.c: Likewise.
63158         * lib/unistdio/ulc-printf-parse.c: Likewise.
63159         * lib/unistdio/ulc-snprintf.c: Likewise.
63160         * lib/unistdio/ulc-sprintf.c: Likewise.
63161         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63162         * lib/unistdio/ulc-vasprintf.c: Likewise.
63163         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63164         * lib/unistdio/ulc-vsprintf.c: Likewise.
63165         * lib/unistr.h: Likewise.
63166         * lib/unistr/u-cpy-alloc.h: Likewise.
63167         * lib/unistr/u-cpy.h: Likewise.
63168         * lib/unistr/u-endswith.h: Likewise.
63169         * lib/unistr/u-move.h: Likewise.
63170         * lib/unistr/u-set.h: Likewise.
63171         * lib/unistr/u-startswith.h: Likewise.
63172         * lib/unistr/u-stpcpy.h: Likewise.
63173         * lib/unistr/u-stpncpy.h: Likewise.
63174         * lib/unistr/u-strcat.h: Likewise.
63175         * lib/unistr/u-strcpy.h: Likewise.
63176         * lib/unistr/u-strcspn.h: Likewise.
63177         * lib/unistr/u-strdup.h: Likewise.
63178         * lib/unistr/u-strlen.h: Likewise.
63179         * lib/unistr/u-strncat.h: Likewise.
63180         * lib/unistr/u-strncpy.h: Likewise.
63181         * lib/unistr/u-strnlen.h: Likewise.
63182         * lib/unistr/u-strpbrk.h: Likewise.
63183         * lib/unistr/u-strspn.h: Likewise.
63184         * lib/unistr/u-strstr.h: Likewise.
63185         * lib/unistr/u-strtok.h: Likewise.
63186         * lib/unistr/u16-check.c: Likewise.
63187         * lib/unistr/u16-chr.c: Likewise.
63188         * lib/unistr/u16-cmp.c: Likewise.
63189         * lib/unistr/u16-cpy-alloc.c: Likewise.
63190         * lib/unistr/u16-cpy.c: Likewise.
63191         * lib/unistr/u16-endswith.c: Likewise.
63192         * lib/unistr/u16-mblen.c: Likewise.
63193         * lib/unistr/u16-mbsnlen.c: Likewise.
63194         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63195         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63196         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63197         * lib/unistr/u16-mbtouc.c: Likewise.
63198         * lib/unistr/u16-mbtoucr.c: Likewise.
63199         * lib/unistr/u16-move.c: Likewise.
63200         * lib/unistr/u16-next.c: Likewise.
63201         * lib/unistr/u16-prev.c: Likewise.
63202         * lib/unistr/u16-set.c: Likewise.
63203         * lib/unistr/u16-startswith.c: Likewise.
63204         * lib/unistr/u16-stpcpy.c: Likewise.
63205         * lib/unistr/u16-stpncpy.c: Likewise.
63206         * lib/unistr/u16-strcat.c: Likewise.
63207         * lib/unistr/u16-strchr.c: Likewise.
63208         * lib/unistr/u16-strcmp.c: Likewise.
63209         * lib/unistr/u16-strcpy.c: Likewise.
63210         * lib/unistr/u16-strcspn.c: Likewise.
63211         * lib/unistr/u16-strdup.c: Likewise.
63212         * lib/unistr/u16-strlen.c: Likewise.
63213         * lib/unistr/u16-strmblen.c: Likewise.
63214         * lib/unistr/u16-strmbtouc.c: Likewise.
63215         * lib/unistr/u16-strncat.c: Likewise.
63216         * lib/unistr/u16-strncmp.c: Likewise.
63217         * lib/unistr/u16-strncpy.c: Likewise.
63218         * lib/unistr/u16-strnlen.c: Likewise.
63219         * lib/unistr/u16-strpbrk.c: Likewise.
63220         * lib/unistr/u16-strrchr.c: Likewise.
63221         * lib/unistr/u16-strspn.c: Likewise.
63222         * lib/unistr/u16-strstr.c: Likewise.
63223         * lib/unistr/u16-strtok.c: Likewise.
63224         * lib/unistr/u16-to-u32.c: Likewise.
63225         * lib/unistr/u16-to-u8.c: Likewise.
63226         * lib/unistr/u16-uctomb-aux.c: Likewise.
63227         * lib/unistr/u16-uctomb.c: Likewise.
63228         * lib/unistr/u32-check.c: Likewise.
63229         * lib/unistr/u32-chr.c: Likewise.
63230         * lib/unistr/u32-cmp.c: Likewise.
63231         * lib/unistr/u32-cpy-alloc.c: Likewise.
63232         * lib/unistr/u32-cpy.c: Likewise.
63233         * lib/unistr/u32-endswith.c: Likewise.
63234         * lib/unistr/u32-mblen.c: Likewise.
63235         * lib/unistr/u32-mbsnlen.c: Likewise.
63236         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63237         * lib/unistr/u32-mbtouc.c: Likewise.
63238         * lib/unistr/u32-mbtoucr.c: Likewise.
63239         * lib/unistr/u32-move.c: Likewise.
63240         * lib/unistr/u32-next.c: Likewise.
63241         * lib/unistr/u32-prev.c: Likewise.
63242         * lib/unistr/u32-set.c: Likewise.
63243         * lib/unistr/u32-startswith.c: Likewise.
63244         * lib/unistr/u32-stpcpy.c: Likewise.
63245         * lib/unistr/u32-stpncpy.c: Likewise.
63246         * lib/unistr/u32-strcat.c: Likewise.
63247         * lib/unistr/u32-strchr.c: Likewise.
63248         * lib/unistr/u32-strcmp.c: Likewise.
63249         * lib/unistr/u32-strcpy.c: Likewise.
63250         * lib/unistr/u32-strcspn.c: Likewise.
63251         * lib/unistr/u32-strdup.c: Likewise.
63252         * lib/unistr/u32-strlen.c: Likewise.
63253         * lib/unistr/u32-strmblen.c: Likewise.
63254         * lib/unistr/u32-strmbtouc.c: Likewise.
63255         * lib/unistr/u32-strncat.c: Likewise.
63256         * lib/unistr/u32-strncmp.c: Likewise.
63257         * lib/unistr/u32-strncpy.c: Likewise.
63258         * lib/unistr/u32-strnlen.c: Likewise.
63259         * lib/unistr/u32-strpbrk.c: Likewise.
63260         * lib/unistr/u32-strrchr.c: Likewise.
63261         * lib/unistr/u32-strspn.c: Likewise.
63262         * lib/unistr/u32-strstr.c: Likewise.
63263         * lib/unistr/u32-strtok.c: Likewise.
63264         * lib/unistr/u32-to-u16.c: Likewise.
63265         * lib/unistr/u32-to-u8.c: Likewise.
63266         * lib/unistr/u32-uctomb.c: Likewise.
63267         * lib/unistr/u8-check.c: Likewise.
63268         * lib/unistr/u8-chr.c: Likewise.
63269         * lib/unistr/u8-cmp.c: Likewise.
63270         * lib/unistr/u8-cpy-alloc.c: Likewise.
63271         * lib/unistr/u8-cpy.c: Likewise.
63272         * lib/unistr/u8-endswith.c: Likewise.
63273         * lib/unistr/u8-mblen.c: Likewise.
63274         * lib/unistr/u8-mbsnlen.c: Likewise.
63275         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63276         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63277         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63278         * lib/unistr/u8-mbtouc.c: Likewise.
63279         * lib/unistr/u8-mbtoucr.c: Likewise.
63280         * lib/unistr/u8-move.c: Likewise.
63281         * lib/unistr/u8-next.c: Likewise.
63282         * lib/unistr/u8-prev.c: Likewise.
63283         * lib/unistr/u8-set.c: Likewise.
63284         * lib/unistr/u8-startswith.c: Likewise.
63285         * lib/unistr/u8-stpcpy.c: Likewise.
63286         * lib/unistr/u8-stpncpy.c: Likewise.
63287         * lib/unistr/u8-strcat.c: Likewise.
63288         * lib/unistr/u8-strchr.c: Likewise.
63289         * lib/unistr/u8-strcmp.c: Likewise.
63290         * lib/unistr/u8-strcpy.c: Likewise.
63291         * lib/unistr/u8-strcspn.c: Likewise.
63292         * lib/unistr/u8-strdup.c: Likewise.
63293         * lib/unistr/u8-strlen.c: Likewise.
63294         * lib/unistr/u8-strmblen.c: Likewise.
63295         * lib/unistr/u8-strmbtouc.c: Likewise.
63296         * lib/unistr/u8-strncat.c: Likewise.
63297         * lib/unistr/u8-strncmp.c: Likewise.
63298         * lib/unistr/u8-strncpy.c: Likewise.
63299         * lib/unistr/u8-strnlen.c: Likewise.
63300         * lib/unistr/u8-strpbrk.c: Likewise.
63301         * lib/unistr/u8-strrchr.c: Likewise.
63302         * lib/unistr/u8-strspn.c: Likewise.
63303         * lib/unistr/u8-strstr.c: Likewise.
63304         * lib/unistr/u8-strtok.c: Likewise.
63305         * lib/unistr/u8-to-u16.c: Likewise.
63306         * lib/unistr/u8-to-u32.c: Likewise.
63307         * lib/unistr/u8-uctomb-aux.c: Likewise.
63308         * lib/unistr/u8-uctomb.c: Likewise.
63309         * lib/unitypes.h: Likewise.
63310         * lib/uniwidth.h: Likewise.
63311         * lib/uniwidth/cjk.h: Likewise.
63312         * lib/uniwidth/u16-strwidth.c: Likewise.
63313         * lib/uniwidth/u16-width.c: Likewise.
63314         * lib/uniwidth/u32-strwidth.c: Likewise.
63315         * lib/uniwidth/u32-width.c: Likewise.
63316         * lib/uniwidth/u8-strwidth.c: Likewise.
63317         * lib/uniwidth/u8-width.c: Likewise.
63318         * lib/uniwidth/width.c: Likewise.
63319
63320 2007-10-07  Bruno Haible  <bruno@clisp.org>
63321
63322         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63323         The file is still under LGPL (see modules/inttypes).
63324
63325 2007-10-06  Bruno Haible  <bruno@clisp.org>
63326
63327         * modules/trunc (Dependencies): Add 'extensions'.
63328         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63329         Reported by Ben Pfaff <blp@gnu.org>.
63330
63331 2007-10-06  Bruno Haible  <bruno@clisp.org>
63332
63333         * modules/freopen-tests: New file.
63334         * tests/test-freopen.c: New file.
63335
63336         * modules/fopen-tests: New file.
63337         * tests/test-fopen.c: New file.
63338
63339         * modules/fopen: New file.
63340         * lib/fopen.c: New file.
63341         * m4/fopen.m4: New file.
63342         * modules/freopen: New file.
63343         * lib/freopen.c: New file.
63344         * m4/freopen.m4: New file.
63345         * lib/stdio.in.h (fopen, freopen): New declarations.
63346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63347         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63348         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63349         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63350         * doc/functions/fopen.texi: Mention the 'fopen' module.
63351         * doc/functions/freopen.texi: Mention the 'freopen' module.
63352
63353 2007-10-06  Bruno Haible  <bruno@clisp.org>
63354
63355         * modules/open-tests: New file.
63356         * tests/test-open.c: New file.
63357
63358         * modules/open: New file.
63359         * lib/open.c: New file.
63360         * m4/open.m4: New file.
63361         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63362         lib/open.c does.
63363         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63364         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63365         macros.
63366         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63367         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63368         REPLACE_OPEN.
63369         * doc/functions/open.texi: Mention the 'open' module.
63370
63371 2007-10-04  Bruno Haible  <bruno@clisp.org>
63372
63373         * modules/ceill-tests: New file.
63374         * tests/test-ceill.c: New file.
63375
63376         * modules/ceill: New file.
63377         * lib/ceill.c: Replace entire file.
63378         * m4/ceill.m4: New file.
63379         * lib/math.in.h (ceill): Replace declaration.
63380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63381         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63382         * doc/functions/ceill.texi: Mention the 'ceill' module.
63383         * modules/mathl (Files): Remove lib/ceill.c.
63384         (Depends-on): Add ceill.
63385
63386 2007-10-04  Bruno Haible  <bruno@clisp.org>
63387
63388         * modules/ceilf-tests: New file.
63389         * tests/test-ceilf.c: New file.
63390
63391         * modules/ceilf: New file.
63392         * lib/ceil.c: New file.
63393         * lib/ceilf.c: New file.
63394         * m4/ceilf.m4: New file.
63395         * lib/math.in.h (ceilf): New declaration.
63396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63397         HAVE_DECL_CEILF.
63398         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63399         HAVE_DECL_CEILF.
63400         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63401
63402 2007-10-04  Bruno Haible  <bruno@clisp.org>
63403
63404         * modules/floorl-tests: New file.
63405         * tests/test-floorl.c: New file.
63406
63407         * modules/floorl: New file.
63408         * lib/floorl.c: Replace entire file.
63409         * m4/floorl.m4: New file.
63410         * lib/math.in.h (floorl): Replace declaration.
63411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63412         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63413         * doc/functions/floorl.texi: Mention the 'floorl' module.
63414         * modules/mathl (Files): Remove lib/floorl.c.
63415         (Depends-on): Add floorl.
63416
63417 2007-10-04  Bruno Haible  <bruno@clisp.org>
63418
63419         * modules/floorf-tests: New file.
63420         * tests/test-floorf.c: New file.
63421
63422         * modules/floorf: New file.
63423         * lib/floor.c: New file.
63424         * lib/floorf.c: New file.
63425         * m4/floorf.m4: New file.
63426         * lib/math.in.h (floorf): New declaration.
63427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63428         HAVE_DECL_FLOORF.
63429         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63430         HAVE_DECL_FLOORF.
63431         * doc/functions/floorf.texi: Mention the 'floorf' module.
63432
63433 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63434             Bruno Haible  <bruno@clisp.org>
63435
63436         Advertise for the Git server instead of the CVS server.
63437         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63438         repository instead of the CVS one.
63439         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63440         about all VCS systems generically.
63441         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63442
63443 2007-10-04  Bruno Haible  <bruno@clisp.org>
63444
63445         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63446         means.
63447         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63448
63449 2007-10-04  Bruno Haible  <bruno@clisp.org>
63450
63451         * modules/truncl-tests: New file.
63452         * tests/test-truncl.c: New file.
63453
63454         * modules/truncl: New file.
63455         * lib/truncl.c: New file.
63456         * m4/truncl.m4: New file.
63457         * lib/math.in.h (truncl): New declaration.
63458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63459         HAVE_DECL_TRUNCL.
63460         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63461         HAVE_DECL_TRUNCL.
63462         * doc/functions/truncl.texi: Mention the 'truncl' module.
63463
63464 2007-10-04  Bruno Haible  <bruno@clisp.org>
63465
63466         * modules/truncf-tests: New file.
63467         * tests/test-truncf.c: New file.
63468
63469         * modules/truncf: New file.
63470         * lib/trunc.c: Make paramerizable through USE_* macros.
63471         * lib/truncf.c: New file.
63472         * m4/truncf.m4: New file.
63473         * lib/math.in.h (truncf): New declaration.
63474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63475         HAVE_DECL_TRUNCF.
63476         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63477         HAVE_DECL_TRUNCF.
63478         * doc/functions/truncf.texi: Mention the 'truncf' module.
63479
63480 2007-10-03  Bruno Haible  <bruno@clisp.org>
63481
63482         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63483         augmentation also for tests modules.
63484         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63485         * modules/atexit-tests (Makefile.am): Likewise.
63486         * modules/binary-io-tests (Makefile.am): Likewise.
63487         * modules/c-strcase-tests (Makefile.am): Likewise.
63488         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63489         * modules/canonicalize-tests (Makefile.am): Likewise.
63490         * modules/closein-tests (Makefile.am): Likewise.
63491         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63492         * modules/freadahead-tests (Makefile.am): Likewise.
63493         * modules/fseek-tests (Makefile.am): Likewise.
63494         * modules/fseeko-tests (Makefile.am): Likewise.
63495         * modules/ftell-tests (Makefile.am): Likewise.
63496         * modules/ftello-tests (Makefile.am): Likewise.
63497         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63498         * modules/isnanl-tests (Makefile.am): Likewise.
63499         * modules/lseek-tests (Makefile.am): Likewise.
63500         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63501         * modules/mbscasestr-tests (Makefile.am): Likewise.
63502         * modules/mbschr-tests (Makefile.am): Likewise.
63503         * modules/mbscspn-tests (Makefile.am): Likewise.
63504         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63505         * modules/mbspbrk-tests (Makefile.am): Likewise.
63506         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63507         * modules/mbsrchr-tests (Makefile.am): Likewise.
63508         * modules/mbsspn-tests (Makefile.am): Likewise.
63509         * modules/mbsstr-tests (Makefile.am): Likewise.
63510         * modules/printf-posix-tests (Makefile.am): Likewise.
63511         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63512         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63513         * modules/tsearch-tests (Makefile.am): Likewise.
63514         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63515         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63516         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63517         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63518         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63519         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63520         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63521         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63522         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63523         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63524         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63525         * modules/xstrtol-tests (Makefile.am): Likewise.
63526         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63527         * modules/yesno-tests (Makefile.am): Likewise.
63528
63529 2007-10-03  Bruno Haible  <bruno@clisp.org>
63530
63531         * modules/trunc-tests: New file.
63532         * tests/test-trunc.c: New file.
63533
63534         * modules/trunc: New file.
63535         * lib/trunc.c: New file.
63536         * m4/trunc.m4: New file.
63537         * lib/math.in.h (trunc): New declaration.
63538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63539         HAVE_DECL_TRUNC.
63540         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63541         HAVE_DECL_TRUNC.
63542         * doc/functions/trunc.texi: Mention the 'trunc' module.
63543
63544 2007-10-03  Bruno Haible  <bruno@clisp.org>
63545
63546         * tests/test-fpending.c: New file, mostly copied
63547         from coreutils/lib/t-fpending.c.
63548         * modules/fpending-tests: New file.
63549
63550 2007-10-03  Bruno Haible  <bruno@clisp.org>
63551
63552         Port the stdio extensions to QNX (untested).
63553         * lib/fseterr.c (fseterr): Add support for QNX.
63554         * lib/fbufmode.c (fbufmode): Likewise.
63555         * lib/freadable.c (freadable): Likewise.
63556         * lib/fwritable.c (fwritable): Likewise.
63557         * lib/freading.c (freading): Likewise.
63558         * lib/fwriting.c (fwriting): Likewise.
63559         * lib/freadahead.c (freadahed): Likewise.
63560         * lib/fpurge.c (fpurge): Likewise.
63561         * lib/fseeko.c (rpl_fseeko): Likewise.
63562
63563 2007-10-03  Bruno Haible  <bruno@clisp.org>
63564             Jim Meyering  <jim@meyering.net>
63565             Eric Blake  <ebb9@byu.net>
63566
63567         * doc/relocatable.texi: Use @command instead of @program.
63568
63569 2007-10-02  Jim Meyering  <jim@meyering.net>
63570
63571         Perform one more "_.h" -> ".in.h" substitution.
63572         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63573         instead of unistd_.h here, too.
63574
63575 2007-10-01  Bruno Haible  <bruno@clisp.org>
63576
63577         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63578         Needed for the alloca-opt module.
63579
63580 2007-09-30  Bruno Haible  <bruno@clisp.org>
63581
63582         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63583         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63584         alloca_.h.
63585         * lib/argz.in.h: Renamed from lib/argz_.h.
63586         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63587         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63588         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63589         byteswap_.h.
63590         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63591         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63592         dirent_.h.
63593         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63594         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63595         fcntl_.h.
63596         * lib/float.in.h: Renamed from lib/float_.h.
63597         * modules/float (Files, Makefile.am): Use float.in.h instead of
63598         float_.h.
63599         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63600         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63601         fnmatch_.h.
63602         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63603         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63604         getopt_.h.
63605         * lib/glob.in.h: Renamed from lib/glob_.h.
63606         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63607         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63608         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63609         iconv_.h.
63610         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63611         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63612         inttypes_.h.
63613         * lib/locale.in.h: Renamed from lib/locale_.h.
63614         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63615         locale_.h.
63616         * lib/math.in.h: Renamed from lib/math_.h.
63617         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63618         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63619         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63620         of netinet_in_.h. Add dependency.
63621         * lib/poll.in.h: Renamed from lib/poll_.h.
63622         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63623         * lib/search.in.h: Renamed from lib/search_.h.
63624         * modules/search (Files, Makefile.am): Use search.in.h instead of
63625         search_.h.
63626         * lib/signal.in.h: Renamed from lib/signal_.h.
63627         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63628         _signal.h.
63629         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63630         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63631         stdbool_.h.
63632         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63633         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63634         stdint_.h.
63635         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63636         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63637         stdio_.h.
63638         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63639         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63640         stdlib_.h.
63641         * lib/string.in.h: Renamed from lib/string_.h.
63642         * modules/string (Files, Makefile.am): Use string.in.h instead of
63643         string_.h.
63644         * doc/gnulib-tool.texi (Initial import): Update.
63645         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63646         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63647         of sys_select_.h. Add dependency.
63648         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63649         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63650         of sys_socket_.h.
63651         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63652         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63653         sys_stat_.h.
63654         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63655         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63656         sys_time_.h.
63657         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63658         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63659         sysexits_.h.
63660         * lib/time.in.h: Renamed from lib/time_.h.
63661         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63662         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63663         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63664         unistd_.h.
63665         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63666         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63667         wchar_.h.
63668         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63669         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63670         wctype_.h.
63671         * build-aux/bootstrap (slurp): Update.
63672         * lib/.cppi-disable: Update.
63673
63674 2007-09-30  Bruno Haible  <bruno@clisp.org>
63675
63676         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63677         Needed on BeOS.
63678
63679 2007-09-30  Bruno Haible  <bruno@clisp.org>
63680
63681         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63682
63683 2007-09-29  Bruno Haible  <bruno@clisp.org>
63684
63685         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63686
63687 2007-09-29  Bruno Haible  <bruno@clisp.org>
63688
63689         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63690         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63691         * build-aux/install-reloc: Compile also areadlink.c.
63692         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63693
63694 2007-09-29  Bruno Haible  <bruno@clisp.org>
63695
63696         * gnulib-tool (func_emit_initmacro_done): Indentation.
63697
63698 2007-09-29  Bruno Haible  <bruno@clisp.org>
63699
63700         * README: Add CVS checkout update instructions.
63701         Info from Bob Proulx <bob@proulx.com>.
63702
63703 2007-09-28  Eric Blake  <ebb9@byu.net>
63704
63705         Provide move-if-change.
63706         * build-aux/move-if-change: New file, based on best practice
63707         rather than any canonical upstream location.
63708
63709 2007-09-28  Jim Meyering  <jim@meyering.net>
63710
63711         Fix canonicalize loop-detection corner case.
63712         Do not attempt to stat the symlink values stored via seen_triple.
63713         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63714         on linux-2.6.18, (but not 2.6.22).
63715         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63716         triple_compare.  The former compares dev,ino,filename, while the latter
63717         would actually stat dirname(filename) when dev and ino were equal.
63718         * lib/hash-triple.c: Install <string.h>.
63719         (STREQ): Define.
63720         (triple_compare_ino_str): New function.
63721         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63722
63723 2007-09-28  Eric Blake  <ebb9@byu.net>
63724
63725         Enforce that AC_REPLACE_FUNCS files exist.
63726         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63727         override check for typos.
63728
63729         Fix test-closein on Solaris 10.
63730         * tests/test-closein.c (main): Don't assume stdin can be inherited
63731         closed on all systems.
63732         * tests/test-closein.sh: Likewise.
63733         Reported by Piotr Tarnowski.
63734
63735 2007-09-28  Jim Meyering  <jim@meyering.net>
63736
63737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63738
63739 2007-09-27  Jim Meyering  <jim@meyering.net>
63740
63741         canonicalize: Avoid a false-positive cycle failure.
63742         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63743         Sort.  Remove cycle-check.
63744         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63745         not cycle-check.h.
63746         (seen_triple): New function.
63747         (canonicalize_filename_mode): Use it instead of cycle-check.
63748         * tests/test-canonicalize.c: Add a test for this bug.
63749         * tests/test-canonicalize.sh: Set up and run the test.
63750
63751         New module, file-set, from coreutils.
63752         * modules/file-set: Define it.
63753         * lib/file-set.c, lib/file-set.h: Implement.
63754
63755         New module, hash-triple, from coreutils.
63756         * modules/hash-triple: Define it.
63757         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63758
63759 2007-09-25  Eric Blake  <ebb9@byu.net>
63760
63761         Fix strerror on Interix.
63762         * lib/string_.h (strerror): Declare replacement.
63763         * doc/functions/strerror.texi (strerror): Document the Interix
63764         shortcoming.
63765         * modules/string (Makefile.am): Support new hooks.
63766         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63767         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63768         gl_FUNC_STRERROR_SEPARATE.
63769         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63770         * lib/strerror.c (rpl_strerror): Provide replacement.
63771         * modules/strerror (Depends-on): Add string.
63772         (configure.ac): Detect use of module.
63773         * tests/test-strerror.c: New file.
63774         * modules/strerror-tests: New test module.
63775         * modules/argp (Depends-on): Add strerror.
63776         * modules/error (Depends-on): Likewise.
63777         Reported by Martin Koeppe.
63778
63779 2007-09-24  Bruno Haible  <bruno@clisp.org>
63780
63781         * README: Update git instructions.
63782
63783 2007-09-24  Eric Blake  <ebb9@byu.net>
63784
63785         Revert fpending breakage from 2007-09-08.
63786         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63787         __fpending.c.
63788
63789 2007-09-24  Jim Meyering  <jim@meyering.net>
63790
63791         filenamecat.c: Add a test.
63792         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63793         showing how the function works when DIR is the empty string.
63794
63795 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63796
63797         * tests/test-canonicalize.sh: Turn on executable bit.
63798
63799 2007-09-19  Eric Blake  <ebb9@byu.net>
63800
63801         * README: Update CVS instructions.
63802
63803 2007-09-18  Bruno Haible  <bruno@clisp.org>
63804
63805         * modules/areadlink: New file.
63806         * lib/areadlink.h (areadlink): New declaration.
63807         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63808
63809 2007-09-17  Jim Meyering  <jim@meyering.net>
63810
63811         * lib/savewd.c (ESTALE) [!defined]: Define.
63812         Reported to be required on Interix by Martin Koeppe.
63813
63814 2007-09-17  Bruno Haible  <bruno@clisp.org>
63815
63816         * gnulib-tool (func_version): Use $version.
63817
63818 2007-09-16  Bruno Haible  <bruno@clisp.org>
63819
63820         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63821         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63822         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63823         Reported by Greg Schafer <gschafer@zip.com.au>.
63824
63825 2007-09-15  Bruno Haible  <bruno@clisp.org>
63826
63827         * gnulib-tool (sed): Try a little harder to make bash understand the
63828         alias.
63829         Reported by Bruce Korb <bruce.korb@gmail.com>.
63830
63831 2007-09-13  Eric Blake  <ebb9@byu.net>
63832
63833         * ChangeLog: Remove conflict markers.
63834
63835 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63836
63837         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63838         Reported by Bruno Haible <bruno@clisp.org>.
63839
63840 2007-09-12  Bruno Haible  <bruno@clisp.org>
63841
63842         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63843         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63844         is not defined.
63845
63846 2007-09-12  Eric Blake  <ebb9@byu.net>
63847
63848         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63849         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63850         Autoconf definition.
63851         * modules/euidaccess (Depends-on): Add extensions, for
63852         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63853         * modules/fnmatch (Depends-on): Likewise.
63854         * modules/getaddrinfo (Depends-on): Likewise.
63855         * modules/getdelim (Depends-on): Likewise.
63856         * modules/getline (Depends-on): Likewise.
63857         * modules/getsubopt (Depends-on): Likewise.
63858         * modules/gettext (Depends-on): Likewise.
63859         * modules/group-member (Depends-on): Likewise.
63860         * modules/mbchar (Depends-on): Likewise.
63861         * modules/memmem (Depends-on): Likewise.
63862         * modules/mempcpy (Depends-on): Likewise.
63863         * modules/memrchr (Depends-on): Likewise.
63864         * modules/pagealign_alloc (Depends-on): Likewise.
63865         * modules/readutmp (Depends-on): Likewise.
63866         * modules/stpcpy (Depends-on): Likewise.
63867         * modules/stpncpy (Depends-on): Likewise.
63868         * modules/strchrnul (Depends-on): Likewise.
63869         * modules/strndup (Depends-on): Likewise.
63870         * modules/strsep (Depends-on): Likewise.
63871         * modules/strverscmp (Depends-on): Likewise.
63872         * modules/vasprintf (Depends-on): Likewise.
63873         * modules/wcwidth (Depends-on): Likewise.
63874         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63875         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63876         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63877         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63878         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63879         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63880         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63881         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63882         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63883         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63884         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63885         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63886         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63887         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63888         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63889         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63890         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63891         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63893         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63894         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63895         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63896         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63897         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63898         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63900         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63901         so that lock.m4 can be used in gettext without extensions module.
63902
63903 2007-09-11  Bruno Haible  <bruno@clisp.org>
63904
63905         * m4/isc-posix.m4: Remove file.
63906         Suggested by Eric Blake.
63907
63908 2007-09-11  Eric Blake  <ebb9@byu.net>
63909
63910         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63911
63912 2007-09-10  Bruno Haible  <bruno@clisp.org>
63913
63914         * posix-modules: Fix typo in error message.
63915         Reported by Matt <mkraai@beckman.com>.
63916
63917 2007-09-09  Bruno Haible  <bruno@clisp.org>
63918
63919         * doc/functions/getdelim.texi: Update list of platforms lacking the
63920         function.
63921         * doc/functions/getline.texi: Likewise.
63922
63923 2007-09-09  Jim Meyering  <jim@meyering.net>
63924
63925         * lib/hash.c (hash_initialize): Detect calloc failure.
63926         Reported by Bruno Haible.
63927
63928 2007-09-09  Bruno Haible  <bruno@clisp.org>
63929
63930         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63931         malloc or realloc fails.
63932
63933 2007-09-09  Bruno Haible  <bruno@clisp.org>
63934
63935         * modules/getcwd (Depends-on): Add malloc-posix.
63936         * modules/glob (Depends-on): Likewise.
63937         * modules/putenv (Depends-on): Likewise.
63938         * modules/strdup (Depends-on): Likewise.
63939         * modules/getdelim (Depends-on): Add realloc-posix.
63940         * modules/read-file (Depends-on): Likewise.
63941
63942 2007-09-09  Bruno Haible  <bruno@clisp.org>
63943
63944         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63945         (gl_FUNC_MALLOC_POSIX): Require it.
63946         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63947         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63948         * modules/realloc (Files): Add m4/malloc.m4.
63949         * modules/calloc (Files): Likewise.
63950
63951 2007-09-09  Bruno Haible  <bruno@clisp.org>
63952
63953         * modules/malloc-posix: New file.
63954         * modules/malloc (Depends-on): Add malloc-posix.
63955         * lib/malloc.c: Include errno.h.
63956         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63957         and a POSIX-compatible malloc into a single function. Set ENOMEM
63958         when returning NULL.
63959         * m4/malloc.m4: New file.
63960         * doc/functions/malloc.texi: Mention the malloc-posix module.
63961         * lib/stdlib_.h (malloc): New declaration.
63962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63963         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63964         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63965         and HAVE_MALLOC_POSIX.
63966
63967 2007-09-09  Bruno Haible  <bruno@clisp.org>
63968
63969         * modules/realloc-posix: New file.
63970         * modules/realloc (Depends-on): Add realloc-posix.
63971         * lib/realloc.c: Include errno.h.
63972         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63973         and a POSIX-compatible realloc into a single function. Set ENOMEM
63974         when returning NULL.
63975         * m4/realloc.m4: New file.
63976         * doc/functions/realloc.texi: Mention the realloc-posix module.
63977         * lib/stdlib_.h (realloc): New declaration.
63978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63979         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63980         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63981         and HAVE_REALLOC_POSIX.
63982
63983 2007-09-09  Bruno Haible  <bruno@clisp.org>
63984
63985         * modules/calloc-posix: New file.
63986         * modules/calloc (Depends-on): Add calloc-posix.
63987         * lib/calloc.c: Include errno.h.
63988         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63989         and a POSIX-compatible calloc into a single function. Set ENOMEM
63990         when returning NULL.
63991         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63992         * doc/functions/calloc.texi: Mention the calloc-posix module.
63993         * lib/stdlib_.h (calloc): New declaration.
63994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63995         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63996         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63997         and HAVE_CALLOC_POSIX.
63998
63999 2007-09-09  Bruno Haible  <bruno@clisp.org>
64000
64001         Allow for modules to show an arbitrary notice.
64002         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64003         * gnulib-tool: New option --extract-notice.
64004         (func_usage): Document it.
64005         (sed_extract_prog): Update.
64006         (func_get_notice): New function.
64007         (func_modules_notice): New function.
64008         (func_import, func_create_testdir): Invoke it.
64009         Suggested by Jim Meyering.
64010
64011 2007-09-09  Bruno Haible  <bruno@clisp.org>
64012
64013         * gnulib-tool: New options --verbose, --quiet.
64014         (func_usage): Document them.
64015         (verbose): New variable.
64016         (func_execute_command): New function.
64017         (func_import): Don't show the module list and the file list if
64018         $verbose < 0.
64019         (func_create_testdir): Likewise. Use func_execute_command.
64020         (func_create_megatestdir): Use func_execute_command.
64021
64022 2007-09-08  Bruno Haible  <bruno@clisp.org>
64023
64024         * gnulib-tool (func_import): Prefer rsync over wget when available,
64025         for fetching the PO files.
64026
64027 2007-09-08  Bruno Haible  <bruno@clisp.org>
64028
64029         * posix-modules: New file. Portions copied from gnulib-tool.
64030         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64031
64032 2007-09-08  Jim Meyering  <jim@meyering.net>
64033
64034         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64035         * lib/fpending.h: Rename from __fpending.h.
64036         * lib/fpending.c: Rename from __fpending.c.
64037         Include "fpending.h", not "__fpending.h".
64038         * lib/__fpending.h, lib/__fpending.c: Remove files.
64039         * modules/fpending (Files): Reflect new file names.
64040         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64041
64042 2007-09-08  Bruno Haible  <bruno@clisp.org>
64043
64044         * m4/inttypes-h.m4: Remove stub file.
64045
64046 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64047
64048         * doc/headers/stdint.texi: Discuss #include_next issue.
64049
64050 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64053
64054 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64055
64056         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64057         in variable name.
64058
64059 2007-09-03  Jim Meyering  <jim@meyering.net>
64060
64061         New module: git-version-gen.
64062         * modules/git-version-gen: New file.
64063
64064         Import changes from coreutils for bootstrap script.
64065
64066         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64067
64068         bootstrap: uses rsync to download the .po files
64069         * build-aux/bootstrap (po_download_command_format): New global.
64070         (download_po_files): Use rsync.
64071         (update_po_files): Don't remove .po files after download,
64072         so future rsync runs can take advantage of the copies.
64073
64074         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64075
64076         Solve the unnecessary-.po-file-regeneration problem once and for all.
64077         * build-aux/bootstrap (download_po_files): New function, renamed from
64078         get_translations.  Now, downloads, but doesn't update LINGUAS.
64079         (update_po_files): New function.
64080
64081         bootstrap: Ignore more.
64082         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64083         uniwidth to e.g., lib/.gitignore.
64084         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64085
64086         * build-aux/bootstrap: New setting: vc_ignore.
64087         (insert_sorted_if_absent): Create $file if absent.
64088         Adapt to new, possibly empty, list: $vc_ignore.
64089
64090         bootstrap: generate more ignorable names
64091         * build-aux/bootstrap (slurp): When generating ignorable names,
64092         also map .sin to .sed, .gperf to .c, and .y to .c.
64093
64094 2007-09-03  Jim Meyering  <jim@meyering.net>
64095
64096         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64097         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64098
64099 2007-09-02  Bruno Haible  <bruno@clisp.org>
64100
64101         Fix mis-recognition of 'mcs' on QNX 6.
64102         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64103         output contains the string "Mono".
64104         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64105         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64106
64107 2007-09-01  Bruno Haible  <bruno@clisp.org>
64108
64109         Fix collision between uniwidth/* and linebreak modules.
64110         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64111         u32_width): Remove declarations.
64112         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64113         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64114         streq3, streq2, streq1, streq0): Remove functions.
64115         (STREQ): Remove macro.
64116         (is_cjk_encoding): Remove function.
64117         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64118         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64119         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64120         * NEWS: Document the change.
64121
64122 2007-09-01  Bruno Haible  <bruno@clisp.org>
64123
64124         * lib/streq.h: Add double-inclusion guard.
64125
64126 2007-09-01  Karl Berry  <karl@gnu.org>
64127
64128         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64129
64130 2007-08-28  Jim Meyering  <jim@meyering.net>
64131
64132         Rename mreadlink_with_size to areadlink_with_size.
64133         * NEWS: Document the change.
64134         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64135         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64136         * lib/mreadlink.h: Rename this to...
64137         * lib/areadlink.h: ...this.
64138         * modules/mreadlink-with-size: Rename this to...
64139         * modules/areadlink-with-size: ...this.
64140         * lib/canonicalize.c: Reflect the renaming.
64141         * modules/canonicalize: Likewise.
64142
64143 2007-08-26  Bruno Haible  <bruno@clisp.org>
64144
64145         * gnulib-tool (func_import): When deciding which files to remove,
64146         consider also dangling symbolic links.
64147         Reported by Eric Blake.
64148
64149 2007-08-26  Bruno Haible  <bruno@clisp.org>
64150
64151         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64152
64153 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64154
64155         * lib/readline.c: Don't include getline.h, the prototype is now
64156         found in stdio.h.
64157
64158 2007-08-23  Jim Meyering  <jim@meyering.net>
64159
64160         Getdelim touchup.
64161         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64162         around the funlockfile call, since funlockfile never sets errno.
64163         Don't set errno upon failed realloc.
64164
64165 2007-08-22  Eric Blake  <ebb9@byu.net>
64166
64167         Getline touchups.
64168         * lib/getdelim.c (getdelim): Revert regression that required *n to
64169         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64170         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64171         getdelim, rather than whether implementation is missing.
64172         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64173         * lib/stdio_.h (getline): Also declare if replacement is
64174         required.
64175         * doc/functions/getdelim.texi: New file.
64176         * doc/functions/getline.texi: Likewise.
64177         * doc/gnulib.texi (Function Substitutes): Add new files.
64178         Reported by Bruno Haible.
64179
64180 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64181
64182         * users.txt: Add Guile.
64183
64184 2007-08-22  Eric Blake  <ebb9@byu.net>
64185
64186         * tests/test-getdelim.c (main): Use remove, not unlink.
64187         * tests/test-getline.c (main): Likewise.
64188
64189         Move getline and getdelim into stdio.h, per POSIX 200x.
64190         * modules/getline (Files): Remove getline.h.
64191         (Depends-on): Add stdio.
64192         (configure.ac): Add module indicator.
64193         * modules/getdelim (Files): Remove getdelim.h.
64194         (Depends-on): Add stdio.
64195         (configure.ac): Add module indicator.
64196         * modules/stdio (Makefile.am): Work with new indicators.
64197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64198         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64199         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64200         * lib/getdelim.h: Delete.
64201         * lib/getline.h: Delete.
64202         * lib/stdio_.h (getdelim, getline): Declare.
64203         * modules/getdelim-tests: New module.
64204         * modules/getline-tests: Likewise.
64205         * tests/test-getdelim.c: New file.
64206         * tests/test-getline.c: Likewise.
64207         * NEWS: Document the change.
64208         * lib/getline.c: Update choice of header.
64209         * lib/csharpcomp.c: Likewise.
64210         * lib/getpass.c: Likewise.
64211         * lib/javacomp.c: Likewise.
64212         * lib/javaversion.c: Likewise.
64213         * lib/yesno.c: Likewise.
64214         * lib/getdelim.c: Likewise.
64215         (getdelim): Set errno on failure, and avoid memory leak.
64216
64217 2007-08-19  Bruno Haible  <bruno@clisp.org>
64218
64219         * modules/closein (Depends-on): Add freadahead.
64220         * lib/closein.c: Include freadahead.h.
64221         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64222         is zero.
64223
64224 2007-08-19  Bruno Haible  <bruno@clisp.org>
64225
64226         * modules/freadahead-tests: New file.
64227         * tests/test-freadahead.sh: New file.
64228         * tests/test-freadahead.c: New file.
64229
64230         * modules/freadahead: New file.
64231         * lib/freadahead.h: New file.
64232         * lib/freadahead.c: New file.
64233         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64234         fbufmode, fpurge, freadable, fwritable.
64235
64236 2007-08-19  Eric Blake  <ebb9@byu.net>
64237
64238         Test yesno in combination with closein.
64239         * lib/yesno.c (yesno): Document use of stdin.
64240         * modules/yesno-tests (Files): New module.
64241         * tests/test-yesno.c (main): New file.
64242         * tests/test-yesno.sh: Likewise.
64243
64244 2007-08-19  Bruno Haible  <bruno@clisp.org>
64245
64246         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64247         * lib/fseeko.c (rpl_fseeko): Likewise.
64248         * lib/fseterr.c (fseterr): Likewise.
64249
64250 2007-08-19  Bruno Haible  <bruno@clisp.org>
64251
64252         * tests/test-lseek.c (main): Disable a test for BeOS.
64253         * doc/functions/lseek.texi: Document the BeOS bug.
64254
64255 2007-08-19  Bruno Haible  <bruno@clisp.org>
64256             Eric Blake  <ebb9@byu.net>
64257
64258         * lib/lseek.c: Include <sys/stat.h>.
64259         (rpl_lseek): Add workaround code also for Unix platforms.
64260         Needed for BeOS.
64261         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64262         * doc/functions/lseek.texi: Document BeOS definiency.
64263
64264 2007-08-18  Bruno Haible  <bruno@clisp.org>
64265
64266         * modules/fstrcmp-tests: New file.
64267         * tests/test-fstrcmp.c: New file.
64268
64269 2007-08-18  Bruno Haible  <bruno@clisp.org>
64270
64271         * modules/fstrcmp: New file, from GNU gettext with modifications.
64272         * lib/fstrcmp.h: New file, from GNU gettext.
64273         * lib/fstrcmp.c: New file, from GNU gettext.
64274         * MODULES.html.sh (String handling): Add fstrcmp.
64275
64276 2007-08-18  Bruno Haible  <bruno@clisp.org>
64277
64278         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64279         'bool'.
64280         (diag, compareseq): Remove const from the ctxt argument.
64281         (USE_HEURISTIC): Undefine at the end.
64282
64283 2007-08-18  Jim Meyering  <jim@meyering.net>
64284
64285         New file: lib/idcache.h
64286         * NEWS: Mention the addition.
64287         * modules/idcache (Files): Add lib/idcache.h
64288         * lib/idcache.c: Include "idcache.h".
64289         Don't include <sys/types.h>.
64290         Add a FIXME comment.
64291         Move file-scoped "static" declarations to the top.
64292         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64293
64294 2007-08-17  Bruno Haible  <bruno@clisp.org>
64295         and Paul Eggert  <eggert@cs.ucla.edu>
64296
64297         * MODULES.html.sh: Add diffseq.
64298         * modules/diffseq: New file.
64299         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64300         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64301
64302 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64303
64304         Import changes from coreutils for bootstrap script.
64305
64306         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64307
64308         * build-aux/bootstrap (slurp): Work even in environments where
64309         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64310         current code does not slurp files whose names start with ".", and
64311         this looks like it might be a troublesome area.
64312
64313         2007-07-11  Jim Meyering  <jim@meyering.net>
64314
64315         If there's a GPL vN copyright comment, require that N == 3.
64316
64317         2007-07-08  Jim Meyering  <jim@meyering.net>
64318
64319         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64320         * build-aux/bootstrap (mam_template): Move definition out of loop.
64321
64322         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64323
64324         * build-aux/bootstrap (symlink_to_dir): Rename function from
64325         symlink_to_gnulib.  Add a directory parameter.  Update all
64326         callers.
64327         (cp_mark_as_generated): Also check for -- and link to -- files in
64328         gl/.
64329
64330         2007-07-08  Jim Meyering  <jim@meyering.net>
64331
64332         Adapt to deeper hierarchy in gnulib.
64333         * build-aux/bootstrap (symlink_to_dir): If the destination
64334         directory doesn't exist, create it. This is required at least for
64335         "lib/uniwidth/cjk.h".
64336
64337         2007-05-15  Jim Meyering  <jim@meyering.net>
64338
64339         * build-aux/bootstrap: Now that generated Makefile.am files
64340         are no longer under version control, they must be created at
64341         bootstrap time.
64342
64343 2007-08-14  Ben Pfaff  <blp@gnu.org>
64344
64345         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64346
64347 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64348
64349         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64350         given the changes below.
64351         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64352         even on hosts that have padding bits beyond the supported 64.
64353
64354 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64355
64356         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64357         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64358         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64359         depends on it.
64360         (xstrtol_error): Remove.
64361         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64362         but with a different signature.
64363         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64364         * lib/xstrtol-error.c: Include exitfail.h.
64365         (xstrtol_fatal): New function, with a different signature from the
64366         old xstrtol_error, so that the caller need not worry about passing
64367         in an exit status, or about storage management of the option argument.
64368         (xstrtol_error): Now a static function.  Redo signature to
64369         implement xstrtol_fatal.  Output the correct number of hyphens in
64370         front of the option so that the caller need not worry about
64371         storage management.
64372         (N_): New macro.
64373         (_): Remove; not used now.
64374         * modules/xstrtol: Depend on getopt.
64375         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64376         of old STRTOL_FATAL_ERROR macro.
64377         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64378         of test program.
64379         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64380         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64381
64382 2007-08-08  Eric Blake  <ebb9@byu.net>
64383
64384         * lib/xstrtol-error.c: Add missing include.
64385
64386         Move xstrtol messages into gnulib domain, when --pobase is used.
64387         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64388         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64389         * modules/xstrtol (Files): Distribute new file.
64390         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64391         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64392         * tests/test-xstrtol.c: ...into new file.
64393         * tests/test-xstrtoul.c: Also test xstrtoul.
64394         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64395         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64396         * tests/test-xstrtol.sh: Drive the tests.
64397         * tests/test-xstrtoimax.sh: Likewise.
64398         * tests/test-xstrtoumax.sh: Likewise.
64399         * modules/xstrtol-tests: New module.
64400         * modules/xstrtoimax-tests: Likewise.
64401         * modules/xstrtoumax-tests: Likewise.
64402
64403 2007-08-08  Jim Meyering  <jim@meyering.net>
64404
64405         New function: mfile_name_concat.
64406         * lib/filenamecat.c (mfile_name_concat): New function, just like
64407         file_name_concat, but return NULL upon failure rather than exiting
64408         with a diagnostic.
64409         * lib/filenamecat.h: Declare it.
64410
64411 2007-08-07  Bruno Haible  <bruno@clisp.org>
64412
64413         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64414         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64415         warning from gcc.
64416         Reported by Eric Blake.
64417
64418 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64419
64420         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64421         * modules/crypto/arcfour (License): Likewise.
64422         * modules/crypto/des-tests (License): Likewise.
64423         * modules/crypto/gc-arctwo-tests (License): Likewise.
64424         * modules/crypto/gc-des-tests (License): Likewise.
64425         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64426         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64427         * modules/crypto/gc-md2-tests (License): Likewise.
64428         * modules/crypto/gc-md4-tests (License): Likewise.
64429         * modules/crypto/gc-md5-tests (License): Likewise.
64430         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64431         * modules/crypto/gc-rijndael-tests (License): Likewise.
64432         * modules/crypto/gc-sha1-tests (License): Likewise.
64433         * modules/crypto/gc-tests (License): Likewise.
64434         * modules/crypto/hmac-md5 (License): Likewise.
64435         * modules/crypto/hmac-sha1 (License): Likewise.
64436         * modules/crypto/md2-tests (License): Likewise.
64437         * modules/crypto/md4-tests (License): Likewise.
64438         * modules/crypto/md5 (License): Likewise.
64439         * modules/crypto/rijndael (License): Likewise.
64440         * modules/crypto/sha1 (License): Likewise.
64441         * modules/memxor (License): Likewise.
64442
64443 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64444         and Bruno Haible  <bruno@clisp.org>
64445
64446         * NEWS: Describe interface changes to human, xstrtol.
64447         * lib/human.h: Include <xstrtol.h>.
64448         (human_options): Return enum strtol_error, not int.  Remove
64449         bool arg; take int * instead.
64450         * lib/human.c: Don't include "gettext.h".
64451         (_): Remove; no longer used.
64452         Don't include <xstrtol.h>, since human.h does it.
64453         (human_options): Adjust to abovementioned interface changes.
64454         Do not report error to stderr; that's now the caller's
64455         responsibility.
64456         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64457         interface change.
64458         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64459         Str, Argument_type_string.  All uses changed.  Put " argument"
64460         in diagnostics to make them clearer.  Change wording of suffix
64461         message for clarity.
64462         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64463         Argument_type_string.
64464         (STRTOL_FATAL_WARN): Remove; no longer used.
64465         * modules/human (Depends-on): Remove gettext-h.
64466
64467 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64468
64469         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64470
64471 2007-07-31  Bruno Haible  <bruno@clisp.org>
64472
64473         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64474         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64475         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64476
64477 2007-07-31  Bruno Haible  <bruno@clisp.org>
64478
64479         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64480         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64481
64482 2007-07-30  Bruno Haible  <bruno@clisp.org>
64483
64484         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64485         * modules/c-ctype (License): Likewise.
64486         * modules/c-strcase (License): Likewise.
64487         * modules/check-version (License): Likewise.
64488         * modules/iconv (License): Likewise.
64489         * modules/iconv_open (License): Likewise.
64490         * modules/read-file (License): Likewise.
64491         * modules/striconv (License): Likewise.
64492         * modules/strverscmp (License): Likewise.
64493         * modules/vasprintf (License): Likewise.
64494         * modules/crypto/des (License): Likewise.
64495         * modules/crypto/gc (License): Likewise.
64496         * modules/crypto/gc-arcfour (License): Likewise.
64497         * modules/crypto/gc-arctwo (License): Likewise.
64498         * modules/crypto/gc-des (License): Likewise.
64499         * modules/crypto/gc-hmac-md5 (License): Likewise.
64500         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64501         * modules/crypto/gc-md2 (License): Likewise.
64502         * modules/crypto/gc-md4 (License): Likewise.
64503         * modules/crypto/gc-md5 (License): Likewise.
64504         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64505         * modules/crypto/gc-random (License): Likewise.
64506         * modules/crypto/gc-rijndael (License): Likewise.
64507         * modules/crypto/gc-sha1 (License): Likewise.
64508         * modules/crypto/md2 (License): Likewise.
64509         * modules/crypto/md4 (License): Likewise.
64510
64511 2007-07-30  Jim Meyering  <jim@meyering.net>
64512
64513         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64514         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64515         it has valid stat data.  This bug would cause du not to count the
64516         sizes of inaccessible directories.
64517         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64518         in <http://bugzilla.redhat.com/250077>.
64519
64520 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64521             Bruno Haible  <bruno@clisp.org>
64522
64523         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64524         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64525         #include_next, gives a diagnostic about it, but reports no error in
64526         the exit code.
64527         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64528
64529 2007-07-24  Ben Pfaff  <blp@gnu.org>
64530
64531         Improve name: "count-one-bits" is better than "popcount".
64532         * MODULES.html.sh: Update name.
64533         * lib/popcount.h: Renamed lib/count-one-bits.h.
64534         (popcount): Renamed count_one_bits.
64535         (popcountl): Renamed count_one_bits_l.
64536         (popcountll): Renamed count_one_bits_ll.
64537         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64538         * modules/popcount: Renamed module/count-one-bits.
64539         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64540         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64541
64542 2007-07-23  Ben Pfaff  <blp@gnu.org>
64543
64544         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64545         better code generation, and add U to large constants to avoid
64546         warnings, in non-GCC case.
64547         Suggested by Bruno Haible.
64548
64549 2007-07-23  Ben Pfaff  <blp@gnu.org>
64550
64551         * lib/popcount.h: Use verify_true instead of if...abort.
64552         * modules/popcount: Depend on verify module.
64553         Suggested by Jim Meyering.
64554
64555 2007-07-23  Bruno Haible  <bruno@clisp.org>
64556
64557         * gnulib-tool (func_import): Create a .cvsignore file also when the
64558         directory is not yet in CVS but the toplevel directory is. When
64559         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64560         Reported by Karl Berry.
64561
64562 2007-07-22  Ben Pfaff  <blp@gnu.org>
64563
64564         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64565         case.
64566         Suggested by Eric Blake.
64567
64568 2007-07-22  Ben Pfaff  <blp@gnu.org>
64569
64570         New module: popcount.
64571         * MODULES.html.sh: Add popcount.
64572         * modules/popcount: New file.
64573         * modules/popcount-tests: New file.
64574         * tests/test-popcount.c: New file.
64575         * lib/popcount.h: New file.
64576         * m4/popcount.m4: New file.
64577
64578 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64579
64580         * build-aux/announce-gen: Update to GPLv3.
64581
64582         * build-aux/config.guess: Update from config.
64583
64584 2007-07-21  Bruno Haible  <bruno@clisp.org>
64585
64586         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64587         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64588
64589 2007-07-20  Jim Meyering  <jim@meyering.net>
64590
64591         * check-module: Diagnose a self-dependency.
64592
64593 2007-07-19  Bruno Haible  <bruno@clisp.org>
64594
64595         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64596         empty.
64597         Reported by Eric Blake.
64598
64599 2007-07-18  Bruno Haible  <bruno@clisp.org>
64600
64601         * gnulib-tool: New options --po-base, --po-domain.
64602         (func_usage): Document them.
64603         (pobase, po_domain): New variables.
64604         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64605         DEFAULT_TEXT_DOMAIN.
64606         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64607         (func_import): Consider pobase and po_domain. Create a po/ directory.
64608         (func_create_testdir): Set pobase and po_domain to empty.
64609         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64610         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64611
64612 2007-07-18  Bruno Haible  <bruno@clisp.org>
64613
64614         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64615         EXTRA_DIST augmentation for files in build-aux/.
64616
64617 2007-07-16  Bruno Haible  <bruno@clisp.org>
64618
64619         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64620         * modules/getdelim (License): Likewise.
64621
64622 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64623
64624         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64625         * modules/d-type (License): Likewise.
64626         * modules/extensions (License): Likewise.
64627         * modules/fnmatch (License): Likewise.
64628         * modules/fseeko (License): Likewise.
64629         * modules/getaddrinfo (License): Likewise.
64630         * modules/getline (License): Likewise.
64631         * modules/getlogin_r (License): Likewise.
64632         * modules/getpass (License): Likewise.
64633         * modules/gettimeofday (License): Likewise.
64634         * modules/glob (License): Likewise.
64635         * modules/inet_ntop (License): Likewise.
64636         * modules/malloc (License): Likewise.
64637         * modules/malloca (License): Likewise.
64638         * modules/memmem (License): Likewise.
64639         * modules/mempcpy (License): Likewise.
64640         * modules/memset (License): Likewise.
64641         * modules/minmax (License): Likewise.
64642         * modules/mktime (License): Likewise.
64643         * modules/netinet_in (License): Likewise.
64644         * modules/pathmax (License): Likewise.
64645         * modules/poll (License): Likewise.
64646         * modules/regex (License): Likewise.
64647         * modules/snprintf (License): Likewise.
64648         * modules/stdbool (License): Likewise.
64649         * modules/stdint (License): Likewise.
64650         * modules/stdio (License): Likewise.
64651         * modules/strcase (License): Likewise.
64652         * modules/strcasestr (License): Likewise.
64653         * modules/strdup (License): Likewise.
64654         * modules/string (License): Likewise.
64655         * modules/strndup (License): Likewise.
64656         * modules/strnlen (License): Likewise.
64657         * modules/strpbrk (License): Likewise.
64658         * modules/strptime (License): Likewise.
64659         * modules/strsep (License): Likewise.
64660         * modules/sys_select (License): Likewise.
64661         * modules/sys_socket (License): Likewise.
64662         * modules/sys_stat (License): Likewise.
64663         * modules/sys_time (License): Likewise.
64664         * modules/time (License): Likewise.
64665         * modules/time_r (License): Likewise.
64666         * modules/timegm (License): Likewise.
64667         * modules/unistd (License): Likewise.
64668         * modules/vsnprintf (License): Likewise.
64669         * modules/wctype (License): Likewise.
64670
64671 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64672
64673         * modules/argz (License): LGPLv2+.
64674
64675 2007-07-15  Karl Berry  <karl@gnu.org>
64676
64677         * doc/gnulib.texi: revise node structure per new fdl.texi.
64678
64679 2007-07-14  Bruno Haible  <bruno@clisp.org>
64680
64681         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64682         the output file.
64683         * lib/uniname/uninames.h: Regenerated.
64684
64685 2007-07-14  Karl Berry  <karl@gnu.org>
64686
64687         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64688         omitting sectioning and index commands.
64689
64690 2007-07-13  Bruno Haible  <bruno@clisp.org>
64691
64692         New gnulib-tool option --more-symlinks.
64693         * gnulib-tool (func_usage): Document --more-symlinks.
64694         (do_copyrights): New variable.
64695         Recognize option --more-symlinks.
64696         (func_import): Don't add a copyright notice transform to
64697         sed_transform_lib_file if do_copyrights is empty.
64698
64699 2007-07-13  Bruno Haible  <bruno@clisp.org>
64700
64701         * lib/vasnprintf.c (decimal_point_char): Define also if
64702         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64703         && !NEED_PRINTF_DIRECTIVE_A.
64704         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64705         Gary V. Vaughan <gary@gnu.org>.
64706
64707 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         * lib/inttypes_.h: Undo previous change, since it was fixed
64710         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64711
64712 2007-07-13  Bruno Haible  <bruno@clisp.org>
64713
64714         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64715         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64716
64717 2007-07-13  Jim Meyering  <jim@meyering.net>
64718
64719         df: Don't fail for Tru64's "file-on-file mount".
64720         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64721         so we fall through and use statfs instead.  Details here:
64722         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64723         Reported by Albert Chin.
64724
64725 2007-07-13  Bruno Haible  <bruno@clisp.org>
64726
64727         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64728         * modules/configmake (License): Likewise.
64729         * modules/gettext (License): Likewise.
64730         * modules/gettext-h (License): Likewise.
64731         * modules/include_next (License): Likewise.
64732         * modules/link-warning (License): Likewise.
64733         * modules/localcharset (License): Likewise.
64734         * modules/localename (License): Likewise.
64735         * modules/lock (License): Likewise.
64736         * modules/relocatable-lib-lgpl (License): Likewise.
64737         * modules/size_max (License): Likewise.
64738         * modules/vasnprintf (License): Likewise.
64739         * modules/wchar (License): Likewise.
64740         * modules/xsize (License): Likewise.
64741
64742 2007-07-13  Bruno Haible  <bruno@clisp.org>
64743
64744         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64745         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64746
64747 2007-07-12  Bruno Haible  <bruno@clisp.org>
64748
64749         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64750         in the modules files.
64751
64752 2007-07-11  Karl Berry  <karl@gnu.org>
64753
64754         * MODULES.html.sh (func_module): use
64755          sed -e '\|^'"${includefile}"'$|d'
64756          instead of /.../d, to avoid errors on $includefile's containing /.
64757
64758 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64759
64760         * gnulib-tool (func_import): Avoid duplication of --avoid
64761         statements
64762         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64763         names to `_' in variable names.
64764
64765 2007-07-10  Eric Blake  <ebb9@byu.net>
64766
64767         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64768         * NEWS: Document this change.
64769
64770 2007-07-08  Bruno Haible  <bruno@clisp.org>
64771
64772         Update to Unicode 5.0.
64773         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64774         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64775         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64776         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64777         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64778         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64779         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64780         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64781         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64782         U+10A3F, U+1D242..U+1D244.
64783         (nonspacing_table_ind): Update.
64784         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64785         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64786
64787 2007-07-08  Bruno Haible  <bruno@clisp.org>
64788
64789         Update to Unicode 5.0.
64790         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64791         code transform. Extend the name index field of unicode_name_to_code and
64792         unicode_code_to_name from 16 to 24 bits.
64793         * lib/uniname/uniname.c (unicode_character_name,
64794         unicode_name_character): Add the range 0x12xxx to the code transform.
64795         * lib/uniname/uninames.h: Regenerated.
64796         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64797
64798 2007-07-07  Bruno Haible  <bruno@clisp.org>
64799
64800         * modules/wcwidth-tests: New file.
64801         * tests/test-wcwidth.c: New file.
64802
64803         Work around MacOS X wcwidth() bug.
64804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64805         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64806         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64807         original wcwidth in non-UTF-8 locales.
64808         * modules/wcwidth (Depends-on): Add localcharset, streq,
64809         uniwidth/width.
64810         * doc/functions/wcwidth.texi: Update.
64811
64812 2007-07-07  Bruno Haible  <bruno@clisp.org>
64813
64814         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64815         (wcwidth): New declaration.
64816         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64817         macros.
64818         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64819         here. Prepare for creating <wchar.h> unconditionally.
64820         * modules/wchar (Depends-on): Add link-warning.
64821         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64822         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64823         * lib/wcwidth.h: Remove file.
64824         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64825         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64826         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64827         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64828         (Include): Replace wcwidth.h with <wchar.h>.
64829         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64830         * lib/mbchar.h: Don't include wcwidth.h.
64831         * lib/mbswidth.c: Likewise.
64832         * NEWS: Mention the change.
64833
64834 2007-07-07  Bruno Haible  <bruno@clisp.org>
64835
64836         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64837         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64838         definition with an external declaration.
64839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64840         defined as a function. Remove AC_C_INLINE requirement.
64841         * modules/wcwidth (Files): Add lib/wcwidth.c.
64842         (Makefile.am): Remove redundant statement.
64843
64844 2007-07-07  Bruno Haible  <bruno@clisp.org>
64845
64846         * MODULES.html.sh (Unicode string functions): Add the new modules.
64847
64848         * tests/uniwidth/test-u32-strwidth.c: New file.
64849         * modules/uniwidth/u32-strwidth-tests: New file.
64850
64851         * lib/uniwidth/u32-strwidth.c: New file.
64852         * modules/uniwidth/u32-strwidth: New file.
64853
64854         * tests/uniwidth/test-u16-strwidth.c: New file.
64855         * modules/uniwidth/u16-strwidth-tests: New file.
64856
64857         * lib/uniwidth/u16-strwidth.c: New file.
64858         * modules/uniwidth/u16-strwidth: New file.
64859
64860         * tests/uniwidth/test-u8-strwidth.c: New file.
64861         * modules/uniwidth/u8-strwidth-tests: New file.
64862
64863         * lib/uniwidth/u8-strwidth.c: New file.
64864         * modules/uniwidth/u8-strwidth: New file.
64865
64866         * tests/uniwidth/test-u32-width.c: New file.
64867         * modules/uniwidth/u32-width-tests: New file.
64868
64869         * lib/uniwidth/u32-width.c: New file.
64870         * modules/uniwidth/u32-width: New file.
64871
64872         * tests/uniwidth/test-u16-width.c: New file.
64873         * modules/uniwidth/u16-width-tests: New file.
64874
64875         * lib/uniwidth/u16-width.c: New file.
64876         * modules/uniwidth/u16-width: New file.
64877
64878         * tests/uniwidth/test-u8-width.c: New file.
64879         * modules/uniwidth/u8-width-tests: New file.
64880
64881         * lib/uniwidth/u8-width.c: New file.
64882         * modules/uniwidth/u8-width: New file.
64883
64884         * tests/uniwidth/test-uc_width.c: New file.
64885         * modules/uniwidth/width-tests: New file.
64886
64887         * lib/uniwidth/width.c: New file, from GNU libiconv.
64888         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64889         * modules/uniwidth/width: New file.
64890
64891         * lib/uniwidth.h: New file, from GNU libiconv.
64892         * modules/uniwidth/base: New file.
64893
64894 2007-07-07  Bruno Haible  <bruno@clisp.org>
64895
64896         * lib/uniname.h: New file, from GNU gettext.
64897         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64898         * lib/uniname/uninames.h: New file, from GNU gettext.
64899         * lib/uniname/uniname.c: New file, from GNU gettext.
64900         * tests/uniname/test-uninames.sh: New file.
64901         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64902         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64903         * modules/uniname/base: New file.
64904         * modules/uniname/uniname: New file.
64905         * modules/uniname/uniname-tests: New file.
64906         * MODULES.html.sh (Unicode string functions): Add the new modules.
64907
64908 2007-07-06  Bruno Haible  <bruno@clisp.org>
64909
64910         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64911
64912 2007-07-06  Bruno Haible  <bruno@clisp.org>
64913
64914         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64915         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64916         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64917         include <sys/time.h>.
64918         Reported by Eric Blake.
64919
64920 2007-07-06  Eric Blake  <ebb9@byu.net>
64921
64922         Fix testing canonicalize on cygwin.
64923         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64924         Revert patch from 2007-06-19.
64925         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64926         canonicalize module is also in use.
64927         * tests/test-canonicalize.c: New file.
64928         * tests/test-canonicalize.sh: Likewise.
64929         * modules/canonicalize-tests: Likewise.
64930
64931 2007-07-06  Jim Meyering  <jim@meyering.net>
64932
64933         * lib/getugroups.c (getugroups): Detect getgrent failure.
64934         Adjust comment to reflect reality: this function may return -1.
64935
64936 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64937
64938         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64939         the new TP address.
64940         (usage): Fix typo
64941         (gnulib_mk): New variable.
64942
64943 2007-07-05  Jim Meyering  <jim@meyering.net>
64944
64945         Don't let endgrent clobber errno, no matter how improbable.
64946         * lib/getugroups.c (getugroups): Save and restore errno around
64947         endgrent call.
64948
64949         Close the group DB even when failing with 2^31 or more members.
64950         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64951
64952 2007-07-04  Jim Meyering  <jim@meyering.net>
64953
64954         * lib/getugroups.h: New file.
64955         * lib/getugroups.c: Include "getugroups.h".
64956         Remove uses of "register" keyword.
64957         Move local variable, "cp", down into scope where used.
64958         Give "username" parameter the "const" attribute.
64959         * modules/getugroups (Files): Add lib/getugroups.h
64960
64961 2007-07-04  Karl Berry  <karl@gnu.org>
64962
64963         * MODULES.html.sh (func_all_modules): Complete rename of
64964         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64965
64966 2007-07-02  Bruno Haible  <bruno@clisp.org>
64967
64968         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64969         mode, when inttypes.h comes from gnulib.
64970         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64971
64972 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64973
64974         * NEWS: Mention lgpl module name change.
64975
64976         * modules/lgpl-2.1: Renamed from lgpl.
64977
64978         * NEWS: Mention gpl module name change.
64979
64980         * modules/gpl-3.0: New file, based on gpl-2.0.
64981
64982         * modules/gpl-2.0: Renamed from gpl.
64983
64984         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64985         doc/gpl-2.0.texi.
64986
64987 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64988
64989         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64990         #define __STDC_LIMIT_MACROS temporarily while including
64991         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64992         Problem reported by Joel E. Denny in
64993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64994
64995 2007-07-01  Bruno Haible  <bruno@clisp.org>
64996
64997         * lib/unistdio.h: New file.
64998         * lib/unistdio/u-asnprintf.h: New file.
64999         * lib/unistdio/u-asprintf.h: New file.
65000         * lib/unistdio/u-printf-args.c: New file.
65001         * lib/unistdio/u-printf-args.h: New file.
65002         * lib/unistdio/u-printf-parse.h: New file.
65003         * lib/unistdio/u-snprintf.h: New file.
65004         * lib/unistdio/u-sprintf.h: New file.
65005         * lib/unistdio/u-vasprintf.h: New file.
65006         * lib/unistdio/u-vsnprintf.h: New file.
65007         * lib/unistdio/u-vsprintf.h: New file.
65008         * lib/unistdio/ulc-asnprintf.c: New file.
65009         * lib/unistdio/ulc-asprintf.c: New file.
65010         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65011         * lib/unistdio/ulc-printf-parse.c: New file.
65012         * lib/unistdio/ulc-snprintf.c: New file.
65013         * lib/unistdio/ulc-sprintf.c: New file.
65014         * lib/unistdio/ulc-vasnprintf.c: New file.
65015         * lib/unistdio/ulc-vasprintf.c: New file.
65016         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65017         * lib/unistdio/ulc-vsnprintf.c: New file.
65018         * lib/unistdio/ulc-vsprintf.c: New file.
65019         * lib/unistdio/u8-asnprintf.c: New file.
65020         * lib/unistdio/u8-asprintf.c: New file.
65021         * lib/unistdio/u8-printf-parse.c: New file.
65022         * lib/unistdio/u8-snprintf.c: New file.
65023         * lib/unistdio/u8-sprintf.c: New file.
65024         * lib/unistdio/u8-vasnprintf.c: New file.
65025         * lib/unistdio/u8-vasprintf.c: New file.
65026         * lib/unistdio/u8-vsnprintf.c: New file.
65027         * lib/unistdio/u8-vsprintf.c: New file.
65028         * lib/unistdio/u8-u8-asnprintf.c: New file.
65029         * lib/unistdio/u8-u8-asprintf.c: New file.
65030         * lib/unistdio/u8-u8-snprintf.c: New file.
65031         * lib/unistdio/u8-u8-sprintf.c: New file.
65032         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65033         * lib/unistdio/u8-u8-vasprintf.c: New file.
65034         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65035         * lib/unistdio/u8-u8-vsprintf.c: New file.
65036         * lib/unistdio/u16-asnprintf.c: New file.
65037         * lib/unistdio/u16-asprintf.c: New file.
65038         * lib/unistdio/u16-printf-parse.c: New file.
65039         * lib/unistdio/u16-snprintf.c: New file.
65040         * lib/unistdio/u16-sprintf.c: New file.
65041         * lib/unistdio/u16-vasnprintf.c: New file.
65042         * lib/unistdio/u16-vasprintf.c: New file.
65043         * lib/unistdio/u16-vsnprintf.c: New file.
65044         * lib/unistdio/u16-vsprintf.c: New file.
65045         * lib/unistdio/u16-u16-asnprintf.c: New file.
65046         * lib/unistdio/u16-u16-asprintf.c: New file.
65047         * lib/unistdio/u16-u16-snprintf.c: New file.
65048         * lib/unistdio/u16-u16-sprintf.c: New file.
65049         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65050         * lib/unistdio/u16-u16-vasprintf.c: New file.
65051         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65052         * lib/unistdio/u16-u16-vsprintf.c: New file.
65053         * lib/unistdio/u32-asnprintf.c: New file.
65054         * lib/unistdio/u32-asprintf.c: New file.
65055         * lib/unistdio/u32-printf-parse.c: New file.
65056         * lib/unistdio/u32-snprintf.c: New file.
65057         * lib/unistdio/u32-sprintf.c: New file.
65058         * lib/unistdio/u32-vasnprintf.c: New file.
65059         * lib/unistdio/u32-vasprintf.c: New file.
65060         * lib/unistdio/u32-vsnprintf.c: New file.
65061         * lib/unistdio/u32-vsprintf.c: New file.
65062         * lib/unistdio/u32-u32-asnprintf.c: New file.
65063         * lib/unistdio/u32-u32-asprintf.c: New file.
65064         * lib/unistdio/u32-u32-snprintf.c: New file.
65065         * lib/unistdio/u32-u32-sprintf.c: New file.
65066         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65067         * lib/unistdio/u32-u32-vasprintf.c: New file.
65068         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65069         * lib/unistdio/u32-u32-vsprintf.c: New file.
65070         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65071         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65072         * tests/unistdio/test-ulc-printf1.h: New file.
65073         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65074         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65075         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65076         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65077         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65078         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65079         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65080         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65081         * tests/unistdio/test-u8-asnprintf1.c: New file.
65082         * tests/unistdio/test-u8-asnprintf1.h: New file.
65083         * tests/unistdio/test-u8-printf1.h: New file.
65084         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65085         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65086         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65087         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65088         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65089         * tests/unistdio/test-u8-vasprintf1.c: New file.
65090         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65091         * tests/unistdio/test-u8-vsprintf1.c: New file.
65092         * tests/unistdio/test-u16-asnprintf1.c: New file.
65093         * tests/unistdio/test-u16-asnprintf1.h: New file.
65094         * tests/unistdio/test-u16-printf1.h: New file.
65095         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65096         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65097         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65098         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65099         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65100         * tests/unistdio/test-u16-vasprintf1.c: New file.
65101         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65102         * tests/unistdio/test-u16-vsprintf1.c: New file.
65103         * tests/unistdio/test-u32-asnprintf1.c: New file.
65104         * tests/unistdio/test-u32-asnprintf1.h: New file.
65105         * tests/unistdio/test-u32-printf1.h: New file.
65106         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65107         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65108         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65109         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65110         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65111         * tests/unistdio/test-u32-vasprintf1.c: New file.
65112         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65113         * tests/unistdio/test-u32-vsprintf1.c: New file.
65114         * modules/unistdio/base: New file.
65115         * modules/unistdio/u-printf-args: New file.
65116         * modules/unistdio/ulc-asnprintf: New file.
65117         * modules/unistdio/ulc-asprintf: New file.
65118         * modules/unistdio/ulc-fprintf: New file.
65119         * modules/unistdio/ulc-printf-parse: New file.
65120         * modules/unistdio/ulc-snprintf: New file.
65121         * modules/unistdio/ulc-sprintf: New file.
65122         * modules/unistdio/ulc-vasnprintf: New file.
65123         * modules/unistdio/ulc-vasprintf: New file.
65124         * modules/unistdio/ulc-vfprintf: New file.
65125         * modules/unistdio/ulc-vsnprintf: New file.
65126         * modules/unistdio/ulc-vsprintf: New file.
65127         * modules/unistdio/u8-asnprintf: New file.
65128         * modules/unistdio/u8-asprintf: New file.
65129         * modules/unistdio/u8-printf-parse: New file.
65130         * modules/unistdio/u8-snprintf: New file.
65131         * modules/unistdio/u8-sprintf: New file.
65132         * modules/unistdio/u8-vasnprintf: New file.
65133         * modules/unistdio/u8-vasprintf: New file.
65134         * modules/unistdio/u8-vsnprintf: New file.
65135         * modules/unistdio/u8-vsprintf: New file.
65136         * modules/unistdio/u8-u8-asnprintf: New file.
65137         * modules/unistdio/u8-u8-asprintf: New file.
65138         * modules/unistdio/u8-u8-snprintf: New file.
65139         * modules/unistdio/u8-u8-sprintf: New file.
65140         * modules/unistdio/u8-u8-vasnprintf: New file.
65141         * modules/unistdio/u8-u8-vasprintf: New file.
65142         * modules/unistdio/u8-u8-vsnprintf: New file.
65143         * modules/unistdio/u8-u8-vsprintf: New file.
65144         * modules/unistdio/u16-asnprintf: New file.
65145         * modules/unistdio/u16-asprintf: New file.
65146         * modules/unistdio/u16-printf-parse: New file.
65147         * modules/unistdio/u16-snprintf: New file.
65148         * modules/unistdio/u16-sprintf: New file.
65149         * modules/unistdio/u16-vasnprintf: New file.
65150         * modules/unistdio/u16-vasprintf: New file.
65151         * modules/unistdio/u16-vsnprintf: New file.
65152         * modules/unistdio/u16-vsprintf: New file.
65153         * modules/unistdio/u16-u16-asnprintf: New file.
65154         * modules/unistdio/u16-u16-asprintf: New file.
65155         * modules/unistdio/u16-u16-snprintf: New file.
65156         * modules/unistdio/u16-u16-sprintf: New file.
65157         * modules/unistdio/u16-u16-vasnprintf: New file.
65158         * modules/unistdio/u16-u16-vasprintf: New file.
65159         * modules/unistdio/u16-u16-vsnprintf: New file.
65160         * modules/unistdio/u16-u16-vsprintf: New file.
65161         * modules/unistdio/u32-asnprintf: New file.
65162         * modules/unistdio/u32-asprintf: New file.
65163         * modules/unistdio/u32-printf-parse: New file.
65164         * modules/unistdio/u32-snprintf: New file.
65165         * modules/unistdio/u32-sprintf: New file.
65166         * modules/unistdio/u32-vasnprintf: New file.
65167         * modules/unistdio/u32-vasprintf: New file.
65168         * modules/unistdio/u32-vsnprintf: New file.
65169         * modules/unistdio/u32-vsprintf: New file.
65170         * modules/unistdio/u32-u32-asnprintf: New file.
65171         * modules/unistdio/u32-u32-asprintf: New file.
65172         * modules/unistdio/u32-u32-snprintf: New file.
65173         * modules/unistdio/u32-u32-sprintf: New file.
65174         * modules/unistdio/u32-u32-vasnprintf: New file.
65175         * modules/unistdio/u32-u32-vasprintf: New file.
65176         * modules/unistdio/u32-u32-vsnprintf: New file.
65177         * modules/unistdio/u32-u32-vsprintf: New file.
65178         * modules/unistdio/ulc-asnprintf-tests: New file.
65179         * modules/unistdio/ulc-vasnprintf-tests: New file.
65180         * modules/unistdio/ulc-vasprintf-tests: New file.
65181         * modules/unistdio/ulc-vsnprintf-tests: New file.
65182         * modules/unistdio/ulc-vsprintf-tests: New file.
65183         * modules/unistdio/u8-asnprintf-tests: New file.
65184         * modules/unistdio/u8-vasnprintf-tests: New file.
65185         * modules/unistdio/u8-vasprintf-tests: New file.
65186         * modules/unistdio/u8-vsnprintf-tests: New file.
65187         * modules/unistdio/u8-vsprintf-tests: New file.
65188         * modules/unistdio/u16-asnprintf-tests: New file.
65189         * modules/unistdio/u16-vasnprintf-tests: New file.
65190         * modules/unistdio/u16-vasprintf-tests: New file.
65191         * modules/unistdio/u16-vsnprintf-tests: New file.
65192         * modules/unistdio/u16-vsprintf-tests: New file.
65193         * modules/unistdio/u32-asnprintf-tests: New file.
65194         * modules/unistdio/u32-vasnprintf-tests: New file.
65195         * modules/unistdio/u32-vasprintf-tests: New file.
65196         * modules/unistdio/u32-vsnprintf-tests: New file.
65197         * modules/unistdio/u32-vsprintf-tests: New file.
65198         * MODULES.html.sh (Unicode string functions): Add the new modules.
65199
65200 2007-07-01  Bruno Haible  <bruno@clisp.org>
65201
65202         * lib/sprintf.c (sprintf): Limit the available length estimation,
65203         to avoid address wraparound.
65204         * lib/vsprintf.c (vsprintf): Likewise.
65205         * modules/sprintf-posix (Dependencies): Add stdint.
65206         * modules/vsprintf-posix (Dependencies): Likewise.
65207
65208 2007-07-01  Bruno Haible  <bruno@clisp.org>
65209
65210         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65211         Windows PATH as well. Conservative double-quoting. Comments.
65212
65213 2007-07-01  Bruno Haible  <bruno@clisp.org>
65214             Eric Blake  <ebb9@byu.net>
65215             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65216
65217         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65218         empty components in $PATH, denoting '.'.
65219
65220 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65221
65222         * gnulib-tool: Fix indentation.
65223         (func_create_megatestdir): Likewise.
65224         Report by Bruno Haible.
65225
65226 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65227
65228         Sync from Automake.
65229         * build-aux/gnupload: Fix shell portability issues with for loops.
65230         Report by Karl Berry.
65231
65232 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65233
65234         * build-aux/maint.mk (POURL): Use translationproject.org.
65235
65236 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65237             Bruno Haible  <bruno@clisp.org>
65238
65239         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65240         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65241         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65242         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65243         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65244
65245 2007-06-27  Bruno Haible  <bruno@clisp.org>
65246
65247         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65248         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65249
65250 2007-06-26  Karl Berry  <karl@gnu.org>
65251
65252         * MODULES.html.sh: remove xreadlink-with-size.
65253
65254 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65257         method that I hope also handles the double-include problem noted
65258         by Bruno Haible in
65259         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65260
65261 2007-06-23  Bruno Haible  <bruno@clisp.org>
65262
65263         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65264         Don't let the 'mostlyclean' target fail if the last subdirectory could
65265         not be removed.
65266         Reported by Karl Berry.
65267
65268 2007-06-23  Bruno Haible  <bruno@clisp.org>
65269
65270         * gnulib-tool (echo): Add a speedier workaround for ksh.
65271         * tests/test-echo.sh: Likewise.
65272
65273 2007-06-23  Bruno Haible  <bruno@clisp.org>
65274
65275         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65276         * tests/test-echo.sh: Likewise.
65277
65278 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65279
65280         * gnulib-tool (IFS): Initialize early, so we don't set it to
65281         empty later.
65282         (self_abspathname): Rewrite algorithm to set it, reindent.
65283         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65284         (func_create_megatestdir): Merge some sed scripts.
65285
65286 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65287
65288         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65289         exposed by Sun Studio 11 cc on Solaris 8.
65290
65291 2007-06-22  Bruno Haible  <bruno@clisp.org>
65292
65293         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65294         backslashes.
65295         * tests/test-echo.sh: New file.
65296
65297 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65298
65299         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65300         simplify `sed_replace_build_aux' scripts, they are portable but
65301         echoing them with `echo' is not.
65302         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65303
65304 2007-06-21  Karl Berry  <karl@gnu.org>
65305
65306         * config/srclist.txt: guess we can't handle the licenses via
65307         srclist at the moment.
65308
65309 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65310
65311         * MODULES.html.sh: Add include_next.
65312         * modules/include_next: New file.
65313
65314 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65317         INCLUDE_NEXT.
65318         (gl_CHECK_NEXT_HEADERS): New macro.
65319         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65320         the obsolescent gl_ABSOLUTE_HEADER.
65321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65322         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65323         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65324         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65325         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65326         * m4/math_h.m4 (gl_MATH_H): Likewise.
65327         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65328         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65329         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65330         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65331         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65332         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65333         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65334         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65335         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65336         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65337         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65338         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65339         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65340         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65341         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65342         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65343         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65344         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65345         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65346         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65347         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65348         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65349         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65350         * lib/float_.h: Likewise.
65351         * lib/inttypes_.h: Likewise.
65352         * lib/math_.h: Likewise.
65353         * lib/search_.h: Likewise.
65354         * lib/signal_.h: Likewise.
65355         * lib/stdint_.h: Likewise.
65356         * lib/stdio_.h: Likewise.
65357         * lib/stdlib_.h: Likewise.
65358         * lib/string_.h: Likewise.
65359         * lib/sys_stat_.h: Likewise.
65360         * lib/sys_time_.h: Likewise.
65361         * lib/time_.h: Likewise.
65362         * lib/unistd_.h: Likewise.
65363         * lib/wchar_.h: Likewise.
65364         * lib/wctype_.h: Likewise.
65365         * lib/dirent_.h: Likewise.
65366         * lib/iconv_.h: Likewise.
65367         * lib/locale_.h: Likewise.
65368         * lib/netinet_in_.h: Likewise.
65369         * lib/sys_select_.h: Likewise.
65370         * lib/sys_socket_.h: Likewise.
65371         * lib/sysexits_.h: Likewise.
65372         * modules/fcntl (Depends-on): Depend on include_next, not
65373         absolute_header.
65374         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65375         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65376         * modules/fchdir: Likewise.
65377         * modules/float: Likewise.
65378         * modules/iconv_open: Likewise.
65379         * modules/inttypes: Likewise.
65380         * modules/locale: Likewise.
65381         * modules/math: Likewise.
65382         * modules/netinet_in: Likewise.
65383         * modules/search: Likewise.
65384         * modules/signal: Likewise.
65385         * modules/stdint: Likewise.
65386         * modules/stdio: Likewise.
65387         * modules/stdlib: Likewise.
65388         * modules/string: Likewise.
65389         * modules/sys_select: Likewise.
65390         * modules/sys_socket: Likewise.
65391         * modules/sys_stat: Likewise.
65392         * modules/sys_time: Likewise.
65393         * modules/sysexits: Likewise.
65394         * modules/time: Likewise.
65395         * modules/unistd: Likewise.
65396         * modules/wchar: Likewise.
65397         * modules/wctype: Likewise.
65398         * modules/sys_stat: Change maintainer to "all".
65399         * modules/unistd: Likewise.
65400
65401 2007-06-20  Karl Berry  <karl@gnu.org>
65402
65403         * config/srclist.txt: track www changes in license files.
65404
65405 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65406
65407         * build-aux/bootstrap: Remove stray dot.
65408         Make sure build_aux settings are honored when linking
65409         gnulib_extra_files.
65410
65411 2007-06-19  Eric Blake  <ebb9@byu.net>
65412
65413         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65414         Allow compilation on cygwin.
65415
65416 2007-06-19  Jim Meyering  <jim@meyering.net>
65417
65418         xreadlink-with-size: Remove module.  No longer used.
65419         Ex-callers now use xreadlink or mreadlink-with-size.
65420         * modules/xreadlink-with-size: Remove module.
65421         * lib/xreadlink-with-size.c: Remove file.
65422         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65423         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65424         just before the function definition *is* accurate.
65425
65426         Eliminate one way canonicalize_filename_mode could exit.
65427         * lib/canonicalize.c (canonicalize_filename_mode):
65428         Use mreadlink_with_size, not xreadlink_with_size.
65429
65430 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65431
65432         Detect porting problems to FreeBSD/arm, which has time_t wider than
65433         long int.  Original problem reported for GNU diff by Xin Li in
65434         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65435         * modules/getdate (Depends-on): Add intprops, verify.
65436         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65437         is an integer type no wider than long int.
65438
65439 2007-06-18  Jim Meyering  <jim@meyering.net>
65440
65441         New module: mreadlink-with-size.
65442         * MODULES.html.sh: Add mreadlink-with-size.
65443         * modules/mreadlink-with-size: New module
65444         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65445         not xreadlink-with-size.
65446         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65447
65448 2007-06-16  Bruno Haible  <bruno@clisp.org>
65449
65450         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65451         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65452         Reported by Gary V. Vaughan <gary@gnu.org>.
65453
65454 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         Revamp lchown so that it lives in unistd.h where it belongs.
65457         * lib/lchown.h: Remove.
65458         * lib/dirchownmod.c: Don't include lib/lchown.h.
65459         * lib/fchownat.c: Likewise.
65460         * lib/openat.c: Likewise.
65461         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65462         does not follow symlinks.
65463         (EOPNOTSUPP): Define if not defined.
65464         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65465         is defined to 0.
65466         (lchown): New decl.
65467         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65468         Do not check for lchown decl.
65469         Set REPLACE_LCHOWN.
65470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65471         REPLACE_LCHOWN.
65472         * modules/chown: Make it clear it follows symlinks.
65473         * modules/lchown: Make it clear it doesn't follow symlinks.
65474         (Files): Remove lib/lchown.h
65475         (Depends-on): Add unistd.
65476         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65477         (Include): Include <unistd.h>, not "lchown.h".
65478         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65479         REPLACE_LCHOWN.
65480
65481 2007-06-15  Jim Meyering  <jim@meyering.net>
65482
65483         Change license (GPL to LGPL) of fsusage and dependents.
65484         * modules/fsusage (License): Change to LGPL.
65485         * modules/full-read (License): Likewise.
65486         * modules/full-write (License): Likewise.
65487         * modules/safe-read (License): Likewise.
65488         * modules/safe-write (License): Likewise.
65489
65490 2007-06-14  Ben Pfaff  <blp@gnu.org>
65491
65492         Missing part of allocsa -> malloca transition.
65493         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65494         gl_MALLOCA.
65495
65496 2007-06-12  Bruno Haible  <bruno@clisp.org>
65497
65498         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65499         to ia64, x86_64, i386.
65500         Reported by Eric Blake.
65501
65502 2007-06-12  Bruno Haible  <bruno@clisp.org>
65503
65504         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65505         cross-compiling to x86_64.
65506
65507 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65508
65509         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65510         glitch reported by Ralf Wildenhues in
65511         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65512
65513         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65514         Vin Shelton.
65515
65516 2007-06-11  Bruno Haible  <bruno@clisp.org>
65517
65518         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65519         replacement string.
65520         Reported by Eric Blake.
65521
65522 2007-06-10  Bruno Haible  <bruno@clisp.org>
65523
65524         Prepare vasnprintf code for use with Unicode strings.
65525         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65526         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65527         TYPE_U32_STRING.
65528         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65529         a_u32_string variants.
65530         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65531         * lib/printf-args.c: Don't include config.h and the specification
65532         header if PRINTF_FETCHARGS is already defined.
65533         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65534         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65535         TYPE_U16_STRING, TYPE_U32_STRING.
65536         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65537         u16_directive, u16_directives, u32_directive, u32_directives): New
65538         types.
65539         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65540         New declarations.
65541         * lib/printf-parse.c: Don't include config.h and the specification
65542         header if PRINTF_PARSE is already defined. Eliminate the set of
65543         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65544         them now. Include c-ctype.h.
65545         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65546         directive and CHAR_T_ONLY_ASCII.
65547         * lib/vasnprintf.c: Don't include config.h and the specification header
65548         if VASNPRINTF is already defined.
65549         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65550         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65551         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65552         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65553         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65554         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65555         code accordingly.
65556         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65557         pad_ourselves also in this case, with the 'c' and 's' directives, and
65558         with a different notion of "width".
65559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65560
65561 2007-06-10  Bruno Haible  <bruno@clisp.org>
65562
65563         * modules/unistr/u32-mbsnlen: New file.
65564         * lib/unistr/u32-mbsnlen.c: New file.
65565
65566         * modules/unistr/u16-mbsnlen: New file.
65567         * lib/unistr/u16-mbsnlen.c: New file.
65568
65569         * modules/unistr/u8-mbsnlen: New file.
65570         * lib/unistr/u8-mbsnlen.c: New file.
65571
65572         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65573         declarations.
65574
65575 2007-06-10  Bruno Haible  <bruno@clisp.org>
65576
65577         * lib/string_.h (mbsnlen): New declaration.
65578         * lib/mbsnlen.c: New file.
65579         * m4/mbsnlen.m4: New file.
65580         * modules/mbsnlen: New file.
65581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65582         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65583         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65584
65585 2007-06-10  Bruno Haible  <bruno@clisp.org>
65586
65587         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65588
65589 2007-06-10  Bruno Haible  <bruno@clisp.org>
65590
65591         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65592         * lib/mbuiter.h: Likewise.
65593
65594 2007-06-10  Bruno Haible  <bruno@clisp.org>
65595
65596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65597         declaration.
65598
65599 2007-06-10  Karl Berry  <karl@gnu.org>
65600
65601         * config/srclist.txt: remove gettext entries, Bruno prefers
65602         to update individually.
65603
65604 2007-06-10  Bruno Haible  <bruno@clisp.org>
65605
65606         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65607         'maxlen'. Ensure only length + width bytes are allocated, not
65608         length + 1 + width.
65609
65610 2007-06-09  Bruno Haible  <bruno@clisp.org>
65611
65612         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65613         (CHAR_T): Remove macro.
65614         (VASNPRINTF): Update.
65615
65616 2007-06-09  Bruno Haible  <bruno@clisp.org>
65617
65618         * MODULES.html.sh (Unicode string functions): Add the new modules.
65619
65620         * modules/uniconv/u32-conv-to-enc: New file.
65621         * lib/uniconv/u32-conv-to-enc.c: New file.
65622         * modules/uniconv/u32-conv-to-enc-tests: New file.
65623         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65624
65625         * modules/uniconv/u16-conv-to-enc: New file.
65626         * lib/uniconv/u16-conv-to-enc.c: New file.
65627         * lib/uniconv/u-conv-to-enc.h: New file.
65628         * modules/uniconv/u16-conv-to-enc-tests: New file.
65629         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65630
65631         * modules/uniconv/u8-conv-to-enc: New file.
65632         * lib/uniconv/u8-conv-to-enc.c: New file.
65633         * modules/uniconv/u8-conv-to-enc-tests: New file.
65634         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65635
65636         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65637         u32_conv_to_encoding): New declarations.
65638
65639 2007-06-09  Bruno Haible  <bruno@clisp.org>
65640
65641         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65642
65643 2007-06-09  Bruno Haible  <bruno@clisp.org>
65644
65645         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65646         * modules/malloca: Renamed from modules/allocsa, updated.
65647         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65648         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65649         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65650         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65651         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65652         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65653         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65654         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65655         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65656         * modules/c-strcasestr (Depends-on): Update.
65657         * lib/c-strcasestr.c: Update.
65658         * modules/c-strstr (Depends-on): Update.
65659         * lib/c-strstr.c: Update.
65660         * modules/canonicalize-lgpl (Depends-on): Update.
65661         * lib/canonicalize-lgpl.c: Update.
65662         * modules/clean-temp (Depends-on): Update.
65663         * lib/clean-temp.c: Update.
65664         * modules/csharpcomp (Depends-on): Update.
65665         * lib/csharpcomp.c: Update.
65666         * modules/csharpexec (Depends-on): Update.
65667         * lib/csharpexec.c: Update.
65668         * modules/javacomp (Depends-on): Update.
65669         * lib/javacomp.c: Update.
65670         * modules/javaexec (Depends-on): Update.
65671         * lib/javaexec.c: Update.
65672         * modules/mbscasestr (Depends-on): Update.
65673         * lib/mbscasestr.c: Update.
65674         * modules/mbsstr (Depends-on): Update.
65675         * lib/mbsstr.c: Update.
65676         * modules/setenv (Depends-on): Update.
65677         * lib/setenv.c: Update.
65678         * modules/strcasestr (Depends-on): Update.
65679         * lib/strcasestr.c: Update.
65680         * modules/striconveha (Depends-on): Update.
65681         * lib/striconveha.c: Update.
65682         * modules/relocatable-prog-wrapper (Files): Update.
65683         * lib/relocwrapper.c: Update.
65684         * build-aux/install-reloc: Update.
65685         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65686
65687 2007-06-08  Bruno Haible  <bruno@clisp.org>
65688
65689         Port to uClibc.
65690         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65691         * lib/fpurge.c (fpurge): Likewise.
65692         * lib/freading.c (freading): Likewise.
65693         * lib/fseeko.c (rpl_fseeko): Likewise.
65694         * lib/fseterr.c (fseterr): Likewise.
65695         * lib/fwriting.c (fwriting): Likewise.
65696         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65697
65698 2007-06-08  Bruno Haible  <bruno@clisp.org>
65699
65700         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65701         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65702         * modules/gettext (Files): Add m4/intlmacosx.m4.
65703
65704 2007-06-07  Bruno Haible  <bruno@clisp.org>
65705
65706         * modules/localename-tests: New file.
65707         * tests/test-localename.c: New file.
65708
65709         New module 'localename'.
65710         * lib/localename.h: New file.
65711         * lib/localename.c: New file, from GNU gettext.
65712         * m4/localename.m4: New file.
65713         * modules/localename: New file.
65714
65715 2007-06-07  Bruno Haible  <bruno@clisp.org>
65716
65717         Work around the lack of <wchar.h> on some builds of uClibc.
65718         * doc/headers/wchar.texi: Update.
65719         * lib/wchar_.h: Include <wchar.h> only if it exists.
65720         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65721         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65722         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65723         doesn't exist.
65724         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65725         * modules/mbfile (Depends-on): Add wchar.
65726         * modules/mbiter (Depends-on): Likewise.
65727         * modules/mbuiter (Depends-on): Likewise.
65728         Reported by Simon Josefsson.
65729
65730 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65731
65732         Work around problem reported by Steven M. Schweda in
65733         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65734         Tru64 5.1B with the Compaq compiler environment installed declares
65735         an 'isblank' function but does not define it in the C library.
65736         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65737         * lib/regex_internal.h (isblank): Likewise.
65738         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65739         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65740
65741 2007-06-05  Bruno Haible  <bruno@clisp.org>
65742
65743         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65744         ia64.
65745         * modules/printf-safe: New file.
65746         * modules/fprintf-posix (Depends-on): Add printf-safe.
65747         * modules/printf-posix (Depends-on): Likewise.
65748         * modules/snprintf-posix (Depends-on): Likewise.
65749         * modules/sprintf-posix (Depends-on): Likewise.
65750         * modules/vasnprintf-posix (Depends-on): Likewise.
65751         * modules/vasprintf-posix (Depends-on): Likewise.
65752         * modules/vfprintf-posix (Depends-on): Likewise.
65753         * modules/vprintf-posix (Depends-on): Likewise.
65754         * modules/vsnprintf-posix (Depends-on): Likewise.
65755         * modules/vsprintf-posix (Depends-on): Likewise.
65756         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65757         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65758         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65759         "no" on i386, x86_64, ia64.
65760         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65761         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65762         on i386, x86_64, ia64.
65763         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65764         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65765         on i386, x86_64, ia64.
65766         * tests/test-vasnprintf-posix.c: Include float.h.
65767         (LDBL80_WORDS): New macro.
65768         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65769         on i386, x86_64, ia64.
65770         * tests/test-vasprintf-posix.c: Include float.h.
65771         (LDBL80_WORDS): New macro.
65772         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65773         on i386, x86_64, ia64.
65774         * tests/test-snprintf-posix.c: Include float.h.
65775         * tests/test-sprintf-posix.c: Likewise.
65776         * tests/test-vsnprintf-posix.c: Likewise.
65777         * tests/test-vsprintf-posix.c: Likewise.
65778
65779 2007-06-05  Bruno Haible  <bruno@clisp.org>
65780
65781         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65782         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65783         non-IEEE numbers on i386, x86_64, ia64.
65784         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65785         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65786         * tests/test-isnanl.h: Include float.h.
65787         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65788
65789 2007-06-05  Bruno Haible  <bruno@clisp.org>
65790
65791         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65792         also the %a / %A. Handle the %a / %A code before this extra handling.
65793
65794 2007-06-05  Bruno Haible  <bruno@clisp.org>
65795
65796         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65797         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65798
65799 2007-06-05  Bruno Haible  <bruno@clisp.org>
65800
65801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65802         typo in variable name.
65803
65804 2007-06-05  Eric Blake  <ebb9@byu.net>
65805
65806         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65807         Reported by Simon Josefsson.
65808
65809 2007-06-04  Bruno Haible  <bruno@clisp.org>
65810
65811         Avoid test failures on some PowerPC platforms.
65812         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65813         Define differently for PowerPC.
65814         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65815         Reported by Gary V. Vaughan <gary@gnu.org>.
65816
65817 2007-06-02  Bruno Haible  <bruno@clisp.org>
65818
65819         Fix test-stdint failure on FreeBSD/ia64.
65820         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65821         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65822         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65823         * doc/headers/stdint.texi: Update.
65824
65825 2007-06-01  Bruno Haible  <bruno@clisp.org>
65826
65827         * tests/test-binary-io.c (main): Pass a third argument to open().
65828         Reported by Gary V. Vaughan <gary@gnu.org>.
65829
65830 2007-06-01  Bruno Haible  <bruno@clisp.org>
65831
65832         * doc/functions/frexpl.texi: Update for mingw.
65833
65834 2007-06-01  Bruno Haible  <bruno@clisp.org>
65835
65836         * tests/test-lseek.c (main): Disable test of errno for invalid third
65837         argument.
65838         * doc/functions/lseek.texi: Update.
65839         Reported by Gary V. Vaughan <gary@gnu.org>.
65840
65841 2007-05-28  Bruno Haible  <bruno@clisp.org>
65842
65843         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65844
65845 2007-05-31  Eric Blake  <ebb9@byu.net>
65846
65847         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65848         cross compiling.
65849
65850 2007-05-30  Eric Blake  <ebb9@byu.net>
65851         and Bruno Haible  <bruno@clisp.org>
65852
65853         Work around mingw test failures exposed by m4-1.4.9b.
65854         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65855         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65856         moment.
65857
65858 2007-05-30  Bruno Haible  <bruno@clisp.org>
65859
65860         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65861         assuming that they are closed. Needed on HP-UX 11.
65862
65863 2007-05-29  Bruno Haible  <bruno@clisp.org>
65864
65865         Fix a problem with #include_next.
65866         * lib/dirent_.h: Split the double-inclusion guard.
65867         * lib/fcntl_.h: Likewise.
65868         * lib/float_.h: Likewise.
65869         * lib/iconv_.h: Likewise.
65870         * lib/inttypes_.h: Likewise.
65871         * lib/locale_.h: Likewise.
65872         * lib/math_.h: Likewise.
65873         * lib/netinet_in_.h: Likewise.
65874         * lib/search_.h: Likewise.
65875         * lib/signal_.h: Likewise.
65876         * lib/stdint_.h: Likewise.
65877         * lib/stdio_.h: Likewise.
65878         * lib/stdlib_.h: Likewise.
65879         * lib/string_.h: Likewise.
65880         * lib/sys_select_.h: Likewise.
65881         * lib/sys_socket_.h: Likewise.
65882         * lib/sys_stat_.h: Likewise.
65883         * lib/sys_time_.h: Likewise.
65884         * lib/sysexits_.h: Likewise.
65885         * lib/time_.h: Likewise.
65886         * lib/unistd_.h: Likewise.
65887         * lib/wchar_.h: Likewise.
65888         * lib/wctype_.h: Likewise.
65889
65890 2007-05-29  Bruno Haible  <bruno@clisp.org>
65891
65892         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65893         for the moment.
65894
65895 2007-05-29  Bruno Haible  <bruno@clisp.org>
65896
65897         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65898         invocation.
65899         Reported by Eric Blake.
65900
65901 2007-05-29  Bruno Haible  <bruno@clisp.org>
65902
65903         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65904         compiling case.
65905
65906 2007-05-29  Eric Blake  <ebb9@byu.net>
65907             Bruno Haible  <bruno@clisp.org>
65908
65909         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65910         cross compiles.
65911
65912 2007-05-28  Eric Blake  <ebb9@byu.net>
65913
65914         * modules/closein-tests (test_closein_LDADD): Support test on
65915         cygwin with libtool.
65916
65917 2007-05-28  Bruno Haible  <bruno@clisp.org>
65918
65919         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65920         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65921         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65922         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65923         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65924         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65925         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65926         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65927         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65928
65929 2007-05-28  Eric Blake  <ebb9@byu.net>
65930
65931         Unconditionally include <config.h> in unit tests.
65932         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65933         * tests/test-allocsa.c, tests/test-arcfour.c,
65934         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65935         tests/test-array_list.c, tests/test-array_oset.c,
65936         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65937         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65938         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65939         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65940         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65941         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65942         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65943         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65944         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65945         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65946         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65947         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65948         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65949         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65950         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65951         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65952         test-md5.c, test-memmem.c, test-printf-posix.c,
65953         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65954         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65955         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65956         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65957         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65958         test-vasnprintf-posix2.c, test-vasnprintf.c,
65959         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65960         test-vfprintf-posix.c, test-vprintf-posix.c,
65961         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65962         test-xvasprintf.c: Likewise.
65963
65964 2007-05-28  Bruno Haible  <bruno@clisp.org>
65965
65966         * gnulib-tool (func_import): Remember the --with-tests command-line
65967         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65968         Reported by Eric Blake.
65969
65970 2007-05-28  Bruno Haible  <bruno@clisp.org>
65971
65972         * modules/ftell-tests: New file.
65973         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65974         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65975
65976         * lib/ftell.c: New file.
65977         * modules/ftell: New file.
65978         * m4/ftell.m4: New file.
65979         * doc/functions/ftell.texi: Update.
65980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65981         REPLACE_FTELL.
65982         * lib/stdio_.h (rpl_ftell): New declaration.
65983         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65984         REPLACE_FTELL.
65985
65986 2007-05-28  Eric Blake  <ebb9@byu.net>
65987
65988         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65989
65990 2007-05-28  Bruno Haible  <bruno@clisp.org>
65991
65992         * modules/fseek-tests: New file.
65993         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65994         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65995
65996         * lib/fseek.c: New file.
65997         * modules/fseek: New file.
65998         * m4/fseek.m4: New file.
65999         * doc/functions/fseek.texi: Update.
66000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66001         REPLACE_FSEEK.
66002         * lib/stdio_.h (rpl_fseek): New declaration.
66003         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66004         REPLACE_FSEEK.
66005
66006 2007-05-28  Bruno Haible  <bruno@clisp.org>
66007
66008         * lib/stdio_.h (fflush): More comments.
66009
66010 2007-05-28  Bruno Haible  <bruno@clisp.org>
66011
66012         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66013         runtime test.
66014
66015 2007-05-28  Eric Blake  <ebb9@byu.net>
66016
66017         Improve lseek module.
66018         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66019         * lib/unistd_.h (lseek): Scale back link warning message.
66020         * tests/test-lseek.c: Beef up test.
66021         * tests/test-lseek.sh: Exercise more facets of lseek.
66022         Reported by Bruno Haible.
66023
66024 2007-05-28  Bruno Haible  <bruno@clisp.org>
66025
66026         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66027         to define.
66028
66029 2007-05-27  Bruno Haible  <bruno@clisp.org>
66030
66031         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66032
66033 2007-05-27  Bruno Haible  <bruno@clisp.org>
66034
66035         * modules/openmp: New file.
66036         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66037         Noah Misch.
66038
66039 2007-05-26  Bruno Haible  <bruno@clisp.org>
66040
66041         * modules/chdir-long (Depends-on): Add fchdir.
66042         * modules/chdir-safer (Depends-on): Likewise.
66043         * modules/fts (Depends-on): Likewise.
66044         * modules/fts-lgpl (Depends-on): Likewise.
66045         * modules/openat (Depends-on): Likewise.
66046         * modules/savewd (Depends-on): Likewise.
66047
66048 2007-05-24  Eric Blake  <ebb9@byu.net>
66049
66050         Fix lseek on mingw.
66051         * modules/lseek: New module.
66052         * m4/lseek.m4: New file.
66053         * lib/lseek.c: New file.
66054         * modules/lseek-tests: New file.
66055         * tests/test-lseek.c: New file.
66056         * tests/test-lseek.sh: New file.
66057         * MODULES.html.sh: Document lseek module.
66058         * modules/fflush (Depends-on): Add lseek, fseeko.
66059         * modules/fseeko (Depends-on): Likewise.
66060         * modules/ftello (Depends-on): Likewise.
66061         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66062         broken.
66063         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66064         broken.
66065         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66066         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66067         * lib/ftello.c (rpl_ftello): Likewise.
66068         * tests/test-fseeko.c (main): Test this.
66069         * tests/test-fseeko.sh: Likewise.
66070         * tests/test-ftello.c (main): Likewise.
66071         * tests/test-ftello.sh: Likewise.
66072         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66073         implies replacing fseek.
66074         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66075         HAVE_FTELLO.
66076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66077         * modules/unistd (Makefile.am): Likewise.
66078         * lib/unistd_.h (lseek): Declare a replacement.
66079         * doc/functions/lseek.texi (lseek): Document this fix.
66080         * doc/functions/fseek.texi (fseek): Likewise.
66081         * doc/functions/ftell.texi (ftell): Likewise.
66082
66083 2007-05-24  Bruno Haible  <bruno@clisp.org>
66084
66085         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66086         in the printed representation of a NaN.
66087         * tests/test-vasprintf-posix.c (test_function): Likewise.
66088         * tests/test-snprintf-posix.h (test_function): Likewise.
66089         * tests/test-sprintf-posix.h (test_function): Likewise.
66090         Reported by Eric Blake.
66091
66092 2007-05-23  Eric Blake  <ebb9@byu.net>
66093
66094         Fix fseeko/ftello on cygwin 1.5.24.
66095         * doc/functions/fseeko.texi (fseeko): Document the fix.
66096         * doc/functions/ftello.texi (ftello): Document the fix.
66097         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66098         * doc/functions/stdout.text (stdout): New file.
66099         * doc/functions/stderr.text (stderr): New file.
66100         * doc/gnulib.texi (Function Substitutes): Use new files.
66101         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66102         prior to 1.7.0.
66103         * tests/test-ftello.c (main): Likewise for ftello.
66104         * tests/test-fseeko.sh: New file.
66105         * tests/test-ftello.sh: New file.
66106         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66107         with seekable stdin.
66108         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66109         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66110         (gl_REPLACE_FSEEKO): New macro.
66111         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66112         * modules/fseeko (Files): Distribute fseeko.c.
66113         * modules/ftello (Files): Distribute ftello.c.
66114         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66115         mode.
66116         * lib/ftello.c (rpl_ftello): New file.
66117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66118         fseeko, ftello.
66119         (gl_STDIN_LARGE_OFFSET): New macro.
66120         * modules/stdio (Makefile.am): Perform the replacement.
66121         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66122
66123 2007-05-23  Bruno Haible  <bruno@clisp.org>
66124
66125         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66126         GNULIB_POSIXCHECK is defined.
66127
66128 2007-05-21  Bruno Haible  <bruno@clisp.org>
66129
66130         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66131         Check also the output for NaN arguments. When cross-compiling, guess
66132         no on IRIX.
66133         * lib/vasnprintf.c: Update comments.
66134         * tests/test-vasnprintf-posix.c (strisnan): New function.
66135         (test_function): Use it.
66136         * tests/test-vasprintf-posix.c (strisnan): New function.
66137         (test_function): Use it.
66138         * tests/test-snprintf-posix.h (strisnan): New function.
66139         (test_function): Use it.
66140         * tests/test-sprintf-posix.h (strisnan): New function.
66141         (test_function): Use it.
66142         Reported by Eric Blake.
66143
66144 2007-05-20  Bruno Haible  <bruno@clisp.org>
66145
66146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66147         numbers that fails on BeOS.
66148         * doc/functions/frexpl.texi: Update.
66149
66150 2007-05-20  Jim Meyering  <jim@meyering.net>
66151
66152         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66153         forced upon us by glibc-2.6.
66154
66155 2007-05-20  Bruno Haible  <bruno@clisp.org>
66156
66157         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66158         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66159         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66160         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66161         NEED_PRINTF_INFINITE.
66162         (is_infinitel): New function.
66163         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66164         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66165         gl_PREREQ_VASNPRINTF_INFINITE.
66166         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66167         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66168         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66169         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66170         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66171         gl_PREREQ_VASNPRINTF_INFINITE.
66172         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66173         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66179         * doc/functions/fprintf.texi: Update.
66180         * doc/functions/printf.texi: Update.
66181         * doc/functions/snprintf.texi: Update.
66182         * doc/functions/sprintf.texi: Update.
66183         * doc/functions/vfprintf.texi: Update.
66184         * doc/functions/vprintf.texi: Update.
66185         * doc/functions/vsnprintf.texi: Update.
66186         * doc/functions/vsprintf.texi: Update.
66187
66188 2007-05-20  Bruno Haible  <bruno@clisp.org>
66189
66190         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66191         was not found in libc.
66192         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66193
66194 2007-05-20  Bruno Haible  <bruno@clisp.org>
66195
66196         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66197         printed as "-nan" instead of "nan".
66198         * tests/test-vasprintf-posix.c (test_function): Likewise.
66199         * tests/test-snprintf-posix.h (test_function): Likewise.
66200         * tests/test-sprintf-posix.h (test_function): Likewise.
66201         Needed for HP-UX 11.
66202
66203 2007-05-20  Jim Meyering  <jim@meyering.net>
66204
66205         Fix buggy test for the fchownat-deref bug.
66206         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66207         symlink required for the run-test.  Without it, this test would
66208         always declare that fchownat doesn't work, and client code would
66209         unnecessarily use the replacement function with fixed libc.
66210         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66211         Reported by Greg Schafer.
66212
66213 2007-05-19  Bruno Haible  <bruno@clisp.org>
66214
66215         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66216         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66217         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66218         Needed for IRIX 6.5 and Solaris 2.5.1.
66219
66220 2007-05-19  Bruno Haible  <bruno@clisp.org>
66221
66222         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66223         (test_function): Skip tests involving -0.0 on platforms where
66224         -0.0 = 0.0.
66225         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66226         (test_function): Skip tests involving -0.0 on platforms where
66227         -0.0 = 0.0.
66228         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66229         (test_function): Skip tests involving -0.0 on platforms where
66230         -0.0 = 0.0.
66231         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66232         (test_function): Skip tests involving -0.0 on platforms where
66233         -0.0 = 0.0.
66234         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66235         tests.
66236         * tests/test-printf-posix.h (test_function): Likewise.
66237         * tests/test-printf-posix.output: Remove all -0.0 related results.
66238         Needed for IRIX 6.5.
66239
66240 2007-05-19  Bruno Haible  <bruno@clisp.org>
66241
66242         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66243         printed as "nan0x7fffffff" instead of "nan".
66244         * tests/test-vasprintf-posix.c (test_function): Likewise.
66245         * tests/test-snprintf-posix.h (test_function): Likewise.
66246         * tests/test-sprintf-posix.h (test_function): Likewise.
66247         * tests/test-fprintf-posix.h (NaN): Remove macro.
66248         (test_function): Remove all NaN related tests.
66249         * tests/test-printf-posix.h (NaN): Remove macro.
66250         (test_function): Remove all NaN related tests.
66251         * tests/test-printf-posix.output: Remove all NaN related results.
66252         Needed for IRIX 6.5.
66253
66254 2007-05-19  Bruno Haible  <bruno@clisp.org>
66255
66256         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66257         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66258
66259 2007-05-19  Bruno Haible  <bruno@clisp.org>
66260
66261         * lib/float_.h: New file.
66262         * m4/float_h.m4: New file.
66263         * modules/float: New file.
66264         * modules/isnanl (Dependencies): Add float.
66265         * modules/isnanl-nolibm (Dependencies): Likewise.
66266         * modules/mathl (Dependencies): Likewise.
66267         * modules/printf-frexpl (Dependencies): Likewise.
66268         * modules/signbit (Dependencies): Likewise.
66269         * modules/vasnprintf (Dependencies): Likewise.
66270         * doc/headers/float.texi: Update.
66271
66272 2007-05-19  Jim Meyering  <jim@meyering.net>
66273
66274         * lib/utimens.c (gl_futimens): Rename from futimens,
66275         now that glibc-2.6 declares futimens.
66276         * lib/utimens.h: Likewise.
66277
66278 2007-05-19  Bruno Haible  <bruno@clisp.org>
66279
66280         Avoid test failures on mingw.
66281         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66282         * tests/test-printf-posix.sh: Likewise.
66283         * tests/test-vfprintf-posix.sh: Likewise.
66284         * tests/test-vprintf-posix.sh: Likewise.
66285
66286 2007-05-19  Bruno Haible  <bruno@clisp.org>
66287
66288         Fix *printf result for NaN, Inf, -0.0 on mingw.
66289         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66290         * lib/vasnprintf.c: Include math.h and isnan.h.
66291         (is_infinite_or_zero): New function.
66292         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66293         values in the %f, %F, %e, %E, %g, %G directives.
66294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66295         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66296         gl_PRINTF_INFINITE and test its result. Invoke
66297         gl_PREREQ_VASNPRINTF_INFINITE.
66298         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66299         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66304         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66305         * doc/functions/fprintf.texi: Update.
66306         * doc/functions/printf.texi: Update.
66307         * doc/functions/snprintf.texi: Update.
66308         * doc/functions/sprintf.texi: Update.
66309         * doc/functions/vfprintf.texi: Update.
66310         * doc/functions/vprintf.texi: Update.
66311         * doc/functions/vsnprintf.texi: Update.
66312         * doc/functions/vsprintf.texi: Update.
66313
66314 2007-05-19  Bruno Haible  <bruno@clisp.org>
66315
66316         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66317         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66318         Instead of multiplying with 10^k, set extra_zeroes to k.
66319         (scale10_round_long_double): Remove function.
66320
66321 2007-05-18  Bruno Haible  <bruno@clisp.org>
66322
66323         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66324         introduced on 2007-05-06.
66325
66326 2007-05-18  Bruno Haible  <bruno@clisp.org>
66327
66328         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66329         %g directives.
66330         * tests/test-vasprintf-posix.c (test_function): Likewise.
66331         * tests/test-snprintf-posix.h (test_function): Likewise.
66332         * tests/test-sprintf-posix.h (test_function): Likewise.
66333
66334 2007-05-18  Bruno Haible  <bruno@clisp.org>
66335
66336         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66337         (strmatch): New function.
66338         (test_function): Test the %f directive on numbers of various exponents.
66339         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66340         (strmatch): New function.
66341         (test_function): Test the %f directive on numbers of various exponents.
66342         * tests/test-snprintf-posix.h (strmatch): New function.
66343         (test_function): Test the %f directive on numbers of various exponents.
66344         * tests/test-sprintf-posix.h (strmatch): New function.
66345         (test_function): Test the %f directive on numbers of various exponents.
66346         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66347         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66348         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66349         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66350
66351 2007-05-18  Bruno Haible  <bruno@clisp.org>
66352
66353         Add support for 'long double' number output.
66354         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66355         * lib/vasnprintf.c: Include math.h and float+.h.
66356         (mp_limb_t): New type.
66357         (GMP_LIMB_BITS): New macro.
66358         (mp_twolimb_t): New type.
66359         (GMP_TWOLIMB_BITS): New macro.
66360         (mpn_t): New type.
66361         (multiply, divide, convert_to_decimal, decode_long_double,
66362         scale10_round_long_double, scale10_round_decimal_long_double,
66363         floorlog10l): New functions.
66364         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66365         for the %f, %F, %e, %E, %g, %G directives.
66366         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66367         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66368         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66369         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66371         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66374         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66377         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66378         * modules/snprintf-posix (Depends-on): Likewise.
66379         * modules/sprintf-posix (Depends-on): Likewise.
66380         * modules/vasnprintf-posix (Depends-on): Likewise.
66381         * modules/vasprintf-posix (Depends-on): Likewise.
66382         * modules/vfprintf-posix (Depends-on): Likewise.
66383         * modules/vsnprintf-posix (Depends-on): Likewise.
66384         * modules/vsprintf-posix (Depends-on): Likewise.
66385         * modules/vasnprintf (Files): Add lib/float+.h.
66386         * doc/functions/fprintf.texi: Update.
66387         * doc/functions/printf.texi: Update.
66388         * doc/functions/snprintf.texi: Update.
66389         * doc/functions/sprintf.texi: Update.
66390         * doc/functions/vfprintf.texi: Update.
66391         * doc/functions/vprintf.texi: Update.
66392         * doc/functions/vsnprintf.texi: Update.
66393         * doc/functions/vsprintf.texi: Update.
66394
66395 2007-05-18  Bruno Haible  <bruno@clisp.org>
66396
66397         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66398
66399 2007-05-18  Bruno Haible  <bruno@clisp.org>
66400
66401         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66402         for printing 64-bit integers. Needed for mingw.
66403
66404 2007-05-18  Bruno Haible  <bruno@clisp.org>
66405
66406         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66407         gl_FUNC_FREXPL_WORKS.
66408         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66409
66410 2007-05-18  Bruno Haible  <bruno@clisp.org>
66411
66412         * modules/frexpl-nolibm-tests: New file.
66413
66414         * modules/frexpl-nolibm: New file.
66415         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66416
66417 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66418
66419         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66420         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66421         GCC 4.2, which otherwise issues a lot of warnings.
66422         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66423         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66424         Likewise.
66425         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66426         * modules/iconv_open (iconv.h): Likewise.
66427         * modules/locale (locale.h): Likewise.
66428         * modules/netinet_in (netinet/in.h): Likewise.
66429         * modules/sys_select (sys_select.h): Likewise.
66430         * modules/sys_socket (sys/socket.h): Likewise.
66431         * modules/sys_stat (sys/stat.h): Likewise.
66432         * modules/sysexits (sysexits.h): Likewise.
66433         * modules/unistd (unistd.h): Likewise.
66434
66435 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66436
66437         * modules/closein-tests (Makefile.am): Distribute
66438         `test-closein.sh'.
66439
66440 2007-05-17  Bruno Haible  <bruno@clisp.org>
66441
66442         * tests/test-printf-posix.output: Renamed from
66443         tests/test-fprintf-posix.out.
66444         * modules/fprintf-posix-tests: Update.
66445         * modules/printf-posix-tests: Update.
66446         * modules/vfprintf-posix-tests: Update.
66447         * modules/vprintf-posix-tests: Update.
66448         * tests/test-fprintf-posix.sh: Update.
66449         * tests/test-printf-posix.sh: Update.
66450         * tests/test-vfprintf-posix.sh: Update.
66451         * tests/test-vprintf-posix.sh: Update.
66452         Reported by Ralf Wildenhues.
66453
66454 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66455
66456         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66457         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66458         GCC 4.2, which otherwise issues a lot of warnings.
66459         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66460         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66461         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66462         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66463         it should no longer be needed.
66464         * lib/string_.h: Likewise.
66465         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66466         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66467         * modules/inttypes (inttypes.h): Likewise.
66468         * modules/math (math.h): Likewise.
66469         * modules/search (search.h): Likewise.
66470         * modules/signal (signal.h): Likewise.
66471         * modules/stdint (stdint.h): Likewise.
66472         * modules/stdio (stdio.h): Likewise.
66473         * modules/stdlib (stdlib.h): Likewise.
66474         * modules/string (string.h): Likewise.
66475         * modules/sys_time (sys/time.h): Likewise.
66476         * modules/time (time.h): Likewise.
66477         * modules/wchar (wchar.h): Likewise.
66478         * modules/wctype (wtype.h): Likewise.
66479
66480 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66481
66482         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66483
66484 2007-05-13  Bruno Haible  <bruno@clisp.org>
66485
66486         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66487         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66488         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66489         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66490         (gl_PREREQ_STRTOK_R): Don't require it here.
66491
66492 2007-05-13  Bruno Haible  <bruno@clisp.org>
66493
66494         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66495         when used in C++ mode.
66496
66497 2007-05-12  Bruno Haible  <bruno@clisp.org>
66498
66499         * lib/linebuffer.h: Tweak doc.
66500         * lib/linebuffer.c: Likewise.
66501
66502 2007-05-12  James Youngman  <jay@gnu.org>
66503
66504         * lib/linebuffer.c (readlinebuffer_delim): New function,
66505         like readlinebuffer, but use a caller-specified delimiter.
66506         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66507         as the delimiter.
66508         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66509
66510 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66511
66512         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66513         * modules/openat (Files): Remove openat-die.c.
66514         (Depends-on): Add openat-die.
66515         * modules/openat-die: New module.
66516
66517 2007-05-06  Bruno Haible  <bruno@clisp.org>
66518
66519         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66520         Update with info about Cygwin.
66521         * doc/functions/fprintf.texi: Update.
66522         * doc/functions/printf.texi: Update.
66523         * doc/functions/snprintf.texi: Update.
66524         * doc/functions/sprintf.texi: Update.
66525         * doc/functions/vfprintf.texi: Update.
66526         * doc/functions/vprintf.texi: Update.
66527         * doc/functions/vsnprintf.texi: Update.
66528         * doc/functions/vsprintf.texi: Update.
66529         Reported by Eric Blake.
66530
66531 2007-05-06  Bruno Haible  <bruno@clisp.org>
66532
66533         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66534         padding ourselves for the floating-point directives.
66535         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66537         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66538         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66539         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66540         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66541         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66542         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66543         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66545         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66547         * tests/test-snprintf-posix.h (test_function): Also check the width
66548         and some flags in the %f directive.
66549         * tests/test-sprintf-posix.h (test_function): Likewise.
66550         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66551         * tests/test-vasprintf-posix.c (test_function): Likewise.
66552         * doc/functions/fprintf.texi: Update.
66553         * doc/functions/printf.texi: Update.
66554         * doc/functions/snprintf.texi: Update.
66555         * doc/functions/sprintf.texi: Update.
66556         * doc/functions/vfprintf.texi: Update.
66557         * doc/functions/vprintf.texi: Update.
66558         * doc/functions/vsnprintf.texi: Update.
66559         * doc/functions/vsprintf.texi: Update.
66560
66561 2007-05-06  Bruno Haible  <bruno@clisp.org>
66562
66563         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66564         pass the ' flag character to sprintf or snprintf.
66565         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66568         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66569         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66574         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66577         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66578         flag.
66579         * tests/test-sprintf-posix.h (test_function): Likewise.
66580         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66581         * tests/test-vasprintf-posix.c (test_function): Likewise.
66582         * doc/functions/fprintf.texi: Update.
66583         * doc/functions/printf.texi: Update.
66584         * doc/functions/snprintf.texi: Update.
66585         * doc/functions/sprintf.texi: Update.
66586         * doc/functions/vfprintf.texi: Update.
66587         * doc/functions/vprintf.texi: Update.
66588         * doc/functions/vsnprintf.texi: Update.
66589         * doc/functions/vsprintf.texi: Update.
66590
66591 2007-05-01  Bruno Haible  <bruno@clisp.org>
66592
66593         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66594
66595 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66596
66597         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66598         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66599
66600 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66601
66602         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66603         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66604         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66605
66606 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66607
66608         * lib/argp-help.c (struct hol_entry): New member `ord'.
66609         (HOL_ENTRY_PTRCMP): Use ord for comparison
66610         (hol_sort): Initialize ord.
66611
66612 2007-05-01  Bruno Haible  <bruno@clisp.org>
66613
66614         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66615         Reported by Eric Blake.
66616         * doc/gnulib.texi (Function Substitutes): Update.
66617
66618 2007-05-01  Bruno Haible  <bruno@clisp.org>
66619
66620         * doc/functions.texi: Remove file, now redundant through
66621         doc/functions/*.texi.
66622
66623 2007-05-01  Bruno Haible  <bruno@clisp.org>
66624
66625         * modules/argp (Depends-on): Add sleep.
66626
66627 2007-05-01  Bruno Haible  <bruno@clisp.org>
66628
66629         * modules/sleep-tests: New file.
66630         * tests/test-sleep.c: New file.
66631
66632         * modules/sleep: New file.
66633         * lib/sleep.c: New file.
66634         * m4/sleep.m4: New file.
66635         * lib/unistd_.h (sleep): New declaration.
66636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66637         HAVE_SLEEP.
66638         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66639         * doc/functions/sleep.texi: Document the sleep module.
66640
66641 2007-05-01  Bruno Haible  <bruno@clisp.org>
66642
66643         * lib/sigprocmask.h: Remove file.
66644         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66645         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66646         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66647         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66648         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66649         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66650         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66651         HAVE_SIGSET_T as a shell variable.
66652         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66653         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66654         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66655         (Depends-on): Add signal. Remove verify.
66656         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66657         (Include): Mention <signal.h> instead of sigprocmask.h.
66658         * NEWS: Mention the change.
66659         * lib/fatal-signal.c: Don't include sigprocmask.h.
66660
66661 2007-05-01  Bruno Haible  <bruno@clisp.org>
66662
66663         * modules/signal: New file.
66664         * lib/signal_.h: New file.
66665         * m4/signal_h.m4: New file.
66666
66667 2007-05-01  Bruno Haible  <bruno@clisp.org>
66668
66669         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66670         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66671         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66672         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66673
66674 2007-05-01  Bruno Haible  <bruno@clisp.org>
66675
66676         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66677         configure time.
66678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66679         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66680         * modules/sys_stat (Makefile.am): Substitute their values into
66681         sys/stat.h.
66682
66683 2007-05-01  Bruno Haible  <bruno@clisp.org>
66684
66685         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66686         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66687         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66688
66689 2007-05-01  Bruno Haible  <bruno@clisp.org>
66690
66691         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66692         'assert' module here.
66693
66694 2007-05-01  Bruno Haible  <bruno@clisp.org>
66695
66696         * doc/functions/*.texi: New files.
66697         * doc/functions/google-ranking.txt: New file.
66698         * doc/gnulib.texi (Function Substitutes): New chapter.
66699         (ctime, inet_ntoa): Remove sections.
66700         * doc/ctime.texi: Remove file.
66701         * doc/inet_ntoa.texi: Remove file.
66702         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66703         dependencies.
66704         (%.info): New rule, specifying a --reference-limit.
66705
66706 2007-05-01  Bruno Haible  <bruno@clisp.org>
66707
66708         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66709
66710 2007-05-01  Bruno Haible  <bruno@clisp.org>
66711
66712         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66713         the portability of 'mkdir' to mingw systems.
66714
66715 2007-05-01  Bruno Haible  <bruno@clisp.org>
66716
66717         * doc/headers/google-ranking.txt: New file.
66718
66719 2007-04-30  Eric Blake  <ebb9@byu.net>
66720
66721         Prefer fseeko to fseek.
66722         * modules/getpass (Depends-on): Add fseeko.
66723         * lib/getpass.c (getpass): Use fseeko, not fseek.
66724
66725 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66726
66727         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66728         assumes the sorting is stable, while most qsort implementations
66729         are not.  Use argument addresses to ensure they never compare as
66730         equal.
66731
66732         * tests/test-argp-2.sh (usage-indent test): Fix output
66733         (func_compare): Restore diff options
66734         * tests/test-argp.c: Restore #include "progname.h"
66735
66736 2007-04-29  Bruno Haible  <bruno@clisp.org>
66737
66738         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66740         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66742         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66743         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66744         (TESTS, check_PROGRAMS): Add test-snprintf.
66745         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66746         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66747         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66748         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66749         assertions that fail on HP-UX, OSF/1, or IRIX.
66750         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66751
66752 2007-04-29  Bruno Haible  <bruno@clisp.org>
66753
66754         * MODULES.html.sh (posix_functions): Remove 'contents'.
66755
66756 2007-04-29  Karl Berry  <karl@gnu.org>
66757
66758         * config/srclist.txt (gendocs_template_min): new entry.
66759
66760 2007-04-29  Bruno Haible  <bruno@clisp.org>
66761
66762         Work around fpurge bug on BSD systems.
66763         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66764         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66765         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66766         fpurge to rpl_fpurge if the system already has this function.
66767         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66768         the case where the system already has this function. Correct invariants
66769         on BSD systems.
66770         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66771         BSD systems.
66772
66773 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66774
66775         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66776         proposed by Sven Verdoolaege.
66777
66778         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66779         options.
66780         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66781         (usage and help tests): Update
66782
66783 2007-04-29  Bruno Haible  <bruno@clisp.org>
66784
66785         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66786         Print more information in case of failure. Disable a test on BeOS.
66787
66788 2007-04-29  Bruno Haible  <bruno@clisp.org>
66789
66790         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66791         This helps debugging on systems on which no gdb is available.
66792
66793 2007-04-29  Bruno Haible  <bruno@clisp.org>
66794
66795         * lib/freading.h: Improve comments.
66796         * lib/fwriting.h: Likewise.
66797         * tests/test-freading.c (main): Don't check freading immediately after
66798         repositioning. Needed for glibc.
66799
66800 2007-04-29  Bruno Haible  <bruno@clisp.org>
66801
66802         * lib/freading.c (freading): Trivial simplification.
66803
66804 2007-04-28  Bruno Haible  <bruno@clisp.org>
66805
66806         * tests/test-fwriting.c (main): Also test the interaction between
66807         fflush and fwriting.
66808         * modules/fwriting-tests (Depends-on): Add fflush.
66809
66810         * tests/test-freading.c (main): Also test the interaction between
66811         fflush and freading.
66812         * modules/freading-tests (Depends-on): Add fflush.
66813
66814 2007-04-28  Bruno Haible  <bruno@clisp.org>
66815
66816         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66817         fseeko and ftello.
66818         Suggested by Eric Blake.
66819
66820 2007-04-28  Jim Meyering  <jim@meyering.net>
66821
66822         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66823         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66824         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66825
66826 2007-04-27  Eric Blake  <ebb9@byu.net>
66827
66828         * doc/headers/assert.texi (assert.h): Document assert module use.
66829
66830 2007-04-27  Bruno Haible  <bruno@clisp.org>
66831
66832         * doc/headers/*.texi: New files.
66833         * doc/gnulib.texi (Header File Substitutes): New chapter.
66834         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66835         dependencies.
66836         (standards.info ,standards.html, standards.dvi): Update dependencies.
66837         (mostlyclean, clean): New targets.
66838
66839 2007-04-27  Bruno Haible  <bruno@clisp.org>
66840
66841         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66842         * modules/sysexits (Files, Makefile.am): Update.
66843
66844         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66845         * modules/sys_socket (Files, Makefile.am): Update.
66846
66847         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66848         * modules/sys_stat (Files, Makefile.am): Update.
66849
66850 2007-04-27  Eric Blake  <ebb9@byu.net>
66851
66852         * lib/freading.h: Improve comments.
66853         * lib/fwriting.h: Likewise.
66854         * lib/fflush.c: Likewise.
66855
66856         Fix closein for mingw.
66857         * modules/closein-tests: Add tests for closein.
66858         * tests/test-closein.c: New file.
66859         * tests/test-closein.sh: Likewise.
66860         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66861         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66862
66863 2007-04-27  Bruno Haible  <bruno@clisp.org>
66864
66865         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66866         version is < 6.
66867         * lib/math_.h [__DECC]: Likewise.
66868         * lib/stdio_.h [__DECC]: Likewise.
66869         * lib/stdlib_.h [__DECC]: Likewise.
66870         * lib/string_.h [__DECC]: Likewise.
66871         * lib/time_.h [__DECC]: Likewise.
66872         * lib/wchar_.h [__DECC]: Likewise.
66873         * lib/wctype_.h [__DECC]: Likewise.
66874
66875 2007-04-27  Bruno Haible  <bruno@clisp.org>
66876
66877         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66878
66879 2007-04-27  Bruno Haible  <bruno@clisp.org>
66880
66881         * lib/fflush.c: Add comments.
66882         * modules/fpurge-tests (Depends-on): Add fflush.
66883         * modules/freadable-tests (Depends-on): Likewise.
66884         * modules/fwritable-tests (Depends-on): Likewise.
66885
66886 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66887
66888         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66889         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66890         Report by Bruno Haible <bruno@clisp.org>.
66891
66892 2007-04-26  Eric Blake  <ebb9@byu.net>
66893
66894         Fix fflush on mingw.
66895         * modules/fflush (Depends-on): Add freading.
66896         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66897         but unread data.
66898
66899 2007-04-26  Eric Blake  <ebb9@byu.net>
66900         and Bruno Haible  <bruno@clisp.org>
66901
66902         Implement freading and fwriting.
66903         * lib/freading.c: New file.
66904         * lib/freading.h: Likewise.
66905         * m4/freading.m4: Likewise.
66906         * modules/freading: Likewise.
66907         * modules/freading-tests: Likewise.
66908         * tests/test-freading.c: Likewise.
66909         * lib/fwriting.c: New file.
66910         * lib/fwriting.h: Likewise.
66911         * m4/fwriting.m4: Likewise.
66912         * modules/fwriting: Likewise.
66913         * modules/fwriting-tests: Likewise.
66914         * tests/test-fwriting.c: Likewise.
66915         * MODULES.html.sh (File stream based Input/Output): Mention them.
66916
66917 2007-04-26  Bruno Haible  <bruno@clisp.org>
66918
66919         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66920         'long' when we assume it.
66921         Suggested by Eric Blake.
66922
66923 2007-04-26  Bruno Haible  <bruno@clisp.org>
66924
66925         Ensure fseeko, ftello are declared on glibc systems.
66926         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66927         * modules/fseeko (configure.ac-early): Likewise.
66928         * modules/ftello (configure.ac-early): Likewise.
66929         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66930         AC_FUNC_FSEEKO for this.
66931         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66932         (gl_CHECK_FSEEKO): Remove macro.
66933
66934 2007-04-26  Bruno Haible  <bruno@clisp.org>
66935
66936         * tests/test-fflush.c (main): Also check the ftell result after
66937         fflush and fseek/fseeko.
66938         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66939         file descriptor position cache in the stream.
66940         * lib/fseeko.c (rpl_fseeko): Likewise.
66941
66942 2007-04-26  Bruno Haible  <bruno@clisp.org>
66943
66944         * modules/fflush-tests (Depends-on): Add fseeko.
66945
66946 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66947             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66948
66949         * lib/argz_.h: ensure error_t definition is obtained in same
66950         mechanism system argz.h would have.
66951         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66952         argz facilities are known bad.  Err on the side of caution if
66953         cross-compiling.
66954
66955 2007-04-25  Eric Blake  <ebb9@byu.net>
66956
66957         * lib/fpurge.c (includes): Use stdlib.h for free.
66958         * tests/test-fflush.c (main): Also test fflush-fseeko.
66959
66960 2007-04-25  Bruno Haible  <bruno@clisp.org>
66961
66962         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66963         * lib/fseeko.c: New file.
66964         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66965         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66966         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66967         gl_FUNC_FSEEKO.
66968         (gl_FUNC_FSEEKO): Invoke it.
66969         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66970         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66971         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66972
66973 2007-04-25  Bruno Haible  <bruno@clisp.org>
66974
66975         * modules/fflush (Depends-on): Add ftello.
66976
66977 2007-04-25  Bruno Haible  <bruno@clisp.org>
66978
66979         * modules/ftello-tests: New file.
66980         * tests/test-ftello.c: New file.
66981
66982         * modules/ftello: New file.
66983         * m4/ftello.m4: New file.
66984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66985         HAVE_FTELLO.
66986         * lib/stdio_.h (ftello): New declaration.
66987         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66988         HAVE_FTELLO.
66989
66990 2007-04-25  Bruno Haible  <bruno@clisp.org>
66991
66992         * modules/fseeko-tests: New file.
66993         * tests/test-fseeko.c: New file.
66994
66995         * modules/fseeko: New file.
66996         * m4/fseeko.m4: New file.
66997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66998         HAVE_FSEEKO.
66999         * lib/stdio_.h (fseeko): New declaration.
67000         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67001         HAVE_FSEEKO.
67002
67003 2007-04-25  Bruno Haible  <bruno@clisp.org>
67004
67005         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67006
67007 2007-04-25  Bruno Haible  <bruno@clisp.org>
67008
67009         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67010         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67011         * tests/test-unistd.c: Likewise.
67012         * tests/test-fcntl.c: Likewise.
67013
67014 2007-04-23  Eric Blake  <ebb9@byu.net>
67015
67016         * lib/fflush.c: Fix missing include.
67017         Reported by Bruno Haible.
67018
67019 2007-04-23  Bruno Haible  <bruno@clisp.org>
67020
67021         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67022         Reported by Eric Blake.
67023
67024 2007-04-23  Bruno Haible  <bruno@clisp.org>
67025
67026         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67027
67028 2007-04-23  Bruno Haible  <bruno@clisp.org>
67029
67030         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67031
67032 2007-04-23  Bruno Haible  <bruno@clisp.org>
67033
67034         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67035         Needed on HP-UX 11.
67036
67037 2007-04-16  Eric Blake  <ebb9@byu.net>
67038
67039         Make fflush rely on fpurge.
67040         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67041         open coding all variants.
67042         * modules/fflush (Depends-on): Add fpurge and unistd.
67043         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67044         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67045
67046         Fix --with-tests compilation on cygwin.
67047         * modules/argmatch-tests (Makefile.am): List gnulib library first
67048         in LDADD.
67049         * modules/argp-tests (Makefile.am): Likewise.
67050         * modules/array-list-tests (Makefile.am): Likewise.
67051         * modules/array-oset-tests (Makefile.am): Likewise.
67052         * modules/avltree-list-tests (Makefile.am): Likewise.
67053         * modules/avltree-oset-tests (Makefile.am): Likewise.
67054         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67055         * modules/carray-list-tests (Makefile.am): Likewise.
67056         * modules/dirname-tests (Makefile.am): Likewise.
67057         * modules/frexp-tests (Makefile.am): Likewise.
67058         * modules/isnanl-tests (Makefile.am): Likewise.
67059         * modules/linked-list-tests (Makefile.am): Likewise.
67060         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67061         * modules/lock-tests (Makefile.am): Likewise.
67062         * modules/rbtree-list-tests (Makefile.am): Likewise.
67063         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67064         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67065         * modules/tls-tests (Makefile.am): Likewise.
67066         * modules/tsearch-tests (Makefile.am): Likewise.
67067         * modules/xvasprintf-tests (Makefile.am): Likewise.
67068
67069         Fix fpurge for cygwin.
67070         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67071         value.
67072         * modules/fpurge-tests (Depends-on): Clean up trash.
67073
67074 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67075
67076         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67077
67078         * m4/autobuild.m4: Re-indent.
67079
67080 2007-04-13  Bruno Haible  <bruno@clisp.org>
67081
67082         * modules/fpurge-tests: New file.
67083         * tests/test-fpurge.c: New file.
67084
67085         * modules/fpurge: New file.
67086         * lib/fpurge.h: New file.
67087         * lib/fpurge.c: New file.
67088         * m4/fpurge.m4: New file.
67089
67090 2007-04-13  Bruno Haible  <bruno@clisp.org>
67091
67092         * modules/fbufmode-tests: New file.
67093         * tests/test-fbufmode.c: New file.
67094
67095         * modules/fbufmode: New file.
67096         * lib/fbufmode.h: New file.
67097         * lib/fbufmode.c: New file.
67098         * m4/fbufmode.m4: New file.
67099
67100 2007-04-13  Bruno Haible  <bruno@clisp.org>
67101
67102         * modules/fwritable-tests: New file.
67103         * tests/test-fwritable.c: New file.
67104
67105         * modules/fwritable: New file.
67106         * lib/fwritable.h: New file.
67107         * lib/fwritable.c: New file.
67108         * m4/fwritable.m4: New file.
67109
67110 2007-04-13  Bruno Haible  <bruno@clisp.org>
67111
67112         * modules/freadable-tests: New file.
67113         * tests/test-freadable.c: New file.
67114
67115         * modules/freadable: New file.
67116         * lib/freadable.h: New file.
67117         * lib/freadable.c: New file.
67118         * m4/freadable.m4: New file.
67119
67120 2007-04-13  Bruno Haible  <bruno@clisp.org>
67121
67122         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67123         MOSTLYCLEANFILES.
67124
67125 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67126
67127         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67128         gzip bootstrap.conf to avoid dragging in i18n machinery.
67129         (gnulib_tool_option): Use it.
67130
67131 2007-04-13  Bruno Haible  <bruno@clisp.org>
67132
67133         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67134         %F directives.
67135         * tests/test-vasprintf-posix.c (test_function): Likewise.
67136         * tests/test-snprintf-posix.h (test_function): Likewise.
67137         * tests/test-sprintf-posix.h (test_function): Likewise.
67138         * tests/test-fprintf-posix.h (test_function): Likewise.
67139         * tests/test-printf-posix.h (test_function): Likewise.
67140         * tests/test-fprintf-posix.out: Likewise.
67141
67142 2007-04-13  Bruno Haible  <bruno@clisp.org>
67143
67144         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67145         * modules/tls-tests (configure.ac): Likewise.
67146         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67147
67148 2007-04-13  Bruno Haible  <bruno@clisp.org>
67149
67150         * lib/tls.c (glthread_tls_get): Fix return type.
67151         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67152
67153 2007-04-12  Eric Blake  <ebb9@byu.net>
67154
67155         * modules/gettime (Depends-on): Remove gettime.
67156         Reported by Dmitry V. Levin.
67157
67158 2007-04-12  Bruno Haible  <bruno@clisp.org>
67159
67160         * modules/fflush (Include): Mention <stdio.h>.
67161         * modules/strtoimax (Include): Mention <inttypes.h>.
67162         * modules/strtoumax (Include): Likewise.
67163
67164 2007-04-12  Eric Blake  <ebb9@byu.net>
67165
67166         * .cvsignore: New file.
67167         * .gitignore: Likewise.
67168
67169 2007-04-12  Bruno Haible  <bruno@clisp.org>
67170
67171         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67172         not before, since $(LDADD) often contains libgnu.a.
67173         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67174         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67175         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67176         Needed on Cygwin.
67177
67178 2007-04-12  Eric Blake  <ebb9@byu.net>
67179
67180         Work around glibc's failure to flush stdin on fclose.
67181         * lib/closein.c (close_stdin): Flush stdin before closing.
67182
67183         Work around glibc's failure to reset seekable stdin on exit.
67184         * modules/closein: New module.
67185         * lib/closein.c: New file.
67186         * lib/closein.h: Likewise.
67187         * m4/closein.m4: Likewise.
67188         * MODULES.html.sh (File stream based Input/Output): Document it.
67189
67190 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67191
67192         * gnulib-tool: Rename generated 'autobuild' script to
67193         'do-autobuild' in --create-megatestdir output.
67194
67195         * doc/gnulib.texi (Build robot for gnulib): Fix.
67196
67197 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67198
67199         * modules/sysexits (Depends-on): Add absolute-header.
67200
67201 2007-04-12  Eric Blake  <ebb9@byu.net>
67202
67203         No need to preserve errno on success.
67204         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67205         Reported by Bruno Haible.
67206
67207 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67208
67209         * MODULES.html.sh (Support for maintaining and releasing
67210         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67211
67212 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67213
67214         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67215
67216 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67217
67218         * modules/autobuild: New module.
67219
67220         * m4/autobuild.m4: New file.
67221
67222 2007-04-11  Bruno Haible  <bruno@clisp.org>
67223
67224         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67225         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67235         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67236         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67237         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67238         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67239         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67240         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67241         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67242         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67244         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67245         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67246         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67247         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67248         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67249         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67250         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67251         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67252         Reported by Eric Blake.
67253
67254 2007-04-11  Bruno Haible  <bruno@clisp.org>
67255
67256         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67257
67258 2007-04-10  Bruno Haible  <bruno@clisp.org>
67259
67260         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67261         for NaN and Infinity. Needed on FreeBSD 6.1.
67262         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67263         regarding results for "%010a" of Infinity and NaN.
67264         * tests/test-vasprintf-posix.c (test_function): Likewise.
67265         * tests/test-snprintf-posix.h (test_function): Likewise.
67266         * tests/test-sprintf-posix.h (test_function): Likewise.
67267         * tests/test-fprintf-posix.h (test_function): Likewise.
67268         * tests/test-printf-posix.h (test_function): Likewise.
67269         * tests/test-fprintf-posix.out: Likewise.
67270
67271 2007-04-10  Bruno Haible  <bruno@clisp.org>
67272
67273         * modules/locale-tests: New file.
67274         * tests/test-locale.c: New file.
67275
67276         * modules/locale: New file.
67277         * lib/locale_.h: New file.
67278         * m4/locale_h.m4: New file.
67279
67280 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67281             Bruno Haible  <bruno@clisp.org>
67282
67283         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67284         be determined, test for availability of the copysignf, copysign,
67285         copysignl functions.
67286         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67287         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67288         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67289
67290 2007-04-09  Eric Blake  <ebb9@byu.net>
67291
67292         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67293         * modules/stdio (Makefile.am): Support fflush.
67294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67295         * modules/fflush: New file.
67296         * lib/fflush.c: Likewise.
67297         * m4/fflush.m4: Likewise.
67298         * modules/fflush-tests: New test.
67299         * tests/test-fflush.c: Likewise.
67300         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67301
67302 2007-04-06  Bruno Haible  <bruno@clisp.org>
67303
67304         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67305         (VASNPRINTF): Use signbit for faster determination whether to print a
67306         minus sign.
67307         * modules/vasnprintf (Files): Remove lib/float+.h.
67308         * modules/fprintf-posix (Depends-on): Add signbit.
67309         * modules/snprintf-posix (Depends-on): Likewise.
67310         * modules/sprintf-posix (Depends-on): Likewise.
67311         * modules/vasnprintf-posix (Depends-on): Likewise.
67312         * modules/vasprintf-posix (Depends-on): Likewise.
67313         * modules/vfprintf-posix (Depends-on): Likewise.
67314         * modules/vsnprintf-posix (Depends-on): Likewise.
67315         * modules/vsprintf-posix (Depends-on): Likewise.
67316
67317 2007-04-06  Bruno Haible  <bruno@clisp.org>
67318
67319         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67320         * tests/test-frexpl.c (main): Likewise.
67321         * tests/test-ldexpl.c (main): Likewise.
67322         * modules/frexp-tests (Depends-on): Add signbit.
67323         * modules/frexpl-tests (Depdends-on): Likewise.
67324         * modules/ldexpl-tests (Depdends-on): Likewise.
67325
67326 2007-04-06  Bruno Haible  <bruno@clisp.org>
67327
67328         * modules/signbit-tests: New file.
67329         * tests/test-signbit.c: New file.
67330
67331         * modules/signbit: New file.
67332         * lib/signbitf.c: New file.
67333         * lib/signbitd.c: New file.
67334         * lib/signbitl.c: New file.
67335         * m4/signbit.m4: New file.
67336         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67337         (signbit): New macro.
67338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67339         REPLACE_SIGNBIT.
67340         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67341         REPLACE_FREXPL into math.h.
67342
67343 2007-04-06  Bruno Haible  <bruno@clisp.org>
67344
67345         * modules/isnanf-nolibm-tests: New file.
67346         * tests/test-isnanf.c: New file.
67347
67348         * modules/isnanf-nolibm: New file.
67349         * lib/isnanf.h: New file.
67350         * lib/isnanf.c: New file.
67351         * lib/isnan.c: Consider the USE_FLOAT macro.
67352         * m4/isnanf.m4: New file.
67353
67354 2007-04-06  Bruno Haible  <bruno@clisp.org>
67355
67356         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67357         (Link): New section.
67358
67359         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67360
67361 2007-04-06  Bruno Haible  <bruno@clisp.org>
67362
67363         Assume the 'long double' type.
67364         * m4/longdouble.m4: Remove file.
67365         * config/srclist.txt: Don't mention longdouble.m4.
67366         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67367         * lib/float+.h: Likewise.
67368         * lib/frexp.c: Likewise.
67369         * lib/printf-args.h: Likewise.
67370         * lib/printf-args.c: Likewise.
67371         * lib/printf-frexp.c: Likewise.
67372         * lib/printf-parse.c: Likewise.
67373         * lib/vasnprintf.c: Likewise.
67374         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67375         * m4/intl.m4: Likewise.
67376         * m4/isnanl.m4: Likewise.
67377         * m4/printf.m4: Likewise.
67378         * m4/printf-frexpl.m4: Likewise.
67379         * m4/vasnprintf.m4: Likewise.
67380         * modules/allocsa (Files): Remove m4/longdouble.m4.
67381         * modules/gettext (Files): Likewise.
67382         * modules/relocatable-prog-wrapper (Files): Likewise.
67383         * modules/vasnprintf (Files): Likewise.
67384         * modules/isnanl (Files): Likewise.
67385         (Include): Simplify.
67386         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67387         (Include): Simplify.
67388         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67389         (Include): Simplify.
67390         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67391         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67392         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67393         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67394         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67395         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67396         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67397         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67398         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67399         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67400         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67401         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67402         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67403         * tests/test-isnanl.c: Likewise.
67404         * tests/test-snprintf-posix.h: Likewise.
67405         * tests/test-sprintf-posix.h: Likewise.
67406         * tests/test-vasnprintf-posix.c: Likewise.
67407         * tests/test-vasnprintf-posix2.c: Likewise.
67408         * tests/test-vasprintf-posix.c: Likewise.
67409
67410 2007-04-06  Bruno Haible  <bruno@clisp.org>
67411
67412         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67413         * lib/math_.h [__DECC]: Include the overridden include file through
67414         #include_next, outside the double-inclusion guard.
67415         * lib/stdio_.h [__DECC]: Likewise.
67416         * lib/stdlib_.h [__DECC]: Likewise.
67417         * lib/string_.h [__DECC]: Likewise.
67418         * lib/time_.h [__DECC]: Likewise.
67419         * lib/wchar_.h [__DECC]: Likewise.
67420         * lib/wctype_.h [__DECC]: Likewise.
67421         * lib/inttypes_.h [__DECC]: Likewise.
67422         Reported by Albert Chin <china@thewrittenword.com> in
67423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67424
67425 2007-04-04  Eric Blake  <ebb9@byu.net>
67426
67427         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67428         1.5.x.
67429
67430 2007-04-04  Bruno Haible  <bruno@clisp.org>
67431
67432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67433         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67434
67435 2007-04-04  Bruno Haible  <bruno@clisp.org>
67436
67437         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67438         results for "%010a" of Infinity and NaN.
67439         * tests/test-vasprintf-posix.c (test_function): Likewise.
67440         * tests/test-snprintf-posix.h (test_function): Likewise.
67441         * tests/test-sprintf-posix.h (test_function): Likewise.
67442         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67443         * tests/test-printf-posix.h (test_function): Likewise.
67444         * tests/test-fprintf-posix.out: Update.
67445         Needed for FreeBSD 6.1.
67446
67447 2007-04-04  Bruno Haible  <bruno@clisp.org>
67448
67449         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67450         directly used by the gnulib modules nor by gnulib-tool.
67451
67452 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         * DEPENDENCIES: Give overall description of version dependency
67455         desirability.  Use more-typical names for apps.
67456         Add shell, coreutils, diffutils, grep, tar, gzip.
67457
67458 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67459
67460         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67461
67462 2007-04-04  Karl Berry  <karl@gnu.org>
67463
67464         * MODULES.html.sh (func_module): missing '.
67465
67466 2007-04-03  Bruno Haible  <bruno@clisp.org>
67467
67468         * modules/argmatch-tests (Makefile.am): New variable
67469         test_argmatch_LDADD.
67470         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67471         * modules/array-list-tests (Makefile.am): New variable
67472         test_array_list_LDADD.
67473         * modules/array-oset-tests (Makefile.am): New variable
67474         test_array_oset_LDADD.
67475         * modules/avltree-list-tests (Makefile.am): New variable
67476         test_avltree_list_LDADD.
67477         * modules/avltree-oset-tests (Makefile.am): New variable
67478         test_avltree_oset_LDADD.
67479         * modules/avltreehash-list-tests (Makefile.am): New variable
67480         test_avltreehash_list_LDADD.
67481         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67482         test_canonicalize_lgpl_LDADD.
67483         * modules/carray-list-tests (Makefile.am): New variable
67484         test_carray_list_LDADD.
67485         * modules/dirname-tests (Makefile.am): New variable
67486         test_dirname_LDADD.
67487         * modules/linked-list-tests (Makefile.am): New variable
67488         test_linked_list_LDADD.
67489         * modules/linkedhash-list-tests (Makefile.am): New variable
67490         test_linkedhash_list_LDADD.
67491         * modules/rbtree-list-tests (Makefile.am): New variable
67492         test_rbtree_list_LDADD.
67493         * modules/rbtree-oset-tests (Makefile.am): New variable
67494         test_rbtree_oset_LDADD.
67495         * modules/rbtreehash-list-tests (Makefile.am): New variable
67496         test_rbtreehash_list_LDADD.
67497         * modules/xvasprintf-tests (Makefile.am): New variable
67498         test_xvasprintf_LDADD.
67499         Reported by Eric Blake.
67500
67501 2007-04-03  Eric Blake  <ebb9@byu.net>
67502
67503         * DEPENDENCIES: Weaken m4 requirements.
67504
67505 2007-04-03  Bruno Haible  <bruno@clisp.org>
67506
67507         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67508         * modules/isnanl-tests (configure.ac): Likewise.
67509
67510 2007-04-03  Ben Pfaff  <blp@gnu.org>
67511
67512         * modules/iconv_open: Add $(srcdir)/ to source directory
67513         references in Makefile fragments that call gperf, to fix VPATH
67514         builds.
67515
67516 2007-04-03  Bruno Haible  <bruno@clisp.org>
67517
67518         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67519         * lib/ldexpl.c: Undo last change.
67520
67521 2007-04-03  Bruno Haible  <bruno@clisp.org>
67522
67523         * modules/printf-frexpl (Depends-on): Undo last change.
67524         (Files): Add m4/ldexpl.m4.
67525
67526 2007-04-03  Bruno Haible  <bruno@clisp.org>
67527
67528         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67529         * modules/isnanl (Link): New section.
67530
67531         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67532         * modules/frexp (Link): New section.
67533
67534         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67535         * modules/frexpl (Link): New section.
67536
67537         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67538         * modules/ldexpl (Link): New section.
67539
67540 2007-04-03  Bruno Haible  <bruno@clisp.org>
67541
67542         * modules/TEMPLATE-EXTENDED: New file.
67543         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67544
67545 2007-04-03  Bruno Haible  <bruno@clisp.org>
67546
67547         * DEPENDENCIES: New file.
67548         Suggested by Simon Josefsson.
67549
67550 2007-04-03  Bruno Haible  <bruno@clisp.org>
67551
67552         * doc/gnulib.texi: Escape @.
67553
67554 2007-04-03  James Youngman  <jay@gnu.org>
67555         and Paul Eggert  <eggert@cs.ucla.edu>
67556
67557         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67558         birthtime on all systems that have birthtime, not just those which
67559         use st_birthtimensec rather than st_birthtim.  Putting zero in
67560         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67561         that the birth time is not available for files on an NFS mount.
67562
67563 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67564
67565         * modules/memxor: Move back from crypto/, suggested by Bruno.
67566         * modules/crypto/hmac-sha1: Fix memxor dependency.
67567
67568         * modules/crypto/gc: Moved from ../.
67569
67570 2007-04-02  Eric Blake  <ebb9@byu.net>
67571
67572         * lib/ldexpl.c (includes): Avoid libm.
67573
67574         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67575
67576 2007-04-02  Bruno Haible  <bruno@clisp.org>
67577
67578         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67579         on IRIX.
67580
67581 2007-04-02  Bruno Haible  <bruno@clisp.org>
67582
67583         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67584         x86 or x86_64 platforms running MacOS X.
67585         Reported by Ryan Schmidt <@ryandesign.com>.
67586
67587 2007-04-02  Bruno Haible  <bruno@clisp.org>
67588
67589         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67590         i386.
67591
67592 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67593
67594         * modules/crypto/arcfour: Moved from ../.
67595         * modules/crypto/arcfour-tests: Moved from ../.
67596         * modules/crypto/arctwo: Moved from ../.
67597         * modules/crypto/arctwo-tests: Moved from ../.
67598         * modules/crypto/des: Moved from ../.
67599         * modules/crypto/des-tests: Moved from ../.
67600         * modules/crypto/gc-arcfour: Moved from ../.
67601         * modules/crypto/gc-arcfour-tests: Moved from ../.
67602         * modules/crypto/gc-arctwo: Moved from ../.
67603         * modules/crypto/gc-arctwo-tests: Moved from ../.
67604         * modules/crypto/gc-des: Moved from ../.
67605         * modules/crypto/gc-des-tests: Moved from ../.
67606         * modules/crypto/gc-hmac-md5: Moved from ../.
67607         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67608         * modules/crypto/gc-hmac-sha1: Moved from ../.
67609         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67610         * modules/crypto/gc-md2: Moved from ../.
67611         * modules/crypto/gc-md2-tests: Moved from ../.
67612         * modules/crypto/gc-md4: Moved from ../.
67613         * modules/crypto/gc-md4-tests: Moved from ../.
67614         * modules/crypto/gc-md5: Moved from ../.
67615         * modules/crypto/gc-md5-tests: Moved from ../.
67616         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67617         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67618         * modules/crypto/gc-random: Moved from ../.
67619         * modules/crypto/gc-rijndael: Moved from ../.
67620         * modules/crypto/gc-rijndael-tests: Moved from ../.
67621         * modules/crypto/gc-sha1: Moved from ../.
67622         * modules/crypto/gc-sha1-tests: Moved from ../.
67623         * modules/crypto/gc-tests: Moved from ../.
67624         * modules/crypto/hmac-md5: Moved from ../.
67625         * modules/crypto/hmac-md5-tests: Moved from ../.
67626         * modules/crypto/hmac-sha1: Moved from ../.
67627         * modules/crypto/hmac-sha1-tests: Moved from ../.
67628         * modules/crypto/md2: Moved from ../.
67629         * modules/crypto/md2-tests: Moved from ../.
67630         * modules/crypto/md4: Moved from ../.
67631         * modules/crypto/md4-tests: Moved from ../.
67632         * modules/crypto/md5: Moved from ../.
67633         * modules/crypto/md5-tests: Moved from ../.
67634         * modules/crypto/memxor: Moved from ../.
67635         * modules/crypto/rijndael: Moved from ../.
67636         * modules/crypto/rijndael-tests: Moved from ../.
67637         * modules/crypto/sha1: Moved from ../.
67638
67639 2007-03-30  James Youngman  <jay@gnu.org>
67640
67641         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67642         rename() to change the ctime of a file (because ctime is unaffected
67643         by rename on jfs2 on AIX 5.1).
67644         (main): Start by doing cleanup, in case a previous run failed leaving
67645         test files behind.
67646
67647 2007-03-31  Bruno Haible  <bruno@clisp.org>
67648
67649         Support old proprietary implementations of iconv.
67650         * modules/iconv_open: New file.
67651         * lib/iconv_.h: New file.
67652         * m4/iconv_h.m4: New file.
67653         * lib/iconv_open.c: New file.
67654         * lib/iconv_open-aix.gperf: New file.
67655         * lib/iconv_open-hpux.gperf: New file.
67656         * lib/iconv_open-irix.gperf: New file.
67657         * lib/iconv_open-osf.gperf: New file.
67658         * m4/iconv_open.m4: New file.
67659         * modules/linebreak (Depends-on): Add iconv_open.
67660         * modules/striconv (Depends-on): Likewise.
67661         * modules/striconveh (Depends-on): Likewise.
67662         * modules/unicodeio (Depends-on): Likewise.
67663         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67664         (iconv_t)(-1).
67665         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67666         conversion if cd is (iconv_t)(-1).
67667         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67668         is not possible.
67669
67670 2007-03-31  Bruno Haible  <bruno@clisp.org>
67671
67672         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67673         work on Solaris either. Protect also second use of "autodetect_jp".
67674
67675 2007-03-31  Bruno Haible  <bruno@clisp.org>
67676
67677         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67678         the function is not present.
67679
67680 2007-03-31  Bruno Haible  <bruno@clisp.org>
67681
67682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67683         the function is not present.
67684
67685 2007-03-31  Bruno Haible  <bruno@clisp.org>
67686
67687         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67688         a bug in HP-UX iconv_open().
67689
67690 2007-03-31  Bruno Haible  <bruno@clisp.org>
67691
67692         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67693         (Mathematics <math.h>): New section, add fpieee.
67694         (Input/output <stdio.h>): Add fseterr.
67695         (Mathematics <math.h>): New section, add printf-frexp.
67696         (Container data structures): Add sublist.
67697         (Core language properties): Add fpucw, inline.
67698         (Functions for greatest-width integer types <inttypes.h>): Add
67699         imaxabs, imaxdiv, inttypes.
67700         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67701         isnanl-nolibm, ldexp.
67702         (Mathematics <math.h>): New section, add printf-frexpl.
67703         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67704         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67705         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67706         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67707         (Unicode string functions): Add unistr/u*-mbtoucr.
67708         (Java): Add javacomp-script, javaexec-script.
67709         (C#): Add csharpcomp-script, csharpexec-script.
67710         (Support for building libraries and executables): Add havelib,
67711         relocatable-*.
67712         (Support for maintaining and releasing projects): Renamed from
67713         'Support for maintaining and release projects'. Add announce-gen.
67714
67715 2007-03-31  Bruno Haible  <bruno@clisp.org>
67716
67717         * README: Talk primarily about git.
67718         (git and CVS): Renamed from CVS.
67719         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67720         gnulib is available through git.
67721         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67722
67723 2007-03-30  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67726         * lib/poll_.h: Likewise.
67727         * lib/stat_.h: Likewise.
67728         * lib/sys_time_.h: Likewise.
67729         * lib/sysexit_.h: Likewise.
67730         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67731         * lib/stdbool_.h: Likewise.
67732         * lib/byteswap_.h: Add double-inclusion guard.
67733
67734 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67735
67736         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67737
67738 2007-03-30  Karl Berry  <karl@gnu.org>
67739
67740         * config/srclist-update: double space after USA in the license
67741         substitution, since that's how it's usually (?) written.
67742
67743 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67744
67745         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67746         reported by Bruno Haible.
67747
67748 2007-03-29  Bruno Haible  <bruno@clisp.org>
67749
67750         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67751         a bug in AIX iconv().
67752
67753 2007-03-29  Bruno Haible  <bruno@clisp.org>
67754
67755         * modules/ldexpl-tests: New file.
67756         * tests/test-ldexpl.c: New file.
67757
67758 2007-03-29  Bruno Haible  <bruno@clisp.org>
67759
67760         * lib/ldexpl.c: Include fpucw.h.
67761         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67762         multiplication.
67763         * modules/ldexpl (Depends-on): Add fpucw.
67764
67765 2007-03-29  Bruno Haible  <bruno@clisp.org>
67766
67767         * modules/ldexpl: New file.
67768         * m4/ldexpl.m4: New file.
67769         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67770         set.
67771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67772         REPLACE_LDEXPL.
67773         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67774         REPLACE_LDEXPL.
67775         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67776         gl_FUNC_LDEXPL_WORKS.
67777         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67778         * modules/mathl (Files): Remove lib/ldexpl.c.
67779         (Depends-on): Add ldexpl.
67780
67781 2007-03-29  Bruno Haible  <bruno@clisp.org>
67782
67783         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67784
67785 2007-03-29  Bruno Haible  <bruno@clisp.org>
67786
67787         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67788         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67789         and possibly also HP-UX.
67790         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67791         work on AIX, IRIX, HP-UX, OSF/1.
67792         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67793         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67794         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67795         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67796         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67797         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67798
67799 2007-03-29  Bruno Haible  <bruno@clisp.org>
67800
67801         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67802
67803 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67804
67805         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67806         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67807
67808 2007-03-29  Eric Blake  <ebb9@byu.net>
67809
67810         * lib/acl-internal.h: Remove redundant include.
67811         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67812         Cygwin when a file is locked.
67813
67814 2007-03-29  Bruno Haible  <bruno@clisp.org>
67815
67816         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67817         file.
67818         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67819
67820 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67821
67822         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67823         try to remove a parent directory if the child couldn't be removed
67824         (except for the first rmdir, which could fail because the child
67825         doesn't exist).  Problem reported by Jeff Blaine in
67826         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67827
67828 2007-03-28  Bruno Haible  <bruno@clisp.org>
67829
67830         * lib/striconveh.c (utf8conv_carefully): New function.
67831         (mem_cd_iconveh_internal): Invoke it.
67832
67833 2007-03-28  Bruno Haible  <bruno@clisp.org>
67834
67835         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67836         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67837         input.
67838         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67839         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67840         unistr/u8-uctomb.
67841
67842 2007-03-28  Bruno Haible  <bruno@clisp.org>
67843
67844         * modules/unistr/u8-mbtoucr: New file.
67845         * lib/unistr/u8-mbtoucr.c: New file.
67846         * modules/unistr/u16-mbtoucr: New file.
67847         * lib/unistr/u16-mbtoucr.c: New file.
67848         * modules/unistr/u16-mbtoucr: New file.
67849         * lib/unistr/u16-mbtoucr.c: New file.
67850         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67851
67852 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67853             Bruno Haible  <bruno@clisp.org>
67854
67855         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67856         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67857         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67858
67859         * m4/stdio_h.m4: Add stubs for vasprintf too.
67860
67861         * modules/stdio: Support vasprintf in sed command.
67862
67863         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67864         vasprintf.h.  Add stdio module indicator.
67865
67866         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67867         vasprintf.h.
67868
67869         * lib/vasprintf.h: File removed.
67870
67871         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67872         * lib/vasprintf.c: Ditto.
67873         * lib/xvasprintf.c: Ditto.
67874         * tests/test-vasprintf-posix.c: Ditto.
67875         * tests/test-vasprintf.c: Ditto.
67876
67877 2007-03-27  Bruno Haible  <bruno@clisp.org>
67878
67879         Make vasnprintf multithread-safe.
67880         * lib/vasnprintf.c (decimal_point_char): New function.
67881         (VASNPRINTF): Use it.
67882         Suggested by Simon Josefsson.
67883
67884 2007-03-27  Eric Blake  <ebb9@byu.net>
67885
67886         Support sub-second birthtime on cygwin.
67887         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67888         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67889         (get_stat_birthtime): Also work with st_birthtim.
67890
67891 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67894         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67895         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67896         (get_stat_birthtime_ns): Simplify compile-time tests.
67897         (get_stat_birthtime): Change the API to look like
67898         get_stat_mtime etc., except return a negative tv_nsec on error.
67899         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67900         Don't check for "spare" fields.
67901         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67902         or for struct stat.st_birthtime, as these tests aren't used.
67903         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67904
67905 2007-03-27  Bruno Haible  <bruno@clisp.org>
67906
67907         * lib/stat-time.h: Include <sys/stat.h>.
67908
67909 2007-03-27  James Youngman  <jay@gnu.org>
67910
67911         * lib/stat-time.h (get_stat_birthtime): New function for
67912           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67913         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67914           and its variants.
67915         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67916         * modules/stat-time-test: New file.
67917         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67918
67919 2007-03-26  Bruno Haible  <bruno@clisp.org>
67920
67921         Better support of signalling NaNs.
67922         * lib/atanl.c: Include isnanl.h.
67923         (atanl): Perform test for NaN at the beginning of the function and
67924         through a call to isnanl.
67925         * lib/cosl.c: Include isnanl.h.
67926         (cosl): Perform test for NaN at the beginning of the function and
67927         through a call to isnanl.
67928         * lib/ldexpl.c: Include isnanl.h.
67929         (ldexpl): Perform test for NaN through a call to isnanl.
67930         * lib/logl.c: Include isnanl.h.
67931         (logl): Perform test for NaN at the beginning of the function and
67932         through a call to isnanl.
67933         * lib/sinl.c: Include isnanl.h.
67934         (sinl): Perform test for NaN at the beginning of the function and
67935         through a call to isnanl.
67936         * lib/sqrtl.c: Include isnanl.h.
67937         (sqrtl): Perform test for NaN at the beginning of the function and
67938         through a call to isnanl.
67939         * lib/tanl.c: Include isnanl.h.
67940         (tanl): Perform test for NaN at the beginning of the function and
67941         through a call to isnanl.
67942         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67943         * modules/mathl (Depends-on): Add isnanl.
67944
67945 2007-03-26  Eric Blake  <ebb9@byu.net>
67946
67947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67948         regression in logic sense of previous patch.
67949
67950 2007-03-26  Bruno Haible  <bruno@clisp.org>
67951
67952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67953         unportable shell command "if ! ...".
67954         Reported by Ralf Wildenhues.
67955
67956 2007-03-25  Bruno Haible  <bruno@clisp.org>
67957
67958         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67959         <sysexits.h> file, and only add EX_CONFIG.
67960         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67961         absolute file name and whether it is sufficient. Substitute also
67962         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67963         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67964         ABSOLUTE_SYSEXITS_H into sysexits.h.
67965
67966 2007-03-25  Bruno Haible  <bruno@clisp.org>
67967
67968         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67969         hints is NULL.
67970
67971 2007-03-25  Bruno Haible  <bruno@clisp.org>
67972
67973         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67974         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67975
67976 2007-03-25  Bruno Haible  <bruno@clisp.org>
67977
67978         * lib/vasnprintf.c: Include langinfo.h.
67979         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67980         multithread-safe.
67981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67983         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67984         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67985         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67986         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67987         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67988         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67989         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67990         Reported by Simon Josefsson.
67991
67992 2007-03-25  Bruno Haible  <bruno@clisp.org>
67993
67994         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67995         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67996         * modules/vasnprintf (Depends-on): Add stdint.
67997
67998 2007-03-25  Bruno Haible  <bruno@clisp.org>
67999
68000         * modules/fpieee: New file.
68001         * m4/fpieee.m4: New file.
68002         * modules/isnan-nolibm (Depends-on): Add fpieee.
68003         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68004         * modules/isnanl (Depends-on): Add fpieee.
68005
68006 2007-03-25  Bruno Haible  <bruno@clisp.org>
68007
68008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68009
68010 2007-03-25  Bruno Haible  <bruno@clisp.org>
68011
68012         Avoid test failures on IRIX 6.5.
68013         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68014         (main): Use it.
68015         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68016         macros.
68017         (main): Use them.
68018
68019 2007-03-25  Bruno Haible  <bruno@clisp.org>
68020
68021         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68022         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68023         exists but doesn't work.
68024         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68025         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68027         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68028         math.h.
68029
68030 2007-03-25  Bruno Haible  <bruno@clisp.org>
68031
68032         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68033         returns inf. Needed on IRIX 6.5.
68034
68035 2007-03-25  Bruno Haible  <bruno@clisp.org>
68036
68037         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68038         (main): Use isnanl instead of x != x idiom.
68039         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68040
68041         * tests/test-frexp.c: Include isnan.h.
68042         (main): Use isnan instead of x != x idiom.
68043         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68044
68045 2007-03-25  Bruno Haible  <bruno@clisp.org>
68046
68047         * tests/test-frexp.c (NaN): New function/macro.
68048         (main): Use it instead of 0.0 / 0.0.
68049         * tests/test-isnan.c (NaN): New function/macro.
68050         (main): Use it instead of 0.0 / 0.0.
68051         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68052         (test_function): Use it instead of 0.0 / 0.0.
68053         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68054         (test_function): Use it instead of 0.0 / 0.0.
68055         * tests/test-snprintf-posix.h (NaN): New function/macro.
68056         (test_function): Use it instead of 0.0 / 0.0.
68057         * tests/test-sprintf-posix.h (NaN): New function/macro.
68058         (test_function): Use it instead of 0.0 / 0.0.
68059         * tests/test-fprintf-posix.h (NaN): New function/macro.
68060         (test_function): Use it instead of 0.0 / 0.0.
68061         * tests/test-printf-posix.h (NaN): New function/macro.
68062         (test_function): Use it instead of 0.0 / 0.0.
68063
68064         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68065
68066 2007-03-25  Bruno Haible  <bruno@clisp.org>
68067
68068         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68069
68070 2007-03-25  Bruno Haible  <bruno@clisp.org>
68071
68072         * lib/regexec.c (merge_state_with_log): Make static.
68073
68074 2007-03-25  Bruno Haible  <bruno@clisp.org>
68075
68076         * lib/trigl.c (kernel_rem_pio2): Make static.
68077
68078 2007-03-25  Bruno Haible  <bruno@clisp.org>
68079
68080         * lib/sincosl.c (sincosl_table): Make static.
68081
68082 2007-03-25  Bruno Haible  <bruno@clisp.org>
68083
68084         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68085         if the compiler does not support C99.
68086
68087 2007-03-25  Bruno Haible  <bruno@clisp.org>
68088
68089         * modules/time (Makefile.am): Ensure all rule action lines start with a
68090         tab.
68091
68092 2007-03-24  Bruno Haible  <bruno@clisp.org>
68093
68094         * modules/tsearch-tests: New file.
68095         * tests/test-tsearch.sh: New file.
68096         * tests/test-tsearch.c: New file, mostly copied from glibc.
68097
68098         * modules/search-tests: New file.
68099         * tests/test-search.c: New file.
68100
68101         * modules/search: New file.
68102         * lib/search_.h: New file, incorporating lib/tsearch.h.
68103         * m4/search_h.m4: New file.
68104         * lib/tsearch.h: Remove file.
68105         * lib/tsearch.c: Include search.h instead of tsearch.h.
68106         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68107         HAVE_TSEARCH.
68108         * modules/tsearch (Files): Remove lib/tsearch.h.
68109         (Depends-on): Add search.
68110         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68111         (Include): Change tsearch.h into search.h.
68112
68113 2007-03-24  Bruno Haible  <bruno@clisp.org>
68114
68115         * modules/fpucw: New file.
68116         * lib/fpucw.h: New file.
68117         * lib/frexp.c: Include fpucw.h.
68118         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68119         (FUNC): Use them.
68120         * lib/printf-frexp.c: Include fpucw.h.
68121         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68122         (FUNC): Use them.
68123         * lib/vasnprintf.c: Include fpucw.h.
68124         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68125         'long double' calculations.
68126         * tests/test-frexpl.c: Include fpucw.h.
68127         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68128         * tests/test-printf-frexpl.c: Include fpucw.h.
68129         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68130         * modules/frexpl (Depends-on): Add fpucw.
68131         * modules/printf-frexpl (Depends-on): Likewise.
68132         * modules/fprintf-posix (Depends-on): Likewise.
68133         * modules/snprintf-posix (Depends-on): Likewise.
68134         * modules/sprintf-posix (Depends-on): Likewise.
68135         * modules/vasnprintf-posix (Depends-on): Likewise.
68136         * modules/vasprintf-posix (Depends-on): Likewise.
68137         * modules/vfprintf-posix (Depends-on): Likewise.
68138         * modules/vsnprintf-posix (Depends-on): Likewise.
68139         * modules/vsprintf-posix (Depends-on): Likewise.
68140         * modules/frexpl-tests (Depends-on): Likewise.
68141         * modules/printf-frexpl-tests (Depends-on): Likewise.
68142
68143 2007-03-24  Bruno Haible  <bruno@clisp.org>
68144
68145         * lib/float+.h: New file.
68146         * lib/isnan.c: Include float+.h.
68147         (SIZE): New macro.
68148         (FUNC): Compare only SIZE bytes of the value.
68149         * lib/vasnprintf.c: Include float+.h.
68150         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68151         SIZEOF_LDBL or SIZEOF_DBL bytes.
68152         * modules/isnan-nolibm (Files): Add lib/float+.h.
68153         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68154         * modules/isnanl (Files): Add lib/float+.h.
68155         * modules/vasnprintf (Files): Add lib/float+.h.
68156
68157 2007-03-24  Bruno Haible  <bruno@clisp.org>
68158
68159         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68160         include isnanl-nolibm.h.
68161
68162 2007-03-24  Bruno Haible  <bruno@clisp.org>
68163
68164         * tests/test-read-file.c (main): Don't produce spurious output for
68165         expected situations. Make the test fail if it encountered unexpected
68166         results.
68167
68168 2007-03-24  Bruno Haible  <bruno@clisp.org>
68169
68170         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68171         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68172
68173 2007-03-24  Bruno Haible  <bruno@clisp.org>
68174
68175         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68176
68177 2007-03-24  Bruno Haible  <bruno@clisp.org>
68178
68179         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68180         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68181
68182         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68183         * modules/utf8-ucs4: Turn into a symbolic link to module
68184         unistr/u8-mbtouc.
68185
68186         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68187         utf8-ucs4-unsafe.
68188         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68189         unistr/u8-mbtouc-unsafe.
68190
68191         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68192         * modules/utf16-ucs4: Turn into a symbolic link to module
68193         unistr/u16-mbtouc.
68194
68195         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68196         utf16-ucs4-unsafe.
68197         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68198         unistr/u16-mbtouc-unsafe.
68199
68200         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68201         * modules/ucs4-utf8: Turn into a symbolic link to module
68202         unistr/u8-ubtomb.
68203
68204         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68205         * modules/ucs4-utf16: Turn into a symbolic link to module
68206         unistr/u16-ubtomb.
68207
68208 2007-03-24  Bruno Haible  <bruno@clisp.org>
68209
68210         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68211         Enable the function only if HAVE_INLINE.
68212         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68213         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68214         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68215         Enable the function only if HAVE_INLINE.
68216         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68217         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68218         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68219         Enable the function only if HAVE_INLINE.
68220         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68221         Enable the function only if HAVE_INLINE.
68222         * modules/utf8-ucs4: Update.
68223         * modules/utf8-ucs4-unsafe: Update.
68224         * modules/utf16-ucs4: Update.
68225         * modules/utf16-ucs4-unsafe: Update.
68226         * modules/ucs4-utf8: Update.
68227         * modules/ucs4-utf16: Update.
68228
68229 2007-03-24  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/utf8-ucs4.h: Remove file.
68232         * lib/utf8-ucs4-unsafe.h: Remove file.
68233         * lib/utf16-ucs4.h: Remove file.
68234         * lib/utf16-ucs4-unsafe.h: Remove file.
68235         * lib/ucs4-utf8.h: Remove file.
68236         * lib/ucs4-utf16.h: Remove file.
68237         * lib/unistr.h: Include their previous contents.
68238         * m4/utf-ucs4.m4: Remove file.
68239         * m4/ucs4-utf.m4: Remove file.
68240         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68241         (Depends-on): Add unistr/base.
68242         (configure.ac): Remove gl_UTF_UCS4.
68243         (Makefile.am): Update.
68244         (Include): Change to unistr.h.
68245         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68246         (Depends-on): Add unistr/base.
68247         (configure.ac): Remove gl_UTF_UCS4.
68248         (Makefile.am): Update.
68249         (Include): Change to unistr.h.
68250         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68251         (Depends-on): Add unistr/base.
68252         (configure.ac): Remove gl_UTF_UCS4.
68253         (Makefile.am): Update.
68254         (Include): Change to unistr.h.
68255         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68256         (Depends-on): Add unistr/base.
68257         (configure.ac): Remove gl_UTF_UCS4.
68258         (Makefile.am): Update.
68259         (Include): Change to unistr.h.
68260         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68261         (Depends-on): Add unistr/base.
68262         (configure.ac): Remove gl_UCS4_UTF.
68263         (Makefile.am): Update.
68264         (Include): Change to unistr.h.
68265         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68266         (Depends-on): Add unistr/base.
68267         (configure.ac): Remove gl_UCS4_UTF.
68268         (Makefile.am): Update.
68269         (Include): Change to unistr.h.
68270         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68271         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68272         utf8-ucs4-unsafe.h.
68273         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68274         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68275         utf16-ucs4-unsafe.h.
68276         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68277         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68278         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68279         * lib/unistr/u8-strchr.c: Likewise.
68280         * lib/unistr/u8-strrchr.c: Likewise.
68281         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68282         * lib/unistr/u16-strchr.c: Likewise.
68283         * lib/unistr/u16-strrchr.c: Likewise.
68284         * lib/striconveh.c: Update.
68285         * lib/linebreak.c: Update.
68286
68287 2007-03-24  Bruno Haible  <bruno@clisp.org>
68288
68289         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68290         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68291
68292 2007-03-22  Bruno Haible  <bruno@clisp.org>
68293
68294         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68295
68296 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * MODULES.html.sh (File system functions): New module write-any-file.
68299         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68300         * m4/write-any-file.m4: New files.
68301
68302 2007-03-23  Eric Blake  <ebb9@byu.net>
68303
68304         * gnulib-tool: Rearrange space-tab sequences, since some editors
68305         like to eat them.
68306
68307 2007-03-23  Eric Blake  <ebb9@byu.net>
68308
68309         * lib/version-etc.c (version_etc_va): Update license wording to
68310         be more concise.  Recommended by Richard Stallman.
68311
68312 2007-03-22  Bruno Haible  <bruno@clisp.org>
68313
68314         * lib/poll.c (MSG_PEEK): New fallback definition.
68315
68316 2007-03-22  Bruno Haible  <bruno@clisp.org>
68317
68318         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68319         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68320         (main): Update.
68321         Fixes a compilation error on BeOS.
68322
68323 2007-03-22  Bruno Haible  <bruno@clisp.org>
68324
68325         * modules/frexpl-tests: New file.
68326         * tests/test-frexpl.c: New file.
68327
68328         * modules/frexpl: New file.
68329         * m4/frexpl.m4: New file.
68330         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68331         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68333         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68334         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68335         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68336
68337 2007-03-22  Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/frexpl.c: Share code with lib/frexp.c.
68340         * modules/mathl (Files): Add lib/frexp.c.
68341         (Depends-on): Add isnanl-nolibm.
68342
68343 2007-03-22  Bruno Haible  <bruno@clisp.org>
68344
68345         * modules/printf-frexp (Files): Add m4/frexp.m4.
68346         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68347         only if the found frexp function actually works.
68348
68349 2007-03-22  Bruno Haible  <bruno@clisp.org>
68350
68351         * lib/frexp.c: Remove older implementation that uses divisions.
68352
68353 2007-03-21  Bruno Haible  <bruno@clisp.org>
68354
68355         * modules/frexp-tests: New file.
68356         * tests/test-frexp.c: New file.
68357
68358         * modules/frexp: New file.
68359         * lib/frexp.c: New file.
68360         * m4/frexp.m4: New file.
68361         * lib/math_.h (frexp): New declaration.
68362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68363         REPLACE_FREXP.
68364         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68365
68366 2007-03-21  Bruno Haible  <bruno@clisp.org>
68367
68368         * modules/isnanl-tests: New file.
68369         * tests/test-isnanl.c: New file.
68370
68371         * modules/isnanl: New file.
68372         * lib/isnanl.h: New file.
68373         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68374         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68375         gl_FUNC_ISNANL_WORKS.
68376         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68377         New macros.
68378
68379 2007-03-21  Bruno Haible  <bruno@clisp.org>
68380
68381         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68382         lib/isnanl.h.
68383         (Include): Update.
68384         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68385         * lib/vasnprintf.c: Update.
68386         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68387         tests/test-isnanl.h, remove tests/test-isnanl.c.
68388         (Makefile.am): Update.
68389         * tests/test-isnanl-nolibm.c: New file.
68390         * tests/test-isnanl.h: New file.
68391         * tests/test-isnanl.c: Remove file.
68392
68393 2007-03-21  Jim Meyering  <jim@meyering.net>
68394
68395         When trying to open ".", treat ESTALE like EACCES.
68396         * lib/savewd.c (savewd_save): Resort to forking not just upon
68397         failure with EACCES, but also when errno is ESTALE.
68398
68399 2007-03-20  Bruno Haible  <bruno@clisp.org>
68400
68401         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68402         Needed on AIX 5.1. Reported by Matthew Woehlke.
68403
68404 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68405
68406         Suggestions by Bruno Haible:
68407         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68408         our own.
68409         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68410         * modules/acl (Depends-on): Add gettext.
68411
68412 2007-03-19  Bruno Haible  <bruno@clisp.org>
68413
68414         * modules/iconvme: Remove file.
68415         * lib/iconvme.h: Remove file.
68416         * lib/iconvme.c: Remove file.
68417         * m4/iconvme.m4: Remove file.
68418
68419 2007-03-19  Bruno Haible  <bruno@clisp.org>
68420
68421         * doc/relocatable-maint.texi: Break long shell script line.
68422         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68423
68424 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68425
68426         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68427         handle file_has_acl.
68428         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68429         * lib/acl.c: Move header inclusions and related macro defns into
68430         lib/acl-internal.h.
68431         (S_ISLNK): Remove defn, since that's now done for us.
68432         (file_has_acl): Move to lib/file-has-acl.c.
68433         Call acl_trivial if available.  This is the crucial part of the fix.
68434         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68435         shared within the library.  Rewrite a bit, partly to make it compatible
68436         with the GNU coding style.
68437         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68438         Remove unnecessary double-quotes.
68439         Don't test for acl_to_text; the build will catch that.
68440         Replace acl_entries if it doesn't exist and it is needed.
68441         Check for -lsec and acl_trivial (as used on Solaris 10).
68442         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68443         lib/file-has-acl.c.
68444         (Depends-on): Add sys_stat, for S_ISLNK.
68445
68446 2007-03-19  Ben Pfaff  <blp@gnu.org>
68447
68448         * doc/gnulib.texi: Fix typos.
68449         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68450
68451 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68452
68453         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68454         If size is zero here, buf must be zero.
68455
68456 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68457
68458         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68459         <bruno@clisp.org>.
68460
68461 2007-03-18  Bruno Haible  <bruno@clisp.org>
68462
68463         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68464         Suggested by Eric Blake.
68465
68466 2007-03-18  Ben Pfaff  <blp@gnu.org>
68467
68468         * doc/relocatable.texi: Recommend using as prefix a directory
68469         that does not exist and will never be created.  Based on
68470         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68471         and others.
68472
68473 2007-03-17  Bruno Haible  <bruno@clisp.org>
68474
68475         * lib/fchownat.c: Include lchown.h.
68476
68477 2007-03-17  Bruno Haible  <bruno@clisp.org>
68478
68479         Fix endless loop when the given allocated size was > INT_MAX.
68480         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68481         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68482         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68483         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68484         * lib/sprintf.c (sprintf): Likewise.
68485
68486 2007-03-17  Bruno Haible  <bruno@clisp.org>
68487
68488         * tests/test-argp-2.sh (func_compare): Output a context diff.
68489
68490 2007-03-17  Bruno Haible  <bruno@clisp.org>
68491
68492         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68493         locale's decimal-point character.
68494
68495 2007-03-17  Bruno Haible  <bruno@clisp.org>
68496
68497         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68498         before comparing it. Needed because on some platforms (e.g. x86) a
68499         'long double' occupies less bytes than sizeof (long double).
68500
68501 2007-03-17  Bruno Haible  <bruno@clisp.org>
68502
68503         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68504         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68505         * tests/test-getaddrinfo.c (simple): Likewise.
68506         * tests/test-read-file.c (main): Likewise.
68507
68508 2007-03-17  Bruno Haible  <bruno@clisp.org>
68509
68510         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68511
68512 2007-03-17  Bruno Haible  <bruno@clisp.org>
68513
68514         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68515         unused variable.
68516
68517 2007-03-17  Bruno Haible  <bruno@clisp.org>
68518
68519         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68520         * tests/test-c-strncasecmp.c: Likewise.
68521
68522 2007-03-17  Bruno Haible  <bruno@clisp.org>
68523
68524         * modules/stdlib (Depends-on): Add unistd.
68525         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68526         Needed for MacOS X 10.3.
68527
68528 2007-03-17  Bruno Haible  <bruno@clisp.org>
68529
68530         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68531
68532 2007-03-17  Bruno Haible  <bruno@clisp.org>
68533
68534         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68535
68536 2007-03-17  Bruno Haible  <bruno@clisp.org>
68537
68538         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68539         to reflect files copied from gnulib (with or without modifications).
68540         Suggested by Jim Meyering.
68541
68542 2007-03-17  Eric Blake  <ebb9@byu.net>
68543
68544         * NEWS: Document stdlib change from 2007-02-18.
68545
68546 2007-03-17  Jim Meyering  <jim@meyering.net>
68547
68548         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68549         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68550         someone uses a name containing shell meta-characters.
68551         Reported by Alfred M. Szmidt.
68552
68553         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68554
68555 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68556
68557         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68558         and copy gettext configuration files only if configure.ac contains
68559         a use of AM_GNU_GETTEXT_VERSION.
68560
68561 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68562
68563         * build-aux/bootstrap (gnulib_name): New variable.
68564         (gnulib_tool_options): Use it.
68565
68566 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68567
68568         * tests/test-des.c: Use new namespace.
68569
68570 2007-03-15  Bruno Haible  <bruno@clisp.org>
68571
68572         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68573         Reported by James Youngman <jay@gnu.org>.
68574
68575 2007-03-15  Bruno Haible  <bruno@clisp.org>
68576
68577         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68578         declared prototype. Needed with cc on OSF/1 5.1.
68579
68580 2007-03-15  Bruno Haible  <bruno@clisp.org>
68581
68582         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68583         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68584         (struct gl_list_implementation): Add dispose_fn argument to the
68585         'create_empty', 'create' methods.
68586         (struct gl_list_impl_base): Add field 'dispose_fn'.
68587         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68588         argument.
68589         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68590         dispose_fn argument.
68591         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68592         dispose_fn on the dropped values.
68593         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68594         dispose_fn argument.
68595         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68596         dropped values.
68597         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68598         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68599         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68600         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68601         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68602         argument.
68603         (gl_tree_list_free): Call dispose_fn on the dropped values.
68604         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68605         the dropped values.
68606         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68607         Add dispose_fn argument.
68608         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68609         Call dispose_fn on the dropped values.
68610         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68611         Add dispose_fn argument.
68612         (gl_sublist_create): Initialize the 'dispose_fn' field.
68613         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68614         * tests/test-array_list.c (main): Update.
68615         * tests/test-carray_list.c (main): Update.
68616         * tests/test-avltree_list.c (main): Update.
68617         * tests/test-rbtree_list.c (main): Update.
68618         * tests/test-avltreehash_list.c (main): Update.
68619         * tests/test-rbtreehash_list.c (main): Update.
68620         * tests/test-linked_list.c (main): Update.
68621         * tests/test-linkedhash_list.c (main): Update.
68622         * tests/test-array_oset.c (main): Update.
68623
68624 2007-03-15  Bruno Haible  <bruno@clisp.org>
68625
68626         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68627         (gl_oset_create_empty): Add dispose_fn argument.
68628         (struct gl_oset_implementation): Add dispose_fn argument to
68629         'create_empty' method.
68630         (struct gl_oset_impl_base): Add dispose_fn field.
68631         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68632         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68633         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68634         values.
68635         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68636         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68637         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68638         dropped value.
68639         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68640         dropped value.
68641         * tests/test-array_oset.c (main): Update.
68642         * tests/test-avltree_oset.c (main): Update.
68643         * tests/test-rbtree_oset.c (main): Update.
68644         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68645
68646 2007-03-13  Bruno Haible  <bruno@clisp.org>
68647
68648         * tests/test-stdbool.c (i): Update after last patch.
68649
68650 2007-03-12  Bruno Haible  <bruno@clisp.org>
68651
68652         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68653         the iswprint macro. Needed on Solaris 2.5.1.
68654
68655 2007-03-12  Bruno Haible  <bruno@clisp.org>
68656
68657         * tests/test-printf-frexp.c (main): Declare x as volatile.
68658
68659 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68660
68661         * doc/gnulib.texi (Build robot for gnulib): New section.
68662
68663 2007-03-12  Jim Meyering  <jim@meyering.net>
68664
68665         * build-aux/bootstrap: New file.
68666         * build-aux/bootstrap.conf: New file, from coreutils.
68667
68668 2007-03-11  Bruno Haible  <bruno@clisp.org>
68669
68670         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68671
68672 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68673
68674         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68675         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68676         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68677
68678 2007-03-11  Bruno Haible  <bruno@clisp.org>
68679
68680         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68681         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68682
68683 2007-03-11  Bruno Haible  <bruno@clisp.org>
68684
68685         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68686         formula. Needed for SunPRO C 5.0.
68687
68688 2007-03-11  Bruno Haible  <bruno@clisp.org>
68689
68690         * modules/long-options (Depends-on): Add getopt.
68691
68692 2007-03-11  Bruno Haible  <bruno@clisp.org>
68693
68694         * modules/modechange (Depends-on): Add stdbool.
68695
68696 2007-03-11  Bruno Haible  <bruno@clisp.org>
68697
68698         * modules/i-ring (Depends-on): Add stdbool.
68699
68700 2007-03-11  Bruno Haible  <bruno@clisp.org>
68701
68702         * modules/gc-des (Depends-on): Add stdbool.
68703
68704 2007-03-11  Bruno Haible  <bruno@clisp.org>
68705
68706         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68707
68708 2007-03-11  Bruno Haible  <bruno@clisp.org>
68709
68710         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68711
68712 2007-03-11  Bruno Haible  <bruno@clisp.org>
68713
68714         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68715
68716 2007-03-11  Bruno Haible  <bruno@clisp.org>
68717
68718         * lib/vasnprintf.c (sprintf): Undefine.
68719
68720 2007-03-11  Bruno Haible  <bruno@clisp.org>
68721
68722         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68723         initializers in SunPRO C and Compaq C compilers.
68724
68725 2007-03-11  Bruno Haible  <bruno@clisp.org>
68726
68727         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68728         decrementing code ANSI C compliant.
68729
68730 2007-03-11  Bruno Haible  <bruno@clisp.org>
68731
68732         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68733         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68734
68735 2007-03-11  Bruno Haible  <bruno@clisp.org>
68736
68737         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68738         <stdbool.h> substitute doesn't pass.
68739
68740 2007-03-11  Bruno Haible  <bruno@clisp.org>
68741
68742         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68743
68744 2007-03-11  Bruno Haible  <bruno@clisp.org>
68745
68746         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68747         script, for submission to autobuild.josefsson.org.
68748
68749 2007-03-10  Bruno Haible  <bruno@clisp.org>
68750
68751         * modules/canonicalize-lgpl-tests: New file.
68752         * tests/test-canonicalize-lgpl.sh: New file.
68753         * tests/test-canonicalize-lgpl.c: New file.
68754
68755         * modules/c-strcase-tests: New file.
68756         * tests/test-c-strcase.sh: New file.
68757         * tests/test-c-strcasecmp.c: New file.
68758         * tests/test-c-strncasecmp.c: New file.
68759
68760         * modules/atexit-tests: New file.
68761         * tests/test-atexit.sh: New file.
68762         * tests/test-atexit.c: New file.
68763
68764 2007-03-10  Bruno Haible  <bruno@clisp.org>
68765
68766         * tests/test-binary-io.sh: Use temporary filenames that are not so
68767         likely to clash with those of other tests (in a parallel make).
68768         * tests/test-binary-io.c: Likewise.
68769
68770 2007-03-10  Bruno Haible  <bruno@clisp.org>
68771
68772         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68773         fallback; use #error instead.
68774         Suggested by Simon Josefsson.
68775
68776 2007-03-10  Bruno Haible  <bruno@clisp.org>
68777
68778         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68779         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68780         first and the last.
68781
68782 2007-03-10  Bruno Haible  <bruno@clisp.org>
68783
68784         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68785
68786 2007-03-10  Bruno Haible  <bruno@clisp.org>
68787
68788         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68789         "make distcheck".
68790         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68791         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68792         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68793
68794 2007-03-10  Bruno Haible  <bruno@clisp.org>
68795
68796         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68797         variable.
68798         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68799         variable.
68800
68801 2007-03-09  Eric Blake  <ebb9@byu.net>
68802         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68803
68804         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68805         types are not being provided by gnulib.
68806         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68807         types are supported.
68808
68809 2007-03-10  Bruno Haible  <bruno@clisp.org>
68810
68811         * lib/stdio_.h (__attribute__): New macro.
68812         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68813         vsprintf): Specify __attribute__ __format__ for GCC.
68814         Suggested by Eric Blake.
68815
68816 2007-03-09  Bruno Haible  <bruno@clisp.org>
68817
68818         * modules/printf-posix-tests: New file.
68819         * tests/test-printf-posix.sh: New file.
68820         * tests/test-printf-posix.c: New file.
68821
68822         * modules/printf-posix: New file.
68823         * lib/printf.c: New file.
68824         * m4/printf-posix-rpl.m4: New file.
68825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68826         REPLACE_PRINTF.
68827         * lib/stdio_.h (printf): New declaration.
68828         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68829         ____strfmon____): New macros.
68830         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68831         REPLACE_PRINTF.
68832
68833 2007-03-09  Bruno Haible  <bruno@clisp.org>
68834
68835         * tests/test-vasnprintf-posix2.sh: New file.
68836         * tests/test-vasnprintf-posix2.c: New file.
68837         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68838         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68839         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68840
68841         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68842         a locale dependent decimal point, rather than always '.'.
68843
68844 2007-03-09  Eric Blake  <ebb9@byu.net>
68845
68846         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68847         spite of platforms like Tandem/NSK that define it to -1.
68848
68849 2007-03-08  Bruno Haible  <bruno@clisp.org>
68850
68851         * modules/vprintf-posix-tests: New file.
68852         * tests/test-vprintf-posix.sh: New file.
68853         * tests/test-vprintf-posix.c: New file.
68854         * tests/test-printf-posix.h: New file.
68855
68856         * modules/vprintf-posix: New file.
68857         * lib/vprintf.c: New file.
68858         * m4/vprintf-posix.m4: New file.
68859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68860         REPLACE_VPRINTF.
68861         * lib/stdio_.h (vprintf): New declaration.
68862         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68863         REPLACE_VPRINTF.
68864
68865 2007-03-08  Bruno Haible  <bruno@clisp.org>
68866
68867         * modules/fprintf-posix-tests: New file.
68868         * tests/test-fprintf-posix.sh: New file.
68869         * tests/test-fprintf-posix.c: New file.
68870
68871         * modules/fprintf-posix: New file.
68872         * lib/fprintf.c: New file.
68873         * m4/fprintf-posix.m4: New file.
68874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68875         REPLACE_FPRINTF.
68876         * lib/stdio_.h (fprintf): New declaration.
68877         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68878         REPLACE_FPRINTF.
68879
68880 2007-03-08  Bruno Haible  <bruno@clisp.org>
68881
68882         * modules/vfprintf-posix-tests: New file.
68883         * tests/test-vfprintf-posix.sh: New file.
68884         * tests/test-vfprintf-posix.c: New file.
68885         * tests/test-fprintf-posix.h: New file.
68886         * tests/test-fprintf-posix.out: New file.
68887
68888         * modules/vfprintf-posix: New file.
68889         * lib/vfprintf.c: New file.
68890         * m4/vfprintf-posix.m4: New file.
68891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68892         REPLACE_VFPRINTF.
68893         * lib/stdio_.h (vfprintf): New declaration.
68894         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68895         REPLACE_VFPRINTF.
68896
68897 2007-03-08  Bruno Haible  <bruno@clisp.org>
68898
68899         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68900
68901 2007-03-08  Bruno Haible  <bruno@clisp.org>
68902
68903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68904         instead of 'expr' invocations.
68905         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68906         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68907         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68908         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68909         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68910         Suggested by Paul Eggert.
68911
68912 2007-03-08  Bruno Haible  <bruno@clisp.org>
68913
68914         * modules/fseterr-tests: New file.
68915         * tests/test-fseterr.c: New file.
68916
68917         * modules/fseterr: New file.
68918         * lib/fseterr.h: New file.
68919         * lib/fseterr.c: New file.
68920
68921 2007-03-08  Bruno Haible  <bruno@clisp.org>
68922
68923         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68924         * lib/getopt_.h: Likewise.
68925         * lib/mbswidth.h: Likewise.
68926         * lib/setenv.h: Likewise.
68927         * lib/vasnprintf.h: Likewise.
68928         * lib/vasprintf.h: Likewise.
68929         * lib/verror.h: Likewise.
68930         * lib/xsetenv.h: Likewise.
68931         * lib/xvasprintf.h: Likewise.
68932
68933 2007-03-08  Jim Meyering  <jim@meyering.net>
68934
68935         * users.txt: Add parted.
68936
68937         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68938
68939 2007-03-07  Bruno Haible  <bruno@clisp.org>
68940
68941         * m4/printf.m4: Make the shell script snippets copy&pastable.
68942
68943 2007-03-02  Bruno Haible  <bruno@clisp.org>
68944
68945         * lib/netinet_in_.h: New file.
68946         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68947         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68948         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68949         (Depends-on): Add absolute-header.
68950         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68951         into netinet/in.h.
68952
68953 2007-03-03  Bruno Haible  <bruno@clisp.org>
68954
68955         * lib/sys_select_.h: New file.
68956         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68957         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68958         * modules/sys_select (Files): Add lib/sys_select_.h.
68959         (Depends-on): Add absolute-header.
68960         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68961         into sys/select.h.
68962
68963 2007-03-02  Bruno Haible  <bruno@clisp.org>
68964
68965         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68966         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68967         values.
68968         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68969         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68970         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68971         * modules/sys_socket (Depends-on): Add absolute-header.
68972         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68973         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68974         (Include): Remove requirement of inclusion of <sys/types.h>.
68975
68976 2007-03-02  Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/byteswap_.h (bswap_32): Fix formula.
68979
68980 2007-03-06  Bruno Haible  <bruno@clisp.org>
68981
68982         * modules/sprintf-posix-tests: New file.
68983         * tests/test-sprintf-posix.c: New file.
68984
68985         * modules/sprintf-posix: New file.
68986         * lib/sprintf.c: New file.
68987         * m4/sprintf-posix.m4: New file.
68988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68989         REPLACE_SPRINTF.
68990         * lib/stdio_.h (sprintf): New declaration.
68991         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68992         REPLACE_SPRINTF.
68993
68994 2007-03-06  Bruno Haible  <bruno@clisp.org>
68995
68996         * modules/vsprintf-posix-tests: New file.
68997         * tests/test-vsprintf-posix.c: New file.
68998         * tests/test-sprintf-posix.h: New file.
68999
69000         * modules/vsprintf-posix: New file.
69001         * lib/vsprintf.c: New file.
69002         * m4/vsprintf-posix.m4: New file.
69003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69004         REPLACE_VSPRINTF.
69005         * lib/stdio_.h (vsprintf): New declaration.
69006         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69007         REPLACE_VSPRINTF.
69008
69009 2007-03-06  Bruno Haible  <bruno@clisp.org>
69010
69011         * modules/vsnprintf (Depend-on): Remove minmax.
69012
69013 2007-03-06  Bruno Haible  <bruno@clisp.org>
69014
69015         * modules/snprintf-posix-tests: New file.
69016         * tests/test-snprintf-posix.c: New file.
69017
69018         * modules/snprintf-posix: New file.
69019         * m4/snprintf-posix.m4: New file.
69020         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69021         gl_FUNC_SNPRINTF.
69022         (gl_FUNC_SNPRINTF): Invoke it.
69023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69024         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69025         is set.
69026         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69027
69028 2007-03-06  Bruno Haible  <bruno@clisp.org>
69029
69030         * modules/vsnprintf-posix-tests: New file.
69031         * tests/test-vsnprintf-posix.c: New file.
69032         * tests/test-snprintf-posix.h: New file.
69033
69034         * modules/vsnprintf-posix: New file.
69035         * m4/vsnprintf-posix.m4: New file.
69036         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69037         gl_FUNC_VSNPRINTF.
69038         (gl_FUNC_VSNPRINTF): Invoke it.
69039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69040         * lib/stdio_.h (vsnprintf): Define as a replacement if
69041         REPLACE_VSNPRINTF is set.
69042         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69043
69044 2007-03-06  Bruno Haible  <bruno@clisp.org>
69045
69046         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69047         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69048
69049 2007-03-06  Bruno Haible  <bruno@clisp.org>
69050
69051         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69052         (asinl): Declare also if HAVE_DECL_ASINL is set.
69053         (atanl): Declare also if HAVE_DECL_ATANL is set.
69054         (ceill): Declare also if HAVE_DECL_CEILL is set.
69055         (cosl): Declare also if HAVE_DECL_COSL is set.
69056         (expl): Declare also if HAVE_DECL_EXPL is set.
69057         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69058         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69059         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69060         (logl): Declare also if HAVE_DECL_LOGL is set.
69061         (sinl): Declare also if HAVE_DECL_SINL is set.
69062         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69063         (tanl): Declare also if HAVE_DECL_TANL is set.
69064         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69066         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69067         declaration of frexpl, ldexpl.
69068         * modules/printf-frexpl (Depends-on): Add math.
69069         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69070
69071 2007-03-05  Bruno Haible  <bruno@clisp.org>
69072
69073         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69074         frexpl and ldexpl are declared.
69075         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69076
69077 2007-03-05  Bruno Haible  <bruno@clisp.org>
69078
69079         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69080         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69081
69082 2007-03-05  Bruno Haible  <bruno@clisp.org>
69083
69084         * lib/stdio_.h: Include <stddef.h>.
69085
69086 2007-03-05  Bruno Haible  <bruno@clisp.org>
69087
69088         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69089
69090 2007-03-05  Bruno Haible  <bruno@clisp.org>
69091
69092         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69093         NetBSD 4, from Ralf Wildenhues.
69094
69095 2007-03-04  Bruno Haible  <bruno@clisp.org>
69096
69097         * lib/vasprintf.h: Update #if logic for the case when the functions
69098         exist but are overridden.
69099
69100 2007-03-04  Bruno Haible  <bruno@clisp.org>
69101
69102         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69103         implementations: glibc-2.4 and MacOS X 10.3.
69104         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69105         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69106         * tests/test-vasprintf-posix.c (test_function): Likewise.
69107
69108 2007-03-04  Bruno Haible  <bruno@clisp.org>
69109
69110         * modules/vasprintf-posix-tests: New file.
69111         * tests/test-vasprintf-posix.c: New file.
69112
69113         * modules/vasprintf-posix: New file.
69114         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69115         defined.
69116         * m4/vasprintf-posix.m4: New file.
69117         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69118         gl_FUNC_VASPRINTF.
69119         (gl_FUNC_VASPRINTF): Invoke it.
69120         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69121         here.
69122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69123
69124 2007-03-04  Bruno Haible  <bruno@clisp.org>
69125
69126         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69127         REPLACE_GETTIMEOFDAY.
69128         * modules/sys_time (Makefile.am): Likewise.
69129         * m4/sys_time_h.m4: Likewise.
69130         * m4/gettimeofday.m4: Likewise.
69131
69132 2007-03-04  Bruno Haible  <bruno@clisp.org>
69133
69134         * modules/vasnprintf-posix-tests: New file.
69135         * tests/test-vasnprintf-posix.c: New file.
69136
69137         * modules/vasnprintf-posix: New file.
69138         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69139         printf-frexpl.h.
69140         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69141         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69142         REPLACE_VASNPRINTF is defined.
69143         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69144         gl_FUNC_VASNPRINTF.
69145         (gl_FUNC_VASNPRINTF): Invoke it.
69146         * m4/vasnprintf-posix.m4: New file.
69147         * m4/printf.m4: New file.
69148
69149 2007-03-04  Bruno Haible  <bruno@clisp.org>
69150
69151         Compile progreloc.c only if --enable-relocatable is specified.
69152         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69153         if --enable-relocatable was specified.
69154         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69155         lib_SOURCES.
69156
69157 2007-03-04  Jim Meyering  <jim@meyering.net>
69158
69159         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69160         Use it consistently, rather than enumerating errno constants.
69161
69162 2007-03-04  Bruno Haible  <bruno@clisp.org>
69163
69164         * modules/xvasprintf-tests: New file.
69165         * tests/test-xvasprintf.c: New file.
69166
69167         * modules/vasprintf-tests: New file.
69168         * tests/test-vasprintf.c: New file.
69169
69170         * modules/vasnprintf-tests: New file.
69171         * tests/test-vasnprintf.c: New file.
69172
69173         * modules/vsnprintf-tests: New file.
69174         * tests/test-vsnprintf.c: New file.
69175
69176         * modules/snprintf-tests: New file.
69177         * tests/test-snprintf.c: New file.
69178
69179 2007-03-04  Bruno Haible  <bruno@clisp.org>
69180
69181         Compile relocatable.c only if --enable-relocatable is specified.
69182         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69183         gl_RELOCATABLE_LIBRARY.
69184         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69185         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69186         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69187         gl_RELOCATABLE_LIBRARY.
69188         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69189         (Makefile.am): Remove lib_SOURCES.
69190         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69191         gl_RELOCATABLE_LIBRARY.
69192         (Makefile.am): Remove lib_SOURCES.
69193         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69194         always.
69195         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69196         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69197
69198 2007-03-04  Bruno Haible  <bruno@clisp.org>
69199
69200         * modules/argmatch-tests: New file.
69201         * tests/test-argmatch.c: New file.
69202
69203         * tests/test-allocsa.c (main): Halve the number of loop runs.
69204
69205         * modules/alloca-opt-tests: New file.
69206         * tests/test-alloca-opt.c: New file.
69207
69208 2007-03-04  Jim Meyering  <jim@meyering.net>
69209
69210         Work around difference between Linux ACLs and Solaris 10 ZFS.
69211         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69212         for EINVAL.
69213
69214 2007-03-03  Bruno Haible  <bruno@clisp.org>
69215
69216         * modules/relocatable-prog (Depends-on): Add back progreloc's
69217         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69218
69219 2007-03-03  Bruno Haible  <bruno@clisp.org>
69220
69221         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69222         * modules/relocatable-lib: New file.
69223
69224 2007-03-03  Bruno Haible  <bruno@clisp.org>
69225
69226         * modules/relocatable-prog: Renamed from modules/relocatable.
69227         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69228
69229 2007-03-03  Bruno Haible  <bruno@clisp.org>
69230
69231         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69232         m4/relocatable-lib.m4.
69233         (Depends-on): Remove 'relocatable'.
69234         (configure.ac): Add gl_RELOCATABLE_NOP.
69235
69236 2007-03-03  Bruno Haible  <bruno@clisp.org>
69237
69238         * modules/relocatable-prog-wrapper: New file.
69239         * modules/relocatable (Depends-on): Add it. Remove all other
69240         dependencies except progname.
69241         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69242
69243         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69244         (gl_FUNC_STRERROR): Nop.
69245         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69246
69247         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69248         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69249
69250         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69251         (gl_FUNC_READLINK): Update.
69252
69253         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69254
69255 2007-03-03  Bruno Haible  <bruno@clisp.org>
69256
69257         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69258         * modules/xreadlink (Depends-on): Add unistd.
69259         * modules/xreadlink-with-size (Depends-on): Likewise.
69260
69261 2007-03-03  Bruno Haible  <bruno@clisp.org>
69262
69263         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69264         extracted from gt_FUNC_SETENV.
69265         (gt_FUNC_SETENV): Remove macro.
69266         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69267         remove gt_FUNC_SETENV.
69268
69269 2007-03-03  Bruno Haible  <bruno@clisp.org>
69270
69271         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69272         ENABLE_RELOCATABLE here.
69273         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69274
69275 2007-03-03  Bruno Haible  <bruno@clisp.org>
69276
69277         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69278         * tests/test-rbtreehash_list.c: Include progname.h.
69279         (main): Call set_program_name.
69280
69281         * modules/rbtree-oset-tests (Depends-on): Add progname.
69282         * tests/test-rbtree_oset.c: Include progname.h.
69283         (main): Call set_program_name.
69284
69285         * modules/rbtree-list-tests (Depends-on): Add progname.
69286         * tests/test-rbtree_list.c: Include progname.h.
69287         (main): Call set_program_name.
69288
69289         * modules/linked-list-tests (Depends-on): Add progname.
69290         * tests/test-linked_list.c: Include progname.h.
69291         (main): Call set_program_name.
69292
69293 2007-03-03  Bruno Haible  <bruno@clisp.org>
69294
69295         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69296         All uses of __restrict changed to _Restrict_.
69297         * lib/glob_.h (__restrict): Remove macro.
69298
69299 2007-03-02  Bruno Haible  <bruno@clisp.org>
69300
69301         * modules/gettext (configure.ac): Require gettext infrastructure
69302         from version 0.16.1.
69303
69304 2007-03-02  Bruno Haible  <bruno@clisp.org>
69305
69306         * modules/linkedhash-list-tests (Depends-on): Add progname.
69307         * tests/test-linkedhash_list.c: Include progname.h.
69308         (main): Call set_program_name.
69309
69310         * modules/carray-list-tests (Depends-on): Add progname.
69311         * tests/test-carray_list.c: Include progname.h.
69312         (main): Call set_program_name.
69313
69314         * modules/avltreehash-list-tests (Depends-on): Add progname.
69315         * tests/test-avltreehash_list.c: Include progname.h.
69316         (main): Call set_program_name.
69317
69318         * modules/avltree-oset-tests (Depends-on): Add progname.
69319         * tests/test-avltree_oset.c: Include progname.h.
69320         (main): Call set_program_name.
69321
69322         * modules/avltree-list-tests (Depends-on): Add progname.
69323         * tests/test-avltree_list.c: Include progname.h.
69324         (main): Call set_program_name.
69325
69326         * modules/array-oset-tests (Depends-on): Add progname.
69327         * tests/test-array_oset.c: Include progname.h.
69328         (main): Call set_program_name.
69329
69330         * modules/array-list-tests (Depends-on): Add progname.
69331         * tests/test-array_list.c: Include progname.h.
69332         (main): Call set_program_name.
69333
69334         * modules/argp-tests (Depends-on): Add progname.
69335         * tests/test-argp.c: Include argp.h first. Include progname.h.
69336         (main): Call set_program_name.
69337
69338 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69339
69340         * doc/gnulib-tool.texi (Initial import): Reword description of
69341         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69342         limited effect even if defined after the first system include.
69343
69344 2007-03-01  Bruno Haible  <bruno@clisp.org>
69345
69346         * build-aux/config.libpath: Update to libtool-1.5.22.
69347         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69348
69349 2007-03-01  Bruno Haible  <bruno@clisp.org>
69350
69351         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69352         foo_CFLAGS.
69353         Reported by Ralf Wildenhues.
69354
69355 2007-03-01  Bruno Haible  <bruno@clisp.org>
69356
69357         * build-aux/install-reloc: Remove object files left over by some
69358         compilers.
69359         Reported by Ralf Wildenhues.
69360
69361 2007-03-01  Bruno Haible  <bruno@clisp.org>
69362
69363         * build-aux/install-reloc: Break long lines.
69364
69365 2007-03-01  Bruno Haible  <bruno@clisp.org>
69366
69367         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69368         Reported by Ralf Wildenhues.
69369
69370 2007-03-01  Bruno Haible  <bruno@clisp.org>
69371
69372         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69373         include ordering constraints.
69374
69375 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69376
69377         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69378         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69379         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69380         as another example.
69381         * lib/time_.h: Fix misspelling.
69382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69383         Require gl_HEADER_TIME_H_DEFAULTS.
69384         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69385         * m4/time_r.m4 (gl_TIME_R): Likewise.
69386         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69387
69388 2007-03-01  Bruno Haible  <bruno@clisp.org>
69389
69390         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69391         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69392
69393 2007-03-01  Jim Meyering  <jim@meyering.net>
69394
69395         * modules/xreadlink (Maintainer): Add my name.
69396         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69397
69398 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69399             Bruno Haible  <bruno@clisp.org>
69400
69401         * build-aux/install-reloc: Compile also c-ctype.c.
69402         * build-aux/relocatable.sh.in: New file.
69403         * doc/relocatable.texi: New file.
69404         * doc/relocatable-maint.texi: New file.
69405         * doc/gnulib.texi: Include relocatable-maint.texi.
69406         * lib/progreloc.c: Include unistd.h unconditionally.
69407         * lib/relocwrapper.c: Include unistd.h unconditionally.
69408         Include c-ctype.h.
69409         (add_dotbin): Use c_tolower.
69410         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69411         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69412         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69413         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69414         to m4/relocatable-lib.m4.
69415         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69416         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69417         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69418         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69419         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69420         * modules/relocatable: New file.
69421         * modules/relocatable-lib: New file.
69422         * modules/relocatable-script: New file.
69423
69424 2007-02-28  Bruno Haible  <bruno@clisp.org>
69425
69426         Import --enable-relocatable infrastructure.
69427         * build-aux/config.libpath: New file, from GNU gettext.
69428         * build-aux/install-reloc: New file, from GNU gettext.
69429         * build-aux/reloc-ldflags: New file, from GNU gettext.
69430         * lib/relocatable.h: New file, from GNU gettext.
69431         * lib/relocatable.c: New file, from GNU gettext.
69432         * lib/relocwrapper.c: New file, from GNU gettext.
69433         * m4/relocatable.m4: New file, from GNU gettext.
69434
69435 2007-02-28  Bruno Haible  <bruno@clisp.org>
69436
69437         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69438
69439         * modules/xreadlink: New file, from GNU gettext with modifications.
69440         * lib/xreadlink.c: New file, from GNU gettext.
69441         * lib/xreadlink.h: Add comments.
69442         (xreadlink): New declaration.
69443
69444         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69445         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69446         lib/xreadlink-with-size.c.
69447         (configure.ac): Remove gl_XREADLINK invocation.
69448         (Makefile.am): Augment lib_SOURCES.
69449         * m4/xreadlink.m4: Remove file.
69450         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69451         (xreadlink_with_size): Renamed from xreadink.
69452         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69453         * modules/canonicalize (Depends-on): Replace xreadlink with
69454         xreadlink-with-size.
69455         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69456
69457 2007-02-25  Jim Meyering  <jim@meyering.net>
69458
69459         * build-aux/announce-gen: When complaining about excess arguments,
69460         list them.
69461
69462 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69463
69464         * README: Document signed integer overflow situation more
69465         accurately.
69466
69467 2007-02-25  Bruno Haible  <bruno@clisp.org>
69468
69469         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69470         'a' or 'A' conversion.
69471
69472 2007-02-25  Bruno Haible  <bruno@clisp.org>
69473
69474         * modules/filename: Renamed from modules/pathname.
69475         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69476         lib/concatpath.c with lib/concat-filename.c.
69477         (Makefile.am): Update.
69478         (Include): Replace pathname.h with filename.h.
69479         * lib/filename.h: Renamed from lib/pathname.h.
69480         (concatenated_filename): Renamed from concatenated_pathname.
69481         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69482         (concatenated_filename): Renamed from concatenated_pathname.
69483         * lib/findprog.c: Include filename.h instead of pathname.h.
69484         (find_in_path): Update.
69485         * lib/javacomp.c: Include filename.h instead of pathname.h.
69486         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69487         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69488         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69489         is_oldgcj_14_13_usable, is_javac_usable): Update.
69490         * lib/javaexec.c: Include filename.h instead of pathname.h.
69491         (execute_java_class): Update.
69492         * modules/findprog: Update.
69493         * modules/javacomp: Update.
69494         * modules/javaexec: Update.
69495         * MODULES.html.sh (File system functions): Add 'filename', remove
69496         'pathname'.
69497
69498 2007-02-25  Bruno Haible  <bruno@clisp.org>
69499
69500         * modules/printf-frexpl-tests: New file.
69501         * tests/test-printf-frexpl.c: New file.
69502
69503         * modules/printf-frexpl: New file.
69504         * lib/printf-frexpl.h: New file.
69505         * lib/printf-frexpl.c: New file.
69506         * m4/printf-frexpl.m4: New file.
69507
69508 2007-02-25  Bruno Haible  <bruno@clisp.org>
69509
69510         * modules/printf-frexp-tests: New file.
69511         * tests/test-printf-frexp.c: New file.
69512
69513         * modules/printf-frexp: New file.
69514         * lib/printf-frexp.h: New file.
69515         * lib/printf-frexp.c: New file.
69516         * m4/printf-frexp.m4: New file.
69517
69518 2007-02-25  Bruno Haible  <bruno@clisp.org>
69519
69520         Assume automake >= 1.10 for the tests.
69521         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69522         * modules/arctwo-tests: Likewise.
69523         * modules/argp-tests: Likewise.
69524         * modules/avltree-list-tests: Likewise.
69525         * modules/avltree-oset-tests: Likewise.
69526         * modules/avltreehash-list-tests: Likewise.
69527         * modules/carray-list-tests: Likewise.
69528         * modules/crc-tests: Likewise.
69529         * modules/des-tests: Likewise.
69530         * modules/gc-arcfour-tests: Likewise.
69531         * modules/gc-arctwo-tests: Likewise.
69532         * modules/gc-des-tests: Likewise.
69533         * modules/gc-hmac-md5-tests: Likewise.
69534         * modules/gc-hmac-sha1-tests: Likewise.
69535         * modules/gc-md2-tests: Likewise.
69536         * modules/gc-md4-tests: Likewise.
69537         * modules/gc-md5-tests: Likewise.
69538         * modules/gc-pbkdf2-sha1-tests: Likewise.
69539         * modules/gc-rijndael-tests: Likewise.
69540         * modules/gc-sha1-tests: Likewise.
69541         * modules/gc-tests: Likewise.
69542         * modules/getaddrinfo-tests: Likewise.
69543         * modules/hmac-md5-tests: Likewise.
69544         * modules/hmac-sha1-tests: Likewise.
69545         * modules/linked-list-tests: Likewise.
69546         * modules/linkedhash-list-tests: Likewise.
69547         * modules/lock-tests: Likewise.
69548         * modules/md2-tests: Likewise.
69549         * modules/md4-tests: Likewise.
69550         * modules/md5-tests: Likewise.
69551         * modules/rbtree-list-tests: Likewise.
69552         * modules/rbtree-oset-tests: Likewise.
69553         * modules/rbtreehash-list-tests: Likewise.
69554         * modules/read-file-tests: Likewise.
69555         * modules/rijndael-tests: Likewise.
69556         * modules/stdint-tests: Likewise.
69557         * modules/tls-tests: Likewise.
69558
69559 2007-02-24  Bruno Haible  <bruno@clisp.org>
69560
69561         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69562         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69563         function; instead check whether isnan with a double argument links.
69564         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69565         function; instead check whether isnan with a 'long double' argument
69566         links.
69567         Reported by Eric Blake <ebb9@byu.net>.
69568
69569 2007-02-24  Bruno Haible  <bruno@clisp.org>
69570
69571         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69572         defined.
69573         * lib/isnanl.c: Remove all code. Just include isnan.c.
69574         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69575
69576 2007-02-25  Jim Meyering  <jim@meyering.net>
69577
69578         Avoid conflicting types for 'unsetenv' on FreeBSD.
69579         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69580         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69581         in stdlib.h.
69582
69583 2007-02-24  Bruno Haible  <bruno@clisp.org>
69584
69585         * modules/isnanl-nolibm-tests: New file.
69586         * tests/test-isnanl.c: New file.
69587
69588         * modules/isnanl-nolibm: New file.
69589         * lib/isnanl.h: New file.
69590         * lib/isnanl.c: New file.
69591         * m4/isnanl.m4: New file.
69592
69593 2007-02-24  Bruno Haible  <bruno@clisp.org>
69594
69595         * modules/isnan-nolibm-tests: New file.
69596         * tests/test-isnan.c: New file.
69597
69598         * modules/isnan-nolibm: New file.
69599         * lib/isnan.h: New file.
69600         * lib/isnan.c: New file.
69601         * m4/isnan.m4: New file.
69602
69603 2007-02-24  Bruno Haible  <bruno@clisp.org>
69604
69605         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69606         assume that an exponent fits in 20 bits.
69607
69608 2007-02-24  Jim Meyering  <jim@meyering.net>
69609
69610         * m4/regex.m4: Update the description of the configure-time option,
69611         --without-included-regex, to state accurately what the defaults are,
69612         and perhaps to give people an idea why using this option is risky.
69613
69614 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69615
69616         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69617         loops on small arguments.  This attempts to avoid the problem
69618         Bruno Haible reported for AIX 4.3.2 in
69619         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69620
69621 2007-02-23  Bruno Haible  <bruno@clisp.org>
69622
69623         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69624         Needed for help2man.
69625
69626 2007-02-23  Karl Berry  <karl@gnu.org>
69627
69628         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69629         exists, foo.h should be cvs-ignored, not committed.
69630
69631 2007-02-23  Eric Blake  <ebb9@byu.net>
69632
69633         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69634         * lib/stat-time.h (includes): Likewise.
69635         * lib/utimecmp.c (includes): Likewise.
69636         * lib/utimens.h (includes): Likewise.
69637         * lib/getdate.y (includes): Also include "timespec.h" for use
69638         internal to the module.
69639         * modules/utimens (Depends-on): Revert yesterday's patch.
69640         * modules/nanosleep (Depends-on): Add missing dependency.
69641
69642 2007-02-22  Bruno Haible  <bruno@clisp.org>
69643
69644         * lib/glob.c: Don't include getlogin_r.h.
69645
69646 2007-02-22  Jim Meyering  <jim@meyering.net>
69647
69648         * modules/utimens (Depends-on): Add timespec, required for
69649         utimens.h's inclusion of timespec.h.
69650
69651 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69652
69653         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69654         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69655         Schwab in
69656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69657         I'll try to think of a better way to fix the Solaris problem.
69658
69659         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69660         like glibc; on Solaris 10, it fails with errno == EINVAL.
69661         POSIX says the behavior is unspecified if the first argument is NULL,
69662         so play it safe and never pass NULL to the system getcwd.
69663
69664 2007-02-21  Jim Meyering  <jim@meyering.net>
69665
69666         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69667         of gettimeofday.  It would conflict with the one now always
69668         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69669         an IRIX 6.5 build failure.
69670
69671 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69672
69673         Minor fixups to port to Solaris 10 with Sun C 5.8.
69674         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69675         * modules/getcwd (Depends-on): Add dirfd.
69676         * lib/putenv.c (putenv): #undef it.
69677         (rpl_putenv): New decl.
69678         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69679
69680 2007-02-20  Bruno Haible  <bruno@clisp.org>
69681
69682         * modules/stdio-tests: New file.
69683         * tests/test-stdio.c: New file.
69684
69685         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69686         (Depends-on): Add stdio.
69687         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69688         (Include): Use <stdio.h> instead of vsnprintf.h.
69689         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69690         HAVE_DECL_VSNPRINTF.
69691         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69692
69693         * modules/snprintf (Files): Remove lib/snprintf.h.
69694         (Depends-on): Add stdio.
69695         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69696         (Include): Use <stdio.h> instead of snprintf.h.
69697         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69698         HAVE_DECL_SNPRINTF.
69699         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69700         * lib/getaddrinfo.c: Likewise.
69701
69702         * modules/stdio: New file.
69703         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69704         * lib/snprintf.h: Remove file.
69705         * lib/vsnprintf.h: Remove file.
69706         * lib/.cppi-disable: Remove snprintf.h.
69707         * m4/stdio_h.m4: New file.
69708         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69709
69710 2007-02-20  Jim Meyering  <jim@meyering.net>
69711
69712         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69713         used by e.g., mingw.  From Bruno Haible.
69714
69715 2007-02-19  Bruno Haible  <bruno@clisp.org>
69716
69717         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69718         warnings.
69719         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69720
69721 2007-02-19  Bruno Haible  <bruno@clisp.org>
69722
69723         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69724         from mingw users.
69725
69726 2007-02-19  Bruno Haible  <bruno@clisp.org>
69727
69728         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69729         warnings.
69730         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69731
69732 2007-02-19  Jim Meyering  <jim@meyering.net>
69733
69734         Don't use FD after a successful "fdopendir (fd)".
69735         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69736         Reset it by calling dirfd on the just-obtained DIR*.
69737
69738         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69739         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69740
69741 2007-02-18  Bruno Haible  <bruno@clisp.org>
69742
69743         * lib/readlink.c: Include <unistd.h>.
69744         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69745         HAVE_READLINK.
69746         * modules/readlink (Depends-on): Add unistd.
69747         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69748         (Include): Add <unistd.h>.
69749
69750         * lib/getlogin_r.h: Remove file.
69751         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69752         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69753         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69754         HAVE_DECL_GETLOGIN_R.
69755         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69757         (Include): Use <unistd.h> instead of getlogin_r.h.
69758
69759         * lib/getcwd.h: Remove file.
69760         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69761         * lib/xgetcwd.c: Likewise.
69762         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69763         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69764         * modules/getcwd (Files): Remove lib/getcwd.h.
69765         (Depends-on): Add unistd.
69766         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69767         (Include): Use <unistd.h> instad of getcwd.h.
69768
69769         * lib/ftruncate.c: Include <unistd.h> first.
69770         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69771         Set HAVE_FTRUNCATE.
69772         * modules/ftruncate (Depends-on): Add unistd.
69773         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69774
69775         * lib/fchdir.c: Include <unistd.h> first.
69776         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69777         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69778         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69779         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69780         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69781
69782         * lib/dup2.c: Include <unistd.h> first.
69783         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69784         HAVE_DUP2.
69785         * modules/dup2 (Depends-on): Add unistd.
69786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69787
69788         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69789         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69790         REPLACE_CHOWN. Don't define chown as a macro here.
69791         * modules/chown (Depends-on): Add unistd.
69792         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69793
69794         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69795         Add definition for GL_LINK_WARNING.
69796         (chown, dup2): New declarations.
69797         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69798         link warning.
69799         (ftruncate): New declaration.
69800         (getcwd): New declaration, taken from old getcwd.h.
69801         (getlogin_r): New declaration, taken from old getlogin_r.h.
69802         (readlink): New declaration.
69803         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69804         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69805         (gl_PREREQ_UNISTD): Remove macro.
69806         (gl_UNISTD_MODULE_INDICATOR): New macro.
69807         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69808         many new variables. Don't set UNISTD_H.
69809         * modules/unistd (Description): Change.
69810         (Depends-on): Add link-warning.
69811         (configure.ac): Update.
69812         (Makefile.am): Create unistd.h always. Substitute many new variables
69813         into it.
69814
69815 2007-02-18  Bruno Haible  <bruno@clisp.org>
69816
69817         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69818         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69819         HAVE_GETSUBOPT.
69820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69821         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69822         * lib/getsubopt.h: Remove file.
69823         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69824         (Depends-on): Add stdlib.
69825         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69826         (Includes): Use <stdlib.h> instead of getsubopt.h.
69827         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69828         Set HAVE_GETSUBOPT.
69829         * lib/getsubopt.c: Don't include getsubopt.h.
69830
69831 2007-02-18  Bruno Haible  <bruno@clisp.org>
69832
69833         * modules/fchdir (Depends-on): Add dup2.
69834
69835 2007-02-18  Bruno Haible  <bruno@clisp.org>
69836
69837         * lib/stdlib_.h: Handle glibc's special invocation convention
69838         specially.
69839
69840 2007-02-18  Bruno Haible  <bruno@clisp.org>
69841
69842         * modules/stdlib-tests: New file.
69843         * tests/test-stdlib.c: New file.
69844
69845         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69846         (Depends-on): Add stdlib.
69847         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69848         (Includes): Use <stdlib.h> instead of mkstemp.h.
69849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69850         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69851         * lib/mkstemp.c: Don't include mkstemp.h.
69852         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69853         * lib/stdlib--.h: Don't include mkstemp.h.
69854
69855         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69856         (Depends-on): Add stdlib.
69857         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69858         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69859         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69860         HAVE_MKDTEMP.
69861         * lib/mkdtemp.c: Don't include mkdtemp.h.
69862         * lib/clean-temp.c: Don't include mkdtemp.h.
69863
69864         * modules/exit (Files): Remove lib/exit.h.
69865         (Depends-on): Add stdlib.
69866         (Makefile.am): Remove lib_SOURCES.
69867         (Include): Use <stdlib.h> instead of exit.h.
69868         * lib/argmatch.c: Don't include exit.h.
69869         * lib/execute.c: Likewise.
69870         * lib/pagealign_alloc.c: Likewise.
69871         * lib/pipe.c: Likewise.
69872         * lib/wait-process.c: Likewise.
69873         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69874         * lib/exitfail.c: Likewise.
69875         * lib/savewd.c: Likewise.
69876         * lib/xsetenv.c: Likewise.
69877
69878         * modules/stdlib: New file.
69879         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69880         and extra comments about mkstemp().
69881         * lib/exit.h: Remove file.
69882         * lib/mkdtemp.h: Remove file.
69883         * lib/mkstemp.h: Remove file.
69884         * m4/stdlib_h.m4: New file.
69885         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69886
69887 2007-02-18  Bruno Haible  <bruno@clisp.org>
69888
69889         * modules/math-tests: New file.
69890         * tests/test-math.c: New file.
69891
69892         * modules/math: New file.
69893         * modules/mathl (Files): Remove lib/mathl.h.
69894         (Depends-on): Add math.
69895         (Makefile.am): Don't mention mathl.h.
69896         (Include): Use <math.h> instead of mathl.h.
69897         * lib/math_.h: New file.
69898         * lib/mathl.h: Remove file.
69899         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69900         mathl.h.
69901         * lib/asinl.c: Likewise.
69902         * lib/atanl.c: Likewise.
69903         * lib/ceill.c: Likewise.
69904         * lib/cosl.c: Likewise.
69905         * lib/expl.c: Likewise.
69906         * lib/floorl.c: Likewise.
69907         * lib/frexpl.c: Likewise.
69908         * lib/ldexpl.c: Likewise.
69909         * lib/logl.c: Likewise.
69910         * lib/sincosl.c: Likewise.
69911         * lib/sinl.c: Likewise.
69912         * lib/sqrtl.c: Likewise.
69913         * lib/tanl.c: Likewise.
69914         * lib/trigl.c: Likewise.
69915         * m4/math_h.m4: New file.
69916         * MODULES.html.sh (Mathematics): Add math.
69917
69918 2007-02-17  Bruno Haible  <bruno@clisp.org>
69919
69920         * modules/wctype-tests: New file.
69921         * tests/test-wctype.c: New file.
69922
69923         * modules/wchar-tests: New file.
69924         * tests/test-wchar.c: New file.
69925
69926         * modules/unistd-tests: New file.
69927         * tests/test-unistd.c: New file.
69928
69929         * modules/time-tests: New file.
69930         * tests/test-time.c: New file.
69931
69932         * modules/sysexits-tests: New file.
69933         * tests/test-sysexits.c: New file.
69934
69935         * modules/sys_time-tests: New file.
69936         * tests/test-sys_time.c: New file.
69937
69938         * modules/sys_stat-tests: New file.
69939         * tests/test-sys_stat.c: New file.
69940
69941         * modules/sys_socket-tests: New file.
69942         * tests/test-sys_socket.c: New file.
69943
69944         * modules/sys_select-tests: New file.
69945         * tests/test-sys_select.c: New file.
69946
69947         * modules/string-tests: New file.
69948         * tests/test-string.c: New file.
69949
69950         * modules/stdbool-tests: New file.
69951         * tests/test-stdbool.c: New file.
69952
69953         * modules/netinet_in-tests: New file.
69954         * tests/test-netinet_in.c: New file.
69955
69956         * modules/inttypes-tests: New file.
69957         * tests/test-inttypes.c: New file.
69958
69959         * modules/fcntl-tests: New file.
69960         * tests/test-fcntl.c: New file.
69961
69962         * modules/byteswap-tests: New file.
69963         * tests/test-byteswap.c: New file.
69964
69965         * modules/arpa_inet-tests: New file.
69966         * tests/test-arpa_inet.c: New file.
69967
69968 2007-02-17  Bruno Haible  <bruno@clisp.org>
69969
69970         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69971         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69972         if the corresponding module is not enabled. Emit link warnings if
69973         the function is used nevertheless.
69974         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69975         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69976         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69977         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69978         * modules/inttypes (Depends-on): Add link-warning.
69979         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69980         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69981         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69982         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69983         * modules/imaxdiv (configure.ac): Likewise.
69984         * modules/strtoimax (configure.ac): Likewise.
69985         * modules/strtoumax (configure.ac): Likewise.
69986
69987 2007-02-17  Bruno Haible  <bruno@clisp.org>
69988
69989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69990         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69991         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69992         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69993
69994 2007-02-17  Bruno Haible  <bruno@clisp.org>
69995
69996         * modules/link-warning: New file.
69997         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69998         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69999         * modules/string (Depends-on): Add link-warning.
70000         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70001         string.h.
70002         * MODULES.html.sh (Support for building libraries and executables): Add
70003         link-warning.
70004
70005 2007-02-17  Bruno Haible  <bruno@clisp.org>
70006
70007         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70008         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70009         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70010         long lines.
70011
70012 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70013             Bruno Haible  <bruno@clisp.org>
70014
70015         * modules/tmpfile: New file.
70016         * lib/tmpfile.c: New file.
70017         * m4/tmpfile.m4: New file.
70018         * MODULES.html.sh (func_all_modules): New section "Input/output".
70019
70020 2007-02-15  Bruno Haible  <bruno@clisp.org>
70021
70022         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70023         (supports_delete_on_close): New function.
70024         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70025
70026 2007-02-14  Bruno Haible  <bruno@clisp.org>
70027
70028         * modules/mbspcasecmp-tests: New file.
70029         * tests/test-mbspcasecmp.sh: New file.
70030         * tests/test-mbspcasecmp.c: New file.
70031
70032         New module mbspcasecmp.
70033         * modules/mbspcasecmp: New file.
70034         * lib/mbspcasecmp.c: New file.
70035         * lib/string_.h (strncasecmp): Change warning message.
70036         (mbspcasecmp): New declaration.
70037         * m4/mbspcasecmp.m4: New file.
70038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70039         GNULIB_MBSPCASECMP.
70040         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70041         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70042
70043 2007-02-14  Bruno Haible  <bruno@clisp.org>
70044
70045         * modules/mbsncasecmp-tests: New file.
70046         * tests/test-mbsncasecmp.sh: New file.
70047         * tests/test-mbsncasecmp.c: New file.
70048
70049         New module mbsncasecmp.
70050         * modules/mbsncasecmp: New file.
70051         * lib/mbsncasecmp.c: New file.
70052         * lib/string_.h (mbsncasecmp): New declaration.
70053         * m4/mbsncasecmp.m4: New file.
70054         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70055         GNULIB_MBSNCASECMP.
70056         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70057         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70058
70059 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70060
70061         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70062         Verify that it doesn't overlap with our flags.
70063         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70064         do not have the desired effect in multibyte locales; instead, use
70065         mbscasecmp.
70066         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70067         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70068         we don't require GNU fnmatch ourselves (if our users require it, they
70069         should do so explicitly).
70070
70071         Fix regex code so it doesn't rely on strcasecmp.
70072         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70073         Otherwise, include gnulib's langinfo.h.
70074         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70075         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70076         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70077         * modules/regex (FILES): Remove m4/codeset.m4.
70078         (Depends-on): Add localcharset.  Remove strcase.
70079
70080 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70081
70082         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70083         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70084
70085 2007-02-13  Bruno Haible  <bruno@clisp.org>
70086
70087         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70089
70090 2007-02-12  Bruno Haible  <bruno@clisp.org>
70091
70092         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70093         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70094         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70095         time warning rather than a link error.
70096
70097 2007-02-12  Bruno Haible  <bruno@clisp.org>
70098
70099         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70100         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70101         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70102
70103 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70104
70105         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70106         args, not 2.
70107
70108 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70109
70110         New module 'time', so that apps can include <time.h> as per
70111         POSIX and GNU instead of separate include files like time_r.h
70112         and timegm.h.  This implementation tries out a simpler approach
70113         for replacing decls in standard include files (as compared to
70114         the string module), somewhat as an experiment.
70115
70116         * config/srclist.txt: Comment out mktime.c for now.
70117         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70118         since it doesn't apply any more.  Use generic wording instead.
70119         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70120         'time'.
70121         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70122         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70123         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70124         Don't include <sys/types.h>; no longer needed since we assume C89.
70125         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70126         * lib/strftime.c: Likewise.
70127         * lib/time_r.c: Likewise.
70128         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70129         * lib/nanosleep.c: Include <time.h> first, to check interface.
70130         * lib/strptime.c: Likewise.
70131         * lib/time_r.c: Likewise.
70132         * lib/timegm.c: Likewise.
70133         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70134         needed.
70135         * lib/timegm.c: Don't include timegm.h; no longer needed.
70136         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70137         time.h now handles any problems in that area.
70138         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70139         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70140         that time.h defines struct timespec.
70141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70142         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70143         handles that.
70144         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70145         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70146         needed.  Set REPLACE_LOCALTIME.
70147         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70148         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70149         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70150         nanosleep; time_h.m4 now does that.  Don't require
70151         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70152         module handles this now.
70153         * modules/getdate (Depends-on): Remove timespec.  Add time.
70154         * modules/nanosleep (Depends-on): Likewise.
70155         * modules/stat-time (Depends-on): Likewise.
70156         * modules/nanosleep (Include): Include time.h, not timespec.h.
70157         * modules/strptime (Files): Remove lib/strptime.h.
70158         (Depends-on): Add extensions, time.
70159         (Include): Include time.h, not strptime.h.
70160         * modules/time_r (Files): Remove lib/time_r.h.
70161         (Depends-on): Add time.
70162         (Include): Include time.h, not time_r.h.
70163         * modules/timegm: Likewise.
70164         * modules/timespec (Description): Now does timespec-related decls
70165         of our own, instead of struct timespec itself.
70166         (Depends-on): Add time; remove extensions.
70167         (Maintainer): Add self.
70168         * modules/utimecmp (Depends-on): Add time; remove timespec.
70169         * modules/utimens (Depends-on): Likewise.
70170         * modules/xnanosleep (Depends-on): Likewise.
70171
70172 2007-02-11  Bruno Haible  <bruno@clisp.org>
70173
70174         * lib/c-strstr.c: Include allocsa.h.
70175         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70176         * lib/c-strcasestr.c: Include allocsa.h.
70177         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70178         * lib/strcasestr.c: Include allocsa.h.
70179         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70180         * lib/mbsstr.c: Include allocsa.h.
70181         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70182         allocsa/freesa instead of malloc/free.
70183         * lib/mbscasestr.c: Include allocsa.h.
70184         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70185         allocsa/freesa instead of malloc/free.
70186         * modules/c-strstr (Depends-on): Add allocsa.
70187         * modules/c-strcasestr (Depends-on): Likewise.
70188         * modules/strcasestr (Depends-on): Likewise.
70189         * modules/mbsstr (Depends-on): Likewise.
70190         * modules/mbscasestr (Depends-on): Likewise.
70191
70192 2007-02-11  Bruno Haible  <bruno@clisp.org>
70193
70194         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70195
70196         * modules/mbsspn-tests: New file.
70197         * tests/test-mbsspn.sh: New file.
70198         * tests/test-mbsspn.c: New file.
70199
70200 2007-02-11  Bruno Haible  <bruno@clisp.org>
70201
70202         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70203
70204         * modules/mbspbrk-tests: New file.
70205         * tests/test-mbspbrk.sh: New file.
70206         * tests/test-mbspbrk.c: New file.
70207
70208 2007-02-11  Bruno Haible  <bruno@clisp.org>
70209
70210         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70211         unneeded cast.
70212
70213         * modules/mbscspn-tests: New file.
70214         * tests/test-mbscspn.sh: New file.
70215         * tests/test-mbscspn.c: New file.
70216
70217 2007-02-11  Bruno Haible  <bruno@clisp.org>
70218
70219         * modules/mbscasecmp-tests: New file.
70220         * tests/test-mbscasecmp.sh: New file.
70221         * tests/test-mbscasecmp.c: New file.
70222
70223 2007-02-11  Bruno Haible  <bruno@clisp.org>
70224
70225         Ensure O(n) worst-case complexity of mbscasestr.
70226         * lib/mbscasestr.c: Include stdbool.h.
70227         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70228         functions.
70229         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70230         the bookkeeping indicates that it's worth it.
70231         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70232
70233         * modules/mbscasestr-tests: New file.
70234         * tests/test-mbscasestr1.c: New file.
70235         * tests/test-mbscasestr2.sh: New file.
70236         * tests/test-mbscasestr2.c: New file.
70237         * tests/test-mbscasestr3.sh: New file.
70238         * tests/test-mbscasestr3.c: New file.
70239         * tests/test-mbscasestr4.sh: New file.
70240         * tests/test-mbscasestr4.c: New file.
70241         * m4/locale-tr.m4: New file.
70242
70243 2007-02-11  Bruno Haible  <bruno@clisp.org>
70244
70245         Ensure O(n) worst-case complexity of mbsstr.
70246         * lib/mbsstr.c: Include stdbool.h.
70247         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70248         functions.
70249         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70250         bookkeeping indicates that it's worth it.
70251         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70252
70253         * modules/mbsstr-tests: New file.
70254         * tests/test-mbsstr1.c: New file.
70255         * tests/test-mbsstr2.sh: New file.
70256         * tests/test-mbsstr2.c: New file.
70257         * tests/test-mbsstr3.sh: New file.
70258         * tests/test-mbsstr3.c: New file.
70259         * m4/locale-fr.m4: New file.
70260
70261 2007-02-11  Bruno Haible  <bruno@clisp.org>
70262
70263         * lib/mbsrchr.c (mbsrchr): Fix bug.
70264
70265         * modules/mbsrchr-tests: New file.
70266         * tests/test-mbsrchr.sh: New file.
70267         * tests/test-mbsrchr.c: New file.
70268
70269 2007-02-11  Bruno Haible  <bruno@clisp.org>
70270
70271         * lib/mbschr.c (mbschr): Fix bug.
70272
70273         * modules/mbschr-tests: New file.
70274         * tests/test-mbschr.sh: New file.
70275         * tests/test-mbschr.c: New file.
70276         * m4/locale-zh.m4: New file.
70277
70278 2007-02-11  Bruno Haible  <bruno@clisp.org>
70279
70280         Support for copying multibyte string iterators.
70281         * lib/mbiter.h: Include <string.h>.
70282         (mbiter_multi_copy): New function.
70283         (mbi_copy): New macro.
70284         * lib/mbuiter.h: Include <string.h>.
70285         (mbuiter_multi_copy): New function.
70286         (mbui_copy): New macro.
70287
70288 2007-02-11  Bruno Haible  <bruno@clisp.org>
70289
70290         New module mbslen.
70291         * modules/mbslen: New file.
70292         * lib/mbslen.c: New file.
70293         * lib/string_.h (mbslen): New declaration.
70294         * m4/mbslen.m4: New file.
70295         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70296         GNULIB_MBSLEN.
70297         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70298         * MODULES.html.sh (Internationalization functions): Add mbslen.
70299
70300 2007-02-11  Bruno Haible  <bruno@clisp.org>
70301
70302         Ensure O(n) worst-case complexity of strcasestr substitute.
70303         * lib/strcasestr.c: Include stdbool.h.
70304         (knuth_morris_pratt): New function.
70305         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70306         bookkeeping indicates that it's worth it.
70307         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70308
70309         * modules/strcasestr-tests: New file.
70310         * tests/test-strcasestr.c: New file.
70311
70312 2007-02-11  Bruno Haible  <bruno@clisp.org>
70313
70314         Ensure O(n) worst-case complexity of c_strcasestr.
70315         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70316         (knuth_morris_pratt): New function.
70317         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70318         the bookkeeping indicates that it's worth it.
70319         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70320
70321         * modules/c-strcasestr-tests: New file.
70322         * tests/test-c-strcasestr.c: New file.
70323
70324 2007-02-11  Bruno Haible  <bruno@clisp.org>
70325
70326         Ensure O(n) worst-case complexity of c_strstr.
70327         * lib/c-strstr.c: Include stdbool.h, string.h.
70328         (knuth_morris_pratt): New function.
70329         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70330         bookkeeping indicates that it's worth it.
70331         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70332
70333         * lib/c-strstr.c: Complete rewrite for maintainability.
70334
70335         * modules/c-strstr-tests: New file.
70336         * tests/test-c-strstr.c: New file.
70337
70338 2007-02-11  Bruno Haible  <bruno@clisp.org>
70339
70340         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70341         5.2.1 and earlier, whereby \055 was treated just like the range
70342         delimiter '-'.
70343         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70344
70345 2007-02-08  Bruno Haible  <bruno@clisp.org>
70346
70347         * modules/regex (Depends-on): Add stdbool.
70348         Reported by Dalibor Topic <robilad@kaffe.org>.
70349
70350 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70351
70352         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70353         Prefer returning from main to exiting from it.
70354         Remove unnecessary parens after sizeof.
70355
70356 2007-02-05  Bruno Haible  <bruno@clisp.org>
70357
70358         New module mbssep.
70359         * modules/mbssep: New file.
70360         * lib/mbssep.c: New file.
70361         * lib/string_.h (strsep): Add a conditional link warning.
70362         (mbssep): New declaration.
70363         * m4/mbssep.m4: New file.
70364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70365         GNULIB_MBSSEP.
70366         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70367         * MODULES.html.sh (Internationalization functions): Add mbssep.
70368
70369 2007-02-05  Bruno Haible  <bruno@clisp.org>
70370
70371         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70372         Optimize search in case of 1 delimiter.
70373
70374 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70375
70376         * lib/acl.h: Include sys/types.h before sys/acl.h.
70377
70378 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70379
70380         Merge upstream fix for glibc bugzilla #3957:
70381
70382         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70383
70384         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70385         bit for RE_HAT_LISTS_NOT_NEWLINE.
70386         (build_charclass_op): Remove bogus comment.
70387
70388 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70389
70390         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70391
70392 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70393
70394         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70395         * lib/memmem.c [!defined _LIBC]: Include config.h.
70396
70397 2007-02-04  Bruno Haible  <bruno@clisp.org>
70398
70399         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70400         warning message.
70401
70402 2007-02-04  Bruno Haible  <bruno@clisp.org>
70403
70404         New module mbstok_r.
70405         * modules/mbstok_r: New file.
70406         * lib/mbstok_r.c: New file.
70407         * lib/string_.h (strtok_r): Change argument names to match the
70408         comments. Add a conditional link warning.
70409         (mbstok_r): New declaration.
70410         * m4/mbstok_r.m4: New file.
70411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70412         GNULIB_MBSTOK_R.
70413         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70414         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70415
70416 2007-02-04  Bruno Haible  <bruno@clisp.org>
70417
70418         New module mbsspn.
70419         * modules/mbsspn: New file.
70420         * lib/mbsspn.c: New file.
70421         * lib/string_.h (strspn): Add a conditional link warning.
70422         (mbsspn): New declaration.
70423         * m4/mbsspn.m4: New file.
70424         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70425         GNULIB_MBSSPN.
70426         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70427         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70428
70429 2007-02-04  Bruno Haible  <bruno@clisp.org>
70430
70431         New module mbspbrk.
70432         * modules/mbspbrk: New file.
70433         * lib/mbspbrk.c: New file.
70434         * lib/string_.h (strpbrk): Add a conditional link warning.
70435         (mbspbrk): New declaration.
70436         * m4/mbspbrk.m4: New file.
70437         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70438         GNULIB_MBSPBRK.
70439         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70440         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70441
70442 2007-02-04  Bruno Haible  <bruno@clisp.org>
70443
70444         New module mbscspn.
70445         * modules/mbscspn: New file.
70446         * lib/mbscspn.c: New file.
70447         * lib/string_.h (strcspn): Add a conditional link warning.
70448         (mbscspn): New declaration.
70449         * m4/mbscspn.m4: New file.
70450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70451         GNULIB_MBSCSPN.
70452         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70453         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70454
70455 2007-02-04  Bruno Haible  <bruno@clisp.org>
70456
70457         New module mbscasestr, reduced goal of strcasestr.
70458         * modules/mbscasestr: New file.
70459         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70460         (mbscasestr): Renamed from strcasestr.
70461         * lib/strcasestr.c: Don't include mbuiter.h.
70462         (strcasestr): Remove support for multibyte locales.
70463         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70464         Change the conditional link warning.
70465         (mbscasestr): New declaration.
70466         * m4/mbscasestr.m4: New file.
70467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70468         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70469         REPLACE_STRCASESTR.
70470         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70471         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70472         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70473         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70474         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70475         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70476         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70477         (Depends-on): Remove mbuiter.
70478         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70479
70480 2007-02-04  Bruno Haible  <bruno@clisp.org>
70481
70482         Simplify handling of strncasecmp.
70483         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70484         the conditional link warning.
70485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70486         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70487         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70488         * modules/strcase (configure.ac): Don't invoke
70489         gl_STRING_MODULE_INDICATOR.
70490         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70491
70492 2007-02-04  Bruno Haible  <bruno@clisp.org>
70493
70494         New module mbscasecmp, reduced goal of strcasecmp.
70495         * modules/mbscasecmp: New file.
70496         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70497         (mbscasecmp): Renamed from strcasecmp.
70498         * lib/strcasecmp.c: Don't include mbuiter.h.
70499         (strcasecmp): Remove support for multibyte locales.
70500         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70501         Change the conditional link warning.
70502         (mbscasecmp): New declaration.
70503         * m4/mbscasecmp.m4: New file.
70504         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70505         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70506         REPLACE_STRCASECMP.
70507         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70509         GNULIB_MBSCASECMP.
70510         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70511         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70512         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70513         (Depends-on): Remove mbuiter.
70514         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70515
70516 2007-02-04  Bruno Haible  <bruno@clisp.org>
70517
70518         New module mbsstr. Remove module strstr.
70519         * modules/mbsstr: New file.
70520         * modules/strstr: Remove file.
70521         * lib/mbsstr.c: Renamed from lib/strstr.c.
70522         (mbsstr): Renamed from strstr.
70523         * lib/string_.h (strstr): Remove declaration. Change the conditional
70524         link warning.
70525         (mbsstr): New declaration.
70526         * m4/mbsstr.m4: New file.
70527         * m4/strstr.m4: Remove file.
70528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70529         REPLACE_STRSTR.
70530         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70531         Don't initialize GNULIB_STRSTR.
70532         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70533         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70534         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70535         (Support for systems lacking ANSI C 89): Remove strstr.
70536
70537 2007-02-04  Bruno Haible  <bruno@clisp.org>
70538
70539         New module mbsrchr.
70540         * modules/mbsrchr: New file.
70541         * lib/mbsrchr.c: New file.
70542         * lib/string_.h (strrchr): Add a conditional link warning.
70543         (mbsrchr): New declaration.
70544         * m4/mbsrchr.m4: New file.
70545         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70546         GNULIB_MBSRCHR.
70547         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70548         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70549
70550 2007-02-04  Bruno Haible  <bruno@clisp.org>
70551
70552         New module mbschr.
70553         * modules/mbschr: New file.
70554         * lib/mbschr.c: New file.
70555         * lib/string_.h (strchr): Add a conditional link warning.
70556         (mbschr): New declaration.
70557         * m4/mbschr.m4: New file.
70558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70559         GNULIB_MBSCHR.
70560         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70561         * MODULES.html.sh (Internationalization functions): Add mbschr.
70562
70563 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70564
70565         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70566
70567         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70568
70569 2007-02-04  Bruno Haible  <bruno@clisp.org>
70570
70571         New module description section 'configure.ac-early'.
70572         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70573         (func_get_autoconf_early_snippet): New function.
70574         (func_import, func_create_testdir): Use it. Remove special cases for
70575         modules 'extensions' and 'lock'.
70576         * modules/extensions (configure.ac-early): Require
70577         gl_USE_SYSTEM_EXTENSIONS.
70578         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70579
70580 2007-02-04  Bruno Haible  <bruno@clisp.org>
70581
70582         Make use of gcj-4.3's -fsource and -ftarget option.
70583         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70584         and if so try the options -fsource and -ftarget.
70585         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70586         source_version, ftarget_option, target_version arguments.
70587         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70588         (is_envjavac_oldgcj_14_14_usable): Renamed from
70589         is_envjavac_gcj_14_14_usable.
70590         (is_envjavac_oldgcj_14_13_usable): Renamed from
70591         is_envjavac_gcj_14_13_usable.
70592         (is_gcj_present): Update.
70593         (is_gcj_43, is_gcj43_usable): New functions.
70594         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70595         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70596         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70597         try the options -fsource and -ftarget.
70598
70599 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70602         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70603         larger value.
70604
70605 2007-02-03  Jim Meyering  <jim@meyering.net>
70606
70607         Give tools a better chance to allocate space for very large buffers.
70608         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70609
70610         Make pwd and readlink work also when run with an unreadable parent dir
70611         on systems with openat support.
70612         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70613         provided getcwd function, even when we have openat support.
70614         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70615
70616 2007-02-02  Bruno Haible  <bruno@clisp.org>
70617
70618         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70619         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70620         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70621         portability problems if one of these functions is only used on specific
70622         platforms.
70623         Reported by Paul Eggert.
70624
70625 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70626
70627         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70628         is causing more trouble than it's curing.
70629         * lib/regex_internal.h (__mempcpy): Remove.
70630         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70631         (and make the code a tad smaller to boot).
70632         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70633
70634 2007-02-02  Jim Meyering  <jim@meyering.net>
70635
70636         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70637         section, not in the Makefile.am: one.
70638
70639 2007-02-02  Eric Blake  <ebb9@byu.net>
70640
70641         * lib/strchrnul.c: Always include config.h first.
70642
70643         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70644         gnulib strstr is not necessary here.
70645
70646 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70647
70648         * m4/socklen.m4: Fix typo.
70649
70650 2007-02-02  Eric Blake  <ebb9@byu.net>
70651
70652         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70653         * modules/netinet_in (Makefile.am): Likewise.
70654
70655 2007-02-01  Bruno Haible  <bruno@clisp.org>
70656
70657         * lib/string_.h (GL_LINK_WARNING): New macro.
70658         (strcasecmp, strstr, strcasestr): If provided by the system,
70659         conditionally define as a macro that leads to a warning instead of to
70660         an error.
70661         (strncasecmp): Conditionally define as a macro that leads to a warning.
70662
70663 2007-02-01  Karl Berry  <karl@gnu.org>
70664
70665         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70666
70667 2007-02-01  Bruno Haible  <bruno@clisp.org>
70668
70669         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70670         renamings.
70671
70672 2007-02-01  Eric Blake  <ebb9@byu.net>
70673
70674         * modules/regex (Depends-on): Revert dependence on mempcpy.
70675         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70676         module's definition of mempcpy.
70677         Reported by Paul Eggert.
70678
70679 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70682         the symbol XYZ before redefining it.  This fixes a problem with
70683         programs that don't use XYZ, when compiled on systems that define
70684         XYZ to something else.
70685
70686 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70687
70688         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70689         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70690         writeable to group or other and (2) is intended to have a special
70691         mode bit that is set or cleared.  In such a case, the directory
70692         should be neither group- nor other-writeable until the special
70693         mode bits are right.
70694
70695 2007-01-31  Eric Blake  <ebb9@byu.net>
70696
70697         * modules/mountlist (Depends-on): Add strstr.
70698
70699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70700         bug.
70701         * modules/string (Makefile.am): Remove redundant replacement.
70702         * modules/regex (Depends-on): Add mempcpy.
70703
70704 2007-01-31  Bruno Haible  <bruno@clisp.org>
70705
70706         New module description field 'Link'.
70707         * gnulib-tool (func_usage): Document --extract-link-directive.
70708         (sed_extract_prog): Recognize 'Link' directive.
70709         (func_get_link_directive): New function.
70710         (func_import): Show summary of link directives.
70711         Handle --extract-link-directive option.
70712         * modules/acl (Link): New section.
70713         * modules/clock-time (Link): New section.
70714         * modules/euidaccess (Link): New section.
70715         * modules/gettext (Link): New section.
70716         * modules/iconv (Link): New section.
70717         * modules/lock (Link): New section.
70718         * modules/nanosleep (Link): New section.
70719         * modules/readline (Link): New section.
70720
70721 2007-01-27  Bruno Haible  <bruno@clisp.org>
70722
70723         Enforce the use of gnulib modules for unportable <string.h> functions.
70724         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70725         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70726         (gl_HEADER_STRING_H_BODY): Require it.
70727         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70728         the symbol XYZ to one that gives a link error.
70729         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70730         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70731         * modules/mempcpy (configure.ac): Likewise.
70732         * modules/memrchr (configure.ac): Likewise.
70733         * modules/stpcpy (configure.ac): Likewise.
70734         * modules/stpncpy (configure.ac): Likewise.
70735         * modules/strcase (configure.ac): Likewise.
70736         * modules/strcasestr (configure.ac): Likewise.
70737         * modules/strchrnul (configure.ac): Likewise.
70738         * modules/strdup (configure.ac): Likewise.
70739         * modules/strndup (configure.ac): Likewise.
70740         * modules/strnlen (configure.ac): Likewise.
70741         * modules/strpbrk (configure.ac): Likewise.
70742         * modules/strsep (configure.ac): Likewise.
70743         * modules/strstr (configure.ac): Likewise.
70744         * modules/strtok_r (configure.ac): Likewise.
70745
70746 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70747
70748         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70749
70750 2007-01-30  Jim Meyering  <jim@meyering.net>
70751
70752         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70753
70754 2007-01-29  Bruno Haible  <bruno@clisp.org>
70755
70756         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70757         * lib/execute.c: Likewise.
70758         * lib/pipe.c: Likewise.
70759         * lib/printf-args.h: Likewise.
70760         * lib/printf-args.c: Likewise.
70761         * lib/printf-parse.c: Likewise.
70762         * lib/vasnprintf.c: Likewise.
70763
70764 2007-01-29  Eric Blake  <ebb9@byu.net>
70765
70766         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70767         declaration.
70768
70769 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70770
70771         * lib/strptime.h (strptime): Use 'restrict' for args where
70772         POSIX requires this.
70773         * lib/strptime.c (strptime): Likewise.
70774         Change license notice from LGPL to GPL, since gnulib-tool will
70775         change this as needed.
70776         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70777         defined.
70778         Include "strptime.h" first, to check interface.
70779         Do not #undef _LIBC and _NL_CURRENT.
70780         Do not include <stdlib.h>; no longer needed.
70781         Include "time_r.h" and declare ptime_locale_status
70782         only if _LIBC is not defined.
70783         (__P): Remove unused macro.
70784         (match_string): Bring back glibc version, but use it only if _LIBC
70785         is defined.
70786         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70787         Remove unnecessary assertion and abort() call.
70788         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70789         * m4/strptime.m4: Fix serial number comment.
70790         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70791         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70792         (Depends-on): Add time_r.
70793
70794 2007-01-29  Bruno Haible  <bruno@clisp.org>
70795
70796         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70797         strptime.
70798         * modules/strptime (Depends-on): Add stdbool.
70799         * lib/strptime.h: Include <time.h> always. Add comments.
70800
70801 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70802
70803         * modules/strptime: New file.
70804         * lib/strptime.h: New file.
70805         * lib/strptime.c: New file.
70806         * m4/strptime.m4: New file.
70807
70808 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70809
70810         * MODULES.html.sh: New module mpsort.
70811         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70812
70813         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70814         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70815         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70816         All uses changed.
70817         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70818         All uses changed.
70819         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70820         to _Restrict_.
70821         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70822         the parameter matches the prototype.
70823
70824 2007-01-28  Jim Meyering  <jim@meyering.net>
70825
70826         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70827         sys/time.h here, reverting that part of the previous patch:
70828         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70829
70830 2007-01-28  Bruno Haible  <bruno@clisp.org>
70831
70832         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70833         value of $(SYS_TIME_H).
70834         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70835         remove it conditionally, too. [added by Jim Meyering]
70836         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70837         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70838         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70839         GETTIMEOFDAY_REPLACEMENT to 1.
70840
70841 2007-01-28  Bruno Haible  <bruno@clisp.org>
70842
70843         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70844         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70846         Set UNISTD_H instead of UNISTD_H2.
70847         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70848
70849 2007-01-28  Bruno Haible  <bruno@clisp.org>
70850
70851         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70852         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70853
70854 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70855
70856         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70857         (func_create_testdir): Ensure C locale for `grep' and `tr'
70858         character ranges.
70859         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70860         ACLOCAL_AMFLAGS parsing state machine.
70861
70862 2007-01-27  Bruno Haible  <bruno@clisp.org>
70863
70864         * modules/unistr/base: Update.
70865
70866 2007-01-27  Bruno Haible  <bruno@clisp.org>
70867
70868         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70869         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70870         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70871         modules/unistr/u32-mbtouc.
70872         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70873         * lib/unistr.h: Update.
70874         * lib/linebreak.c: Update.
70875         * modules/unistr/u32-mbtouc: Renamed from
70876         modules/unistr/u32-mbtouc-safe.
70877         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70878         * lib/unistr.h: Update.
70879         * lib/unistr/u32-to-u8.c: Update.
70880         * lib/unistr/u32-to-u16.c: Update.
70881
70882 2007-01-27  Bruno Haible  <bruno@clisp.org>
70883
70884         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70885         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70886         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70887         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70888         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70889         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70890         modules/unistr/u16-mbtouc.
70891         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70892         * lib/unistr.h: Update.
70893         * lib/linebreak.c: Update.
70894         * modules/linebreak: Update.
70895         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70896         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70897         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70898         * modules/unistr/u16-mbtouc: Renamed from
70899         modules/unistr/u16-mbtouc-safe.
70900         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70901         * lib/unistr.h: Update.
70902         * lib/unistr/u16-to-u8.c: Update.
70903         * modules/unistr/u16-to-u8: Update.
70904         * lib/unistr/u16-to-u32.c: Update.
70905         * modules/unistr/u16-to-u32: Update.
70906
70907 2007-01-27  Bruno Haible  <bruno@clisp.org>
70908
70909         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70910         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70911         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70912         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70913         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70914         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70915         modules/unistr/u8-mbtouc.
70916         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70917         * lib/unistr.h: Update.
70918         * lib/striconveh.c: Update.
70919         * modules/striconveh: Update.
70920         * lib/linebreak.c: Update.
70921         * modules/linebreak: Update.
70922         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70923         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70924         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70925         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70926         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70927         * lib/unistr.h: Update.
70928         * lib/striconveh.c: Update.
70929         * modules/striconveh: Update.
70930         * lib/unistr/u8-to-u16.c: Update.
70931         * modules/unistr/u8-to-u16: Update.
70932         * lib/unistr/u8-to-u32.c: Update.
70933         * modules/unistr/u8-to-u32: Update.
70934
70935 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70936
70937         Sync from Libtool.
70938         * lib/argz.c: Do not include strings.h nor memory.h, include
70939         string.h unconditionally.  Patch by Simon Josefsson.
70940
70941 2007-01-27  Bruno Haible  <bruno@clisp.org>
70942
70943         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70944         from gl_HEADER_STRING_H_BODY.
70945         (gl_HEADER_STRING_H_BODY): Require it.
70946         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70947         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70948         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70949         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70950         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70951         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70953         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70954         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70955         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70956         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70957         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70958         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70959         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70960         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70961
70962 2007-01-27  Bruno Haible  <bruno@clisp.org>
70963
70964         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70965         check_PROGRAMS into noinst_PROGRAMS.
70966         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70967         check_PROGRAMS in this case.
70968         (func_import): Set for_test to false.
70969         (func_create_testdir): Set for_test to true.
70970
70971 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70972             Bruno Haible  <bruno@clisp.org>
70973
70974         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70975         (Depends-on): Add string.
70976         (Includes): Use <string.h> instead of strcasestr.h.
70977         * modules/string (Makefile.am): Also substitute the value of
70978         REPLACE_STRCASESTR.
70979         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70980         assume strcasestr is declared in <string.h> not <strings.h>. Also
70981         set REPLACE_STRCASESTR.
70982         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70983         REPLACE_STRCASESTR.
70984         * lib/strcasestr.h: Remove file.
70985         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70986         * lib/string_.h (strcasestr): New declaration.
70987
70988 2007-01-27  Bruno Haible  <bruno@clisp.org>
70989
70990         * lib/string_.h: Use 'extern'.
70991
70992 2007-01-27  Jim Meyering  <jim@meyering.net>
70993
70994         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70995         of set-but-not-used local, "q".
70996
70997         * lib/mempcpy.c: Include <config.h> before <string.h>.
70998         This fixes a compilation error on HP-UX, due to the system's
70999         "restrict"-using mempcpy prototype.
71000
71001 2007-01-26  Bruno Haible  <bruno@clisp.org>
71002
71003         Small optimization.
71004         * lib/javacomp.c: Include c-strstr.h.
71005          (is_envjavac_gcj): Use c_strstr instead of strstr.
71006         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71007
71008 2007-01-26  Bruno Haible  <bruno@clisp.org>
71009
71010         * MODULES.html.sh (Unicode string functions): Add the new modules.
71011
71012         * modules/uniconv/u32-strconv-to-locale: New file.
71013         * lib/uniconv/u32-strconv-to-locale.c: New file.
71014
71015         * modules/uniconv/u16-strconv-to-locale: New file.
71016         * lib/uniconv/u16-strconv-to-locale.c: New file.
71017
71018         * modules/uniconv/u8-strconv-to-locale: New file.
71019         * lib/uniconv/u8-strconv-to-locale.c: New file.
71020
71021         * modules/uniconv/u32-strconv-from-locale: New file.
71022         * lib/uniconv/u32-strconv-from-locale.c: New file.
71023
71024         * modules/uniconv/u16-strconv-from-locale: New file.
71025         * lib/uniconv/u16-strconv-from-locale.c: New file.
71026
71027         * modules/uniconv/u8-strconv-from-locale: New file.
71028         * lib/uniconv/u8-strconv-from-locale.c: New file.
71029
71030         * modules/uniconv/u32-strconv-to-enc: New file.
71031         * lib/uniconv/u32-strconv-to-enc.c: New file.
71032         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71033         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71034
71035         * modules/uniconv/u16-strconv-to-enc: New file.
71036         * lib/uniconv/u16-strconv-to-enc.c: New file.
71037         * lib/uniconv/u-strconv-to-enc.h: New file.
71038         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71039         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71040
71041         * modules/uniconv/u8-strconv-to-enc: New file.
71042         * lib/uniconv/u8-strconv-to-enc.c: New file.
71043         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71044         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71045
71046         * modules/uniconv/u32-strconv-from-enc: New file.
71047         * lib/uniconv/u32-strconv-from-enc.c: New file.
71048         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71049         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71050
71051         * modules/uniconv/u16-strconv-from-enc: New file.
71052         * lib/uniconv/u16-strconv-from-enc.c: New file.
71053         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71054         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71055
71056         * modules/uniconv/u8-strconv-from-enc: New file.
71057         * lib/uniconv/u8-strconv-from-enc.c: New file.
71058         * lib/uniconv/u-strconv-from-enc.h: New file.
71059         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71060         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71061
71062         * modules/uniconv/u32-conv-from-enc: New file.
71063         * lib/uniconv/u32-conv-from-enc.c: New file.
71064         * modules/uniconv/u32-conv-from-enc-tests: New file.
71065         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71066
71067         * modules/uniconv/u16-conv-from-enc: New file.
71068         * lib/uniconv/u16-conv-from-enc.c: New file.
71069         * lib/uniconv/u-conv-from-enc.h: New file.
71070         * modules/uniconv/u16-conv-from-enc-tests: New file.
71071         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71072
71073         * modules/uniconv/u8-conv-from-enc: New file.
71074         * lib/uniconv/u8-conv-from-enc.c: New file.
71075         * modules/uniconv/u8-conv-from-enc-tests: New file.
71076         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71077
71078         * modules/uniconv/base: New file.
71079         * lib/uniconv.h: New file.
71080
71081 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71082
71083         * doc/gnulib-tool.texi (Initial import): Update to match current
71084         behavior with strdup module.
71085         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71086         * lib/memmem.h: Remove; all uses removed.  This is now done
71087         by <string.h>.
71088         * lib/mempcpy.h: Likewise.
71089         * lib/memrchr.h: Likewise.
71090         * lib/stpcpy.h: Likewise.
71091         * lib/stpncpy.h: Likewise.
71092         * lib/strcase.h: Likewise.
71093         * lib/strchrnul.h: Likewise.
71094         * lib/strdup.h: Likewise.
71095         * lib/strndup.h: Likewise.
71096         * lib/strnlen.h: Likewise.
71097         * lib/strpbrk.h: Likewise.
71098         * lib/strsep.h: Likewise.
71099         * lib/strstr.h: Likewise.
71100         * lib/strtok_r.h: Likewise.
71101         * lib/string_.h: New file.
71102         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71103         Rely on <string.h> instead.
71104         * lib/canon-host.c: Likewise.
71105         * lib/chdir-long.c: Likewise.
71106         * lib/concatpath.c: Likewise.
71107         * lib/exclude.c: Likewise.
71108         * lib/fchdir.c: Likewise.
71109         * lib/getaddrinfo.c: Likewise.
71110         * lib/getcwd.c: Likewise.
71111         * lib/getsubopt.c: Likewise.
71112         * lib/glob.c: Likewise.
71113         * lib/hard-locale.c: Likewise.
71114         * lib/iconvme.c: Likewise.
71115         * lib/javacomp.c: Likewise.
71116         * lib/mempcpy.c: Likewise.
71117         * lib/memrchr.c: Likewise.
71118         * lib/regex_internal.h: Likewise.
71119         * lib/stpncpy.c: Likewise.
71120         * lib/strcasecmp.c: Likewise.
71121         * lib/strchrnul.c: Likewise.
71122         * lib/strdup.c: Likewise.
71123         * lib/striconv.c: Likewise.
71124         * lib/striconveh.c: Likewise.
71125         * lib/striconveha.c: Likewise.
71126         * lib/strncasecmp.c: Likewise.
71127         * lib/strndup.c: Likewise.
71128         * lib/strnlen.c: Likewise.
71129         * lib/strsep.c: Likewise.
71130         * lib/strstr.c: Likewise.
71131         * lib/strtok_r.c: Likewise.
71132         * lib/userspec.c: Likewise.
71133         * lib/w32spawn.h: Likewise.
71134         * lib/xstrndup.c: Likewise.
71135         * lib/mountlist.c (strstr): Remove decl.
71136         * m4/string_h.m4: New file.
71137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71138         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71139         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71140         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71141         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71142         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71143         Set REPLACE_STRCASECMP if necessary.
71144         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71145         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71146         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71147         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71148         HAVE_DECL_STRDUP if necessary.
71149         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71150         since gl_FUNC_STRNDUP does that now.
71151         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71152         Check for decl here...
71153         (gl_PREREQ_STRNLEN): ... not here.
71154         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71155         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71156         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71157         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71158         necessary.
71159         * modules/string: New file.
71160         * modules/memmem (Files): Remove special-purpose include file.
71161         (Depends-on): Add string.
71162         (Include): Include <string.h>, not the removed file.
71163         * modules/mempcpy: Likewise.
71164         * modules/memrchr: Likewise.
71165         * modules/stpcpy: Likewise.
71166         * modules/stpncpy: Likewise.
71167         * modules/strcase: Likewise.
71168         * modules/strchrnul: Likewise.
71169         * modules/strdup: Likewise.
71170         * modules/strndup: Likewise.
71171         * modules/strnlen: Likewise.
71172         * modules/strpbrk: Likewise.
71173         * modules/strsep: Likewise.
71174         * modules/strstr: Likewise.
71175         * modules/strtok_r: Likewise.
71176         * tests/test-dirname.c: Don't include "strdup.h", since
71177         <string.h> now suffices.
71178         * tests/test-memmem.c: Don't include "memmem.h", since
71179         <string.h> now suffices.
71180
71181 2007-01-25  Bruno Haible  <bruno@clisp.org>
71182
71183         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71184         *resultp is 0.
71185
71186         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71187         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71188         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71189         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71190
71191         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71192         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71193         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71194         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71195         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71196         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71197
71198 2007-01-24  Bruno Haible  <bruno@clisp.org>
71199
71200         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71201         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71202         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71203         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71204         gl_FUNC_FTS_CORE.
71205         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71206         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71207         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71208         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71209         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71210         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71211         gl_FUNC_FCHOWNAT.
71212         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71213         gl_FUNC_STRFTIME.
71214         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71215         Reported by Ralf Wildenhues.
71216
71217 2007-01-24  Bruno Haible  <bruno@clisp.org>
71218
71219         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71220         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71221         gl_GETADDRINFO.
71222         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71223         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71224         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71225
71226 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71229         Don't use 'exit'; just return from 'main'.
71230         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71231
71232         * lib/fnmatch_.h: Readjust white space and comments to match
71233         glibc, to avoid spurious diffs.
71234
71235 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71238         2004-12-01 change by Jakub Jelinek, since this code won't compile
71239         if !LIBC.  Problem reported by Bob Proulx.
71240
71241 2007-01-23  Bruno Haible  <bruno@clisp.org>
71242
71243         * lib/striconveh.c: Include c-strcaseeq.h.
71244         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71245         * modules/striconveh (Depends-on): Add c-strcaseeq.
71246
71247 2007-01-23  Bruno Haible  <bruno@clisp.org>
71248
71249         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71250
71251         * modules/c-strcaseeq: New file.
71252         * lib/c-strcaseeq.h: New file.
71253
71254         * modules/streq: New file.
71255         * lib/streq.h: New file.
71256
71257 2007-01-23  Bruno Haible  <bruno@clisp.org>
71258
71259         * modules/striconveha-tests: New file.
71260         * tests/test-striconveha.c: New file.
71261
71262         * lib/striconveha.h: Include <stdbool.h>.
71263         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71264         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71265         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71266         (mem_iconveha): New function.
71267         (str_iconveha_notranslit): Renamed from str_iconveha.
71268         (str_iconveha): New function.
71269         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71270         c-strcase.
71271
71272 2007-01-23  Bruno Haible  <bruno@clisp.org>
71273
71274         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71275         encodings without forgiving before trying any encoding with handler.
71276         (str_iconveha): Try all encodings without forgiving before trying any
71277         encoding with handler.
71278
71279 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71280
71281         Import the following changes from libc.
71282
71283         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71284
71285         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71286
71287         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71288
71289         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71290         normal_bracket label.
71291
71292         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71293
71294         [BZ #361]
71295         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71296         to normal_bracket after fetching the next character.
71297
71298 2007-01-22  Bruno Haible  <bruno@clisp.org>
71299
71300         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71301         argument.
71302         * lib/striconveh.c (iconv_carefully_1): New function.
71303         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71304         argument.
71305         (str_cd_iconveh): Update.
71306         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71307         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71308         * tests/test-striconveh.c (MAGIC): New macro.
71309         (new_offsets): New function.
71310         (main): Test call with and without offsets.
71311
71312 2007-01-22  Bruno Haible  <bruno@clisp.org>
71313
71314         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71315         * modules/sys_select (Makefile.am): Likewise.
71316         * modules/sys_socket (Makefile.am): Likewise.
71317         * modules/sys_time (Makefile.am): Likewise.
71318
71319 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71320
71321         * modules/gettimeofday (License): Change from GPL to LGPL, since
71322         gettimeofday is a library function.
71323
71324 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71325
71326         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71327
71328 2007-01-21  Bruno Haible  <bruno@clisp.org>
71329
71330         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71331
71332 2007-01-21  Bruno Haible  <bruno@clisp.org>
71333
71334         * modules/striconveha: New file.
71335         * lib/striconveha.h: New file.
71336         * lib/striconveha.c: New file.
71337         * MODULES.html.sh (Internationalization functions): Add striconveha.
71338         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71339         string.
71340         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71341
71342 2007-01-21  Bruno Haible  <bruno@clisp.org>
71343
71344         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71345         * lib/striconveh.c (str_iconveh): Likewise.
71346
71347 2007-01-21  Bruno Haible  <bruno@clisp.org>
71348
71349         * lib/striconveh.h (mem_iconveh): New declaration.
71350         * lib/striconveh.c (mem_iconveh): New function.
71351         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71352
71353 2007-01-21  Bruno Haible  <bruno@clisp.org>
71354
71355         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71356
71357         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71358         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71359         original result buffer.
71360         (str_cd_iconveh): Update.
71361         * tests/test-striconveh.c (main): Update.
71362
71363         * lib/striconv.h (mem_cd_iconv): Change specification.
71364         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71365         result buffer.
71366         (str_cd_iconv): Update.
71367         * tests/test-striconv.c (main): Update.
71368
71369 2007-01-21  Bruno Haible  <bruno@clisp.org>
71370
71371         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71372
71373 2007-01-20  Jim Meyering  <jim@meyering.net>
71374
71375         * lib/userspec.c (parse_with_separator): If a user or group string
71376         starts with "+", skip the corresponding name-to-ID look-up, since
71377         such a look-up must fail: user and group names may not include "+".
71378
71379 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71380
71381         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71382         since we now assume the sys_time module.
71383         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71384         check for sys/time.h; no longer needed.
71385         * modules/poll (Depends-on): Depend on sys_time.
71386
71387 2007-01-18  Bruno Haible  <bruno@clisp.org>
71388
71389         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71390         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71391
71392         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71393         gettimeofday.
71394
71395         * tests/test-gettimeofday.c: Include <time.h>.
71396         (dummy): Remove variable.
71397
71398         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71399         gl_HEADER_SYS_TIME_H.
71400         (gl_HEADER_SYS_TIME_H): New macro.
71401
71402         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71403         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71404         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71405         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71406         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71407         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71408         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71409         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71410         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71411         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71412         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71413
71414         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71415         last change; it caused a compilation error when cross-compiling to
71416         Cygwin.
71417
71418 2007-01-18  Jim Meyering  <jim@meyering.net>
71419
71420         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71421         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71422         than the race-prone "test -d sys || mkdir sys".
71423         (configure.ac): Use AC_PROG_MKDIR_P.
71424         * modules/sys_select: Likewise.
71425         * modules/sys_socket: Likewise.
71426         * modules/sys_time: Likewise.
71427
71428 2007-01-18  Eric Blake  <ebb9@byu.net>
71429
71430         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71431         replace gettimeofday.
71432         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71433         name, to avoid infinite recursion.
71434
71435 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71438         module sys_time.
71439         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71440         assume timespec.h defines struct timeval.
71441         * lib/settime.c: Likewise.
71442         * lib/utimens.c: Likewise.
71443         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71444         since we now assume the gettimeofday module.
71445         * lib/tempname.c (__gen_tempname): Likewise.
71446         * lib/gettimeofday.h: Remove.
71447         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71448         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71449         Include <time.h>, for 'time()'.
71450         (localtime_buffer_addr): Also use this workaround if
71451         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71452         to simplify the uses.  All uses changed.
71453         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71454         that #undef is inside {}, and 'const' follows type name consistently.
71455         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71456         (gettimeofday): Do not use the maximum possible value for
71457         tv->tv_usec, since that might break usages other than ls.c.
71458         Instead, we'll leave ls.c alone.  This undoes today's patch
71459         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71460         we've never observed the problem but might as well keep the
71461         canary.
71462         * lib/nanosleep.c: Include timespec.h first, for interface check.
71463         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71464         now assume the sys_time module.
71465         * lib/tempname.c: Likewise.
71466         * lib/timespec.h: Likewise.
71467         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71468         needed.
71469         * lib/strftime.c: Likewise.
71470         * lib/timespec.h: Likewise.
71471         * lib/posixtm.c: Include posixtm.h first, for interface check.
71472         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71473         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71474         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71475         * lib/sys_time_.h: New file.
71476         * lib/timespec.h (struct timespec): Use long int, not long.
71477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71478         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71479         Remove obsolescent call to AC_HEADER_TIME.
71480         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71482         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71483         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71484         Likewise.
71485         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71486         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71487         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71488         into the sys_time module.  Check for gettimeofday just once.
71489         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71490         for gettimeofday signature to just check the signature.  Merely
71491         compile it, since linking doesn't test signature.  Improve test for
71492         whether gettimeofday.o is actually needed.
71493         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71494         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71495         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71496         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71497         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71498         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71499         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71500         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71501         than worrying about sys/time.h.
71502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71503         Don't bother worrying about TIME_WITH_SYS_TIME.
71504         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71505         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71506         * m4/sys_time_h.m4: New file.
71507         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71508         Don't include sys/time.h.  Return from main rather than exiting.
71509         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71510         all uses changed.
71511         * modules/gethrxtime (Depends-on): Add sys_time.
71512         * modules/gettime (Depends-on): Likewise.
71513         * modules/gettimeofday (Depends-on): Likewise.
71514         * modules/nanosleep (Depends-on): Likewise.
71515         * modules/settime (Depends-on): Likewise.
71516         * modules/tempname (Depends-on): Likewise.
71517         * modules/utimens (Depends-on): Likewise.
71518         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71519         (Include): Change back to <sys/time.h>.
71520         (Maintainer): Add self.
71521         * modules/sys_time: New file.
71522         * modules/tempname (Depends-on): Add gettimeofday.
71523         * tests/test-gettimeofday.c: Include <sys/time.h>
71524         rather than gettimeofday.h.
71525
71526 2007-01-17  Bruno Haible  <bruno@clisp.org>
71527
71528         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71529         the license default to GPL.
71530         (func_create_testdir): Don't complain if a module is LGPL and its
71531         tests module depends on GPLed modules.
71532
71533 2007-01-17  Bruno Haible  <bruno@clisp.org>
71534
71535         * lib/gettimeofday.c (gettimeofday): Add code for the case
71536         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71537         maximum possible value for tv->tv_usec, rather than the minimum one.
71538
71539 2005-10-08  Martin Lambers  <marlam@marlam.de>
71540 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71541 2007-01-16  Bruno Haible  <bruno@clisp.org>
71542
71543         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71544         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71545         gl_FUNC_GETTIMEOFDAY.
71546         (Include): Add gettimeofday.h.
71547         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71548         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71549         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71550         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71551         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71552         * lib/gettimeofday.h: New file.
71553         * lib/gettimeofday.c: Include <sys/timeb.h>.
71554         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71555         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71556         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71557         fall back on time().
71558
71559         * tests/test-gettimeofday.c: New file.
71560         * modules/gettimeofday-tests: New file.
71561
71562 2007-01-16  Eric Blake  <ebb9@byu.net>
71563
71564         * modules/fnmatch (Depends-on): Depend on wchar.
71565         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71566         * m4/fnmatch.m4: Likewise.
71567         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71568         * m4/mbchar.m4: Likewise.
71569         * modules/mbswidth (Depends-on): Depend on wchar.
71570         * lib/mbswidth.c: Assume <wchar.h>.
71571         * m4/mbswidth.m4: Likewise.
71572         * modules/quotearg (Depends-on): Depend on wchar.
71573         * lib/quotearg.c: Assume <wchar.h>.
71574         * m4/quotearg.m4: Likewise.
71575         * modules/regex (Depends-on): Depend on wchar.
71576         * lib/regex_internal.h: Assume <wchar.h>.
71577         * m4/regex.m4: Likewise.
71578         * modules/stdint (Depends-on): Depend on wchar.
71579         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71580         * m4/stdint.m4: Likewise.
71581         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71582         * modules/strftime (Depends-on): Depend on wchar.
71583         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71584         * modules/strtol (Depends-on): Depend on wchar.
71585         * lib/strtol.c: Assume <wchar.h>.
71586         * modules/wcwidth (Depends-on): Depend on wchar.
71587         * lib/wcwidth.h: Assume <wchar.h>.
71588         * m4/wcwidth.m4: Likewise.
71589
71590 2007-01-16  Bruno Haible  <bruno@clisp.org>
71591
71592         * modules/csharpexec-script: New, created from...
71593         * modules/csharpexec: ... this.
71594
71595 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71596
71597         * modules/javaexec-script: New, created from...
71598         * modules/javaexec: ... this.
71599
71600 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71601
71602         * modules/poll (Dependencies): Add sys_select.
71603
71604 2007-01-15  Jim Meyering  <jim@meyering.net>
71605
71606         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71607         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71608         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71609         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71610
71611 2007-01-15  Bruno Haible  <bruno@clisp.org>
71612
71613         * modules/striconveh: New file.
71614         * lib/striconveh.h: New file.
71615         * lib/striconveh.c: New file.
71616         * MODULES.html.sh (Internationalization functions): Add striconveh.
71617
71618         * modules/striconveh-tests: New file.
71619         * tests/test-striconveh.c: New file.
71620
71621 2007-01-15  Bruno Haible  <bruno@clisp.org>
71622
71623         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71624         not from GNU libiconv or GNU libc.
71625
71626 2007-01-15  Bruno Haible  <bruno@clisp.org>
71627
71628         * doc/gnulib-intro.texi (Copyright): Explain the different license
71629         terms for module descriptions, autoconf macros, tests, documentation.
71630
71631 2007-01-14  Bruno Haible  <bruno@clisp.org>
71632
71633         * modules/striconv-tests: New file.
71634         * tests/test-striconv.c: New file.
71635
71636 2007-01-14  Bruno Haible  <bruno@clisp.org>
71637
71638         * modules/iconv-tests: New file.
71639         * tests/test-iconv.c: New file.
71640
71641 2007-01-14  Bruno Haible  <bruno@clisp.org>
71642
71643         * gnulib-tool (func_get_license): For test modules, use the license of
71644         the main module.
71645
71646 2007-01-14  Bruno Haible  <bruno@clisp.org>
71647
71648         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71649         if iconv is found to exist.
71650
71651 2007-01-14  Bruno Haible  <bruno@clisp.org>
71652
71653         * modules/c-ctype-tests: New file.
71654         * tests/test-c-ctype.c: New file.
71655
71656 2007-01-14  Bruno Haible  <bruno@clisp.org>
71657
71658         * modules/binary-io-tests: New file.
71659         * tests/test-binary-io.sh: New file.
71660         * tests/test-binary-io.c: New file.
71661
71662 2007-01-14  Bruno Haible  <bruno@clisp.org>
71663
71664         * modules/array-oset-tests: New file.
71665         * tests/test-array_oset.c: New file.
71666
71667 2007-01-14  Bruno Haible  <bruno@clisp.org>
71668
71669         * modules/array-list-tests: New file.
71670         * tests/test-array_list.c: New file.
71671
71672 2007-01-14  Bruno Haible  <bruno@clisp.org>
71673
71674         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71675         and make.
71676         Reported by Simon Josefsson in
71677         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71678
71679 2007-01-14  Bruno Haible  <bruno@clisp.org>
71680
71681         * modules/allocsa-tests: New file.
71682         * tests/test-allocsa.c: New file.
71683
71684 2007-01-14  Bruno Haible  <bruno@clisp.org>
71685
71686         * modules/fchdir (Depends-on): Add absolute-header.
71687         * modules/unistd (Depends-on): Likewise.
71688
71689 2006-12-30  Bruno Haible  <bruno@clisp.org>
71690
71691         * modules/fchdir: New file.
71692         * modules/unistd (Files): Add lib/unistd_.h.
71693         (Makefile.am): Generate unistd.h from unistd_.h.
71694         * lib/fchdir.c: New file.
71695         * lib/dirent_.h: New file.
71696         * lib/unistd_.h: New file.
71697         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71698         * m4/fchdir.m4: New file.
71699         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71700         (gl_HEADER_UNISTD): Invoke it.
71701         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71702         function.
71703         * lib/backupfile.c (opendir, closedir): Undefine.
71704         * lib/chown.c (open, close): Undefine.
71705         * lib/clean-temp.c (open, close): Undefine.
71706         * lib/copy-file.c (open, close): Undefine.
71707         * lib/execute.c (open, close): Undefine.
71708         * lib/fsusage.c (open, close): Undefine.
71709         * lib/gc-gnulib.c (open, close): Undefine.
71710         * lib/getcwd.c (opendir, closedir): Undefine.
71711         * lib/glob.c (opendir, closedir): Undefine.
71712         * lib/javacomp.c (open, close): Undefine.
71713         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71714         * lib/openat-proc.c (open, close): Undefine.
71715         * lib/pagealign_alloc.c (open, close): Undefine.
71716         * lib/pipe.c (open, close): Undefine.
71717         * lib/progreloc.c (open, close): Undefine.
71718         * lib/savedir.c (opendir, closedir): Undefine.
71719         * lib/utime.c (open, close): Undefine.
71720         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71721
71722 2007-01-10  Bruno Haible  <bruno@clisp.org>
71723
71724         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71725
71726 2007-01-12  Eric Blake  <ebb9@byu.net>
71727
71728         Provide a robust <wchar.h>.  Further simplifications are now
71729         possible in other modules, but not included here.
71730         * modules/wchar: New module.
71731         * m4/wchar.m4: New file.
71732         * lib/wchar_.h: Likewise.
71733         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71734         of the new module.
71735         * MODULES.html.sh (Extended multibyte and wide character utilities):
71736         New section.
71737
71738 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71741         to a reasonable default for memory allocation.
71742         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71743         file system that reports garbage st_size values for symlinks.
71744         Problem reported by Liyang Hu.
71745
71746 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71747
71748         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71749         Emacs .#* auto-save files).
71750
71751 2007-01-11  Bruno Haible  <bruno@clisp.org>
71752
71753         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71754         directory.
71755
71756 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71757
71758         Use @...@ consistently in lib/wctype_.h.
71759         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71760         on it being set to 1 or 0.
71761         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71762         go back to AC_SUBSTing it.
71763         * modules/wctype (Makefile.am): Undo previous change.
71764
71765 2007-01-10  Eric Blake  <ebb9@byu.net>
71766
71767         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71768         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71769         * modules/wctype (Makefile.am): Likewise.
71770         Reported by Chris McGuire.
71771
71772 2007-01-10  Jim Meyering  <jim@meyering.net>
71773
71774         fts.c: a small readability/maintainability improvement
71775         * lib/fts.c (fts_read): Make this code slightly more readable and
71776         maintainable by hoisting the "sp->fts_cur = p" assignments to
71777         immediately follow the statements that set P.  Derived from
71778         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71779
71780 2007-01-10  Eric Blake  <ebb9@byu.net>
71781
71782         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71783         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71785         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71786         Reported by Chris McGuire.
71787
71788 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71789
71790         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71791         in sed script.
71792
71793 2007-01-09  Bruno Haible  <bruno@clisp.org>
71794
71795         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71796         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71797         variables.
71798         (func_module): Use them.
71799
71800 2007-01-09  Bruno Haible  <bruno@clisp.org>
71801
71802         * modules/unistr/base: New file.
71803         * lib/unistr.h: New file.
71804
71805         * modules/unistr/u8-to-u16: New file.
71806         * lib/unistr/u8-to-u16.c: New file.
71807
71808         * modules/unistr/u8-to-u32: New file.
71809         * lib/unistr/u8-to-u32.c: New file.
71810
71811         * modules/unistr/u16-to-u8: New file.
71812         * lib/unistr/u16-to-u8.c: New file.
71813
71814         * modules/unistr/u16-to-u32: New file.
71815         * lib/unistr/u16-to-u32.c: New file.
71816
71817         * modules/unistr/u32-to-u8: New file.
71818         * lib/unistr/u32-to-u8.c: New file.
71819
71820         * modules/unistr/u32-to-u16: New file.
71821         * lib/unistr/u32-to-u16.c: New file.
71822
71823         * modules/unistr/u8-check: New file.
71824         * modules/unistr/u16-check: New file.
71825         * modules/unistr/u32-check: New file.
71826         * lib/unistr/u8-check.c: New file.
71827         * lib/unistr/u16-check.c: New file.
71828         * lib/unistr/u32-check.c: New file.
71829
71830         * modules/unistr/u8-chr: New file.
71831         * modules/unistr/u16-chr: New file.
71832         * modules/unistr/u32-chr: New file.
71833         * lib/unistr/u8-chr.c: New file.
71834         * lib/unistr/u16-chr.c: New file.
71835         * lib/unistr/u32-chr.c: New file.
71836
71837         * modules/unistr/u8-cmp: New file.
71838         * modules/unistr/u16-cmp: New file.
71839         * modules/unistr/u32-cmp: New file.
71840         * lib/unistr/u8-cmp.c: New file.
71841         * lib/unistr/u16-cmp.c: New file.
71842         * lib/unistr/u32-cmp.c: New file.
71843
71844         * modules/unistr/u8-cpy: New file.
71845         * modules/unistr/u16-cpy: New file.
71846         * modules/unistr/u32-cpy: New file.
71847         * lib/unistr/u8-cpy.c: New file.
71848         * lib/unistr/u16-cpy.c: New file.
71849         * lib/unistr/u32-cpy.c: New file.
71850         * lib/unistr/u-cpy.h: New file.
71851
71852         * modules/unistr/u8-cpy-alloc: New file.
71853         * modules/unistr/u16-cpy-alloc: New file.
71854         * modules/unistr/u32-cpy-alloc: New file.
71855         * lib/unistr/u8-cpy-alloc.c: New file.
71856         * lib/unistr/u16-cpy-alloc.c: New file.
71857         * lib/unistr/u32-cpy-alloc.c: New file.
71858         * lib/unistr/u-cpy-alloc.h: New file.
71859
71860         * modules/unistr/u8-endswith: New file.
71861         * modules/unistr/u16-endswith: New file.
71862         * modules/unistr/u32-endswith: New file.
71863         * lib/unistr/u8-endswith.c: New file.
71864         * lib/unistr/u16-endswith.c: New file.
71865         * lib/unistr/u32-endswith.c: New file.
71866         * lib/unistr/u-endswith.h: New file.
71867
71868         * modules/unistr/u8-mblen: New file.
71869         * modules/unistr/u16-mblen: New file.
71870         * modules/unistr/u32-mblen: New file.
71871         * lib/unistr/u8-mblen.c: New file.
71872         * lib/unistr/u16-mblen.c: New file.
71873         * lib/unistr/u32-mblen.c: New file.
71874
71875         * modules/unistr/u8-mbtouc: New file.
71876         * modules/unistr/u16-mbtouc: New file.
71877         * modules/unistr/u32-mbtouc: New file.
71878         * lib/unistr/u8-mbtouc.c: New file.
71879         * lib/unistr/u16-mbtouc.c: New file.
71880         * lib/unistr/u32-mbtouc.c: New file.
71881
71882         * modules/unistr/u8-mbtouc-safe: New file.
71883         * modules/unistr/u16-mbtouc-safe: New file.
71884         * modules/unistr/u32-mbtouc-safe: New file.
71885         * lib/unistr/u8-mbtouc-safe.c: New file.
71886         * lib/unistr/u16-mbtouc-safe.c: New file.
71887         * lib/unistr/u32-mbtouc-safe.c: New file.
71888
71889         * modules/unistr/u8-move: New file.
71890         * modules/unistr/u16-move: New file.
71891         * modules/unistr/u32-move: New file.
71892         * lib/unistr/u8-move.c: New file.
71893         * lib/unistr/u16-move.c: New file.
71894         * lib/unistr/u32-move.c: New file.
71895         * lib/unistr/u-move.h: New file.
71896
71897         * modules/unistr/u8-next: New file.
71898         * modules/unistr/u16-next: New file.
71899         * modules/unistr/u32-next: New file.
71900         * lib/unistr/u8-next.c: New file.
71901         * lib/unistr/u16-next.c: New file.
71902         * lib/unistr/u32-next.c: New file.
71903
71904         * modules/unistr/u8-prev: New file.
71905         * modules/unistr/u16-prev: New file.
71906         * modules/unistr/u32-prev: New file.
71907         * lib/unistr/u8-prev.c: New file.
71908         * lib/unistr/u16-prev.c: New file.
71909         * lib/unistr/u32-prev.c: New file.
71910
71911         * modules/unistr/u8-set: New file.
71912         * modules/unistr/u16-set: New file.
71913         * modules/unistr/u32-set: New file.
71914         * lib/unistr/u8-set.c: New file.
71915         * lib/unistr/u16-set.c: New file.
71916         * lib/unistr/u32-set.c: New file.
71917         * lib/unistr/u-set.h: New file.
71918
71919         * modules/unistr/u8-startswith: New file.
71920         * modules/unistr/u16-startswith: New file.
71921         * modules/unistr/u32-startswith: New file.
71922         * lib/unistr/u8-startswith.c: New file.
71923         * lib/unistr/u16-startswith.c: New file.
71924         * lib/unistr/u32-startswith.c: New file.
71925         * lib/unistr/u-startswith.h: New file.
71926
71927         * modules/unistr/u8-stpcpy: New file.
71928         * modules/unistr/u16-stpcpy: New file.
71929         * modules/unistr/u32-stpcpy: New file.
71930         * lib/unistr/u8-stpcpy.c: New file.
71931         * lib/unistr/u16-stpcpy.c: New file.
71932         * lib/unistr/u32-stpcpy.c: New file.
71933         * lib/unistr/u-stpcpy.h: New file.
71934
71935         * modules/unistr/u8-stpncpy: New file.
71936         * modules/unistr/u16-stpncpy: New file.
71937         * modules/unistr/u32-stpncpy: New file.
71938         * lib/unistr/u8-stpncpy.c: New file.
71939         * lib/unistr/u16-stpncpy.c: New file.
71940         * lib/unistr/u32-stpncpy.c: New file.
71941         * lib/unistr/u-stpncpy.h: New file.
71942
71943         * modules/unistr/u8-strcat: New file.
71944         * modules/unistr/u16-strcat: New file.
71945         * modules/unistr/u32-strcat: New file.
71946         * lib/unistr/u8-strcat.c: New file.
71947         * lib/unistr/u16-strcat.c: New file.
71948         * lib/unistr/u32-strcat.c: New file.
71949         * lib/unistr/u-strcat.h: New file.
71950
71951         * modules/unistr/u8-strchr: New file.
71952         * modules/unistr/u16-strchr: New file.
71953         * modules/unistr/u32-strchr: New file.
71954         * lib/unistr/u8-strchr.c: New file.
71955         * lib/unistr/u16-strchr.c: New file.
71956         * lib/unistr/u32-strchr.c: New file.
71957
71958         * modules/unistr/u8-strcmp: New file.
71959         * modules/unistr/u16-strcmp: New file.
71960         * modules/unistr/u32-strcmp: New file.
71961         * lib/unistr/u8-strcmp.c: New file.
71962         * lib/unistr/u16-strcmp.c: New file.
71963         * lib/unistr/u32-strcmp.c: New file.
71964
71965         * modules/unistr/u8-strcpy: New file.
71966         * modules/unistr/u16-strcpy: New file.
71967         * modules/unistr/u32-strcpy: New file.
71968         * lib/unistr/u8-strcpy.c: New file.
71969         * lib/unistr/u16-strcpy.c: New file.
71970         * lib/unistr/u32-strcpy.c: New file.
71971         * lib/unistr/u-strcpy.h: New file.
71972
71973         * modules/unistr/u8-strcspn: New file.
71974         * modules/unistr/u16-strcspn: New file.
71975         * modules/unistr/u32-strcspn: New file.
71976         * lib/unistr/u8-strcspn.c: New file.
71977         * lib/unistr/u16-strcspn.c: New file.
71978         * lib/unistr/u32-strcspn.c: New file.
71979         * lib/unistr/u-strcspn.h: New file.
71980
71981         * modules/unistr/u8-strdup: New file.
71982         * modules/unistr/u16-strdup: New file.
71983         * modules/unistr/u32-strdup: New file.
71984         * lib/unistr/u8-strdup.c: New file.
71985         * lib/unistr/u16-strdup.c: New file.
71986         * lib/unistr/u32-strdup.c: New file.
71987         * lib/unistr/u-strdup.h: New file.
71988
71989         * modules/unistr/u8-strlen: New file.
71990         * modules/unistr/u16-strlen: New file.
71991         * modules/unistr/u32-strlen: New file.
71992         * lib/unistr/u8-strlen.c: New file.
71993         * lib/unistr/u16-strlen.c: New file.
71994         * lib/unistr/u32-strlen.c: New file.
71995         * lib/unistr/u-strlen.h: New file.
71996
71997         * modules/unistr/u8-strmblen: New file.
71998         * modules/unistr/u16-strmblen: New file.
71999         * modules/unistr/u32-strmblen: New file.
72000         * lib/unistr/u8-strmblen.c: New file.
72001         * lib/unistr/u16-strmblen.c: New file.
72002         * lib/unistr/u32-strmblen.c: New file.
72003
72004         * modules/unistr/u8-strmbtouc: New file.
72005         * modules/unistr/u16-strmbtouc: New file.
72006         * modules/unistr/u32-strmbtouc: New file.
72007         * lib/unistr/u8-strmbtouc.c: New file.
72008         * lib/unistr/u16-strmbtouc.c: New file.
72009         * lib/unistr/u32-strmbtouc.c: New file.
72010
72011         * modules/unistr/u8-strncat: New file.
72012         * modules/unistr/u16-strncat: New file.
72013         * modules/unistr/u32-strncat: New file.
72014         * lib/unistr/u8-strncat.c: New file.
72015         * lib/unistr/u16-strncat.c: New file.
72016         * lib/unistr/u32-strncat.c: New file.
72017         * lib/unistr/u-strncat.h: New file.
72018
72019         * modules/unistr/u8-strncmp: New file.
72020         * modules/unistr/u16-strncmp: New file.
72021         * modules/unistr/u32-strncmp: New file.
72022         * lib/unistr/u8-strncmp.c: New file.
72023         * lib/unistr/u16-strncmp.c: New file.
72024         * lib/unistr/u32-strncmp.c: New file.
72025
72026         * modules/unistr/u8-strncpy: New file.
72027         * modules/unistr/u16-strncpy: New file.
72028         * modules/unistr/u32-strncpy: New file.
72029         * lib/unistr/u8-strncpy.c: New file.
72030         * lib/unistr/u16-strncpy.c: New file.
72031         * lib/unistr/u32-strncpy.c: New file.
72032         * lib/unistr/u-strncpy.h: New file.
72033
72034         * modules/unistr/u8-strnlen: New file.
72035         * modules/unistr/u16-strnlen: New file.
72036         * modules/unistr/u32-strnlen: New file.
72037         * lib/unistr/u8-strnlen.c: New file.
72038         * lib/unistr/u16-strnlen.c: New file.
72039         * lib/unistr/u32-strnlen.c: New file.
72040         * lib/unistr/u-strnlen.h: New file.
72041
72042         * modules/unistr/u8-strpbrk: New file.
72043         * modules/unistr/u16-strpbrk: New file.
72044         * modules/unistr/u32-strpbrk: New file.
72045         * lib/unistr/u8-strpbrk.c: New file.
72046         * lib/unistr/u16-strpbrk.c: New file.
72047         * lib/unistr/u32-strpbrk.c: New file.
72048         * lib/unistr/u-strpbrk.h: New file.
72049
72050         * modules/unistr/u8-strrchr: New file.
72051         * modules/unistr/u16-strrchr: New file.
72052         * modules/unistr/u32-strrchr: New file.
72053         * lib/unistr/u8-strrchr.c: New file.
72054         * lib/unistr/u16-strrchr.c: New file.
72055         * lib/unistr/u32-strrchr.c: New file.
72056
72057         * modules/unistr/u8-strspn: New file.
72058         * modules/unistr/u16-strspn: New file.
72059         * modules/unistr/u32-strspn: New file.
72060         * lib/unistr/u8-strspn.c: New file.
72061         * lib/unistr/u16-strspn.c: New file.
72062         * lib/unistr/u32-strspn.c: New file.
72063         * lib/unistr/u-strspn.h: New file.
72064
72065         * modules/unistr/u8-strstr: New file.
72066         * modules/unistr/u16-strstr: New file.
72067         * modules/unistr/u32-strstr: New file.
72068         * lib/unistr/u8-strstr.c: New file.
72069         * lib/unistr/u16-strstr.c: New file.
72070         * lib/unistr/u32-strstr.c: New file.
72071         * lib/unistr/u-strstr.h: New file.
72072
72073         * modules/unistr/u8-strtok: New file.
72074         * modules/unistr/u16-strtok: New file.
72075         * modules/unistr/u32-strtok: New file.
72076         * lib/unistr/u8-strtok.c: New file.
72077         * lib/unistr/u16-strtok.c: New file.
72078         * lib/unistr/u32-strtok.c: New file.
72079         * lib/unistr/u-strtok.h: New file.
72080
72081         * modules/unistr/u8-uctomb: New file.
72082         * modules/unistr/u16-uctomb: New file.
72083         * modules/unistr/u32-uctomb: New file.
72084         * lib/unistr/u8-uctomb.c: New file.
72085         * lib/unistr/u16-uctomb.c: New file.
72086         * lib/unistr/u32-uctomb.c: New file.
72087
72088         * MODULES.html.sh (Unicode string functions): Add the new modules.
72089
72090 2007-01-08  Bruno Haible  <bruno@clisp.org>
72091
72092         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72093         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72094         subdirectories.
72095
72096 2007-01-08  Karl Berry  <karl@gnu.org>
72097
72098         * doc/error.texi: mention that main() fns must set program_name
72099         when progname is used.
72100
72101 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72102
72103         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72104         WCTYPE_H is empty, for the benefit of builds from non-distclean
72105         directories.  Problem reported by Eric Blake in
72106         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72107
72108 2007-01-08  Bruno Haible  <bruno@clisp.org>
72109
72110         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72111         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72112         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72113         PROVIDE_CANONICALIZE_FILENAME_MODE.
72114         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72115
72116 2007-01-08  Bruno Haible  <bruno@clisp.org>
72117
72118         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72119         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72120         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72121         * lib/fts.c: Likewise.
72122         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72123
72124 2006-12-25  Bruno Haible  <bruno@clisp.org>
72125
72126         * modules/utf8-ucs4-safe: New file.
72127         * lib/utf8-ucs4-safe.h: New file.
72128         * lib/unistr/utf8-ucs4-safe.c: New file.
72129
72130         * modules/utf16-ucs4-safe: New file.
72131         * lib/utf16-ucs4-safe.h: New file.
72132         * lib/unistr/utf16-ucs4-safe.c: New file.
72133
72134         * MODULES.html.sh (Unicode string functions): Add the new modules.
72135
72136 2007-01-08  Bruno Haible  <bruno@clisp.org>
72137
72138         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72139         (Depends-on): Add unitypes.
72140         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72141         (u8_mbtouc_aux): Move out to separate file.
72142         (u8_mbtouc): Use ucs4_t, uint8_t types.
72143         * lib/unistr/utf8-ucs4.c: New file.
72144
72145         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72146         (Depends-on): Add unitypes.
72147         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72148         (u16_mbtouc_aux): Move out to separate file.
72149         (u16_mbtouc): Use ucs4_t, uint16_t types.
72150         * lib/unistr/utf16-ucs4.c: New file.
72151
72152         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72153         (Depends-on): Add unitypes.
72154         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72155         (u8_uctomb_aux): Move out to separate file.
72156         (u8_uctomb): Use ucs4_t, uint8_t types.
72157         * lib/unistr/ucs4-utf8.c: New file.
72158
72159         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72160         (Depends-on): Add unitypes.
72161         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72162         (u16_uctomb_aux): Move out to separate file.
72163         (u16_uctomb): Use ucs4_t, uint16_t types.
72164         * lib/unistr/ucs4-utf16.c: New file.
72165
72166 2006-12-25  Bruno Haible  <bruno@clisp.org>
72167
72168         * modules/unitypes: New file.
72169         * lib/unitypes.h: New file.
72170         * MODULES.html.sh (func_all_modules): New section "Unicode string
72171         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72172         this section. Add unitypes.
72173
72174 2007-01-08  Bruno Haible  <bruno@clisp.org>
72175
72176         Avoid variable names that conflict with those from libtool.
72177         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72178         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72179         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72180         library_names_spec to acl_library_names_spec, hardcode_* to
72181         acl_hardcode_*.
72182         Reported by Ralf Wildenhues.
72183
72184 2007-01-08  Bruno Haible  <bruno@clisp.org>
72185
72186         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72187         definition.
72188         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72189         definition.
72190         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72191         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72192         definition.
72193         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72194         definition.
72195         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72196         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72197         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72198         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72199         definition.
72200         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72201         definition.
72202         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72203         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72204         GC_USE_<algorithm>.
72205         * lib/gc-libgcrypt.c: Likewise.
72206         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72207         * modules/gc-arctwo (configure.ac): Likewise.
72208         * modules/gc-des (configure.ac): Likewise.
72209         * modules/gc-hmac-md5 (configure.ac): Likewise.
72210         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72211         * modules/gc-md2 (configure.ac): Likewise.
72212         * modules/gc-md4 (configure.ac): Likewise.
72213         * modules/gc-md5 (configure.ac): Likewise.
72214         * modules/gc-random (configure.ac): Likewise.
72215         * modules/gc-rijndael (configure.ac): Likewise.
72216         * modules/gc-sha1 (configure.ac): Likewise.
72217
72218 2007-01-08  Bruno Haible  <bruno@clisp.org>
72219
72220         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72221         macro definition.
72222         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72223         definition.
72224         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72225         definition.
72226         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72227         * modules/fcntl-safer (configure.ac): Likewise.
72228         * modules/fopen-safer (configure.ac): Likewise.
72229         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72230         GNULIB_FWRITEERROR macro definition.
72231
72232 2007-01-08  Bruno Haible  <bruno@clisp.org>
72233
72234         * m4/gnulib-common.m4: New file.
72235         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72236         (func_get_filelist): Add m4/gnulib-common.m4.
72237
72238 2007-01-08  Bruno Haible  <bruno@clisp.org>
72239
72240         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72241         command.
72242
72243 2007-01-08  Jim Meyering  <jim@meyering.net>
72244
72245         Use a more robust test for a "can't happen" condition.
72246         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72247         narrowed the st_size value.  Presuming the "can't happen" condition
72248         is true, that narrowing could conceivably convert an invalid st_size
72249         value into a valid one.  Instead, use a change based on Matthew
72250         Woehlke's original patch.
72251
72252         Slight readability improvement: use an assert-like macro
72253         in place of literal "abort ()" uses.
72254         * lib/fts.c (fts_assert): Define.
72255         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72256         Use this macro instead of a bare 'abort'.
72257
72258 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72259
72260         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72261         simply work around them.
72262         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72263         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72264         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72265         declaring.
72266         Don't bother to define as macros, since the standard doesn't require it.
72267         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72268         longer worry about IRIX 5.3.
72269         (HAVE_WCTYPE_CTMP_BUG): Remove.
72270
72271 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72274         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72275         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72276         Problems reported by Georg Schwarz for IRIX 5.3.
72277
72278         * gnulib-tool (autoconf_minversion): Take the maximum version number
72279         found, not the minimum.  Problem reported by James Youngman.
72280
72281 2007-01-03  Karl Berry  <karl@gnu.org>
72282
72283         * doc/error.texi: new file, explaining interaction with progname.
72284         * doc/gnulib.texi: include it.  Update copyright.
72285
72286 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72287
72288         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72289         AC_CANONICAL_HOST, to improve autobuild outputs.
72290
72291 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72292             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72293
72294         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72295         sockets, server sockets, and other file descriptors.  Count errors
72296         to compute the return value.  Reorder the code a bit to be easier
72297         to follow.  Don't set event bits that were not requested (except
72298         POLLERR and POLLHUP).
72299
72300 2007-01-01  Bruno Haible  <bruno@clisp.org>
72301
72302         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72303
72304 2007-01-03  Jim Meyering  <jim@meyering.net>
72305
72306         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72307
72308 2007-01-02  Bruno Haible  <bruno@clisp.org>
72309
72310         * modules/settime (Include): Require timespec.h.
72311         * modules/nanosleep (Include): Likewise.
72312
72313 2007-01-01  Bruno Haible  <bruno@clisp.org>
72314
72315         * gnulib-tool (func_emit_copyright_notice): Bump year.
72316         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72317
72318 2007-01-01  Bruno Haible  <bruno@clisp.org>
72319
72320         Improve support for OpenBSD.
72321         * build-aux/config.rpath (libname_spec): Export.
72322         (library_names_spec): New variable. Export.
72323         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72324         library_names_spec from the config.rpath output. Locate shared library
72325         through the name pattern in library_names_spec.
72326
72327 2007-01-01  Eric Blake  <ebb9@byu.net>
72328
72329         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72330
72331 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72334         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72335         assume the C locale, and avoid an "eval" that could cause trouble.
72336         Problem with SORT reported by Bob Proulx.
72337
72338         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72339         Define.  Trivial patch from Henning Nielsen Lund, originally
72340         sent to bug-grep@gnu.org today.
72341
72342 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72343
72344         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72345         struct stat.  Problem reported by Henning Nielsen Lund.
72346         * lib/acl.c: Include acl.h first, to check interface.  Don't
72347         bother to include sys/types.h and sys/stat.h again.
72348
72349 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72350
72351         Import the following change from libc; problem reported by
72352         Sven Verdoolaege.
72353
72354         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72355
72356         [BZ #1373]
72357         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72358
72359 2006-12-28  Jim Meyering  <jim@meyering.net>
72360
72361         * build-aux/announce-gen: Do not assume that the package
72362         builds any of tar.gz, tar.bz2, and .xdelta files.
72363         Suggestion from Simon Josefsson.
72364
72365 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72366
72367         * modules/announce-gen: New file.
72368
72369 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72370
72371         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72372         handles its gotchas now.
72373         * lib/mbswidth.c: Likewise.
72374         * lib/wcwidth.h: Likewise.
72375         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72376         and iswcntrl; the wctype module does this stuff now.
72377         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72379         * modules/mbchar (Depends-on): Add wctype.
72380         * modules/mbswidth (Depends-on): Likewise.
72381         * modules/wcwidth (Depends-on): Likewise.
72382
72383 2006-12-27  Eric Blake  <ebb9@byu.net>
72384
72385         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72386         module uses more than what <wctype.h> is required to provide.
72387
72388 2006-12-26  Eric Blake  <ebb9@byu.net>
72389
72390         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72391
72392 2006-12-26  Eric Blake  <ebb9@byu.net>
72393
72394         * modules/absolute-header: New module.
72395         * modules/fcntl (Depends-on): Depend on it.
72396         * modules/inttypes (Depends-on): Likewise.
72397         * modules/stdint (Depends-on): Likewise.
72398         * modules/sys_stat (Depends-on): Likewise.
72399         * modules/wctype (Depends-on): Likewise.
72400         * MODULES.html.sh (Support for building libraries and
72401         executables): Document it.
72402
72403 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72404
72405         * gnulib-tool (SED): Remove, undoing previous change.
72406         The problem was that it broke coreutils on Solaris, because
72407         "sed --posix" leaked into a makefile.
72408         (sed): New alias, if 'alias' and GNU sed.
72409
72410 2006-12-24  Jim Meyering  <jim@meyering.net>
72411
72412         Work around an fchownat bug in glibc-2.4:
72413         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72414         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72415         in spite of the -P option.
72416         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72417         New macros.
72418         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72419         * modules/openat (Files): Add lib/fchownat.c.
72420         * lib/openat.c (fchownat): Don't define here.  Move to...
72421         * lib/fchownat.c: ...this new file.
72422
72423 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72424
72425         Fix bug reported by Bruno Haible in
72426         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72427         where quotearg.c didn't compile on Mac OS X 10.2 because it
72428         lacks <wchar.h> and wint_t.
72429         * lib/wctype_.h (__wctype_wint_t): New type.
72430         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72431         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72432         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72433         Arg is now of type __wctype_wint_t, not wint_t.
72434         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72435         substitute HAVE_WINT_T.
72436         * modules/wctype (Files): Add m4/wint_t.m4.
72437         (wctype.h): Substitute HAVE_WINT_T.
72438
72439 2006-12-23  Bruno Haible  <bruno@clisp.org>
72440
72441         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72442
72443 2006-12-23  Bruno Haible  <bruno@clisp.org>
72444
72445         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72446         S_ISLNK.
72447         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72448         mingw.
72449
72450 2006-12-22  Bruno Haible  <bruno@clisp.org>
72451
72452         * lib/copy-file.c: Include acl.h.
72453         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72454         Close the file descriptors only after being done with copy_acl.
72455         * modules/copy-file (Depends-on): Add acl.
72456
72457 2006-12-22  Bruno Haible  <bruno@clisp.org>
72458
72459         * gnulib-tool (SED): New variable.
72460         Use $SED instead of sed everywhere.
72461
72462 2006-12-22  Bruno Haible  <bruno@clisp.org>
72463
72464         * modules/no-c++: New file.
72465         * m4/no-c++.m4: New file.
72466         * MODULES.html.sh (Support for building libraries and executables):
72467         Add no-c++.
72468
72469 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72472         Include <limits.h>, and use its INT_MAX to rewrite the
72473         j loop so that it does not overflow 'int'.  Problem reported by
72474         Ralf Wildenhues in
72475         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72476         Play it safe by shifting left by 1 rather than multiplying by 2,
72477         as GCC is less likely to optimize this away when the value
72478         is signed (when it assumes overflow leads to undefined behavior).
72479         Also, don't assume time_t uses two's complement.
72480
72481 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * MODULES.html.sh: New module wctype.
72484         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72485         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72486         <wctype.h>, since the new wctype module should fix this.
72487         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72488         the wctype module should arrange for it.
72489         * lib/regex_internal.h: Likewise.
72490         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72491         since the wctype module should handle this now.
72492         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72493         * modules/fnmatch (Depends-on): Add wctype.
72494         * modules/quotearg (Depends-on): Likewise.
72495         * modules/regex (Depends-on): Likewise.
72496
72497 2006-12-19  Bruno Haible  <bruno@clisp.org>
72498
72499         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72500         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72501
72502 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72503
72504         * modules/savewd (Depends-on): Fix dependency on fcntl.
72505
72506 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72507
72508         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72509         conforms to C99, rather than relying on the user's environment
72510         setting of STDINT_H.
72511
72512 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72513         and Eric Blake  <ebb9@byu.net>
72514
72515         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72516         This is more consistent with the other defines here.
72517         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72518         Port to z/OS.  Problem reported by Paul Gilmartin.
72519         Change local vars to use gl_ prefix rather than ac_.
72520         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72521         with other defines.
72522         * modules/double-slash-root: New module.
72523         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72524         (Depends-on): Add double-slash-root.
72525         * MODULES.html.sh (File system functions): Mention new module.
72526
72527 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72528
72529         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72530         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72531         This is for the benefit of gzip, which doesn't do i18n.
72532
72533 2006-12-12  Jim Meyering  <jim@meyering.net>
72534
72535         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72536         Reported by Andreas Schwab <schwab@suse.de>.
72537
72538 2006-12-12  Bruno Haible  <bruno@clisp.org>
72539
72540         Merge these changes.
72541         2006-09-05  Bruno Haible  <bruno@clisp.org>
72542         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72543         iconv_alloc succeeded.
72544         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72545         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72546         test for " && dest " at the end - dest is always != NULL there. Call
72547         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72548         with 2xNULL arguments, also to flush the state storage. Handle the
72549         IRIX iconv behaviour. Realloc the final result, to throw away unused
72550         memory.
72551
72552 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72553
72554         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72555         and fchmodat unconditionally, since glibc 2.4 has them.
72556         Problem reported by Arkadiusz Miskiewicz.
72557
72558 2006-12-10  Bruno Haible  <bruno@clisp.org>
72559
72560         * gnulib-tool (func_import): Show the include files only for those
72561         modules that are copied and specified.
72562         Reported by Karl Berry.
72563
72564 2006-12-08  Jim Meyering  <jim@meyering.net>
72565
72566         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72567         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72568
72569         * build-aux/announce-gen: Add two new options, both optional:
72570         --bootstrap-tools=TOOL_LIST
72571               a comma-separated list of tools, e.g.,
72572               autoconf,automake,bison,gnulib
72573         --gnulib-snapshot-date=DATE
72574               if gnulib is in the bootstrap tool list,
72575               then report this as the snapshot date.
72576               If not specified, use the current date/time.
72577               If you specify a date here, be sure it's UTC.
72578
72579 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72580
72581         * tests/test-argp-2.sh: Fix test to match actual output.
72582         (func_compare): Fix sed script to be portable.
72583
72584 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72587         workaround for this case.  It is not autoconfigured now; offhand
72588         it's hard to see how to autoconfigure it.
72589
72590 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72591
72592         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72593         a directory that is about to be chowned.  Such a directory's
72594         initial file permissions should permit the owner only and this
72595         should not be changed until after the chown, since the group and
72596         other bits would be incorrect if they granted permission before
72597         the chown.
72598
72599         Fix porting problem for iswctype reported by Georg Schwarz in:
72600         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72601         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72602         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72603         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72604         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72605
72606 2006-12-03  Jim Meyering  <jim@meyering.net>
72607
72608         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72609         p->fts_statp may not yet be defined.
72610         (fts_read): Instead, set it in the caller, once p->fts_statp is
72611         sure to be defined, and corresponds to a top-level directory.
72612         This bug made du -x fail.  Here's the coreutils test case:
72613         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72614         Reported by Mike Frysinger.
72615
72616 2006-12-01  Jim Meyering  <jim@meyering.net>
72617
72618         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72619         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72620         Reported by Simon Josefsson.
72621
72622 2006-11-30  Jim Meyering  <jim@meyering.net>
72623
72624         * m4/warning.m4: Use the all-permissive copyright notice
72625         recommended by RMS (rather than LGPL).
72626         * m4/vararrays.m4: Likewise.
72627         * m4/flexmember.m4: Likewise.
72628
72629 2006-11-29  Bruno Haible  <bruno@clisp.org>
72630
72631         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72632         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72633         using +=.
72634         Reported by Simon Josefsson <simon@josefsson.org>.
72635
72636 2006-11-28  James Youngman <jay@gnu.org>
72637
72638         * README: Advise users that they might find the bug-gnulib@gnu.org
72639         and autotools-announce@gnu.org mailing lists useful.
72640
72641 2006-11-28  Bruno Haible  <bruno@clisp.org>
72642
72643         * m4/ptrdiff_max.m4: Remove file.
72644
72645 2006-11-21  Bruno Haible  <bruno@clisp.org>
72646
72647         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72648         _AC_COMPUTE_INT.
72649         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72650         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72651         _AC_COMPUTE_INT.
72652         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72653         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72654         _AC_COMPUTE_INT.
72655         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72656
72657 2006-11-28  Jim Meyering  <jim@meyering.net>
72658
72659         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72660         warning from "gcc -Wshadow" about shadowing the builtin.
72661
72662 2006-11-27  Bruno Haible  <bruno@clisp.org>
72663
72664         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72665         _AC_COMPUTE_INT.
72666         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72667
72668 2006-11-27  Bruno Haible  <bruno@clisp.org>
72669             Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72672
72673 2006-11-26  Bruno Haible  <bruno@clisp.org>
72674
72675         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72676         noinst_LTLIBRARIES.
72677
72678 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72679             Bruno Haible  <bruno@clisp.org>
72680
72681         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72682         if compiling with "gcc -ansi".
72683
72684 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72685
72686         Fix some incompatibilities with gcc -ansi -pedantic.
72687         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72688         if compiling pedantically with GCC, unless it's C99 or later.
72689         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72690         it mishandles gcc -ansi -pedantic as well.
72691         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72692         if gcc -pedantic.
72693         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72694         initializers for struct if -pedantic, unless it's C99 or later.
72695
72696 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72697
72698         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72699         Don't close an fd more than once. Identical atimes indicate
72700         success, not failure.
72701
72702 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72703
72704         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72705
72706 2006-11-23  Jim Meyering  <jim@meyering.net>
72707
72708         * build-aux/announce-gen: New file.  From coreutils.
72709
72710 2006-11-22  Jim Meyering  <jim@meyering.net>
72711
72712         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72713         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72714         (fts_read): Use a temporary to narrow the overused st_size member
72715         before using it in a switch statement.  Reported by Matthew Woehlke.
72716
72717         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72718         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72719
72720 2006-11-20  Bruno Haible  <bruno@clisp.org>
72721
72722         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72723         changequote instead of pairs of brackets.
72724         Reported by Andreas Schwab <schwab@suse.de>.
72725
72726 2006-11-21  Jim Meyering  <jim@meyering.net>
72727
72728         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72729         so as to remain compatible with older compilers.
72730         Patch from Michael Deutschmann.
72731
72732 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         * MODULES.html.sh (File system functions): Add openat.
72735
72736         * lib/openat.h (rpl_fstatat): New macro, if
72737         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72738         (fstatat): Define to rpl_fstatat under the same conditions,
72739         unless COMPILING_FSTATAT.
72740         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72741         seems to have the bug.
72742         * lib/fstatat.c: New file.
72743         * modules/openat (Files): Add it.
72744
72745 2006-11-20  Bruno Haible  <bruno@clisp.org>
72746
72747         * Makefile: New file.
72748
72749 2006-11-20  Jim Meyering  <jim@meyering.net>
72750
72751         The beginnings of syntax-related checks for gnulib.
72752         * lib/Makefile: New file.
72753         * lib/t-idcache: New script.  Ensure that the two halves of
72754         idcache.c stay in sync.
72755
72756         * lib/idcache.c: Adjust comments in user- and group- portions to
72757         be more accurate, and to be consistent with one another.
72758
72759 2006-11-20  Jim Meyering  <jim@meyering.net>
72760
72761         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72762         continue using the flexible array member (thus, this module performs
72763         half as many malloc calls), with the addition that...
72764         (getgroup, getuser): Consistently record a non-match via an empty
72765         "name" string, and map an empty string match to a NULL return value.
72766         * modules/idcache (Depends-on): Re-add flexmember.
72767
72768         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72769         (getuidbyname, getgroup, getgidbyname): Likewise.
72770
72771         Use cleaner syntax: NULL rather than 0.
72772         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72773
72774 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72775
72776         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72777         It mishandled the case where the group was missing.
72778         Problem reported by Greg Schafer.
72779         * modules/idcache: Likewise.
72780
72781 2006-11-18  Jim Meyering  <jim@meyering.net>
72782
72783         * check-module (%exempt_header): Add exception for some
72784         conditionally-included headers.
72785
72786         * modules/i-ring (Depends-on): Add verify.
72787         (License): Change to LGPL.
72788
72789 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72790
72791         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72792         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72793         and inttostr.h.  Use snprintf rather than uinttostr, so that
72794         LGPLed code doesn't depend on GPLed.
72795
72796 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72797
72798         * modules/inline (License): Change from GPL to LGPL.
72799
72800 2006-11-17  Jim Meyering  <jim@meyering.net>
72801
72802         * modules/d-type (License): Switch to LGPL.
72803
72804 2006-11-15  Bruno Haible  <bruno@clisp.org>
72805
72806         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72807
72808 2006-11-15  Eric Blake  <ebb9@byu.net>
72809
72810         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72811         the module dependency.
72812
72813 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72814             Bruno Haible  <bruno@clisp.org>
72815
72816         * gnulib-tool (func_create_testdir): Add license consistency check.
72817
72818 2006-11-15  Eric Blake  <ebb9@byu.net>
72819
72820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72821         random "(cached)" in configure output.
72822
72823 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72824
72825         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72826         test for conforming inttypes.h is both announced and cached.
72827
72828         * MODULES.html.sh (seen_modules, seen_files): New variables.
72829         (func_module): Rewrite to use a few less gnulib-tool and sed
72830         invocations.  Avoid a couple of quadratic algorithms for ...
72831         (missed_modules, missed_files): ... these, with ...
72832         (func_append, func_tmpdir): ... these new functions, from
72833         gnulib-tool.  Analogously, install traps for cleanup.
72834
72835         * tests/test-gc.c (main): Remove unused variables.
72836         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72837
72838 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72839
72840         * modules/inttostr (License): Change to LGPL.
72841
72842 2006-11-14  Eric Blake  <ebb9@byu.net>
72843
72844         * modules/tempname (License): Change to LGPL.
72845
72846 2006-11-14  Eric Blake  <ebb9@byu.net>
72847
72848         * doc/functions.texi (Function Portability): *printf functions on
72849         Cygwin now understand all POSIX size specifiers.
72850
72851 2006-11-14  Bruno Haible  <bruno@clisp.org>
72852
72853         * modules/c-ctype (License): Change to LGPL.
72854
72855 2006-11-12  Bruno Haible  <bruno@clisp.org>
72856
72857         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72858         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72859         for GNOME libraries, for which the include files are installed in
72860         subdirectories of $prefix/include.
72861
72862 2006-11-12  Bruno Haible  <bruno@clisp.org>
72863
72864         * m4/lib-link.m4: Require at least autoconf-2.54.
72865         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72866         name to underscores for the --with option.
72867
72868 2006-11-13  Bruno Haible  <bruno@clisp.org>
72869
72870         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72871         the tests directory.
72872         Reported by Ralf Wildenhues.
72873
72874 2006-11-13  Bruno Haible  <bruno@clisp.org>
72875
72876         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72877         (func_emit_initmacro_end): Undo the override here.
72878         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72879         Works around the famous automake error in coreutils.
72880
72881 2006-11-13  Eric Blake  <ebb9@byu.net>
72882
72883         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72884         element, not its node.
72885
72886 2006-11-12  Bruno Haible  <bruno@clisp.org>
72887
72888         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72889         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72890
72891 2006-11-12  Bruno Haible  <bruno@clisp.org>
72892
72893         * gnulib-tool: New option --local-symlink.
72894         (func_usage): Document it.
72895         (lsymbolic): New variable.
72896         (func_import, func_create_testdir): If --symlink was not specified,
72897         test whether --local-symlink was specified and the file comes from
72898         the local_gnulib_dir.
72899
72900 2006-11-12  Bruno Haible  <bruno@clisp.org>
72901
72902         * gnulib-tool (func_ln): New function.
72903         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72904
72905 2006-11-12  Bruno Haible  <bruno@clisp.org>
72906
72907         Finish support for source files in subdirectories.
72908         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72909         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72910         AUTOMAKE_OPTIONS.
72911         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72912
72913 2006-11-12  Bruno Haible  <bruno@clisp.org>
72914
72915         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72916         EXTRA_lib_SOURCES augmentation.
72917         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72918
72919 2006-11-12  Jim Meyering  <jim@meyering.net>
72920
72921         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72922         file descriptors.  This also averts a failure on systems with
72923         native openat support when a traversed directory lacks "x" access.
72924         * lib/fts_.h: Include "i-ring.h"
72925         (struct FTS) [fts_fd_ring]: New member.
72926         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72927         (FCHDIR): Add parentheses.
72928         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72929         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72930         When descending, rather than simply closing the previous
72931         fts_cwd_fd value, push that file descriptor onto the ring.
72932         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72933         (fts_open): Initialize the new fd_ring member.
72934         (fts_close): Clear the ring.
72935         (fts_safe_changedir): When possible, use our new fd_ring to skip
72936         the diropen and fstat and dev/ino comparison that would normally
72937         accompany a virtual `chdir ("..")'.
72938
72939         * modules/fts (Depends-on): Add i-ring.
72940         * modules/i-ring: New module.
72941         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72942         * m4/i-ring.m4: New file.
72943
72944 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72945
72946         * gnulib-tool (func_create_testdir): Fix replacement of
72947         `build-aux' in configure.ac.  Run autotools in gltests
72948         subdirectory.
72949         (func_create_testdir, func_create_megatestdir, test): There is
72950         no need for '--force' in most autotool invocations in a new
72951         tree.  Actually fail the whole test if any of the tools, or the
72952         configure or make stages fail.
72953
72954         Sync from Automake.
72955         * build-aux/gnupload: Revert last change.  Add pointer to upload
72956         instructions of the GNU Maintenance Instructions.
72957         Suggestion by Karl Berry.
72958
72959 2006-11-10  Jim Meyering  <jim@meyering.net>
72960
72961         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72962
72963 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72964
72965         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72966         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72967         (bind_textdomain_codeset) [! ENABLE_NLS]:
72968         Evaluate all the arguments.  That way, callers get compatible behavior
72969         if the arguments have side effects.  Also, it avoids some GCC
72970         diagnostics in some cases; Joel E. Denny reported problems when Bison
72971         was configured with --enable-gcc-warnigs.
72972
72973 2006-11-10  Jim Meyering  <jim@meyering.net>
72974
72975         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72976         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72977         account.
72978
72979 2006-11-10  Jim Meyering  <jim@meyering.net>
72980
72981         * modules/inline: New file/module.
72982         * modules/xalloc (Files): Remove m4/inline.m4.
72983         (Depends-on): Add inline, instead.
72984         * modules/oset: Likewise.
72985         * modules/list: Likewise.
72986
72987 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72988
72989         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72990         Problem reported by Matthew Woehlke.
72991
72992 2006-11-09  Bruno Haible  <bruno@clisp.org>
72993
72994         * lib/tempname.c (gen_tempname): Remove variant that invokes
72995         __gen_tempname.
72996         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72997         __gen_tempname.
72998
72999 2006-11-08  Bruno Haible  <bruno@clisp.org>
73000
73001         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73002         to 'yes' instead of 'cross-compiling'.
73003
73004 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73005
73006         * lib/quotearg.h (quotearg_free): New decl.
73007         * lib/quotearg.c (quotearg_free): New function.
73008         (slot0, nslots, slotvec0, slotvec):
73009         Now file-scope so that quotearg_free can get at them.
73010
73011 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73012
73013         Sync from Automake.
73014         * build-aux/gnupload: Add missing 'gnu' to example URL.
73015         Report by Karl Berry.
73016
73017 2006-11-08  Bruno Haible  <bruno@clisp.org>
73018
73019         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73020         Suggested by Paul Eggert.
73021
73022 2006-11-08  Jim Meyering  <jim@meyering.net>
73023
73024         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73025         It's already included if !_LIBC.
73026         (fts_safe_changedir): Add a comment.
73027
73028 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73029
73030         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73031         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73032         Matthew Woehlke.
73033
73034         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73035         definitions up, to avoid colliding with change below.
73036         (static_inline) [HAVE_INLINE]: New macro.
73037         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73038         Provide extern decls when !HAVE_INLINE.  Do not define unless
73039         static_inline is defined, either by us or by xmalloc.c.  Use
73040         static_inline rather than static inline.
73041         (XCALLOC): Optimize sizeof(T) = 1 case.
73042         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73043
73044 2006-11-07  Bruno Haible  <bruno@clisp.org>
73045
73046         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73047         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73048         AC_C_INLINE.
73049         * modules/xalloc (Files): Add m4/inline.m4.
73050
73051 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73052
73053         * README: Fix typo.
73054         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73055         (Miscellanous Notes): ...from this.
73056
73057 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73058
73059         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73060         Mention that offsetof should be used instead of sizeof.
73061         From Bruno Haible.
73062
73063 2006-11-07  Bruno Haible  <bruno@clisp.org>
73064
73065         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73066
73067 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73068
73069         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73070         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73071         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73072         (gl_tree_add_before, gl_tree_add_after):
73073         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73074         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73075         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73076         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73077         (gl_linked_add_after, gl_linked_add_at): Likewise.
73078         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73079         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73080         (gl_tree_add_before, gl_tree_add_after): Likewise.
73081         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73082         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73083         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73084
73085 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73086
73087         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73088
73089 2006-11-06  Bruno Haible  <bruno@clisp.org>
73090
73091         * m4/inline.m4: New file.
73092         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73093         * modules/list (Files): Add m4/inline.m4.
73094         * modules/oset (Files): Likewise.
73095
73096 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73097
73098         * lib/idcache.c: Include <stddef.h>, for offsetof.
73099         (struct userid.name): Change from char * to a flexible array member.
73100         All uses changed.
73101         * modules/idcache (Depends-on): Add flexmember.
73102
73103         * MODULES.html.sh (Core language properties): New module flexmember.
73104         * modules/flexmember, m4/flexmember.m4: New files.
73105
73106         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73107         inline functions that are identical with the old xnmalloc_inline,
73108         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73109         that we can avoid some unnecessary integer multiplications and
73110         divisions in the common case where the element size is known at
73111         compile time.
73112         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73113         needed.
73114         (xnboundedmalloc): Remove.
73115         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73116         arguments, for consistency with rest of this header.
73117         (xcharalloc): Rewrite using XNMALLOC.
73118         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73119         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73120         versions have been moved to lib/xalloc.h and renamed to be the
73121         non-*_inline versions.
73122         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73123         and xnrealloc functions, since those functions are now inline and
73124         now call us.
73125         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73126         renaming described above.
73127         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73128         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73129         captures the dependency in AC_C_INLINE.
73130
73131         New module canonicalize-lgpl, proposed by Charles Wilson in
73132         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73133         with a few small changes afterwards.
73134         * MODULES.html.sh (File system functions): New module
73135         canonicalize-lgpl.
73136         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73137         and canonicalize_file_name.
73138         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73139         * modules/canonicalize-lgpl: New files.
73140
73141 2006-11-05  Bruno Haible  <bruno@clisp.org>
73142
73143         * gnulib-tool (func_import, func_create_testdir): Create directories
73144         also for files in subdirectories of lib/.
73145
73146 2006-11-05  Bruno Haible  <bruno@clisp.org>
73147
73148         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73149         ANSI C compliant.
73150
73151 2006-11-03  Bruno Haible  <bruno@clisp.org>
73152
73153         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73154         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73155         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73156         (xnboundedmalloc): New inline function.
73157         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73158         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73159         xmalloc.
73160         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73161         xmalloc.
73162         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73163         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73164         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73165         xmalloc.
73166         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73167         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73168         xmalloc.
73169         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73170         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73171         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73172         xmalloc.
73173         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73174         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73175         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73176         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73177         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73178         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73179         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73180
73181 2006-11-03  Bruno Haible  <bruno@clisp.org>
73182
73183         * lib/c-ctype.h [C++]: Define functions without name mangling.
73184         * lib/fwriteerror.h [C++]: Likewise.
73185         * lib/gcd.h [C++]: Likewise.
73186         * lib/linebreak.h [C++]: Likewise.
73187
73188 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73189
73190         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73191         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73192         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73193         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73194         Check for functions and headers just once.
73195         Check for declaration of canonicalize_file_name.
73196         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73197
73198 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73199
73200         * gnulib-tool (func_import): Fix typo in actioncmd.
73201
73202 2006-11-02  Bruno Haible  <bruno@clisp.org>
73203
73204         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73205         newline sequence in the Makefile.am snippet as a space, like "make"
73206         does.
73207         Reported by Roger Persson <perrog@gmail.com>.
73208
73209 2006-11-01  Bruno Haible  <bruno@clisp.org>
73210
73211         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73212         already declared in <string.h>.
73213         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73214
73215 2006-11-01  Bruno Haible  <bruno@clisp.org>
73216
73217         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73218         * lib/strcase.h: Include <string.h>.
73219         (strcasecmp): Define to rpl_strcasecmp here.
73220
73221 2006-11-01  Bruno Haible  <bruno@clisp.org>
73222
73223         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73224
73225 2006-11-01  Eric Blake  <ebb9@byu.net>
73226
73227         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73228
73229         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73230
73231 2006-10-29  Bruno Haible  <bruno@clisp.org>
73232
73233         Make it compile in C++ mode.
73234         * lib/full-write.c (full_rw): Add a cast.
73235
73236 2006-11-01  Bruno Haible  <bruno@clisp.org>
73237
73238         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73239         be POSIX compliant.
73240         Reported by Roger Persson <perrog@gmail.com>.
73241
73242 2006-11-01  Eric Blake  <ebb9@byu.net>
73243
73244         * lib/getopt_.h: Fix comments.
73245
73246 2006-10-31  Eric Blake  <ebb9@byu.net>
73247
73248         * modules/tmpdir (Depends-on): Add sys_stat.
73249         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73250         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73251         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73252         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73253         tempname.
73254
73255 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73256
73257         Avoid some C++ diagnostics reported by Bruno Haible.
73258         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73259         xmalloc.
73260         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73261         (struct slotvec): Move to top level.
73262         (quotearg_n_options): Rewrite to avoid xmalloc.
73263         * lib/xalloc.h (xcharalloc): New function.
73264         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73265         [defined __cplusplus]: Add function template that provides result
73266         type propagation.  This part of the change is from Bruno Haible.
73267
73268 2006-10-29  Bruno Haible  <bruno@clisp.org>
73269
73270         Make it compile in C++ mode.
73271         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73272         * lib/strnlen1.c (strnlen1): Cast memchr result.
73273         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73274         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73275         (create_temp_dir): Rename local variable 'template'.
73276         (compile_csharp_using_sscli): Add cast.
73277         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73278         * lib/findprog.c (find_in_path): Likewise.
73279         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73280         * lib/wait-process.c (register_slave_subprocess): Likewise.
73281
73282 2006-10-22  Bruno Haible  <bruno@clisp.org>
73283
73284         * modules/tsearch: New file.
73285         * lib/tsearch.h: New file.
73286         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73287         * m4/tsearch.m4: New file.
73288         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73289
73290 2006-10-29  Eric Blake  <ebb9@byu.net>
73291
73292         * lib/arcfour.c: Assume config.h.
73293         * lib/arctwo.c: Likewise.
73294         * lib/base64.c: Likewise.
73295         * lib/check-version.c: Likewise.
73296         * lib/crc.c: Likewise.
73297         * lib/des.c: Likewise.
73298         * lib/gc-gnulib.c: Likewise.
73299         * lib/gc-libgcrypt.c: Likewise.
73300         * lib/gc-pbkdf2-sha1.c: Likewise.
73301         * lib/getaddrinfo.c: Likewise.
73302         * lib/getdelim.c: Likewise.
73303         * lib/getline.c: Likewise.
73304         * lib/hmac-md5.c: Likewise.
73305         * lib/hmac-sha1.c: Likewise.
73306         * lib/iconvme.c: Likewise.
73307         * lib/md2.c: Likewise.
73308         * lib/md4.c: Likewise.
73309         * lib/memxor.c: Likewise.
73310         * lib/read-file.c: Likewise.
73311         * lib/readline.c: Likewise.
73312         * lib/rijndael-alg-fst.c: Likewise.
73313         * lib/rijndael-api-fst.c: Likewise.
73314         * lib/xgetdomainname.c: Likewise.
73315
73316 2006-10-28  Eric Blake  <ebb9@byu.net>
73317
73318         * lib/xstrndup.c: Assume config.h.
73319
73320 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73321
73322         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73323         stat-macros.h is now for our own macros, whereas stat_h is for
73324         macros in the <sys/stat.h> name space.
73325         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73326         (STAT_MACROS_H): Remove.
73327         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73328         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73329         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73330         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73331         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73332         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73333         Move these macros to ...
73334         * lib/stat_.h: here.  Don't include stat-macros.h.
73335         * lib/canonicalize.c: Don't include stat-macros.h.
73336         * lib/chown.c: Likewise.
73337         * lib/euidaccess.c: Likewise.
73338         * lib/file-type.c: Likewise.
73339         * lib/filemode.c: Likewise.
73340         * lib/glob.c: Likewise.
73341         * lib/isapipe.c: Likewise.
73342         * lib/lchown.c: Likewise.
73343         * lib/lstat.c: Likewise.
73344         * lib/mkdir-p.c: Likewise.
73345         * lib/rmdir.c: Likewise.
73346         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73348         unless mkdir isn't declared, to speed up 'configure'.
73349         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73350         would define all the S_* symbols.
73351         * modules/canonicalize (Depends-on):
73352         Depend on sys_stat, not stat-macros.
73353         * modules/chown: Likewise.
73354         * modules/euidaccess: Likewise.
73355         * modules/filemode: Likewise.
73356         * modules/file-type: Likewise.
73357         * modules/glob: Likewise.
73358         * modules/isapipe: Likewise.
73359         * modules/lchown: Likewise.
73360         * modules/lstat: Likewise.
73361         * modules/mkancesdirs: Likewise.
73362         * modules/rmdir: Likewise.
73363         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73364         * modules/modechange: Likewise.
73365         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73366         (configure.ac): Remove gl_STAT_MACROS.
73367         * modules/sys_stat (Depends-on): Remove stat-macros.
73368
73369 2006-10-27  Bruno Haible  <bruno@clisp.org>
73370
73371         * m4/signed.m4: Remove file.
73372         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73373         invocation.
73374         * modules/vasnprintf (Files): Remove m4/signed.m4.
73375
73376 2006-10-27  Bruno Haible  <bruno@clisp.org>
73377
73378         Update to GNU gettext 0.16.
73379         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73380         m4/inttypes-h.m4, m4/signed.m4.
73381         * m4/gettext.m4: Update to GNU gettext 0.16.
73382         * m4/intl.m4: New file, from GNU gettext.
73383         * m4/intldir.m4: New file, from GNU gettext.
73384         * config/srclist.txt: Update
73385
73386 2006-10-27  Eric Blake  <ebb9@byu.net>
73387
73388         * MODULES.html.sh: Document tempname.
73389         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73390         dependencies.
73391         (Files): Move lib/tempname.c...
73392         * modules/tempname: ...to this new module.
73393         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73394         (gl_PREREQ_TEMPNAME): Move...
73395         * m4/tempname.m4: ...to this new file.
73396         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73397         * modules/sys_stat (Depends-on): Add stat-macros.
73398         * lib/stat_.h (includes): Pick up stat macros.
73399         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73400         if stat macros are broken.
73401         * lib/tempname.c (includes): No need to include "stat-macros.h".
73402         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73403         (direxists, __path_search) [!_LIBC]: Don't compile these in
73404         gnulib; the tmpdir module covers that.
73405         * lib/tempname.h: New file.
73406
73407 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73408
73409         * COPYING: Explain how gnulib-tool converts licence headers.
73410         Almost all wording by Eric Blake.
73411
73412 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73413
73414         * lib/mbchar.h (is_basic_table): Make read-only.
73415         * lib/mbchar.c (is_basic_table): Likewise.
73416         Reported by John Darrington.
73417
73418 2006-10-25  Bruno Haible  <bruno@clisp.org>
73419
73420         * lib/progname.h (set_program_name): Undefine before defining.
73421
73422 2006-10-25  Bruno Haible  <bruno@clisp.org>
73423
73424         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73425         false for non-gcc C++ compilers.
73426         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73427
73428 2006-10-24  Bruno Haible  <bruno@clisp.org>
73429
73430         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73431         iconv implementations like Irix iconv.
73432
73433 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73434
73435         * modules/vararrays: New file.
73436         * m4/vararrays.m4: New file, taken from diffutils.
73437         * MODULES.html.sh: New module vararrays.
73438
73439 2006-10-24  Karl Berry  <karl@gnu.org>
73440
73441         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73442         Don't call GNU Unix.
73443
73444 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73445
73446         * users.txt: Add Libtool.
73447
73448         Sync from Libtool:
73449
73450         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73451
73452         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73453         to gnulib's policy of including config.h unconditionally.
73454
73455 2006-10-24  Bruno Haible  <bruno@clisp.org>
73456
73457         * modules/wcwidth (Files): Add m4/wint_t.m4.
73458         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73459         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73460
73461 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73462
73463         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73464         to pacify GCC with some -W flags enabled.  Problem reported by
73465         Bruno Haible.
73466
73467 2006-10-24  Jim Meyering  <jim@meyering.net>
73468
73469         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73470         Reported by Karl Berry.
73471
73472 2006-10-23  Bruno Haible  <bruno@clisp.org>
73473
73474         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73475
73476 2006-10-24  Bruno Haible  <bruno@clisp.org>
73477
73478         * lib/gl_list.h: Use C comment style, not C++ comment style.
73479
73480 2006-10-23  Eric Blake  <ebb9@byu.net>
73481
73482         * lib/getaddrinfo.c (includes): Add missing include.
73483
73484 2006-10-23  Bruno Haible  <bruno@clisp.org>
73485             Paul Eggert  <eggert@cs.ucla.edu>
73486
73487         Ability to rename obstack_free.
73488         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73489         obstack_free.
73490         (obstack_free): Invoke the __obstack_free macro.
73491         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73492
73493 2006-10-23  Bruno Haible  <bruno@clisp.org>
73494             Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73497         __argc, __argv from the declaration. (They are defined as macros on
73498         mingw.)
73499
73500 2006-10-22  Bruno Haible  <bruno@clisp.org>
73501
73502         * doc/gnulib-intro.texi: New file.
73503         * doc/gnulib.texi: Include it.
73504
73505 2006-10-21  Bruno Haible  <bruno@clisp.org>
73506
73507         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73508         "Introduction", "Miscellanous Notes", "Particular Modules".
73509
73510 2006-10-21  Bruno Haible  <bruno@clisp.org>
73511
73512         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73513         Change mostlyclean-local rule to avoid sh syntax error from bash
73514         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73515
73516 2006-10-23  Jim Meyering  <jim@meyering.net>
73517
73518         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73519         in place of snprintf.
73520
73521         * modules/inttostr (Files): Add lib/uinttostr.c.
73522         * lib/uinttostr.c (inttostr): New file/function.
73523         * lib/inttostr.h (uinttostr): Declare.
73524         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73525         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73526         Add uinttostr.
73527         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73528
73529 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * lib/canonicalize.c (ELOOP): Define if not already defined.
73532         Problem reported by Bruno Haible in
73533         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73534
73535 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73536
73537         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73538         Problem reported by Perry Smith and Ville Laurikari.
73539
73540         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73541         uses.
73542
73543 2006-10-19  Bruno Haible  <bruno@clisp.org>
73544
73545         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73546         for mingw.
73547
73548 2006-10-19  Bruno Haible  <bruno@clisp.org>
73549
73550         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73551         Needed for mingw.
73552
73553 2006-10-19  Bruno Haible  <bruno@clisp.org>
73554
73555         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73556
73557 2006-10-19  Bruno Haible  <bruno@clisp.org>
73558
73559         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73560         it.
73561
73562 2006-10-19  Bruno Haible  <bruno@clisp.org>
73563
73564         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73565         invocation.
73566
73567 2006-10-19  Bruno Haible  <bruno@clisp.org>
73568
73569         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73570         mountlist by default.
73571
73572 2006-10-16  Bruno Haible  <bruno@clisp.org>
73573
73574         * lib/c-strstr.c: Include c-strstr.h.
73575
73576 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73577
73578         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73579         in a slash.
73580
73581 2006-10-18  Bruno Haible  <bruno@clisp.org>
73582
73583         * lib/lock.h [C++]: Wrap definitions in extern "C".
73584
73585 2006-10-18  Bruno Haible  <bruno@clisp.org>
73586
73587         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73588         gl_LIBOBJS list.
73589
73590 2006-10-18  Bruno Haible  <bruno@clisp.org>
73591
73592         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73593
73594 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73595
73596         * lib/xstrtol.h: Include gettext.h.
73597         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73598         Problem reported by Eric Blake.
73599         * modules/xstrtol (Depends-on): Add gettext-h.
73600
73601 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73602
73603         * lib/strftime.c (advance): New macro.
73604         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73605         incomplete type, so you can't add 0 to it.  Problem and patch
73606         reported by Eelco Dolstra for dietlibc.
73607
73608 2006-10-18  Jim Meyering  <jim@meyering.net>
73609
73610         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73611         type for a local, and rename it: s/up/user_proc/.
73612
73613 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73614
73615         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73616         READ_UTMP_USER_PROCESS.
73617         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73618
73619 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73620
73621         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73622         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73623
73624 2006-10-17  Eric Blake  <ebb9@byu.net>
73625
73626         * lib/sigprocmask.c (sigprocmask): Fix typo.
73627
73628         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73629
73630         * modules/clean-temp (Makefile.am): Don't add to make output...
73631         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73632         config.h.
73633
73634 2006-10-17  Bruno Haible  <bruno@clisp.org>
73635
73636         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73637         differently if DEFAULT_TEXT_DOMAIN is set.
73638
73639 2006-10-16  Bruno Haible  <bruno@clisp.org>
73640
73641         * lib/clean-temp.c: Include fwriteerror.h.
73642
73643 2006-10-16  Bruno Haible  <bruno@clisp.org>
73644
73645         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73646
73647 2006-10-16  Bruno Haible  <bruno@clisp.org>
73648
73649         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73650         * lib/sigprocmask.h: Include <sys/types.h>.
73651         (sigset_t): Use the system's definition if present.
73652
73653 2006-10-17  Eric Blake  <ebb9@byu.net>
73654
73655         * lib/xvasprintf.c (includes): Assume config.h.
73656         * lib/xasprintf.c (includes): Likewise.
73657
73658 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73659
73660         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73661         at least as wide as intmax_t.
73662
73663 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73664
73665         (Imported from Automake.)
73666         * build-aux/gnupload: Update to version 1.1 of directive file.
73667
73668 2006-10-16  Eric Blake  <ebb9@byu.net>
73669
73670         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73671         match Automake 1.10a.
73672
73673 2006-10-14  Bruno Haible  <bruno@clisp.org>
73674
73675         * modules/sigprocmask: New file.
73676         * lib/sigprocmask.h: New file.
73677         * lib/sigprocmask.c: New file.
73678         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73679         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73680         request sigprocmask.o.
73681         (gl_PREREQ_SIGPROCMASK): New macro.
73682         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73683         (Depends-on): Add sigprocmask.
73684         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73685         gt_SIGNALBLOCKING. Test for 'raise' only once.
73686         * lib/fatal-signal.c: Include sigprocmask.h.
73687         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73688         unblock_fatal_signals): Define always.
73689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73690         sigprocmask.
73691
73692 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         Sync from Automake.
73695         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73696         which incorrectly sets the mode of an existing destination
73697         directory.  In some cases the unpatched install-sh could do the
73698         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73699         system.  We hope this is rare in practice, but it's clearly worth
73700         fixing.  Problem reported by Alex Unleashed in
73701         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73702         Also, don't bother to check for -m bugs unless we're using -m;
73703         suggested by Stepan Kasal.
73704
73705 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73706
73707         Sync from Automake.
73708         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73709         `-c' flag, so they appear at the same position as in %FASTDEP%
73710         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73711         which ignores unknown options only after the first non-option.
73712         Bug report against M4 by Nelson H. F. Beebe.
73713
73714 2006-10-13  Jim Meyering  <jim@meyering.net>
73715
73716         Fix a bug in yesterday's change.
73717         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73718         p->fts_statp->st_dev would be used uninitialized.
73719         Ensures that we always call fts_stat on the very first entry.
73720         Miklos Szeredi reported that find -xdev stopped working.
73721
73722 2006-10-12  Bruno Haible  <bruno@clisp.org>
73723
73724         * gnulib-tool (func_get_automake_snippet): Append an automatically
73725         computed EXTRA_DIST augmentation.
73726         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73727         * modules/alloca-opt (Makefile.am): Likewise.
73728         * modules/allocsa (Makefile.am): Likewise.
73729         * modules/arcfour (Makefile.am): Likewise.
73730         * modules/arctwo (Makefile.am): Likewise.
73731         * modules/argmatch (Makefile.am): Likewise.
73732         * modules/argz (Makefile.am): Likewise.
73733         * modules/atexit (Makefile.am): Likewise.
73734         * modules/backupfile (Makefile.am): Likewise.
73735         * modules/byteswap (Makefile.am): Likewise.
73736         * modules/c-strtod (Makefile.am): Likewise.
73737         * modules/c-strtold (Makefile.am): Likewise.
73738         * modules/calloc (Makefile.am): Likewise.
73739         * modules/canon-host (Makefile.am): Likewise.
73740         * modules/canonicalize (Makefile.am): Likewise.
73741         * modules/chdir-long (Makefile.am): Likewise.
73742         * modules/chdir-safer (Makefile.am): Likewise.
73743         * modules/check-version (Makefile.am): Likewise.
73744         * modules/chown (Makefile.am): Likewise.
73745         * modules/cloexec (Makefile.am): Likewise.
73746         * modules/close-stream (Makefile.am): Likewise.
73747         * modules/closeout (Makefile.am): Likewise.
73748         * modules/crc (Makefile.am): Likewise.
73749         * modules/csharpexec (Makefile.am): Likewise.
73750         * modules/cycle-check (Makefile.am): Likewise.
73751         * modules/des (Makefile.am): Likewise.
73752         * modules/dev-ino (Makefile.am): Likewise.
73753         * modules/dirfd (Makefile.am): Likewise.
73754         * modules/dirname (Makefile.am): Likewise.
73755         * modules/dup2 (Makefile.am): Likewise.
73756         * modules/eealloc (Makefile.am): Likewise.
73757         * modules/error (Makefile.am): Likewise.
73758         * modules/euidaccess (Makefile.am): Likewise.
73759         * modules/exclude (Makefile.am): Likewise.
73760         * modules/exitfail (Makefile.am): Likewise.
73761         * modules/fcntl-safer (Makefile.am): Likewise.
73762         * modules/fcntl (Makefile.am): Likewise.
73763         * modules/file-type (Makefile.am): Likewise.
73764         * modules/fileblocks (Makefile.am): Likewise.
73765         * modules/filemode (Makefile.am): Likewise.
73766         * modules/filenamecat (Makefile.am): Likewise.
73767         * modules/fnmatch (Makefile.am): Likewise.
73768         * modules/fopen-safer (Makefile.am): Likewise.
73769         * modules/fpending (Makefile.am): Likewise.
73770         * modules/fprintftime (Makefile.am): Likewise.
73771         * modules/free (Makefile.am): Likewise.
73772         * modules/fsusage (Makefile.am): Likewise.
73773         * modules/ftruncate (Makefile.am): Likewise.
73774         * modules/fts (Makefile.am): Likewise.
73775         * modules/gc-arcfour (Makefile.am): Likewise.
73776         * modules/gc-des (Makefile.am): Likewise.
73777         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73778         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73779         * modules/gc-md4 (Makefile.am): Likewise.
73780         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73781         * modules/gc-sha1 (Makefile.am): Likewise.
73782         * modules/gc (Makefile.am): Likewise.
73783         * modules/getaddrinfo (Makefile.am): Likewise.
73784         * modules/getcwd (Makefile.am): Likewise.
73785         * modules/getdelim (Makefile.am): Likewise.
73786         * modules/getdomainname (Makefile.am): Likewise.
73787         * modules/getgroups (Makefile.am): Likewise.
73788         * modules/gethostname (Makefile.am): Likewise.
73789         * modules/gethrxtime (Makefile.am): Likewise.
73790         * modules/getline (Makefile.am): Likewise.
73791         * modules/getloadavg (Makefile.am): Likewise.
73792         * modules/getlogin_r (Makefile.am): Likewise.
73793         * modules/getndelim2 (Makefile.am): Likewise.
73794         * modules/getopt (Makefile.am): Likewise.
73795         * modules/getpagesize (Makefile.am): Likewise.
73796         * modules/getpass-gnu (Makefile.am): Likewise.
73797         * modules/getpass (Makefile.am): Likewise.
73798         * modules/getsubopt (Makefile.am): Likewise.
73799         * modules/gettime (Makefile.am): Likewise.
73800         * modules/gettimeofday (Makefile.am): Likewise.
73801         * modules/getugroups (Makefile.am): Likewise.
73802         * modules/getusershell (Makefile.am): Likewise.
73803         * modules/glob (Makefile.am): Likewise.
73804         * modules/group-member (Makefile.am): Likewise.
73805         * modules/hard-locale (Makefile.am): Likewise.
73806         * modules/hash (Makefile.am): Likewise.
73807         * modules/hmac-md5 (Makefile.am): Likewise.
73808         * modules/hmac-sha1 (Makefile.am): Likewise.
73809         * modules/human (Makefile.am): Likewise.
73810         * modules/idcache (Makefile.am): Likewise.
73811         * modules/imaxabs (Makefile.am): Likewise.
73812         * modules/imaxdiv (Makefile.am): Likewise.
73813         * modules/inet_ntop (Makefile.am): Likewise.
73814         * modules/inet_pton (Makefile.am): Likewise.
73815         * modules/intprops (Makefile.am): Likewise.
73816         * modules/inttostr (Makefile.am): Likewise.
73817         * modules/inttypes (Makefile.am): Likewise.
73818         * modules/isapipe (Makefile.am): Likewise.
73819         * modules/javaversion (Makefile.am): Likewise.
73820         * modules/lchmod (Makefile.am): Likewise.
73821         * modules/lchown (Makefile.am): Likewise.
73822         * modules/localcharset (Makefile.am): Likewise.
73823         * modules/long-options (Makefile.am): Likewise.
73824         * modules/lstat (Makefile.am): Likewise.
73825         * modules/malloc (Makefile.am): Likewise.
73826         * modules/mathl (Makefile.am): Likewise.
73827         * modules/mbchar (Makefile.am): Likewise.
73828         * modules/md2 (Makefile.am): Likewise.
73829         * modules/md4 (Makefile.am): Likewise.
73830         * modules/md5 (Makefile.am): Likewise.
73831         * modules/memcasecmp (Makefile.am): Likewise.
73832         * modules/memchr (Makefile.am): Likewise.
73833         * modules/memcmp (Makefile.am): Likewise.
73834         * modules/memcoll (Makefile.am): Likewise.
73835         * modules/memcpy (Makefile.am): Likewise.
73836         * modules/memmem (Makefile.am): Likewise.
73837         * modules/memmove (Makefile.am): Likewise.
73838         * modules/mempcpy (Makefile.am): Likewise.
73839         * modules/memrchr (Makefile.am): Likewise.
73840         * modules/memset (Makefile.am): Likewise.
73841         * modules/memxor (Makefile.am): Likewise.
73842         * modules/mkancesdirs (Makefile.am): Likewise.
73843         * modules/mkdir-p (Makefile.am): Likewise.
73844         * modules/mkdir (Makefile.am): Likewise.
73845         * modules/mkdtemp (Makefile.am): Likewise.
73846         * modules/mkstemp (Makefile.am): Likewise.
73847         * modules/mktime (Makefile.am): Likewise.
73848         * modules/modechange (Makefile.am): Likewise.
73849         * modules/mountlist (Makefile.am): Likewise.
73850         * modules/nanosleep (Makefile.am): Likewise.
73851         * modules/obstack (Makefile.am): Likewise.
73852         * modules/openat (Makefile.am): Likewise.
73853         * modules/pagealign_alloc (Makefile.am): Likewise.
73854         * modules/pathmax (Makefile.am): Likewise.
73855         * modules/physmem (Makefile.am): Likewise.
73856         * modules/poll (Makefile.am): Likewise.
73857         * modules/posixtm (Makefile.am): Likewise.
73858         * modules/posixver (Makefile.am): Likewise.
73859         * modules/putenv (Makefile.am): Likewise.
73860         * modules/quote (Makefile.am): Likewise.
73861         * modules/quotearg (Makefile.am): Likewise.
73862         * modules/raise (Makefile.am): Likewise.
73863         * modules/read-file (Makefile.am): Likewise.
73864         * modules/readline (Makefile.am): Likewise.
73865         * modules/readlink (Makefile.am): Likewise.
73866         * modules/readtokens (Makefile.am): Likewise.
73867         * modules/readutmp (Makefile.am): Likewise.
73868         * modules/realloc (Makefile.am): Likewise.
73869         * modules/regex (Makefile.am): Likewise.
73870         * modules/rename-dest-slash (Makefile.am): Likewise.
73871         * modules/rename (Makefile.am): Likewise.
73872         * modules/rijndael (Makefile.am): Likewise.
73873         * modules/rmdir (Makefile.am): Likewise.
73874         * modules/rpmatch (Makefile.am): Likewise.
73875         * modules/safe-read (Makefile.am): Likewise.
73876         * modules/safe-write (Makefile.am): Likewise.
73877         * modules/same-inode (Makefile.am): Likewise.
73878         * modules/same (Makefile.am): Likewise.
73879         * modules/save-cwd (Makefile.am): Likewise.
73880         * modules/savedir (Makefile.am): Likewise.
73881         * modules/setenv (Makefile.am): Likewise.
73882         * modules/settime (Makefile.am): Likewise.
73883         * modules/sha1 (Makefile.am): Likewise.
73884         * modules/sig2str (Makefile.am): Likewise.
73885         * modules/snprintf (Makefile.am): Likewise.
73886         * modules/stat-macros (Makefile.am): Likewise.
73887         * modules/stat-time (Makefile.am): Likewise.
73888         * modules/stdbool (Makefile.am): Likewise.
73889         * modules/stdint (Makefile.am): Likewise.
73890         * modules/stdlib-safer (Makefile.am): Likewise.
73891         * modules/stpcpy (Makefile.am): Likewise.
73892         * modules/stpncpy (Makefile.am): Likewise.
73893         * modules/strcase (Makefile.am): Likewise.
73894         * modules/strcasestr (Makefile.am): Likewise.
73895         * modules/strchrnul (Makefile.am): Likewise.
73896         * modules/strcspn (Makefile.am): Likewise.
73897         * modules/strdup (Makefile.am): Likewise.
73898         * modules/strerror (Makefile.am): Likewise.
73899         * modules/strftime (Makefile.am): Likewise.
73900         * modules/strndup (Makefile.am): Likewise.
73901         * modules/strnlen (Makefile.am): Likewise.
73902         * modules/strpbrk (Makefile.am): Likewise.
73903         * modules/strsep (Makefile.am): Likewise.
73904         * modules/strstr (Makefile.am): Likewise.
73905         * modules/strtod (Makefile.am): Likewise.
73906         * modules/strtoimax (Makefile.am): Likewise.
73907         * modules/strtok_r (Makefile.am): Likewise.
73908         * modules/strtol (Makefile.am): Likewise.
73909         * modules/strtoll (Makefile.am): Likewise.
73910         * modules/strtoul (Makefile.am): Likewise.
73911         * modules/strtoull (Makefile.am): Likewise.
73912         * modules/strtoumax (Makefile.am): Likewise.
73913         * modules/strverscmp (Makefile.am): Likewise.
73914         * modules/sys_socket (Makefile.am): Likewise.
73915         * modules/sys_stat (Makefile.am): Likewise.
73916         * modules/sysexits (Makefile.am): Likewise.
73917         * modules/time_r (Makefile.am): Likewise.
73918         * modules/timegm (Makefile.am): Likewise.
73919         * modules/timespec (Makefile.am): Likewise.
73920         * modules/tmpfile-safer (Makefile.am): Likewise.
73921         * modules/trim (Makefile.am): Likewise.
73922         * modules/unistd-safer (Makefile.am): Likewise.
73923         * modules/unlinkdir (Makefile.am): Likewise.
73924         * modules/unlocked-io (Makefile.am): Likewise.
73925         * modules/userspec (Makefile.am): Likewise.
73926         * modules/utime (Makefile.am): Likewise.
73927         * modules/utimecmp (Makefile.am): Likewise.
73928         * modules/utimens (Makefile.am): Likewise.
73929         * modules/vasnprintf (Makefile.am): Likewise.
73930         * modules/vasprintf (Makefile.am): Likewise.
73931         * modules/vsnprintf (Makefile.am): Likewise.
73932         * modules/xalloc (Makefile.am): Likewise.
73933         * modules/xgetcwd (Makefile.am): Likewise.
73934         * modules/xnanosleep (Makefile.am): Likewise.
73935         * modules/xreadlink (Makefile.am): Likewise.
73936         * modules/xstrtod (Makefile.am): Likewise.
73937         * modules/xstrtol (Makefile.am): Likewise.
73938         * modules/xstrtold (Makefile.am): Likewise.
73939         * modules/yesno (Makefile.am): Likewise.
73940         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73941
73942 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         * modules/error (Makefile.am): Distribute files through
73945         EXTRA_DIST, not lib_SOURCES.
73946
73947 2006-10-12  Eric Blake  <ebb9@byu.net>
73948
73949         * modules/error (Makefile.am): Distribute files in /lib.
73950         * modules/obstack (Makefile.am): Likewise.
73951
73952 2006-10-12  Bruno Haible  <bruno@clisp.org>
73953
73954         * modules/acl (Makefile.am): Distribute all files in lib/ through
73955         EXTRA_DIST.
73956         * modules/arcfour (Makefile.am): Likewise.
73957         * modules/arctwo (Makefile.am): Likewise.
73958         * modules/argmatch (Makefile.am): Likewise.
73959         * modules/argz (Makefile.am): Likewise.
73960         * modules/atexit (Makefile.am): Likewise.
73961         * modules/backupfile (Makefile.am): Likewise.
73962         * modules/c-strtod (Makefile.am): Likewise.
73963         * modules/c-strtold (Makefile.am): Likewise.
73964         * modules/calloc (Makefile.am): Likewise.
73965         * modules/canon-host (Makefile.am): Likewise.
73966         * modules/canonicalize (Makefile.am): Likewise.
73967         * modules/chdir-long (Makefile.am): Likewise.
73968         * modules/chdir-safer (Makefile.am): Likewise.
73969         * modules/check-version (Makefile.am): Likewise.
73970         * modules/chown (Makefile.am): Likewise.
73971         * modules/cloexec (Makefile.am): Likewise.
73972         * modules/close-stream (Makefile.am): Likewise.
73973         * modules/closeout (Makefile.am): Likewise.
73974         * modules/crc (Makefile.am): Likewise.
73975         * modules/cycle-check (Makefile.am): Likewise.
73976         * modules/des (Makefile.am): Likewise.
73977         * modules/dirfd (Makefile.am): Likewise.
73978         * modules/dirname (Makefile.am): Likewise.
73979         * modules/dup2 (Makefile.am): Likewise.
73980         * modules/euidaccess (Makefile.am): Likewise.
73981         * modules/exclude (Makefile.am): Likewise.
73982         * modules/exitfail (Makefile.am): Likewise.
73983         * modules/fcntl-safer (Makefile.am): Likewise.
73984         * modules/file-type (Makefile.am): Likewise.
73985         * modules/fileblocks (Makefile.am): Likewise.
73986         * modules/filemode (Makefile.am): Likewise.
73987         * modules/filenamecat (Makefile.am): Likewise.
73988         * modules/fnmatch (Makefile.am): Likewise.
73989         * modules/fopen-safer (Makefile.am): Likewise.
73990         * modules/fpending (Makefile.am): Likewise.
73991         * modules/fprintftime (Makefile.am): Likewise.
73992         * modules/free (Makefile.am): Likewise.
73993         * modules/fsusage (Makefile.am): Likewise.
73994         * modules/ftruncate (Makefile.am): Likewise.
73995         * modules/fts (Makefile.am): Likewise.
73996         * modules/gc (Makefile.am): Likewise.
73997         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73998         * modules/getaddrinfo (Makefile.am): Likewise.
73999         * modules/getcwd (Makefile.am): Likewise.
74000         * modules/getdelim (Makefile.am): Likewise.
74001         * modules/getdomainname (Makefile.am): Likewise.
74002         * modules/getgroups (Makefile.am): Likewise.
74003         * modules/gethostname (Makefile.am): Likewise.
74004         * modules/gethrxtime (Makefile.am): Likewise.
74005         * modules/getline (Makefile.am): Likewise.
74006         * modules/getloadavg (Makefile.am): Likewise.
74007         * modules/getlogin_r (Makefile.am): Likewise.
74008         * modules/getopt (Makefile.am): Likewise.
74009         * modules/getpass (Makefile.am): Likewise.
74010         * modules/getpass-gnu (Makefile.am): Likewise.
74011         * modules/getsubopt (Makefile.am): Likewise.
74012         * modules/gettime (Makefile.am): Likewise.
74013         * modules/gettimeofday (Makefile.am): Likewise.
74014         * modules/getugroups (Makefile.am): Likewise.
74015         * modules/getusershell (Makefile.am): Likewise.
74016         * modules/glob (Makefile.am): Likewise.
74017         * modules/group-member (Makefile.am): Likewise.
74018         * modules/hard-locale (Makefile.am): Likewise.
74019         * modules/hash (Makefile.am): Likewise.
74020         * modules/hmac-md5 (Makefile.am): Likewise.
74021         * modules/hmac-sha1 (Makefile.am): Likewise.
74022         * modules/human (Makefile.am): Likewise.
74023         * modules/idcache (Makefile.am): Likewise.
74024         * modules/imaxabs (Makefile.am): Likewise.
74025         * modules/imaxdiv (Makefile.am): Likewise.
74026         * modules/inet_ntop (Makefile.am): Likewise.
74027         * modules/inet_pton (Makefile.am): Likewise.
74028         * modules/inttostr (Makefile.am): Likewise.
74029         * modules/isapipe (Makefile.am): Likewise.
74030         * modules/lchown (Makefile.am): Likewise.
74031         * modules/long-options (Makefile.am): Likewise.
74032         * modules/lstat (Makefile.am): Likewise.
74033         * modules/malloc (Makefile.am): Likewise.
74034         * modules/mathl (Makefile.am): Likewise.
74035         * modules/mbchar (Makefile.am): Likewise.
74036         * modules/md2 (Makefile.am): Likewise.
74037         * modules/md4 (Makefile.am): Likewise.
74038         * modules/md5 (Makefile.am): Likewise.
74039         * modules/memcasecmp (Makefile.am): Likewise.
74040         * modules/memchr (Makefile.am): Likewise.
74041         * modules/memcmp (Makefile.am): Likewise.
74042         * modules/memcoll (Makefile.am): Likewise.
74043         * modules/memcpy (Makefile.am): Likewise.
74044         * modules/memmem (Makefile.am): Likewise.
74045         * modules/memmove (Makefile.am): Likewise.
74046         * modules/mempcpy (Makefile.am): Likewise.
74047         * modules/memrchr (Makefile.am): Likewise.
74048         * modules/memset (Makefile.am): Likewise.
74049         * modules/memxor (Makefile.am): Likewise.
74050         * modules/mkancesdirs (Makefile.am): Likewise.
74051         * modules/mkdir (Makefile.am): Likewise.
74052         * modules/mkdir-p (Makefile.am): Likewise.
74053         * modules/mkdtemp (Makefile.am): Likewise.
74054         * modules/mkstemp (Makefile.am): Likewise.
74055         * modules/mktime (Makefile.am): Likewise.
74056         * modules/modechange (Makefile.am): Likewise.
74057         * modules/mountlist (Makefile.am): Likewise.
74058         * modules/nanosleep (Makefile.am): Likewise.
74059         * modules/openat (Makefile.am): Likewise.
74060         * modules/pagealign_alloc (Makefile.am): Likewise.
74061         * modules/physmem (Makefile.am): Likewise.
74062         * modules/poll (Makefile.am): Likewise.
74063         * modules/posixtm (Makefile.am): Likewise.
74064         * modules/posixver (Makefile.am): Likewise.
74065         * modules/putenv (Makefile.am): Likewise.
74066         * modules/quote (Makefile.am): Likewise.
74067         * modules/quotearg (Makefile.am): Likewise.
74068         * modules/raise (Makefile.am): Likewise.
74069         * modules/read-file (Makefile.am): Likewise.
74070         * modules/readline (Makefile.am): Likewise.
74071         * modules/readlink (Makefile.am): Likewise.
74072         * modules/readtokens (Makefile.am): Likewise.
74073         * modules/readutmp (Makefile.am): Likewise.
74074         * modules/realloc (Makefile.am): Likewise.
74075         * modules/regex (Makefile.am): Likewise.
74076         * modules/rename (Makefile.am): Likewise.
74077         * modules/rename-dest-slash (Makefile.am): Likewise.
74078         * modules/rijndael (Makefile.am): Likewise.
74079         * modules/rmdir (Makefile.am): Likewise.
74080         * modules/rpmatch (Makefile.am): Likewise.
74081         * modules/safe-read (Makefile.am): Likewise.
74082         * modules/safe-write (Makefile.am): Likewise.
74083         * modules/same (Makefile.am): Likewise.
74084         * modules/save-cwd (Makefile.am): Likewise.
74085         * modules/savedir (Makefile.am): Likewise.
74086         * modules/setenv (Makefile.am): Likewise.
74087         * modules/settime (Makefile.am): Likewise.
74088         * modules/sha1 (Makefile.am): Likewise.
74089         * modules/sig2str (Makefile.am): Likewise.
74090         * modules/snprintf (Makefile.am): Likewise.
74091         * modules/stdlib-safer (Makefile.am): Likewise.
74092         * modules/stpcpy (Makefile.am): Likewise.
74093         * modules/stpncpy (Makefile.am): Likewise.
74094         * modules/strcase (Makefile.am): Likewise.
74095         * modules/strcasestr (Makefile.am): Likewise.
74096         * modules/strchrnul (Makefile.am): Likewise.
74097         * modules/strcspn (Makefile.am): Likewise.
74098         * modules/strdup (Makefile.am): Likewise.
74099         * modules/strerror (Makefile.am): Likewise.
74100         * modules/strftime (Makefile.am): Likewise.
74101         * modules/strndup (Makefile.am): Likewise.
74102         * modules/strnlen (Makefile.am): Likewise.
74103         * modules/strpbrk (Makefile.am): Likewise.
74104         * modules/strsep (Makefile.am): Likewise.
74105         * modules/strstr (Makefile.am): Likewise.
74106         * modules/strtod (Makefile.am): Likewise.
74107         * modules/strtoimax (Makefile.am): Likewise.
74108         * modules/strtok_r (Makefile.am): Likewise.
74109         * modules/strtol (Makefile.am): Likewise.
74110         * modules/strtoll (Makefile.am): Likewise.
74111         * modules/strtoul (Makefile.am): Likewise.
74112         * modules/strtoull (Makefile.am): Likewise.
74113         * modules/strtoumax (Makefile.am): Likewise.
74114         * modules/strverscmp (Makefile.am): Likewise.
74115         * modules/time_r (Makefile.am): Likewise.
74116         * modules/timegm (Makefile.am): Likewise.
74117         * modules/tmpfile-safer (Makefile.am): Likewise.
74118         * modules/unistd-safer (Makefile.am): Likewise.
74119         * modules/unlinkdir (Makefile.am): Likewise.
74120         * modules/userspec (Makefile.am): Likewise.
74121         * modules/utime (Makefile.am): Likewise.
74122         * modules/utimecmp (Makefile.am): Likewise.
74123         * modules/utimens (Makefile.am): Likewise.
74124         * modules/vasnprintf (Makefile.am): Likewise.
74125         * modules/vasprintf (Makefile.am): Likewise.
74126         * modules/vsnprintf (Makefile.am): Likewise.
74127         * modules/xalloc (Makefile.am): Likewise.
74128         * modules/xgetcwd (Makefile.am): Likewise.
74129         * modules/xnanosleep (Makefile.am): Likewise.
74130         * modules/xreadlink (Makefile.am): Likewise.
74131         * modules/xstrtod (Makefile.am): Likewise.
74132         * modules/xstrtol (Makefile.am): Likewise.
74133         * modules/xstrtold (Makefile.am): Likewise.
74134         * modules/yesno (Makefile.am): Likewise.
74135
74136 2006-10-12  Jim Meyering  <jim@meyering.net>
74137
74138         * m4/getloadavg.m4: Revert the change below.
74139
74140         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74141         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74142         fail with a symlink, which is what coreutils' ./bootstrap now
74143         creates by default.
74144
74145 2006-10-12  Bruno Haible  <bruno@clisp.org>
74146
74147         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74148         mingw.
74149         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74150         MSVC and mingw explicitly.
74151
74152 2006-10-11  Simon Josefsson  <jas@extundo.com>
74153             Bruno Haible  <bruno@clisp.org>
74154
74155         Add support for multiple gnulib-tool invocations in the scope of a
74156         single configure.ac file.
74157         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74158         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74159         with the same contents as the _LIBADD variable.
74160         (func_emit_initmacro_start, func_emit_initmacro_end,
74161         func_emit_initmacro_done): New functions.
74162         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74163         gl_LIBOBJS and gl_LTLIBOBJS.
74164
74165 2006-10-11  Bruno Haible  <bruno@clisp.org>
74166
74167         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74168         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74169         autoreconf. Instead, invoke autopoint explicitly but move back the
74170         *.m4 files from gnulib.
74171
74172 2006-10-11  Bruno Haible  <bruno@clisp.org>
74173
74174         * gnulib-tool (func_usage): Make module names after --create-testdir
74175         optional.
74176         (func_create_testdir): If no module was specified, use nearly all
74177         modules.
74178
74179 2006-10-12  Jim Meyering  <jim@meyering.net>
74180
74181         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74182         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74183         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74184         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74185         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74186         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74187         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74188         (fts_set_stat_required): New function.
74189         (fts_open): Defer the calls to fts_stat, if possible or requested.
74190         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74191         into fts_stat itself.
74192         (fts_read): Perform any required (deferred) fts_stat call.
74193         (fts_build): Likewise, for the directory we're about to open and read.
74194         In the readdir loop, carefully decide whether each entry will require
74195         an eventual call to fts_stat, using dirent.d_type info if available.
74196         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74197         a command line argument into this function.  Update all callers.
74198         Map a return value of FTS_DOT to FTS_D for a command line argument.
74199         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74200         Thanks to Miklos Szeredi for his tenacity and for the initial
74201         bug report about "find" failing on a FUSE-based file system.
74202
74203         * lib/fts.c (fts_open): Use consistent indentation.
74204
74205 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74208         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74209         reported by Jim Meyering.  All uses of cache variables renamed
74210         to match Autoconf's.
74211         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74212         the other one.
74213
74214         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74215         Fix misspelling in diagnostic.
74216
74217 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74218
74219         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74220         defined.  Problem reported by Matthew Woehlke.
74221
74222         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74223         Add support for Tandem NonStop R series.
74224         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74225         Use new macro.
74226
74227         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74228         (has_trailing_slash): Omit size arg; all callers changed.
74229         Omit 'inline', since it doesn't help performance and we'd
74230         need to configure it.
74231         Don't count //, ///, etc. as having a trailing slash.
74232         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74233         (rpl_rename_dest_slash): On failure, use rename's errno rather
74234         than (in some cases) an incorrect or junk errno.
74235         Simplify code by removing need to compute length; this does
74236         cause it to make two passes instead of one over the file name,
74237         but it's worth it.
74238
74239         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74240         change, since Autoconf's version may no longer be appropriate now
74241         that we are using CVS Autoconf's version.  Add support for Tandem.
74242
74243 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74244             Bruno Haible  <bruno@clisp.org>
74245
74246         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74247         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74248         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74249         gl_AC_TYPE_LONG_LONG.
74250
74251         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74252         instead of HAVE_LONG_LONG.
74253         * lib/printf-args.c (printf_fetchargs): Likewise.
74254         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74255         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74256         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74257         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74258         gl_AC_TYPE_LONG_LONG.
74259
74260 2006-10-11  Bruno Haible  <bruno@clisp.org>
74261
74262         * m4/longlong.m4: Add comments.
74263         * m4/ulonglong.m4: Likewise.
74264
74265 2006-10-10  Bruno Haible  <bruno@clisp.org>
74266
74267         Make it possible to #define stpcpy, strdup to aliases.
74268         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74269         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74270
74271 2006-10-10  Bruno Haible  <bruno@clisp.org>
74272
74273         Make it possible to #define gcd to an alias.
74274         * lib/gcd.c: Include config.h.
74275
74276 2006-10-10  Bruno Haible  <bruno@clisp.org>
74277
74278         Make it possible to #define c_isascii to an alias.
74279         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74280         defined. Undefine the macros before defining them, to avoid gcc
74281         warnings.
74282         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74283         define NO_C_CTYPE_MACROS early.
74284
74285 2006-10-10  Bruno Haible  <bruno@clisp.org>
74286
74287         Make it possible to #define set_program_name to an alias.
74288         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74289         ENABLE_RELOCATABLE early.
74290
74291 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74292
74293         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74294         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74295         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74296         More generally, don't assume that 64-bit signed int is available
74297         if unsigned int is, and vice versa.
74298         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74299         unsigned symbols, not on their signed counterparts.
74300         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74301         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74302         (UINT64_C, UINTMAX_C):
74303         Likewise.
74304         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74305         unsigned counterparts.
74306         (Have_long_long, Unsigned): New macros.
74307         (Int): Renamed from INT.
74308         (strtoimax): Use the new macros.
74309         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74310         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74311         * modules/inttypes (inttypes.h): Substitute
74312         HAVE_UNSIGNED_LONG_LONG_INT.
74313         * modules/stdint (stdint.h): Likewise.
74314         (Files): Add m4/ulonglong.m4.
74315
74316 2006-10-10  Bruno Haible  <bruno@clisp.org>
74317
74318         Fix a gcc -Wshadow warning.
74319         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74320         to 'bucket'.
74321         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74322         gl_linked_indexof_from_to): Likewise.
74323         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74324         Likewise.
74325         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74326         Likewise.
74327         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74328         Reported by Eric Blake.
74329
74330 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74333         for NetBSD.  Problem reported by Bruno Haible.
74334
74335 2006-10-09  Jim Meyering  <jim@meyering.net>
74336
74337         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74338         Patch from Bruno Haible.
74339
74340 2006-10-09  Jim Meyering  <jim@meyering.net>
74341
74342         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74343         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74344         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74345
74346 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74347
74348         Don't include <config.h> twice; this doesn't work in some cases,
74349         e.g., when config.h has "#define intmax_t long long int" and
74350         we include <config.h>, <inttypes.h>, <config.h> in that order.
74351         Problem reported by Matthew Woehlke in:
74352         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74353         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74354         * lib/fts-cycle.c: Don't include config.h.
74355         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74356         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74357         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74358         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74359         inttypes.h.
74360         * lib/xstrtoumax.c: Likewise.
74361         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74362         __strtol and the like, so that this module is more like its siblings.
74363         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74364         Remove; no longer needed now that we assume gnulib inttypes.h.
74365
74366 2006-10-08  Bruno Haible  <bruno@clisp.org>
74367
74368         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74369         option.
74370
74371 2006-10-07  Jim Meyering  <jim@meyering.net>
74372
74373         * modules/inttypes (inttypes.h): Revert what seems to have been
74374         an inadvertent part of today's change: use "|", not "/" in the
74375         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74376
74377 2006-10-07  Bruno Haible  <bruno@clisp.org>
74378
74379         * modules/sublist: New file.
74380
74381 2006-10-07  Bruno Haible  <bruno@clisp.org>
74382
74383         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74384         * modules/argz (argz.h): Likewise.
74385         * modules/arpa_inet (arpa/inet.h): Likewise.
74386         * modules/byteswap (byteswap.h): Likewise.
74387         * modules/configmake (configmake.h): Likewise.
74388         * modules/fcntl (fcntl.h): Likewise.
74389         * modules/fnmatch (fnmatch.h): Likewise.
74390         * modules/getopt (getopt.h): Likewise.
74391         * modules/glob (glob.h): Likewise.
74392         * modules/inttypes (inttypes.h): Likewise.
74393         * modules/netinet_in (netinet/in.h): Likewise.
74394         * modules/poll (poll.h): Likewise.
74395         * modules/stdbool (stdbool.h): Likewise.
74396         * modules/stdint (stdint.h): Likewise.
74397         * modules/sys_select (sys/select.h): Likewise.
74398         * modules/sys_socket (sys/socket.h): Likewise.
74399         * modules/sys_stat (sys/stat.h): Likewise.
74400         * modules/sysexits (sysexits.h): Likewise.
74401         * modules/unistd (unistd.h): Likewise.
74402         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74403         Add a "DO NOT EDIT" comment to the generated file.
74404         (func_import): Likewise for gnulib-comp.m4.
74405
74406 2006-10-07  Bruno Haible  <bruno@clisp.org>
74407
74408         * lib/gl_sublist.h: New file.
74409         * lib/gl_sublist.c: New file.
74410
74411 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74412
74413         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74414         name (relative to the original working directory) and the file
74415         name component (relative to the temporary working directory).  All
74416         callers changed.
74417         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74418         * lib/mkdir-p.c (make_dir_parents): Likewise.
74419         * lib/mkdir-p.h (make_dir_parents): Likewise.
74420
74421 2006-10-06  Eric Blake  <ebb9@byu.net>
74422
74423         Define several macros for use by the clean-temp module.
74424         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74425         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74426         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74427
74428         * lib/clean-temp.h (close_stream_temp): New declaration.
74429         * lib/clean-temp.c (includes): Pull in headers according to what
74430         other modules are in use.
74431         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74432
74433 2006-10-06  Bruno Haible  <bruno@clisp.org>
74434
74435         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74436         instead of fopen, fwriteerror.
74437
74438 2006-10-06  Bruno Haible  <bruno@clisp.org>
74439
74440         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74441         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74442         int.
74443         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74444         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74445         Return an error indicator.
74446         Suggested by Eric Blake.
74447
74448 2006-10-06  Bruno Haible  <bruno@clisp.org>
74449
74450         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74451         Reported by Eric Blake.
74452
74453 2006-10-06  Bruno Haible  <bruno@clisp.org>
74454
74455         * modules/closeout (Description): Mention stderr too.
74456
74457 2006-10-06  Bruno Haible  <bruno@clisp.org>
74458         and Paul Eggert  <eggert@cs.ucla.edu>
74459
74460         * lib/closeout.c (close_stdout): Also close stderr.
74461         * lib/closeout.h: Update comment.
74462
74463 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74466         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74467         * lib/dirchownmod.c: Include lchown.h.
74468         * lib/lchown.c: Don't include files that lchown.h now includes.
74469         Don't declare chown, since lchown.h now does that.
74470         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74471         (lchown): Define to rpl_chown if lchown is declared but
74472         does not exist.  Declare using a prototype if lchown is not
74473         declared.  Add a copyright notice.
74474         * lib/mkstemp.h: Include <unistd.h>.
74475         * lib/openat.c: Include lchown.h.
74476
74477         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74478         we now test for that separately.
74479         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74480         rather than O_NOFOLLOW, when testing whether it's possible to
74481         avoid a race condition reliably.
74482         * lib/savewd.c (savewd_chdir): Likewise.
74483
74484         Remove macros that are no longer needed now that stdint.h is
74485         reliable.
74486         * lib/fsusage.c (UINTMAX_MAX): Remove.
74487         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74488         * lib/utimecmp.c (SIZE_MAX): Remove.
74489
74490         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74491
74492         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74493         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74494         O_NOATIME works.
74495
74496 2006-10-05  Bruno Haible  <bruno@clisp.org>
74497
74498         * lib/gl_list.h (gl_sortedlist_search_from_to,
74499         gl_sortedlist_indexof_from_to): New declarations.
74500         (gl_list_implementation): New fields sortedlist_search_from_to,
74501         sortedlist_indexof_from_to.
74502         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74503         inline functions.
74504         * lib/gl_list.c (gl_sortedlist_search_from_to,
74505         gl_sortedlist_indexof_from_to): New functions.
74506         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74507         function.
74508         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74509         (gl_array_sortedlist_search_from_to): New function.
74510         (gl_array_list_implementation): Update.
74511         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74512         function.
74513         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74514         (gl_carray_sortedlist_search_from_to): New function.
74515         (gl_carray_list_implementation): Update.
74516         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74517         gl_linked_sortedlist_indexof_from_to): New functions.
74518         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74519         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74520         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74521         gl_tree_sortedlist_indexof_from_to): New functions.
74522         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74523         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74524         Update.
74525         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74526         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74527         Update.
74528
74529 2006-10-05  Bruno Haible  <bruno@clisp.org>
74530
74531         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74532         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74533         (struct gl_list_implementation): Add fields search_from_to,
74534         indexof_from_to. Remove fields search, indexof.
74535         (gl_list_search): Use the search_from_to method.
74536         (gl_list_search_from, gl_list_search_from_to): New functions.
74537         (gl_list_indexof): Use the indexof_from_to method.
74538         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74539         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74540         (gl_list_search_from, gl_list_search_from_to): New functions.
74541         (gl_list_indexof): Use the indexof_from_to method.
74542         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74543         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74544         gl_array_indexof. Add start_index, end_index arguments.
74545         (gl_array_search_from_to): Renamed from gl_array_search. Add
74546         start_index, end_index arguments.
74547         (gl_array_remove, gl_array_list_implementation): Update.
74548         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74549         gl_carray_indexof. Add start_index, end_index arguments.
74550         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74551         start_index, end_index arguments.
74552         (gl_carray_remove, gl_carray_list_implementation): Update.
74553         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74554         gl_linked_search. Add start_index, end_index arguments.
74555         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74556         start_index, end_index arguments.
74557         (gl_linked_remove): Update.
74558         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74559         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74560         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74561         field to 'size_t'.
74562         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74563         gl_tree_search. Add start_index, end_index arguments.
74564         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74565         start_index, end_index arguments.
74566         (gl_tree_remove): Update.
74567         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74568         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74569         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74570         function.
74571         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74572         gl_tree_search. Add start_index, end_index arguments.
74573         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74574         start_index, end_index arguments.
74575         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74576         Update.
74577         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74578
74579 2006-10-05  Bruno Haible  <bruno@clisp.org>
74580
74581         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74582
74583         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74584         fwriteerror_temp): New declarations.
74585         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74586         (descriptors): New variable.
74587         (cleanup): First, close the descriptors.
74588         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74589         fclose_temp, fwriteerror_temp): New functions.
74590
74591 2006-10-04  Jim Meyering  <jim@meyering.net>
74592
74593         * lib/fts.c (fts_open): Tiny comment change.
74594
74595 2006-10-04  Bruno Haible  <bruno@clisp.org>
74596
74597         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74598         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74599         gl_LOCK_BODY.
74600         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74601         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74602         gl_LOCK_EARLY_BODY.
74603         (gl_LOCK): Require gl_LOCK_BODY.
74604
74605 2006-10-04  Bruno Haible  <bruno@clisp.org>
74606
74607         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74608         (gl_oset_search_atleast): New declaration.
74609         (struct gl_oset_implementation): Add field 'search_atleast'.
74610         (gl_oset_search_atleast): New inline function.
74611         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74612         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74613         (gl_array_oset_implementation): Update.
74614         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74615         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74616         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74617
74618 2006-10-04  Bruno Haible  <bruno@clisp.org>
74619
74620         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74621
74622 2006-10-03  Bruno Haible  <bruno@clisp.org>
74623
74624         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74625         from gl_avltreehash_list_implementation.
74626
74627 2006-10-03  Bruno Haible  <bruno@clisp.org>
74628
74629         * lib/gl_oset.c (gl_oset_add): Fix return type.
74630
74631 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74632
74633         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74634
74635 2006-10-02  Eric Blake  <ebb9@byu.net>
74636
74637         * modules/strnlen (Depends-on): Add extensions.
74638
74639 2006-10-02  Eric Blake  <ebb9@byu.net>
74640
74641         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74642         definition in 2.60+.
74643
74644 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74645
74646         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74647         checks.
74648
74649 2006-10-02  Bruno Haible  <bruno@clisp.org>
74650
74651         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74652         to the AUTOMAKE_OPTIONS.
74653         Reported by Jim Meyering.
74654
74655 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74656
74657         Work around bug in Solaris 10 /proc file system:
74658         /proc/self/fd/NNN/.. isn't the parent directory of
74659         the directory whose file descriptor is NNN.  This needs to
74660         be worked around at run time, not compile time, since a
74661         program might be built on Solaris 8, where things work, and
74662         run on Solaris 10.
74663         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74664         to use the following interface instead:
74665         (OPENAT_BUFFER_SIZE): New macro.
74666         (openat_proc_name): New function.
74667         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74668         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74669         Likewise.
74670         * lib/openat-proc.c: New file.
74671         * modules/openat (Files): Add lib/openat-proc.c.
74672         (Depends-on): Add same-inode, stdbool.
74673         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74674
74675 2006-09-29  Bruno Haible  <bruno@clisp.org>
74676
74677         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74678         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74679         argument. Set stdout_closed before testing for ferror, not after.
74680         (fwriteerror, fwriteerror_no_ebadf): New functions.
74681
74682 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74683
74684         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74685
74686 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74687
74688         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74689         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74690
74691 2006-09-28  Jim Meyering  <jim@meyering.net>
74692
74693         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74694         Include <unistd.h>.
74695
74696 2006-09-28  Bruno Haible  <bruno@clisp.org>
74697
74698         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74699         * modules/linkedhash-list (Depends-on): Likewise.
74700         * modules/rbtreehash-list (Depends-on): Likewise.
74701
74702 2006-09-28  Bruno Haible  <bruno@clisp.org>
74703
74704         * lib/strndup.h: Simplify the redefinition of strndup.
74705         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74706         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74707
74708 2006-09-28  Bruno Haible  <bruno@clisp.org>
74709
74710         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74711         * lib/gl_linkedhash_list.c: Likewise.
74712         * lib/gl_rbtreehash_list.c: Likewise.
74713
74714 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74715
74716         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74717         getaddrinfo.
74718
74719         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74720         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74721         it causes <stdio_ext.h> to cause a compile-time error.
74722         Problem reported by Nelson H. F. Beebe.
74723         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74724         of HAVE_DECL___PENDING.
74725
74726         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74727         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74728         declaration.
74729
74730 2006-09-27  Jim Meyering  <jim@meyering.net>
74731
74732         This file could end up with a definition for a function
74733         named __strndup, rather than rpl_strndup on a system with
74734         incomplete weak_alias support.
74735         * lib/strndup.c (strndup): Rename from __strndup.
74736         Remove #defines that used to map __strndup to strndup.
74737         Don't use K&R prototypes.
74738         Remove LIBC-related code, since this file is not sync'd with glibc.
74739         * lib/strndup.h: Revamp, accordingly.
74740         * m4/strndup.m4: Modernize.
74741
74742 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         * modules/savewd (Depends-on): Add 'raise'.
74745         * lib/savewd.c: Include <signal.h>, for 'raise'.
74746
74747 2006-09-26  Jim Meyering  <jim@meyering.net>
74748
74749         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74750         when we detect Darwin 8.7.0's acl_get_file bug.
74751         Rearrange to perform the new (below) run-test while $LIBS
74752         contains any acl-related library.  Set USE_ACL at the end.
74753         (gl_ACL_GET_FILE): New function.
74754
74755 2006-09-26  Eric Blake  <ebb9@byu.net>
74756
74757         * lib/verror.c: Include <config.h> unconditionally.
74758
74759 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74760
74761         * modules/clock-time (Maintainer): Add self.
74762         * modules/getlogin_r (Depends-on): Add extensions.
74763
74764 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74765
74766         * modules/clock-time: New module.
74767         * modules/nanosleep (Depends-on): Add clock-time.
74768         * modules/gethrxtime (Depends-on): Likewise.
74769         * modules/gettime (Depends-on): Likewise.
74770         * modules/settime (Depends-on): Likewise.
74771
74772         * modules/fts-lgpl: Depend on openat.
74773         * modules/mkancesdirs: Depend on savewd.
74774         * modules/mkdir-p: Likewise.
74775
74776 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74777
74778         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74779
74780         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74781         `gl_have_arbitrary_file_name_length_limit' to
74782         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74783         actually works between configure runs.
74784
74785 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74786             Bruno Haible  <bruno@clisp.org>
74787
74788         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74789
74790 2006-09-25  Jim Meyering  <jim@meyering.net>
74791
74792         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74793         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74794
74795 2006-09-25  Eric Blake  <ebb9@byu.net>
74796
74797         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74798         exec's in 2006-09-18 patch when shuffling fds.
74799
74800 2006-09-25  Bruno Haible  <bruno@clisp.org>
74801
74802         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74803         Reported by Jim Meyering.
74804
74805 2006-09-24  Jim Meyering  <jim@meyering.net>
74806
74807         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74808         compare a pointer against a literal "0".  That caused failures with
74809         at least HP-UX's hpcc.
74810
74811 2006-09-22  Simon Josefsson  <jas@extundo.com>
74812
74813         * modules/gc-sha1:
74814         * modules/gc-md4:
74815         * modules/gc-hmac-sha1:
74816         * modules/gc-hmac-md5:
74817         * modules/gc-des:
74818         * modules/gc-arcfour: Distribute more files.
74819
74820 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74821
74822         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74823         (gl_linked_iterator_from_to): Initialize struct completely.
74824         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74825         (gl_tree_iterator_from_to): Likewise
74826         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74827         * lib/gl_array_list.c [lint] (gl_array_iterator)
74828         (gl_array_iterator_from_to): Likewise.
74829         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74830         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74831         (gl_carray_iterator_from_to): Likewise.
74832
74833         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74834         * lib/md4.c (md4_process_block): Remove unused variable.
74835         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74836         parentheses for clarity.
74837
74838 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74839
74840         * modules/bison-i18n (Depends-on): Add gettext.
74841
74842 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74843
74844         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74845         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74846         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74847         also add missing comma that caused broken test.
74848         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74849         stdlib.h, for `abort'.
74850         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74851         variables.
74852         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74853         include unistd.h if present, for `rmdir'.
74854         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74855         variables.
74856         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74857         in the process include standard headers for prototypes.
74858         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74859         gets declared on GNU/Linux.
74860         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74861         unistd.h, for `rmdir'.
74862         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74863
74864         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74865         always true.
74866         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74867
74868         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74869
74870 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74871
74872         * gnulib-tool (func_version): Create output all at once.  This
74873         may help avoid triggering unnecessary SIGPIPEs, and at any
74874         rate it doesn't hurt.
74875
74876 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74877             Bruno Haible  <bruno@clisp.org>
74878
74879         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74880         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74881         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74882
74883         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74884         (gl_FUNC_VASPRINTF): Invoke it.
74885
74886 2006-09-22  Bruno Haible  <bruno@clisp.org>
74887
74888         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74889         getloadavg.c as first argument.
74890
74891 2006-09-22  Bruno Haible  <bruno@clisp.org>
74892
74893         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74894         at the beginning of the gl_INIT macro.
74895         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74896         gl_GETLOADAVG.
74897
74898 2006-09-22  Bruno Haible  <bruno@clisp.org>
74899
74900         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74901         module.
74902         Suggested by Ralf Wildenhues.
74903
74904 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74905
74906         Import this patch from libc:
74907
74908         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74909
74910         * lib/regex_internal.c (re_string_reconstruct): Handle
74911         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74912         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74913         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74914         re_string_context_at.
74915
74916         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74917         now requires it.
74918         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74919         gl_REGEX now does it for us.
74920         (gl_REGEX): Add test taken from
74921         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74922
74923         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74924         Check that large offsets work.  Modernize Autoconf usages.
74925         Prefer "yes" to mean a good thing rather than a bad.
74926         Don't put "#define mkstemp" in config.h, as this might interfere
74927         with standard system headers that "#define mkstemp mkstemp64".
74928
74929         * modules/mkstemp (Depends-on): Add extensions, so that
74930         mkstemp is visible on some platforms.
74931         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74932         (Include): Change to "mkstemp.h" from <stdlib.h>.
74933         (Files): Add mkstemp.h.
74934
74935         * lib/mkstemp.h: New file, since some standard headers
74936         #define mkstemp.
74937         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74938         Include "mkstemp.h".
74939         Make the _LIBC code resemble glibc original more,
74940         e.g., use K&R style.
74941         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74942         (mkstemp): Remove, since mkstemp.h does this for us.
74943         * lib/stdlib--.h: Include mkstemp.h.
74944
74945         Import this patch from libc:
74946
74947         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74948
74949         * lib/tempname.c (__gen_tempname): Change attempts_min
74950         into a macro.  Use preprocessor to decide how to initialize
74951         attempts [Coverity CID 67].
74952
74953 2006-09-20  Bruno Haible  <bruno@clisp.org>
74954
74955         * lib/mkdtemp.c: Import from libc.
74956         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74957                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74958                 attempts_min into a macro.  Use preprocessor to decide how to
74959                 initialize attempts [Coverity CID 67].
74960         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74961                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74962                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74963
74964 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74965
74966         * gnulib-tool (func_exit): New function, to allow to pass the
74967         exit status portably through the trap.  Use everywhere.
74968         (--help, --version): Signal a write error.
74969         (trap): catch SIGPIPE, for write errors.
74970         Exit at the end of the trap, with the correct exit status.
74971
74972 2006-09-19  Karl Berry  <karl@gnu.org>
74973
74974         * doc/gnulib.texi: note about the license texinfo files.
74975
74976 2006-09-19  Eric Blake  <ebb9@byu.net>
74977
74978         * gnulib-tool: Avoid space-tab.
74979
74980 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74983         that prevented coreutils 6.1 from building.  Problem reported
74984         by Petter Reinholdtsen.
74985
74986 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74987
74988         * gnulib-tool (avoidlist): Fix typo that broke options like
74989         --avoid=lock that are used by coreutils bootstrap.
74990
74991 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74992
74993         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74994         more systematically.
74995
74996 2006-09-18  Jim Meyering  <jim@meyering.net>
74997
74998         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74999
75000 2006-09-18  Bruno Haible  <bruno@clisp.org>
75001
75002         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75003
75004 2006-09-18  Bruno Haible  <bruno@clisp.org>
75005
75006         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75007         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75008         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75009         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75010         * m4/gettext.m4: Require autoconf >= 2.52.
75011         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75012         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75013         of gl_cv_header_inttypes_h.
75014
75015 2006-09-18  Bruno Haible  <bruno@clisp.org>
75016
75017         * lib/javaversion.c: Include configmake.h.
75018
75019 2006-09-18  Bruno Haible  <bruno@clisp.org>
75020
75021         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75022         avoid that the while loops be executed in a subshell.
75023
75024 2006-09-18  Bruno Haible  <bruno@clisp.org>
75025
75026         * MODULES.html.sh (func_module): Break long lines.
75027         Suggested by Bruce Korb <bkorb@gnu.org>.
75028
75029 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75030
75031         Speed up by a factor of 1.12.
75032         * gnulib-tool (nl): New variable.
75033         (func_import): Rewrite include directive extraction to only read each
75034         directive once.
75035
75036 2006-09-17  Bruno Haible  <bruno@clisp.org>
75037
75038         * modules/javaversion (Makefile.am): Remove DEFS setting.
75039         (Depends-on): Add configmake, for PKGDATADIR definition.
75040
75041 2006-09-17  Bruno Haible  <bruno@clisp.org>
75042
75043         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75044
75045 2006-09-17  Bruno Haible  <bruno@clisp.org>
75046
75047         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75048         (func_modules_transitive_closure, func_modules_add_dummy,
75049         func_modules_to_filelist, func_import, func_create_testdir,
75050         func_create_megatestdir, ...): Use it wherever possible.
75051         Suggested by Ralf Wildenhues.
75052
75053 2006-09-16  Karl Berry  <karl@gnu.org>
75054
75055         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75056         to avoid sectioning errors.
75057         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75058         [ifinfo]: blank line after @center-ed titles.
75059         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75060         Spell FSF address consistently with others.
75061         (These changes approved by rms.)
75062
75063 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75064
75065         Speed up by a factor of 1.61.
75066         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75067         already checked module names again.
75068
75069 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75070
75071         Speed up by a factor of 1.13.
75072         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75073         for new_files, and the input to func_add_or_update.
75074
75075 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75076
75077         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75078         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75079
75080 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75081
75082         * modules/mkancesdirs (Depends-on): Add fcntl.
75083         * modules/savewd: New file.
75084         * MODULES.html.sh (File system functions): Add savewd.
75085
75086         * modules/configmake (Makefile.am): Add support for the
75087         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75088
75089 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75090
75091         * m4/savewd.m4: New file.
75092
75093 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75094
75095         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75096         (dirchownmod): New arg FD.  All callers changed.
75097         Use FD rather than opening the directory ourself, as opening is
75098         now the caller's responsibility.
75099         * lib/dirchownmod.h: Likewise.
75100         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75101         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75102         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75103         (test_dir): Remove.
75104         (mkancesdirs): Return length of prefix of FILE that has already
75105         been made, or -2 if there is a child doing the work.  Redo
75106         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75107         ".", and treat ".." specially since it might stray back into
75108         already-created areas.  Use a subprocess if necessary.  New arg
75109         WD; all users changed.  MAKE_DIR function should now return 1
75110         if it creates a directory that is not readable.  Return -2 if
75111         a child process is spun off.
75112         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75113         Adjust signature to match code.
75114         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75115         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75116         all users changed.
75117         * lib/savewd.c, lib/savewd.h: New files.
75118
75119 2006-09-15  Jim Meyering  <jim@meyering.net>
75120
75121         * modules/rename-dest-slash: New module.
75122         * MODULES.html.sh (posix_compat): Add it here.
75123
75124         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75125
75126 2006-09-15  Jim Meyering  <jim@meyering.net>
75127
75128         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75129         file.
75130
75131         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75132
75133 2006-09-15  Jim Meyering  <jim@meyering.net>
75134
75135         * lib/rename-dest-slash.c (has_trailing_slash): Use
75136         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75137         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75138         test before testing whether SRC is a directory.
75139         Suggestions from Bruno Haible.
75140
75141         Avoid a warning about an unused variable.
75142         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75143         into the #ifdef block where it's used.
75144
75145         * lib/rename-dest-slash.c: New file.
75146
75147 2006-09-14  Bruno Haible  <bruno@clisp.org>
75148
75149         * lib/allocsa.c: Include <config.h> unconditionally.
75150         * lib/asnprintf.c: Likewise.
75151         * lib/asprintf.c: Likewise.
75152         * lib/c-strcasecmp.c: Likewise.
75153         * lib/c-strcasestr.c: Likewise.
75154         * lib/c-strncasecmp.c: Likewise.
75155         * lib/c-strstr.c: Likewise.
75156         * lib/classpath.c: Likewise.
75157         * lib/clean-temp.c: Likewise.
75158         * lib/concatpath.c: Likewise.
75159         * lib/copy-file.c: Likewise.
75160         * lib/csharpcomp.c: Likewise.
75161         * lib/csharpexec.c: Likewise.
75162         * lib/execute.c: Likewise.
75163         * lib/fatal-signal.c: Likewise.
75164         * lib/findprog.c: Likewise.
75165         * lib/fwriteerror.c: Likewise.
75166         * lib/gl_array_list.c: Likewise.
75167         * lib/gl_array_oset.c: Likewise.
75168         * lib/gl_avltree_list.c: Likewise.
75169         * lib/gl_avltree_oset.c: Likewise.
75170         * lib/gl_avltreehash_list.c: Likewise.
75171         * lib/gl_carray_list.c: Likewise.
75172         * lib/gl_linked_list.c: Likewise.
75173         * lib/gl_linkedhash_list.c: Likewise.
75174         * lib/gl_list.c: Likewise.
75175         * lib/gl_oset.c: Likewise.
75176         * lib/gl_rbtree_list.c: Likewise.
75177         * lib/gl_rbtree_oset.c: Likewise.
75178         * lib/gl_rbtreehash_list.c: Likewise.
75179         * lib/imaxabs.c: Likewise.
75180         * lib/imaxdiv.c: Likewise.
75181         * lib/javacomp.c: Likewise.
75182         * lib/javaexec.c: Likewise.
75183         * lib/javaversion.c: Likewise.
75184         * lib/linebreak.c: Likewise.
75185         * lib/localcharset.c: Likewise.
75186         * lib/lock.c: Likewise.
75187         * lib/mbchar.c: Likewise.
75188         * lib/mbswidth.c: Likewise.
75189         * lib/mkdtemp.c: Likewise.
75190         * lib/pipe.c: Likewise.
75191         * lib/printf-args.c: Likewise.
75192         * lib/printf-parse.c: Likewise.
75193         * lib/progname.c: Likewise.
75194         * lib/progreloc.c: Likewise.
75195         * lib/readlink.c: Likewise.
75196         * lib/sh-quote.c: Likewise.
75197         * lib/stpcpy.c: Likewise.
75198         * lib/stpncpy.c: Likewise.
75199         * lib/strcasecmp.c: Likewise.
75200         * lib/strcasestr.c: Likewise.
75201         * lib/strcspn.c: Likewise.
75202         * lib/striconv.c: Likewise.
75203         * lib/strncasecmp.c: Likewise.
75204         * lib/strnlen1.c: Likewise.
75205         * lib/strstr.c: Likewise.
75206         * lib/strtok_r.c: Likewise.
75207         * lib/tls.c: Likewise.
75208         * lib/tmpdir.c: Likewise.
75209         * lib/unicodeio.c: Likewise.
75210         * lib/unsetenv.c: Likewise.
75211         * lib/vasnprintf.c: Likewise.
75212         * lib/vasprintf.c: Likewise.
75213         * lib/wait-process.c: Likewise.
75214         * lib/xallocsa.c: Likewise.
75215         * lib/xsetenv.c: Likewise.
75216         * lib/xstriconv.c: Likewise.
75217
75218 2006-09-13  Simon Josefsson  <jas@extundo.com>
75219
75220         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75221         that internally, suggested by Ralf Wildenhues
75222         <Ralf.Wildenhues@gmx.de>.
75223
75224 2006-09-13  Simon Josefsson  <jas@extundo.com>
75225
75226         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75227         @LIBOBJS@.
75228         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75229
75230 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75231
75232         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75233         longer worry about uses that don't define HAVE_CONFIG_H.
75234         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75235         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75236         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75237         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75238         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75239         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75240         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75241         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75242         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75243         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75244         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75245         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75246         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75247         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75248         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75249         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75250         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75251         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75252         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75253         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75254         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75255         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75256         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75257         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75258         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75259         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75260         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75261         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75262         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75263         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75264         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75265         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75266         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75267         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75268         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75269         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75270         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75271         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75272         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75273         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75274         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75275         Likewise.
75276
75277 2006-09-13  Eric Blake  <ebb9@byu.net>
75278
75279         * lib/getopt.c: Fix typo in last commit.
75280
75281 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75282
75283         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75284         dgettext.
75285
75286 2006-09-12  Jim Meyering  <jim@meyering.net>
75287
75288         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75289         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75290         Reported by Nelson H. F. Beebe.
75291
75292 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75293
75294         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75295         program_invocation_name and program_invocation_short_name are
75296         initialized.
75297         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75298         and program_invocation_short_name to argp.h, so they are visible
75299         to user programs.
75300         * lib/argp.h: Likewise
75301
75302 2006-09-10  Bruno Haible  <bruno@clisp.org>
75303
75304         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75305         m4/inttypes_h.m4, m4/uintmax_t.m4.
75306
75307 2006-09-10  Bruno Haible  <bruno@clisp.org>
75308
75309         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75310         gl_AC_TYPE_UINTMAX_T.
75311
75312 2006-09-10  Bruno Haible  <bruno@clisp.org>
75313
75314         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75315
75316 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75317
75318         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75319         convention.  Text proposed by Bruno Haible.
75320         (struct argp_option): Document the use of N_() wrappers.
75321
75322         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75323         '\v', and translate the two parts separately, instead of feeding
75324         the whole string to gettext.  This allows to exclude
75325         '\v' from the strings visible to the translator by writing doc
75326         strings as N_("..") "\v" N_("..").
75327
75328 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75329
75330         * config/srclist.txt: Undo latest change; the bug was fixed.
75331
75332 2006-09-09  Bruno Haible  <bruno@clisp.org>
75333
75334         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75335         assignments if building a library without libtool.
75336         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75337         in func_emit_lib_Makefile_am.
75338         (func_import): When building a static library libfoo.a, arrange to
75339         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75340         (func_create_testdir): Likewise.
75341         * modules/gc (configure.ac, Makefile.am): If building statically,
75342         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75343         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75344         * modules/striconv (configure.ac, Makefile.am): Likewise.
75345         Based on a suggestion by Ralf Wildenhues.
75346
75347 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75348
75349         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75350         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75351         Also:
75352
75353         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75354         Add year_2050_test to catch glibc bug 2821
75355         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75356
75357         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75358         Prefer #ifdef to #if.
75359
75360         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75361         Return from 'main' instead of calling 'exit'.
75362
75363 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75366         returned the maximum time_t value rather than (time_t) -1.
75367         Problem originally reported by William Bardwell
75368         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75369
75370         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75371         Moved to here ...
75372         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75373         ... from here.
75374
75375 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75376
75377         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75378         2821 is fixed.
75379
75380 2006-09-08  Jim Meyering  <jim@meyering.net>
75381
75382         Don't make generated files read-only.  That would bother too many
75383         people.  However, do retain the ability to work when targets are
75384         read-only: remove the destination and temporary files before writing
75385         them (when generated via sed or echo), or by using the -f option for
75386         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75387         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75388         * modules/byteswap, modules/configmake, modules/fcntl:
75389         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75390         * modules/localcharset, modules/netinet_in, modules/poll:
75391         * modules/stdbool, modules/stdint, modules/sys_select:
75392         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75393
75394 2006-09-08  Jim Meyering  <jim@meyering.net>
75395
75396         Avoid new build failure on FreeBSD 6.0.
75397         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75398         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75399         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75400
75401 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75402
75403         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75404
75405 2006-09-07  Jim Meyering  <jim@meyering.net>
75406
75407         Fix global typo in last change: use chmod u-w, not chmod u-x.
75408         Spotted by Paul Eggert and Bruce Korb.
75409         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75410         * modules/byteswap, modules/configmake, modules/fcntl:
75411         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75412         * modules/localcharset, modules/netinet_in, modules/poll:
75413         * modules/stdbool, modules/stdint, modules/sys_select:
75414         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75415
75416 2006-09-06  Jim Meyering  <jim@meyering.net>
75417
75418         Make generated files be read-only.
75419         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75420         Ensure that each generated file is now read-only.
75421         * modules/argz: Likewise.
75422         * modules/arpa_inet: Likewise.
75423         * modules/byteswap: Likewise.
75424         * modules/configmake: Likewise.
75425         * modules/fcntl: Likewise.
75426         * modules/fnmatch: Likewise.
75427         * modules/getopt: Likewise.
75428         * modules/glob: Likewise.
75429         * modules/inttypes: Likewise.
75430         * modules/netinet_in: Likewise.
75431         * modules/poll: Likewise.
75432         * modules/stdbool: Likewise.
75433         * modules/stdint: Likewise.
75434         * modules/sys_select: Likewise.
75435         * modules/sys_socket: Likewise.
75436         * modules/sys_stat: Likewise.
75437         * modules/sysexits: Likewise.
75438         * modules/localcharset: Same as above, but continue using temporary
75439         file named "t-$@" (why different?) rather than the "$@-t" used
75440         everywhere else.
75441
75442         * modules/sysexits (Makefile.am): Replace literal occurrences
75443         of "sysexit.h" more readable, and more consistent, "$@".
75444
75445 2006-09-06  Bruno Haible  <bruno@clisp.org>
75446
75447         * modules/striconv: New file.
75448         * modules/xstriconv: New file.
75449         * MODULES.html.sh (Internationalization functions): Add striconv,
75450         xstriconv.
75451
75452 2006-09-06  Bruno Haible  <bruno@clisp.org>
75453
75454         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75455         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75456         not using libtool correctly.
75457
75458 2006-09-06  Bruno Haible  <bruno@clisp.org>
75459
75460         * lib/striconv.h: New file.
75461         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75462         iconvstring.c.
75463         * lib/xstriconv.h: New file.
75464         * lib/xstriconv.c: New file.
75465
75466 2006-09-06  Bruno Haible  <bruno@clisp.org>
75467
75468         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75469         lib_..._LDFLAGS.
75470
75471 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75472
75473         * lib/argz_.h: Sync from Libtool.
75474
75475         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75476                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75477
75478         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75479
75480 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75481
75482         * modules/trim: New file.
75483
75484 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75485
75486         * lib/trim.h: New file.
75487         * lib/trim.c: New file.
75488
75489 2006-09-05  Bruno Haible  <bruno@clisp.org>
75490
75491         * MODULES.html.sh (String handling): Add trim.
75492
75493 2006-09-04  Karl Berry  <karl@gnu.org>
75494
75495         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75496         until next release.
75497
75498 2006-09-03  Bruno Haible  <bruno@clisp.org>
75499
75500         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75501         correctly.
75502
75503 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75504
75505         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75506         not gl_GETLOADAVG.  Omit unneeded semicolons.
75507         Problems reported by Ralf Wildenhues in
75508         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75509         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75510         at the end, which is the usual gnulib style.
75511
75512         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75513         of doing all the work ourselves.
75514         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75515         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75516
75517 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75520         Problem reported by Ralf Wildenhues in
75521         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75522
75523         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75524         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75525
75526 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75527
75528         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75529         yesterday's patch by changing test -n to test -z.
75530
75531 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75532
75533         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75534         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75535         the former is now obsolescent.
75536
75537         * modules/chdir-long (Depends-on): Add fcntl.
75538
75539 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75540
75541         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75542         obsolescent, and programs should use gnulib instead.
75543         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75544         but with prefixes changed.
75545
75546 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75549         or stdbool.h, because they might not exist while configuring.
75550
75551         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75552         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75553         does that for us.
75554         (O_DIRECTORY): Remove.
75555
75556 2006-08-31  Eric Blake  <ebb9@byu.net>
75557
75558         * gnulib-tool: Don't let emacs change spaces to TAB.
75559
75560 2006-08-31  Bruno Haible  <bruno@clisp.org>
75561
75562         * gnulib-tool: When calling func_import more than once, do it in a
75563         subshell.
75564         Reported by Eric Blake <ebb9@byu.net>.
75565
75566 2006-08-31  Bruno Haible  <bruno@clisp.org>
75567
75568         * gnulib-tool (nl): Remove variable.
75569         (sed_transform_lib_file): Use more robust test for config-h module.
75570         (func_import): Fix typo in 2006-08-25 patch.
75571
75572 2006-08-31  Bruno Haible  <bruno@clisp.org>
75573
75574         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75575         specified, augment Makefile.am variables instead of assigning them.
75576
75577 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75578
75579         Work around a bug in both the Linux and SunOS 64-bit kernels:
75580         nanosleep mishandles sleeps for longer than 2**31 seconds.
75581         Problem reported by Frank v Waveren in
75582         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75584         Check for nanosleep bug.
75585         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75586
75587 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75588
75589         Work around a bug in both the Linux and SunOS 64-bit kernels:
75590         nanosleep mishandles sleeps for longer than 2**31 seconds.
75591         Problem reported by Frank v Waveren in
75592         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75593         * lib/nanosleep.c (BILLION): New constant.
75594         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75595         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75596         implementation.
75597
75598 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75599
75600         * modules/nanosleep (Depends-on): Add gettime.
75601
75602 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75603         and Simon Josefsson  <jas@extundo.com>
75604         and Oskar Liljeblad  <oskar@osk.mine.nu>
75605
75606         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75607         * gnulib-tool (func_import): New license type 'unmodifiable license
75608         text'.
75609         * modules/fdl: Use it.  Longer description.
75610         * module/gpl, module/lgpl: New files.
75611
75612 2006-08-30  Jim Meyering  <jim@meyering.net>
75613
75614         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75615         shadowing the parameter.
75616
75617 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75618
75619         Sync from Libtool:
75620
75621         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75622
75623         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75624         sharing with gnulib.  Report by Eric Blake.
75625
75626 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75627
75628         * modules/isapipe: New file.
75629         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75630
75631 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75632
75633         * modules/configmake (Makefile.am): Add a comment, and omit
75634         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75635         by Bruno Haible.
75636
75637 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         * m4/isapipe.m4: New file.
75640
75641 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75642
75643         * lib/isapipe.c, lib/isapipe.h: New files.
75644
75645 2006-08-29  Jim Meyering  <jim@meyering.net>
75646
75647         * modules/configmake (Makefile.am): Make configmake.h depend on
75648         Makefile.  Otherwise, a stale configmake.h could hang around.
75649
75650 2006-08-29  Eric Blake  <ebb9@byu.net>
75651
75652         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75653         resolution of upstream bug 3044.
75654
75655 2006-08-29  Bruno Haible  <bruno@clisp.org>
75656
75657         * modules/localcharset (Depends-on): Add configmake.
75658         (Makefile.am): Remove setting of LIBDIR through DEFS.
75659
75660 2006-08-29  Bruno Haible  <bruno@clisp.org>
75661
75662         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75663         defined.
75664
75665 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75666
75667         * modules/fcntl: New file.
75668         * modules/chdir-safer (Depends-on): Add fcntl.
75669         * modules/fts: Likewise.
75670         * modules/mkdir-p: Likewise.
75671
75672         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75673         This undoes the most recent change, since we're now addressing the
75674         problem in a different way.
75675
75676         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75677         into output, since the output might be called Makefile.am even
75678         if $makefile_name is something different.
75679         (func_import): Use $makefile_am rather than
75680         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75681         empty.
75682
75683         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75684
75685 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75688         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75689         recent change to stdint.m4, since we're now addressing the problem in a
75690         different way.
75691
75692 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75693
75694         * m4/fcntl_h.m4: New file.
75695
75696 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75697
75698         * lib/fcntl_.h: New file.
75699         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75700         the fcntl module.
75701         * lib/dirchownmod.c: Likewise.
75702         * lib/fts.c: Likewise.
75703
75704         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75705         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75706         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75707         just before including <inttypes.h>, to avoid circular inclusion.
75708
75709 2006-08-28  Jim Meyering  <jim@meyering.net>
75710
75711         * doc/visibility.texi: Actually read and correct the grammar of the
75712         sentence affected by yesterday's change.
75713
75714 2006-08-28  Eric Blake  <ebb9@byu.net>
75715
75716         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75717         needs wrapper.
75718
75719 2006-08-28  Eric Blake  <ebb9@byu.net>
75720
75721         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75722
75723 2006-08-28  Eric Blake  <ebb9@byu.net>
75724
75725         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75726
75727 2006-08-28  Bruno Haible  <bruno@clisp.org>
75728
75729         * modules/c-strstr: New file, from GNU gettext.
75730         * MODULES.html.sh (String handling): Add c-strstr.
75731
75732 2006-08-28  Bruno Haible  <bruno@clisp.org>
75733
75734         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75735         macros.
75736         Reported by Eric Blake.
75737
75738 2006-08-28  Bruno Haible  <bruno@clisp.org>
75739
75740         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75741         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75742         * lib/vasprintf.c: Include errno.h, limits.h.
75743         (EOVERFLOW): New fallback definition.
75744         (vasprintf): Test here whether the string length is > INT_MAX.
75745         * lib/vsnprintf.c: Include errno.h, limits.h.
75746         (EOVERFLOW): New fallback definition.
75747         (vsnprintf): Fix bug when generated string was too long for the buffer.
75748         Test here whether the string length is > INT_MAX.
75749
75750 2006-08-28  Bruno Haible  <bruno@clisp.org>
75751
75752         * lib/inttypes_.h (SCNX*): Remove definitions.
75753         Reported by Eric Blake.
75754
75755 2006-08-28  Bruno Haible  <bruno@clisp.org>
75756
75757         * lib/c-strstr.h: New file, from GNU gettext.
75758         * lib/c-strstr.c: New file, from GNU gettext.
75759
75760 2006-08-28  Bruno Haible  <bruno@clisp.org>
75761
75762         * gnulib-tool: Reorder some statements.
75763
75764 2006-08-28  Bruno Haible  <bruno@clisp.org>
75765
75766         * gnulib-tool: New option --makefile-name.
75767         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75768         $makefile_name.
75769         (func_import): Write $makefile_name to the cache file, and read it from
75770         there unless explicitly specified. Use $makefile_name as file name
75771         instead of Makefile.am. Adjust the recommendations accordingly.
75772
75773 2006-08-28  Bruno Haible  <bruno@clisp.org>
75774
75775         * gnulib-tool (func_verify_module): Check against misapplying patch.
75776
75777 2006-08-28  Bruno Haible  <bruno@clisp.org>
75778
75779         * gnulib-tool (func_relativize, func_relconcat): New functions.
75780         Give an error if --local-dir is given with --update.
75781         Remove trailing slashes from $local_gnulib_dir.
75782         (func_import): Store the relativized $local_gnulib_dir in
75783         gnulib-cache.m4, and read it from there if not specified explicitly.
75784
75785 2006-08-28  Bruno Haible  <bruno@clisp.org>
75786
75787         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75788         is the current directory. Respect also $local_gnulib_dir.
75789
75790 2006-08-28  Bruno Haible  <bruno@clisp.org>
75791             Simon Josefsson  <jas@extundo.com>
75792
75793         BeOS portability.
75794         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75795
75796 2006-08-27  Jim Meyering  <jim@meyering.net>
75797
75798         * doc/visibility.texi: Remove duplicate word: "pointer".
75799
75800 2006-08-26  Bruno Haible  <bruno@clisp.org>
75801
75802         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75803         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75804         (Makefile.am): Create inttypes.h from inttypes_.h.
75805         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75806
75807         * modules/imaxabs: New file.
75808
75809         * modules/imaxdiv: New file.
75810
75811 2006-08-26  Bruno Haible  <bruno@clisp.org>
75812
75813         * m4/inttypes.m4: New file.
75814         * m4/_inttypes_h.m4: Remove file.
75815         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75816         PRI_MACROS_BROKEN.
75817         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75818
75819         * m4/imaxabs.m4: New file.
75820
75821         * m4/imaxdiv.m4: New file.
75822
75823 2006-08-26  Bruno Haible  <bruno@clisp.org>
75824
75825         * lib/inttypes_.h: New file.
75826         * lib/inttypes.h: Remove file.
75827         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75828
75829         * lib/imaxabs.c: New file.
75830
75831         * lib/imaxdiv.c: New file.
75832
75833 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75834
75835         New config-h module, so that "make" output needn't be cluttered
75836         by -DHAVE_CONFIG_H.
75837         * MODULES.html.sh (Support for building libraries and executables):
75838         Add config-h.
75839         * modules/config-h: New file.
75840         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75841         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75842         the config-h module is used.
75843
75844         New configmake module, so that "make" output needn't be cluttered
75845         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75846         * MODULES.html.sh (Support for building libraries and executables):
75847         Add configmake.
75848         * modules/configmake: New file.
75849
75850 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         * m4/config-h.m4: New file.
75853
75854 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75855
75856         * config/srclist.txt: Add elisp-comp.
75857
75858 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75859
75860         * MODULES.html.sh (Support for building libraries and executables):
75861         Add elisp-comp.
75862         * build-aux/elisp-comp: New file.
75863         * modules/elisp-comp: New file.
75864
75865 2006-08-24  Bruno Haible  <bruno@clisp.org>
75866
75867         * gnulib-tool (func_create_testdir): Use non-default values of
75868         sourcebase and m4base.
75869
75870 2006-08-24  Bruno Haible  <bruno@clisp.org>
75871
75872         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75873         HTML structure.
75874
75875 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75876
75877         * modules/openat (Depends-on): Add lchown.
75878
75879 2006-08-23  Bruno Haible  <bruno@clisp.org>
75880
75881         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75882         of gl_LOCK_EARLY instead of gl_LOCK.
75883
75884 2006-08-23  Bruno Haible  <bruno@clisp.org>
75885
75886         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75887         on OSF/1 to no.
75888         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75889
75890 2006-08-23  Bruno Haible  <bruno@clisp.org>
75891
75892         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75893         as unusable.
75894
75895         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75896         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75897         (gl_LOCK): New macro.
75898
75899 2006-08-22  Simon Josefsson  <jas@extundo.com>
75900
75901         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75902         to md5 module.
75903
75904 2006-08-22  Simon Josefsson  <jas@extundo.com>
75905
75906         * MODULES.html.sh: Add "Support for maintaining and release
75907         projects".
75908
75909         * build-aux/gnupload: New file, from coreutils.
75910
75911 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         Avoid the need for AC_LIBSOURCES in m4 macros.
75914         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75915         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75916         * modules/check-version (EXTRA_DIST): Add check-version.h.
75917         * modules/crc (EXTRA_DIST): Add crc.h.
75918         * modules/des (EXTRA_DIST): Add des.h.
75919         * modules/gc (EXTRA_DIST): Add gc.h.
75920         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75921         * modules/getline (EXTRA_DIST): Add getline.h.
75922         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75923         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75924         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75925         * modules/md2 (EXTRA_DIST): Add md2.h.
75926         * modules/md4 (EXTRA_DIST): Add md4.h.
75927         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75928         * modules/read-file (EXTRA_DIST): Add read-file.h.
75929         * modules/readline (EXTRA_DIST): Add readline.h.
75930         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75931         rijndael-api-fst.h.
75932
75933 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         * m4/rijndael.m4 (gl_ARCFOUR):
75936         * m4/arctwo.m4 (gl_ARCTWO):
75937         * m4/check-version.m4 (gl_CHECK_VERSION):
75938         * m4/crc.m4 (gl_CRC):
75939         * m4/des.m4 (gl_DES):
75940         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75941         * m4/gc.m4 (gl_GC):
75942         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75943         * m4/getline.m4 (gl_FUNC_GETLINE):
75944         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75945         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75946         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75947         * m4/md2.m4 (gl_MD2):
75948         * m4/md4.m4 (gl_MD4):
75949         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75950         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75951         * m4/readline.m4 (gl_FUNC_READLINE):
75952         * m4/rijndael.m4 (gl_RIJNDAEL):
75953         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75954         to get the necessary .h files and whatnot.
75955
75956 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75957
75958         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75959         gnulib rather than the other way around.
75960         * config/srclistvars.sh (COREUTILS): Remove.
75961
75962 2006-08-22  Jim Meyering  <jim@meyering.net>
75963
75964         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75965
75966         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75967
75968 2006-08-22  Eric Blake  <ebb9@byu.net>
75969
75970         * modules/regexprops-generic: New file.
75971         * MODULES.html.sh (Support for building documentation): List it.
75972
75973 2006-08-22  Eric Blake  <ebb9@byu.net>
75974
75975         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75976         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75977         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75978         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75979
75980 2006-08-22  Bruno Haible  <bruno@clisp.org>
75981
75982         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75983         and lib_LTLIBRARIES like the other lib_* variables.
75984
75985 2006-08-22  Bruno Haible  <bruno@clisp.org>
75986
75987         * build-aux/x-to-1.in: New file, from GNU gettext.
75988
75989 2006-08-22  Bruno Haible  <bruno@clisp.org>
75990
75991         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75992         <utmpx.h> exists.
75993
75994 2006-08-22  Bruno Haible  <bruno@clisp.org>
75995
75996         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75997         <utmpx.h> exists.
75998
75999 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         BeOS portability.
76002         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76003         exist.
76004         Problem reported by Bruno Haible.
76005
76006 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         Avoid the need for AC_LIBSOURCES in m4 macros.
76009         * modules/acl (EXTRA_DIST): Add acl.h.
76010         * modules/argmatch (Files): Add m4/argmatch.m4.
76011         (configure.ac): Add gl_ARGMATCH.
76012         (EXTRA_DIST): Renamed from lib_SOURCES, for
76013         consistency with the other modules.  Remove argmatch.c.
76014         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76015         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76016         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76017         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76018         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76019         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76020         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76021         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76022         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76023         * modules/closeout (EXTRA_DIST): Add closeout.h.
76024         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76025         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76026         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76027         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76028         dirname.h; remove basename.c and stripslash.c.
76029         * modules/exclude (EXTRA_DIST): Add exclude.h.
76030         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76031         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76032         * modules/file-type (EXTRA_DIST): Add file-type.h.
76033         * modules/filemode (EXTRA_DIST): Add filemode.h.
76034         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76035         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76036         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76037         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76038         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76039         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76040         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76041         * modules/getdate (EXTRA_DIST): Add getdate.c.
76042         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76043         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76044         * modules/getpass (EXTRA_DIST): Add getpass.h.
76045         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76046         * modules/group-member (EXTRA_DIST): Add group-member.h.
76047         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76048         * modules/hash (EXTRA_DIST): Add hash.h.
76049         * modules/human (EXTRA_DIST): Add human.h.
76050         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76051         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76052         * modules/lchown (EXTRA_DIST): Add lchown.h.
76053         * modules/long-options (EXTRA_DIST): Add long-options.h.
76054         * modules/lstat (EXTRA_DIST): Add lstat.h.
76055         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76056         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76057         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76058         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76059         * modules/memxor (EXTRA_DIST): Add memxor.h.
76060         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76061         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76062         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76063         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76064         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76065         * modules/physmem (EXTRA_DIST): Add physmem.h.
76066         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76067         * modules/posixver (EXTRA_DIST): Add posixver.h.
76068         * modules/quote (EXTRA_DIST): Add quote.h.
76069         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76070         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76071         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76072         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76073         regex_internal.h regexec.c.
76074         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76075         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76076         * modules/same (EXTRA_DIST): Add same.h.
76077         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76078         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76079         * modules/savedir (EXTRA_DIST): Add savedir.h.
76080         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76081         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76082         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76083         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76084         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76085         * modules/strdup (EXTRA_DIST): Add strdup.h.
76086         * modules/strftime (EXTRA_DIST): Add strftime.h.
76087         * modules/strndup (EXTRA_DIST): Add strndup.h.
76088         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76089         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76090         * modules/time_r (EXTRA_DIST): Add time_r.h.
76091         * modules/timespec (EXTRA_DIST): Add timespec.h.
76092         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76093         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76094         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76095         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76096         * modules/userspec (EXTRA_DIST): Add userspec.h.
76097         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76098         * modules/utimens (EXTRA_DIST): Add utimens.h.
76099         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76100         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76101         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76102         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76103         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76104         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76105         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76106         * modules/yesno (EXTRA_DIST): Add yesno.h.
76107
76108 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76109
76110         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76111
76112         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76113         * m4/dev-ino.m4, same-inode.m4: Remove.
76114
76115         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76116         * m4/acl.m4 (AC_FUNC_ACL):
76117         * m4/backupfile.m4 (gl_BACKUPFILE):
76118         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76119         * m4/canon-host.m4 (gl_CANON_HOST):
76120         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76122         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76123         * m4/cloexec.m4 (gl_CLOEXEC):
76124         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76125         * m4/closeout.m4 (gl_CLOSEOUT):
76126         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76127         * m4/dirname.m4 (gl_DIRNAME):
76128         * m4/exclude.m4 (gl_EXCLUDE):
76129         * m4/exitfail.m4 (gl_EXITFAIL):
76130         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76131         * m4/file-type.m4 (gl_FILE_TYPE):
76132         * m4/filemode.m4 (gl_FILEMODE):
76133         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76134         * m4/fpending.m4 (gl_FUNC_FPENDING):
76135         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76136         * m4/fts.m4 (gl_FUNC_FTS):
76137         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76138         * m4/getdate.m4 (gl_GETDATE):
76139         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76140         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76141         * m4/getpass.m4 (gl_FUNC_GETPASS):
76142         * m4/gettime.m4 (gl_GETTIME):
76143         * m4/getugroups.m4 (gl_GETUGROUPS):
76144         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76145         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76146         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76147         * m4/hash.m4 (gl_HASH):
76148         * m4/idcache.m4 (gl_IDCACHE):
76149         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76150         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76151         * m4/long-options.m4 (gl_LONG_OPTIONS):
76152         * m4/lstat.m4 (gl_FUNC_LSTAT):
76153         * m4/md5.m4 (gl_MD5):
76154         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76155         * m4/memcoll.m4 (gl_MEMCOLL):
76156         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76157         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76158         * m4/memxor.m4 (gl_MEMXOR):
76159         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76160         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76161         * m4/modechange.m4 (gl_MODECHANGE):
76162         * m4/mountlist.m4 (gl_MOUNTLIST):
76163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76164         * m4/openat.m4 (gl_FUNC_OPENAT):
76165         * m4/pathmax.m4 (gl_PATHMAX):
76166         * m4/physmem.m4 (gl_PHYSMEM):
76167         * m4/posixtm.m4 (gl_POSIXTM):
76168         * m4/posixver.m4 (gl_POSIXVER):
76169         * m4/quote.m4 (gl_QUOTE):
76170         * m4/quotearg.m4 (gl_QUOTEARG):
76171         * m4/readtokens.m4 (gl_READTOKENS):
76172         * m4/readutmp.m4 (gl_READUTMP):
76173         * m4/regex.m4 (gl_REGEX):
76174         * m4/safe-read.m4 (gl_SAFE_READ):
76175         * m4/safe-write.m4 (gl_SAFE_WRITE):
76176         * m4/same.m4 (gl_SAME):
76177         * m4/save-cwd.m4 (gl_SAVE_CWD):
76178         * m4/savedir.m4 (gl_SAVEDIR):
76179         * m4/settime.m4 (gl_SETTIME):
76180         * m4/sha1.m4 (gl_SHA1):
76181         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76182         * m4/stat-macros.m4 (gl_STAT_MACROS):
76183         * m4/stat-time.m4 (gl_STAT_TIME):
76184         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76185         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76186         * m4/strdup.m4 (gl_FUNC_STRDUP):
76187         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76188         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76189         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76190         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76191         * m4/time_r.m4 (gl_TIME_R):
76192         * m4/timespec.m4 (gl_TIMESPEC):
76193         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76194         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76195         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76196         * m4/userspec.m4 (gl_USERSPEC):
76197         * m4/utimecmp.m4 (gl_UTIMECMP):
76198         * m4/utimens.m4 (gl_UTIMENS):
76199         * m4/xalloc.m4 (gl_XALLOC):
76200         * m4/xgetcwd.m4 (gl_XGETCWD):
76201         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76202         * m4/xreadlink.m4 (gl_XREADLINK):
76203         * m4/xstrtod.m4 (gl_XSTRTOD):
76204         * m4/yesno.m4 (gl_YESNO):
76205         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76206         to get the necessary .h files and whatnot.
76207
76208 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76209             Bruno Haible  <bruno@clisp.org>
76210
76211         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76212         /bin/sh understanding of '!' conditional negation.
76213
76214 2006-08-21  Jim Meyering  <jim@meyering.net>
76215
76216         * modules/openat (Depends-on): Really alphabetize.
76217
76218         * modules/acl (Depends-on): Add error and quote.
76219
76220         * check-module (find_included_lib_files): Add at-func.c to the
76221         ok-to-include-more-than-once white list.
76222
76223         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76224
76225 2006-08-21  Bruno Haible  <bruno@clisp.org>
76226
76227         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76228         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76229         Reported by Martin Lambers <marlam@marlam.de>.
76230
76231 2006-08-21  Bruno Haible  <bruno@clisp.org>
76232
76233         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76234         specify an installation location, don't emit a noinst_LIBRARIES or
76235         noinst_LTLIBRARIES assignment.
76236
76237 2006-08-21  Bruno Haible  <bruno@clisp.org>
76238
76239         BeOS portability.
76240         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76241         BeOS has mbrtowc() but no <wctype.h>.
76242
76243 2006-08-21  Bruno Haible  <bruno@clisp.org>
76244
76245         BeOS portability.
76246         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76247         exist.
76248
76249 2006-08-21  Bruno Haible  <bruno@clisp.org>
76250
76251         BeOS portability.
76252         * lib/mbchar.h: Include <wctype.h> only if it exists.
76253
76254 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76255
76256         Remove files that are no longer needed by their respective modules.
76257         * m4/obstack.m4: Remove.
76258         * m4/strerror_r.m4: Remove.
76259         * m4/uint32_t.m4: Remove.
76260         * m4/uintptr_t.m4: Remove.
76261         * m4/ullong_max.m4: Remove.
76262         * m4/xstrtoimax.m4: Remove.
76263         * m4/xstrtoumax.m4: Remove.
76264
76265         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76266         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76267         dependencies now capture this.
76268
76269         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76270         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76271         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76272         * m4/human.m4 (gl_HUMAN): Likewise.
76273         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76274         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76275
76276         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76277
76278         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76279         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76280         stdint.
76281         * m4/human.m4 (gl_HUMAN): Likewise.
76282         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76283         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76284         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76285         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76286         * m4/xstrtol (gl_XSTRTOL): Likewise.
76287
76288         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76289         AC_TYPE_LONG_LONG_INT.
76290         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76291         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76292         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76293         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76294
76295         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76296         on stdbool.
76297
76298         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76299         (gl_PREREQ_XSTRTOUL): Remove.
76300
76301         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76302
76303         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76304         mode.
76305
76306 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76307
76308         Add and change modules to make it easier for coreutils to use
76309         gnulib-tool.
76310         * modules/backupfile (Files): Remove m4/d-ino.m4.
76311         (Depends-on): Add d-ino.
76312         * modules/cycle-check (Depends-on): Add stdint.
76313         (lib_SOURCES): Add cycle-check.h.
76314         * modules/d-ino: New module.
76315         * modules/d-type: New module.
76316         * modules/error (Files): Remove m4/strerror_r.m4.
76317         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76318         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76319         m4/inttypes_h.m4, m4/uintmax_t.m4.
76320         (Depends-on): Add stdint.
76321         (lib_SOURCES): Add fsusage.h.
76322         * modules/getcwd (Files): Remove d-ino.m4.
76323         (Depends-on): Add d-ino.
76324         * modules/getndelim2 (Depends-on): Add stdint.
76325         * modules/glob (Files): Remove m4/d-type.m4.
76326         (Depends-on): Add d-type.
76327         * modules/host-os: New module.
76328         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76329         m4/inttypes_h.m4, m4/uintmax_t.m4.
76330         * Depends-on: Add stdint.
76331         (lib_SOURCES): Add human.h.
76332         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76333         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76334         m4/uintmax_t.m4, m4/ulonglong.m4.
76335         (Depends-on): Add stdint.
76336         (EXTRA_DIST): Add inttostr.h.
76337         * modules/lchmod: New module.
76338         * modules/link-follow: New module.
76339         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76340         (Depends-on): Add lchmod.
76341         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76342         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76343         (Depends-on): Add stdint.
76344         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76345         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76346         (Depends-on): Add stdint.
76347         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76348         * modules/perl: New module.
76349         * modules/regex (Depends-on): Add stdint.
76350         * modules/rmdir-errno: New module.
76351         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76352         m4/intmax_t.m4.
76353         (Depends-on): Add stdint.
76354         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76355         m4/uintmax_t.m4.
76356         (Depends-on): Add stdint.
76357         * modules/unlink-busy: New module.
76358         * modules/utimecmp (Depends-on): Add stdint.
76359         * modules/uptime: New module.
76360         * modules/winsz-ioctl: New module.
76361         * modules/winsz-termios: New module.
76362         * modules/xnanosleep (Depends-on): Add nanosleep.
76363         * modules/ullong_max: Remove.
76364         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76365         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76366         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76367         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76368         (Depends-on): Add inttypes.
76369         (lib_SOURCES): Add xstrtol.h.
76370         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76371         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76372         * MODULES.html.sh: Move 'assert' into the assert section.
76373         Move 'dummy' into the linking section.
76374         Remove ullong_max.
76375         Add section for compatibility checks for POSIX:2001 functions,
76376         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76377         winsz-ioctl, and winsz-termios into it.
76378         Add lchmod.
76379         Add top-level Misc section and put host-os, perl, and uptime
76380         into it.
76381
76382 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76383
76384         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76385         now assume the stdint module.  Do not include inttypes.h.
76386         * lib/fsusage.h: Likewise.
76387         * lib/getndelim2.c: Likewise.
76388         * lib/human.h: Likewise.
76389         * lib/inttostr.h: Likewise.
76390         * lib/obstack.c: Likewise.
76391         * lib/regex_internal.h: Likewise.
76392         * lib/tempname.c: Likewise.
76393         * lib/utimecmp.c: Likewise.
76394         * lib/xstrtol.h: Likewise.
76395
76396         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76397
76398         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76399         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76400         * lib/xtime.h: Likewise.
76401
76402 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76403
76404         * modules/openat (Files): Add lib/fchmodat.c.
76405         Fixes problem reported by Jay Youngman.
76406
76407 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76410         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76411
76412 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76413             Bruno Haible  <bruno@clisp.org>
76414
76415         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76416         and is a script that invokes bison. Tighten the code. Add comments.
76417
76418 2006-08-18  Jim Meyering  <jim@meyering.net>
76419
76420         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76421         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76422         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76423         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76424
76425 2006-08-18  Bruno Haible  <bruno@clisp.org>
76426
76427         * modules/bison-i18n: New file.
76428         * MODULES.html.sh (Internationalization functions): Add it.
76429
76430 2006-08-18  Bruno Haible  <bruno@clisp.org>
76431
76432         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76433         sys/statvfs.h. When getmntinfo was found, check its declaration and
76434         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76435
76436 2006-08-18  Bruno Haible  <bruno@clisp.org>
76437
76438         * m4/bison-i18n.m4: New file, from bison.
76439
76440 2006-08-18  Bruno Haible  <bruno@clisp.org>
76441
76442         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76443         (ME_DUMMY): Treat "kernfs" as a dummy.
76444         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76445
76446 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76447
76448         Update from coreutils.
76449
76450         2006-08-15  Jim Meyering  <jim@meyering.net>
76451
76452         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76453
76454         2006-01-17  Jim Meyering  <jim@meyering.net>
76455
76456         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76457
76458         2006-01-11  Jim Meyering  <jim@meyering.net>
76459
76460         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76461         Check for the lchmod function.
76462
76463 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76464
76465         Update from coreutils.
76466
76467         * lib/__fpending.h: Add copyright notice.
76468         * lib/fprintftime.h: Likewise.
76469         * lib/savedir.c: Use (C) in copyright notice.
76470         * lib/savedir.h: Likewise.
76471
76472         2006-08-15  Jim Meyering  <jim@meyering.net>
76473
76474         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76475         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76476         in support of the EXPECTED_ERRNO macro.
76477         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76478         definitions.  Instead, define the appropriate symbols and include
76479         "at-func.c".
76480         * lib/mkdirat.c (mkdirat): Likewise.
76481         * lib/fchmodat.c (fchmodat): Likewise.
76482         (ENOSYS): Remove definition.
76483         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76484         it.  Don't include "unistd--.h" -- it wasn't ever used.
76485
76486         2006-01-17  Jim Meyering  <jim@meyering.net>
76487
76488         Rewrite fts.c not to change the current working directory,
76489         by using openat, fstatat, fdopendir, etc..
76490
76491         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76492         (HAVE_OPENAT_SUPPORT): Define.
76493         [_LIBC] (fchdir): Don't undef or define; no longer used.
76494         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76495         Now, this `function' always succeeds, and consumes its file descriptor
76496         parameter -- so callers must not close such FDs.  Update callers.
76497         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76498         (diropen): Add parameter, SP.  Adjust all callers.
76499         Implement using diropen_fd, rather than open.
76500         (fts_open): Initialize new member, fts_cwd_fd.
76501         Remove fts_rft-setting code.
76502         (fts_close): Close fts_cwd_fd, if necessary.
76503         (__opendir2): Define in terms of opendir or opendirat,
76504         depending on whether the FST_NOCHDIR flag is set.
76505         (fts_build): Since fts_safe_changedir consumes its FD, and since
76506         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76507         and close the dup'd file descriptor upon failure.
76508         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76509         (fts_safe_changedir): Tweak semantics to reflect that this function
76510         now calls cwd_advance_fd and hence consumes its FD argument.
76511         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76512         [struct FTS] (fts_rft): Remove now-unused member.
76513         [struct FTS] (fts_cycle.state): Improve comment.
76514
76515         * lib/openat.c (openat_needs_fchdir): New function.
76516         * lib/openat.h (openat_needs_fchdir): Declare it.
76517
76518 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76519
76520         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76521         Problem and fix reported by Pádraig Brady in
76522         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76523
76524 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76525
76526         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76527
76528 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76529
76530         * lib/memcoll.c (memcoll): Optimize for the common case where the
76531         arguments are bytewise equal.
76532
76533 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76534
76535         * doc/regexprops-generic.texi: Add a copyright notice.
76536
76537 2006-08-15  Bruno Haible  <bruno@clisp.org>
76538
76539         * modules/tmpdir (License): Change to LGPL.
76540
76541 2006-08-15  Bruno Haible  <bruno@clisp.org>
76542
76543         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76544         module.
76545
76546 2006-08-14  Simon Josefsson  <jas@extundo.com>
76547
76548         * config/srclist.txt: Add gnupload.
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         * tests/test-lock.c: Likewise.
76555         * tests/test-stdint.c: Likewise.
76556         * tests/test-tls.c: Likewise.
76557
76558         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76559         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76560         Add copyright notice.
76561
76562         * check-module: Add copyright notice.  Output a copyright
76563         notice if "--version" is specified.
76564         * modules/COPYING: New file.
76565         * tests/test-getaddrinfo.c: Add copyright notice.
76566         * tests/test-verify.c: Likewise.
76567
76568 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76569
76570         Change copyright notice from LGPL 2 to GPL 2, since that's the
76571         standard form used in the gnulib repository.
76572         * lib/lock.c: LGPL -> GPL.
76573         * lib/lock.h: Likewise.
76574         * lib/strnlen1.c: Likewise.
76575         * lib/strnlen1.h: Likewise.
76576         * lib/tls.c: Likewise.
76577         * lib/tls.h: Likewise.
76578         * lib/tmpdir.c: Likewise.
76579
76580         * lib/TODO: Remove; this belongs only in coreutils.
76581
76582 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76583
76584         Add copyright notices to long-enough files that lack them, since
76585         otherwise the files aren't clearly free.  Use the same notice that
76586         getdate.texi already uses.
76587         * doc/alloca-opt.texi: Add copyright notice.
76588         * doc/alloca.texi: Likewise.
76589         * doc/ctime.texi: Likewise.
76590         * doc/functions.texi: Likewise.
76591         * doc/gcd.texi: Likewise.
76592         * doc/gnulib-tool.texi: Likewise.
76593         * doc/inet_ntoa.texi: Likewise.
76594         * doc/visibility.texi: Likewise.
76595
76596         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76597         * doc/quote.texi: Add copyright notice.
76598
76599         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76600         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76601         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76602         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76603         is now obsolete, and give a pointer to the Sun list.
76604         Add copyright notice.
76605
76606 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76607
76608         * config/srclistvars.sh: Add copyright notice.
76609
76610 2006-08-14  Eric Blake  <ebb9@byu.net>
76611
76612         Import the following change from libc:
76613
76614         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76615
76616         Upstream bug 2997.
76617         * lib/misc/error.c: Add space between program name and message if file
76618         name is missing.
76619
76620 2006-08-12  Karl Berry  <karl@gnu.org>
76621
76622         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76623         remove, these originate in gnulib now.
76624
76625 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76626
76627         * doc/Makefile (standards.info standards.html standards.dvi):
76628         Also depend on make-stds.texi.
76629
76630 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76631
76632         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76633         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76634
76635         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76636         in wchar_t.  Problem reported by Eric Blake.
76637
76638         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76639         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76640         Also, help the compiler to keep LEN in a register.
76641
76642 2006-08-11  Eric Blake  <ebb9@byu.net>
76643
76644         * users.txt: Sort.  Add tar.
76645
76646 2006-08-11  Bruno Haible  <bruno@clisp.org>
76647
76648         * users.txt: New file.
76649
76650 2006-08-11  Bruno Haible  <bruno@clisp.org>
76651
76652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76653         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76654
76655 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         * modules/snprintf (Depends-on): Remove minmax.
76658         (Maintainer): Add self and Bruno.
76659
76660 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76661
76662         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76663         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76664         (EOVERFLOW): Define if the system does not.
76665         Do not include "minmax.h"; it wasn't used.
76666         (snprintf): Don't assume size_t promotes to an unsigned type.
76667         Fix bug when generated string was too long for the buffer: the
76668         buffer's contents are supposed to be the initial prefix of the
76669         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76670         exceeds INT_MAX; do the check ourselves.
76671
76672         Import the following changes from libc:
76673
76674         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76675
76676         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76677         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76678         set wc to the byte which couldn't be converted.
76679         (re_string_reconstruct): Don't clear valid_raw_len before calling
76680         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76681         tip_context using re_string_context_at.
76682
76683         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76684
76685         * lib/posix/regex.h: g++ still cannot handled [restrict].
76686
76687         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76688
76689         * lib/posix/regex.h: Remove special handling for VMS.
76690
76691 2006-08-10  Jim Meyering  <jim@meyering.net>
76692
76693         * modules/same-inode: New module.
76694         * modules/dev-ino: New module.
76695         * modules/cycle-check: Depend on these modules, rather than simply
76696         including their .h files.
76697         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76698         required via m4/cycle-check.m4.
76699         * modules/same: Depend on new same-inode module, rather than
76700         including same-inode.h.
76701         * modules/chdir-safer: New file.
76702
76703         * modules/chown (Depends-on): Add stat-macros.
76704
76705 2006-08-10  Jim Meyering  <jim@meyering.net>
76706
76707         * m4/cycle-check.m4: New file.
76708         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76709         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76710
76711 2006-08-10  Eric Blake  <ebb9@byu.net>
76712
76713         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76714         in from original proposal.
76715
76716 2006-08-10  Eric Blake  <ebb9@byu.net>
76717         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76718
76719         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76720         namespace.
76721
76722 2006-08-10  Bruno Haible  <bruno@clisp.org>
76723
76724         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76725         as well.
76726
76727 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76728
76729         Sync from coreutils.
76730
76731         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76732
76733         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76734         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76735
76736 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76737
76738         * modules/restrict: Remove; no longer needed now that we assume
76739         Autoconf 2.59 or later.
76740         * MODULES.html.sh: Remove 'restrict'.
76741         * modules/argp (Depends-on): Remove 'restrict'.
76742         * modules/base64 (Depends-on): Likewise.
76743         * modules/gc (Depends-on): Likewise.
76744         * modules/getaddrinfo (Depends-on): Likewise.
76745         * modules/glob (Depends-on): Likewise.
76746         * modules/inet_ntop (Depends-on): Likewise.
76747         * modules/inet_pton (Depends-on): Likewise.
76748         * modules/memxor (Depends-on): Likewise.
76749         * modules/regex (Depends-on): Likewise.
76750         * modules/strtok_r (Depends-on): Likewise.
76751         * modules/time_r (Depends-on): Likewise.
76752
76753 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76754
76755         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76756         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76757         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76758         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76759         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76760         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76761         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76762         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76763
76764         Merge from coreutils.
76765         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76766         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76767         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76768         * m4/time_r.m4 (gl_TIME_R): Likewise.
76769
76770 2006-08-09  Karl Berry  <karl@gnu.org>
76771
76772         * config/srclist.txt: no more gettext-tools, per Bruno.
76773
76774 2006-08-08  Eric Blake  <ebb9@byu.net>
76775
76776         * modules/verror: New module.
76777         * MODULES.html.sh: Document it.
76778
76779 2006-08-08  Eric Blake  <ebb9@byu.net>
76780
76781         * lib/verror.h, lib/verror.c: New files.
76782
76783 2006-08-08  Eric Blake  <ebb9@byu.net>
76784
76785         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76786         verror_at_line output complies with GNU Coding Standards even when
76787         file is NULL.
76788
76789 2006-08-07  Bruno Haible  <bruno@clisp.org>
76790
76791         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76792         versions of AIX.
76793         Reported by Ralf Wildenhues.
76794
76795 2006-08-07  Bruno Haible  <bruno@clisp.org>
76796
76797         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76798         in an AC_DEFUN. Needed so that the autoconf snippets can use
76799         AC_REQUIRE.
76800
76801 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76802
76803         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76804         Initialize pkgdata_DATA.
76805         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76806         overriding it.
76807
76808 2006-08-06  Eric Blake  <ebb9@byu.net>
76809
76810         * lib/error.h: Fold in some upstream changes from glibc.
76811         * lib/error.c: Likewise.
76812
76813 2006-08-04  Bruno Haible  <bruno@clisp.org>
76814
76815         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76816         Make the mostlyclean-local rule depend on mostlyclean-generic.
76817         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76818
76819 2006-07-31  Bruno Haible  <bruno@clisp.org>
76820
76821         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76822         <stdlib.h>, <string.h>.
76823
76824 2006-07-30  Bruno Haible  <bruno@clisp.org>
76825
76826         * modules/readlink (License): Change to LGPL.
76827
76828 2006-07-30  Bruno Haible  <bruno@clisp.org>
76829
76830         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76831         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76832         set PKGDATADIR to point to it.
76833
76834 2006-07-30  Bruno Haible  <bruno@clisp.org>
76835
76836         * modules/csharpexec (configure.ac): Comment out macro invocation.
76837         * modules/javaexec (configure.ac): Likewise.
76838         * modules/javacomp-script (configure.ac): Likewise.
76839
76840         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76841
76842 2006-07-30  Bruno Haible  <bruno@clisp.org>
76843
76844         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76845         linked-list.
76846
76847 2006-07-30  Bruno Haible  <bruno@clisp.org>
76848
76849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76850
76851 2006-07-30  Bruno Haible  <bruno@clisp.org>
76852
76853         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76854         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76855         get removed.
76856
76857 2006-07-29  Bruno Haible  <bruno@clisp.org>
76858
76859         Make it possible for gnulib-tool to work with locally modified or
76860         augmented gnulib repositories.
76861         * gnulib-tool (func_usage): Document --local-dir option.
76862         (local_gnulib_dir): New variable.
76863         Handle --local-dir option.
76864         (func_lookup_file): New function.
76865         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76866         (func_get_description, func_get_filelist, func_get_description,
76867         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76868         func_get_automake_snippet, func_get_include_directive,
76869         func_get_license, func_get_maintainer): Use func_lookup_file.
76870         (func_import, func_create_testdir): Use func_lookup_file.
76871
76872 2006-07-29  Bruno Haible  <bruno@clisp.org>
76873
76874         * modules/setenv (Depends-on): Add unistd.
76875
76876 2006-07-29  Bruno Haible  <bruno@clisp.org>
76877
76878         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76879
76880 2006-07-29  Bruno Haible  <bruno@clisp.org>
76881
76882         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76883
76884 2006-07-29  Bruno Haible  <bruno@clisp.org>
76885
76886         * gnulib-tool (import, update): If there is no Makefile.am, look at
76887         aclocal.m4, instead of bailing out.
76888
76889 2006-07-29  Bruno Haible  <bruno@clisp.org>
76890
76891         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76892         Categorize the options by when they are useful.
76893
76894 2006-07-29  Bruno Haible  <bruno@clisp.org>
76895
76896         * gnulib-tool (func_usage): Document option --no-libtool.
76897         Handle option --no-libtool.
76898         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76899         for changed semantics of $libtool variable.
76900         (func_import): Likewise. If libtool is not used, show this through
76901         an option --no-libtool.
76902         (func_create_testdir): Update.
76903
76904 2006-07-29  Bruno Haible  <bruno@clisp.org>
76905
76906         * gnulib-tool (func_import): Extend error message about missing
76907         --doc-base.
76908
76909 2006-07-29  Bruno Haible  <bruno@clisp.org>
76910
76911         * gnulib-tool (func_import): Don't create the $docbase directory if
76912         there is no file to store there.
76913
76914 2006-07-29  Bruno Haible  <bruno@clisp.org>
76915
76916         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76917         relevant, look for configure.ac there, not in the current directory.
76918         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76919
76920 2006-07-29  Bruno Haible  <bruno@clisp.org>
76921
76922         * gnulib-tool (SORT): New variable.
76923         (func_usage): Undocument --assume-autoconf option.
76924         Remove --assume-autoconf option handling.
76925         (autoconf_minversion): Determine from the contents of configure.ac.
76926         (func_import): Remove autoconf_minversion handling.
76927         Suggested by Eric Blake.
76928
76929 2006-07-29  Bruno Haible  <bruno@clisp.org>
76930
76931         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76932
76933 2006-07-29  Bruno Haible  <bruno@clisp.org>
76934
76935         * config/srclist.txt (*setenv.[ch]): Remove rules.
76936
76937 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76938
76939         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76940
76941 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76942
76943         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76944         arpa/inet.h.
76945
76946 2006-07-28  Simon Josefsson  <jas@extundo.com>
76947
76948         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76949         * modules/inet_pton (Depends-on): Likewise.
76950
76951 2006-07-28  Simon Josefsson  <jas@extundo.com>
76952
76953         * m4/netinet_in_h.m4: New file.
76954
76955 2006-07-28  Simon Josefsson  <jas@extundo.com>
76956
76957         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76958         #include's.
76959
76960 2006-07-28  Simon Josefsson  <jas@extundo.com>
76961
76962         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76963         #include's.
76964
76965 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76966
76967         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76968         setgid on directories only if they set these bits.
76969         * lib/modechange.h: Remove obsolete comment about masks.
76970
76971 2006-07-28  Eric Blake  <ebb9@byu.net>
76972
76973         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76974         macro expansion.
76975
76976 2006-07-28  Bruno Haible  <bruno@clisp.org>
76977
76978         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76979
76980 2006-07-28  Bruno Haible  <bruno@clisp.org>
76981
76982         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76983
76984 2006-07-28  Bruno Haible  <bruno@clisp.org>
76985
76986         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76987         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76988         Define fallbacks.
76989         Avoids link error on FreeBSD 4.x.
76990         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76991
76992         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76993         encoding.
76994         * lib/mbswidth.c (iswcntrl): Likewise.
76995
76996 2006-07-27  Bruno Haible  <bruno@clisp.org>
76997
76998         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76999         test.
77000
77001 2006-07-27  Bruno Haible  <bruno@clisp.org>
77002
77003         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77004         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77005         defined.
77006
77007 2006-07-26  Eric Blake  <ebb9@byu.net>
77008
77009         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77010
77011 2006-07-26  Eric Blake  <ebb9@byu.net>
77012
77013         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77014         like mingw that lack mkstemp.
77015         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77016         avoid compilation warning on mingw.
77017
77018 2006-07-26  Bruno Haible  <bruno@clisp.org>
77019
77020         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77021         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77022         INT_FAST*_MIN, INTPTR_MIN.
77023
77024 2006-07-25  Bruno Haible  <bruno@clisp.org>
77025
77026         * modules/version-etc (Depends-on): Add stdarg.
77027
77028 2006-07-25  Bruno Haible  <bruno@clisp.org>
77029
77030         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77031         complex commands.
77032
77033 2006-07-25  Bruno Haible  <bruno@clisp.org>
77034
77035         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77036         defined in <stdarg.h> or config.h.
77037
77038 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77041         (gl_STDIO_SAFER): Remove.
77042
77043 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77044
77045         * MODULES.html.sh (File stream based Input/Output):
77046         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77047         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77048         * modules/fopen-safer, modules/tmpfile-safer: New files.
77049         * modules/stdio-safer: Remove.
77050
77051 2006-07-24  Bruno Haible  <bruno@clisp.org>
77052
77053         * modules/tmpdir: New file.
77054         * MODULES.html.sh (File system functions): Add it.
77055
77056 2006-07-24  Bruno Haible  <bruno@clisp.org>
77057
77058         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77059         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77060
77061 2006-07-24  Bruno Haible  <bruno@clisp.org>
77062
77063         * modules/clean-temp: New file.
77064
77065 2006-07-24  Bruno Haible  <bruno@clisp.org>
77066
77067         * m4/tmpdir.m4: New file, from GNU gettext.
77068
77069 2006-07-24  Bruno Haible  <bruno@clisp.org>
77070
77071         * lib/tmpdir.h: New file, from GNU gettext.
77072         * lib/tmpdir.c: New file, from GNU gettext.
77073
77074 2006-07-24  Bruno Haible  <bruno@clisp.org>
77075
77076         * lib/clean-temp.h: New file, from GNU gettext.
77077         * lib/clean-temp.c: New file, from GNU gettext.
77078
77079 2006-07-23  Eric Blake  <ebb9@byu.net>
77080
77081         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77082         (Depends-on): Add binary-io.
77083
77084 2006-07-23  Eric Blake  <ebb9@byu.net>
77085
77086         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77087
77088 2006-07-23  Eric Blake  <ebb9@byu.net>
77089
77090         * lib/tmpfile-safer.c: New file.
77091         * lib/stdio-safer.h (fopen_safer): Add prototype.
77092         * lib/stdio--.h (tmpfile): Make safer.
77093
77094 2006-07-23  Bruno Haible  <bruno@clisp.org>
77095
77096         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77097         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77098         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77099         gl_linked_remove_at): Use it.
77100
77101 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77102         and Simon Josefsson <jas@extundo.com>
77103
77104         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77105
77106         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77107
77108 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         * modules/close-stream: New file.
77111         * modules/closeout (Description): Make it clear that it exits
77112         with a diagnostic on error.
77113         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77114         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77115
77116 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77117
77118         * m4/close-stream.m4: New file.
77119
77120 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * lib/close-stream.c, lib/close-stream.h: New files.
77123
77124 2006-07-22  Bruno Haible  <bruno@clisp.org>
77125
77126         Merge from GNU gettext 0.15.
77127
77128         2006-05-01  Bruno Haible  <bruno@clisp.org>
77129
77130                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77131
77132         2006-07-22  Bruno Haible  <bruno@clisp.org>
77133
77134                 * modules/javaversion: New file.
77135                 * MODULES.html.sh (Java): Add javaversion.
77136
77137         2006-03-12  Bruno Haible  <bruno@clisp.org>
77138
77139                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77140
77141         2005-12-04  Bruno Haible  <bruno@clisp.org>
77142
77143                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77144                 (untested).
77145
77146         2006-06-21  Bruno Haible  <bruno@clisp.org>
77147
77148                 Avoid warnings from recent versions of mcs.
77149                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77150                 -o, -L, -r any more. Use options documented since mcs-1.0
77151                 instead. Similarly for -g.
77152
77153         2005-12-04  Bruno Haible  <bruno@clisp.org>
77154
77155                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77156                 .resources, not .resource.
77157
77158         2005-07-09  Bruno Haible  <bruno@clisp.org>
77159
77160                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77161                 add a .dll suffix.
77162                 Reported by Mark Junker <mjscod@gmx.de>.
77163
77164         2006-07-22  Bruno Haible  <bruno@clisp.org>
77165
77166                 * modules/gettext: Upgrade to gettext-0.15.
77167                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77168                 m4/visibility.m4.
77169                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77170
77171 2006-07-22  Bruno Haible  <bruno@clisp.org>
77172
77173         Merge from GNU gettext 0.15.
77174
77175         2006-03-25  Bruno Haible  <bruno@clisp.org>
77176
77177                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77178
77179         2006-07-21  Bruno Haible  <bruno@clisp.org>
77180
77181                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77182                 "1.1".
77183
77184         2006-05-09  Bruno Haible  <bruno@clisp.org>
77185
77186                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77187                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77188                 for the conftestver execution.
77189
77190         2006-05-01  Bruno Haible  <bruno@clisp.org>
77191
77192                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77193                 optional target-version argument. Verify that the compiler
77194                 groks source of the specified source-version, or add -source
77195                 option as necessary. Verify that the compiler produces
77196                 bytecode in the specified target-version, or add -target and
77197                 -source options as necessary. Make the result of the test
77198                 available as variable CONF_JAVAC. Also log error output in
77199                 config.log.
77200
77201         2006-03-11  Bruno Haible  <bruno@clisp.org>
77202
77203                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77204
77205         2006-05-09  Bruno Haible  <bruno@clisp.org>
77206
77207                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77208                 CLASSPATH_SEPARATOR to a semicolon.
77209
77210         2006-03-12  Bruno Haible  <bruno@clisp.org>
77211
77212                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77213                 available as variable CONF_JAVA, for subsequent autoconf
77214                 tests. Also log error output in config.log.
77215
77216         2006-07-19  Bruno Haible  <bruno@clisp.org>
77217
77218                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77219                 that getline works on glibc2 systems. Needed to avoid trouble
77220                 in relocatable.c.
77221                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77222
77223         2005-12-04  Bruno Haible  <bruno@clisp.org>
77224
77225                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77226                 launcher (untested).
77227
77228         2005-12-04  Bruno Haible  <bruno@clisp.org>
77229
77230                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77231
77232         2006-07-22  Bruno Haible  <bruno@clisp.org>
77233
77234                 * gettext.m4: Update from GNU gettext-0.15.
77235                 * nls.m4: Likewise.
77236                 * po.m4: Likewise.
77237                 * inttypes-pri.m4: Likewise.
77238                 * inttypes-h.m4: Renamed from inttypes.m4.
77239                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77240
77241 2006-07-22  Bruno Haible  <bruno@clisp.org>
77242
77243         Merge from GNU gettext 0.15.
77244
77245         2005-07-05  Bruno Haible  <bruno@clisp.org>
77246
77247                 * printf-args.c (printf_fetchargs): Work around broken
77248                 definition of wint_t on mingw.
77249
77250         2005-02-12  Bruno Haible  <bruno@clisp.org>
77251
77252                 * xallocsa.h: Add extern "C" for C++.
77253
77254         2006-05-17  Bruno Haible  <bruno@clisp.org>
77255
77256                 Cygwin portability.
77257                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77258
77259         2006-04-30  Bruno Haible  <bruno@clisp.org>
77260
77261                 * progreloc.c: Include <mach-o/dyld.h> if available.
77262                 (find_executable): Use _NSGetExecutablePath when possible.
77263
77264         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77265
77266                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77267                 function.
77268
77269         2005-12-29  Bruno Haible  <bruno@clisp.org>
77270
77271                 * progreloc.c (set_program_name_and_installdir): Fix
77272                 compilation error.
77273
77274         2005-12-04  Bruno Haible  <bruno@clisp.org>
77275
77276                 Cygwin portability.
77277                 * progreloc.c: Include <windows.h> also on Cygwin.
77278                 (find_executable): Add support for Cygwin.
77279                 (set_program_name_and_installdir): Handle also platforms with
77280                 nonempty EXEEXT.
77281
77282         2006-07-11  Bruno Haible  <bruno@clisp.org>
77283
77284                 * javacomp.c: Fix a comment.
77285                 Reported by Jim Meyering.
77286
77287         2006-04-30  Bruno Haible  <bruno@clisp.org>
77288
77289                 * javacomp.h (compile_java_class): Add source_version,
77290                 target_version arguments.
77291                 * javacomp.c: Rewritten to choose only a compiler that
77292                 respects the specified source_version and target_version.
77293
77294         2006-06-27  Bruno Haible  <bruno@clisp.org>
77295
77296                 Assume correct S_ISDIR macro.
77297                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77298
77299         2006-07-22  Bruno Haible  <bruno@clisp.org>
77300
77301                 * javaversion.h: New file, from GNU gettext.
77302                 * javaversion.c: New file, from GNU gettext.
77303                 * javaversion.java: New file, from GNU gettext.
77304                 * javaversion.class: New file, from GNU gettext.
77305
77306         2006-05-17  Bruno Haible  <bruno@clisp.org>
77307
77308                 Cygwin portability.
77309                 * javaexec.c (execute_java_class): Test for jview program
77310                 also on Cygwin.
77311
77312         2006-04-09  Bruno Haible  <bruno@clisp.org>
77313
77314                 * fatal-signal.c: Don't include string.h.
77315                 (at_fatal_signal): Use a copying loop instead of memcpy.
77316
77317         2005-12-04  Bruno Haible  <bruno@clisp.org>
77318
77319                 * csharpexec.c: Add support for 'clix' launcher (untested).
77320                 (execute_csharp_using_sscli): New function.
77321                 (execute_csharp_program): Call it.
77322
77323         2006-06-21  Bruno Haible  <bruno@clisp.org>
77324
77325                 Avoid warnings from recent versions of mcs.
77326                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77327                 -o, -L, -r any more. Use options documented since mcs-1.0
77328                 instead. Similarly for -g.
77329
77330         2005-07-09  Bruno Haible  <bruno@clisp.org>
77331
77332                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77333                 add a .dll suffix.
77334                 Reported by Mark Junker <mjscod@gmx.de>.
77335
77336         2006-06-17  Bruno Haible  <bruno@clisp.org>
77337
77338                 * config.charset: Update for NetBSD 3.0.
77339
77340         2006-05-17  Bruno Haible  <bruno@clisp.org>
77341
77342                 Cygwin portability.
77343                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77344
77345         2006-05-16  Bruno Haible  <bruno@clisp.org>
77346
77347                 * localcharset.c [CYGWIN]: Include <windows.h>.
77348                 (get_charset_aliases): For Cygwin, return the same CPxxx
77349                 aliases list as under WIN32.
77350                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77351                 the environment variables. Fall back to GetACP().
77352
77353         2006-04-05  Bruno Haible  <bruno@clisp.org>
77354
77355                 * config.charset: Update Juan Manuel Guerrero's address.
77356
77357         2005-02-12  Bruno Haible  <bruno@clisp.org>
77358
77359                 * allocsa.h: Add extern "C" for C++.
77360
77361         2005-02-10  Bruno Haible  <bruno@clisp.org>
77362
77363                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77364                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77365
77366         2006-07-22  Bruno Haible  <bruno@clisp.org>
77367
77368                 * gettext.h: Update to GNU gettext-0.15.
77369
77370 2006-07-22  Bruno Haible  <bruno@clisp.org>
77371
77372         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77373         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77374         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77375
77376 2006-07-21  Eric Blake  <ebb9@byu.net>
77377
77378         * modules/stdlib-safer: New file.
77379         * MODULES.html.sh (File stream based Input/Output): Add
77380         stdlib-safer.
77381
77382 2006-07-21  Eric Blake  <ebb9@byu.net>
77383
77384         * lib/stdlib-safer.h: New file from coreutils, required by
77385         stdlib--.h.
77386
77387 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77388
77389         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77390
77391 2006-07-20  Bruno Haible  <bruno@clisp.org>
77392
77393         * gnulib-tool: Recognize new option --assume-autoconf.
77394         (autoconf_minversion): New variable.
77395         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77396
77397 2006-07-20  Bruno Haible  <bruno@clisp.org>
77398
77399         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77400
77401 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77402
77403         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77404         Reindent and repaginate.
77405
77406 2006-07-19  Derek Price  <derek@ximbiot.com>
77407
77408         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77409         Correct grammar.
77410
77411 2006-07-17  Bruno Haible  <bruno@clisp.org>
77412
77413         * modules/list: New file.
77414         * modules/array-list: New file.
77415         * modules/carray-list, modules/carray-list-tests: New files.
77416         * modules/linked-list, modules/linked-list-tests: New files.
77417         * modules/avltree-list, modules/avltree-list-tests: New files.
77418         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77419         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77420         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77421         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77422         * modules/oset: New file.
77423         * modules/array-oset: New file.
77424         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77425         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77426         * tests/test-carray_list.c: New file.
77427         * tests/test-linked_list.c: New file.
77428         * tests/test-avltree_list.c: New file.
77429         * tests/test-rbtree_list.c: New file.
77430         * tests/test-linkedhash_list.c: New file.
77431         * tests/test-avltreehash_list.c: New file.
77432         * tests/test-rbtreehash_list.c: New file.
77433         * tests/test-avltree_oset.c: New file.
77434         * tests/test-rbtree_oset.c: New file.
77435         * MODULES.html.sh (Container data structures): New section.
77436
77437 2006-07-17  Bruno Haible  <bruno@clisp.org>
77438
77439         * m4/gl_list.m4: New file.
77440
77441 2006-07-17  Bruno Haible  <bruno@clisp.org>
77442
77443         * lib/gl_list.h: New file.
77444         * lib/gl_list.c: New file.
77445         * lib/gl_array_list.h: New file.
77446         * lib/gl_array_list.c: New file.
77447         * lib/gl_carray_list.h: New file.
77448         * lib/gl_carray_list.c: New file.
77449         * lib/gl_linked_list.h: New file.
77450         * lib/gl_linked_list.c: New file.
77451         * lib/gl_anylinked_list1.h: New file.
77452         * lib/gl_anylinked_list2.h: New file.
77453         * lib/gl_avltree_list.h: New file.
77454         * lib/gl_avltree_list.c: New file.
77455         * lib/gl_anyavltree_list1.h: New file.
77456         * lib/gl_anyavltree_list2.h: New file.
77457         * lib/gl_rbtree_list.h: New file.
77458         * lib/gl_rbtree_list.c: New file.
77459         * lib/gl_anyrbtree_list1.h: New file.
77460         * lib/gl_anyrbtree_list2.h: New file.
77461         * lib/gl_anytree_list1.h: New file.
77462         * lib/gl_anytree_list2.h: New file.
77463         * lib/gl_linkedhash_list.h: New file.
77464         * lib/gl_linkedhash_list.c: New file.
77465         * lib/gl_anyhash_list1.h: New file.
77466         * lib/gl_anyhash_list2.h: New file.
77467         * lib/gl_avltreehash_list.h: New file.
77468         * lib/gl_avltreehash_list.c: New file.
77469         * lib/gl_rbtreehash_list.h: New file.
77470         * lib/gl_rbtreehash_list.c: New file.
77471         * lib/gl_anytreehash_list1.h: New file.
77472         * lib/gl_anytreehash_list2.h: New file.
77473
77474         * lib/gl_oset.h: New file.
77475         * lib/gl_oset.c: New file.
77476         * lib/gl_array_oset.h: New file.
77477         * lib/gl_array_oset.c: New file.
77478         * lib/gl_avltree_oset.h: New file.
77479         * lib/gl_avltree_oset.c: New file.
77480         * lib/gl_rbtree_oset.h: New file.
77481         * lib/gl_rbtree_oset.c: New file.
77482         * lib/gl_anytree_oset.h: New file.
77483
77484 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77485
77486         * m4/mkancesdirs.m4: New file.
77487         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77488         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77489         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77490         it.
77491
77492 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77493
77494         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77495         * lib/mkancesdirs.h: New files.
77496         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77497         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77498         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77499         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77500         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77501         callers changed.  Revamp internals significantly, by not
77502         attempting to create directories that are temporarily more
77503         permissive than the final results.  Do not attempt to use
77504         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77505         This removes some race conditions, fixes some bugs, and simplifies
77506         things.  Use new dirchownmod function to do owner and mode changes.
77507         * lib/mkdir-p.h: Likewise.
77508         * lib/modechange.c (octal_to_mode): New function.
77509         (struct mode_change): New member mentioned.
77510         (make_node_op_equals): New arg mentioned.  All callers changed.
77511         (mode_compile): Keep track of which mode bits the user has explicitly
77512         mentioned.
77513         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77514         New arg PMODE_BITS, to keep track of which mode bits the user
77515         mentioned; it treats S_ISUID and S_ISGID speciall.
77516         All callers changed.
77517         * lib/modechange.h: Likewise.
77518
77519 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * MODULES.html.sh: Add mkancestors.
77522         * modules/mkancesdirs: New module.
77523         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77524         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77525         The chdir-safer and afs files are now orphans; I'll remove them
77526         unless someone speaks up.
77527         Add lib/dirchownmod.c, lib/dirchownmod.h.
77528         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77529         Add lchown, mkancesdirs.
77530         (Maintainer): Add self.
77531
77532 2006-07-15  Karl Berry  <karl@gnu.org>
77533
77534         * gnulib-tool: help message wording/arrangement.
77535
77536 2006-07-14  Simon Josefsson  <jas@extundo.com>
77537
77538         * doc/gnulib.texi (Libtool and Windows): New section.
77539
77540 2006-07-12  Simon Josefsson  <jas@extundo.com>
77541
77542         * modules/gendocs (License): Fix license, approved by Karl.
77543
77544 2006-07-12  Eric Blake  <ebb9@byu.net>
77545
77546         * MODULES.html.sh: Add gendocs.
77547
77548 2006-07-11  Eric Blake  <ebb9@byu.net>
77549
77550         * modules/fdl: New module, to install doc/fdl.texi.
77551         * MODULES.html.sh: Add new section for documentation modules.
77552         * gnulib-tool: Avoid space-tab.
77553         (--doc-base): New option, to manage files from doc.
77554
77555 2006-07-11  Eric Blake  <ebb9@byu.net>
77556
77557         * m4/absolute-header.m4: Fix comments to match recent change.
77558
77559 2006-07-11  Eric Blake  <ebb9@byu.net>
77560
77561         * gnulib-tool: List --doc-base before --tests-base.
77562
77563 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77564
77565         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77566
77567 2006-07-11  Bruno Haible  <bruno@clisp.org>
77568
77569         * README: Mention where to put documentation.
77570
77571 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77572
77573         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77574
77575 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77576
77577         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77578         to stdint.m4.
77579
77580 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77583         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77584         "no/such/file/stdint.h" when there is no such file, so that
77585         the resulting C code can be parsed by dodgy compilers.
77586         Problems reported by Bob Proulx.
77587
77588 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77589
77590         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77591         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77592         macros into the GNU _D_EXACT_NAMLEN.
77593         * lib/savedir.c:  Likewise.
77594         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77595
77596 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77597         and Paul Eggert  <eggert@cs.ucla.edu>
77598
77599         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77600         * m4/savedir.m4:
77601         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77602         macros into the GNU _D_EXACT_NAMLEN.
77603
77604 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77605
77606         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77607         around the absolute name, to work around a problem with the HP-UX
77608         11.23 native C compiler, reported by Bob Proulx.
77609
77610 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77611
77612         * doc/maintain.texi, make-stds.texi: Sync from
77613         <http://savannah.gnu.org/projects/gnustandards>.
77614
77615 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77616
77617         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77618
77619 2006-07-09  Jim Meyering  <jim@meyering.net>
77620
77621         * m4/glob.m4: Remove a doubled word in a comment.
77622
77623 2006-07-09  Jim Meyering  <jim@meyering.net>
77624
77625         * lib/argp-pv.c: Remove a doubled word in a comment.
77626         * lib/check-version.c (check_version): Likewise.
77627         * lib/javacomp.c (compile_java_class): Likewise.
77628
77629 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77630
77631         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77632         for the benefit of people using Autoconf 2.60.  If you want to
77633         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77634         (or m4/onceonly.m4, if pre-2.57) manually.
77635
77636 2006-07-08  Jim Meyering  <jim@meyering.net>
77637
77638         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77639         comment.
77640         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77641         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77642         comment.
77643
77644 2006-07-08  Jim Meyering  <jim@meyering.net>
77645
77646         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77647
77648 2006-07-07  Simon Josefsson  <jas@extundo.com>
77649
77650         * tests/test-crc.c: Change expected crc value, the test vector
77651         were probably computed using the old broken crc.c?
77652
77653 2006-07-06  Simon Josefsson  <jas@extundo.com>
77654
77655         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77656         now the canonical place for the M4 file).
77657
77658         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77659         from the sys_socket dependency now.
77660
77661         * modules/inet_pton (Files): Ditto.
77662
77663         * modules/inet_ntop (Files): Ditto.
77664
77665 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77666
77667         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77668         not gl_PREREQ_GETUSERSHELL.
77669
77670 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77671
77672         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77673         with only one argument, for Autoconf 2.60.
77674         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77675         expand to nothing, so add a shell command to avoid syntax error.
77676         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77677
77678 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77679
77680         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77681
77682 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77683
77684         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77685         no longer needed.  Check for isblank decl.
77686         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77687         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77688         of existence.
77689
77690 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77691
77692         * lib/getloadavg.c: Use __VMS, not VMS.
77693         * lib/getopt.c: Likewise.
77694         * lib/getpagesize.h: Likewise.
77695         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77696         and probably does not work.
77697
77698 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77699
77700         * lib/.cppi-disable: Add wcwidth.
77701         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77702         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77703         (ISGRAPH): Remove.  All uses changed to isgraph.
77704         (FOLD) [!defined _LIBC]: Remove special case.
77705         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77706         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77707         HAVE_ISBLANK.
77708         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77709         case.
77710
77711 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77712
77713         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77714         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77715         brackets.  Other minor changes to suppress some compiler
77716         warnings.
77717
77718 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77719         and Paul Eggert  <eggert@cs.ucla.edu>
77720
77721         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77722         of invoking obsolescent AC_HEADER_DIRENT macro.
77723         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77724         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77725         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77726         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77727         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77728         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77729         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77730         * m4/readdir.m4: Remove; no longer needed.
77731
77732 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77733         and Paul Eggert  <eggert@cs.ucla.edu>
77734
77735         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77736         Don't worry about this obsolete case any more.
77737         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77738         directories.
77739         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77740         worry about this obsolete case any more.
77741         * lib/fts.c: Likewise.
77742         * lib/getcwd.c: Likewise.
77743         * lib/glob.h: Likewise.
77744         * lib/savedir.c: Likewise.
77745
77746 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77747
77748         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77749         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77750         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77751         needed.
77752         All uses removed.
77753         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77754         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77755         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77756         needed.
77757         * m4/getdate.m4 (gl_GETDATE): Likewise.
77758         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77759         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77760         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77761         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77762         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77763         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77764         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77765         needed.
77766
77767 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77768
77769         * lib/memcasecmp.c: Include <limits.h>.
77770         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77771         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77772         Don't assume isdigit succeeds only on '0' through '9'.
77773
77774 2006-07-05  Eric Blake  <ebb9@byu.net>
77775
77776         * modules/getaddrinfo (Depends-on): Add snprintf.
77777
77778 2006-07-05  Eric Blake  <ebb9@byu.net>
77779
77780         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77781         to avoid 'header present but could not be compiled' on cygwin.
77782
77783 2006-07-05  Eric Blake  <ebb9@byu.net>
77784
77785         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77786         missing from netdb.h.
77787         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77788
77789 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77790
77791         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77792         no longer needed.
77793         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77794         * m4/getdate.m4 (gl_GETDATE): Likewise.
77795         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77796         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77797         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77798         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77800
77801 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77802
77803         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77804         All uses of is_space replaced by isspace.
77805         * lib/exit.h: Don't talk about STDC_HEADERS.
77806         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77807         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77808         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77809         replaced by isprint etc.
77810         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77811         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77812         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77813         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77814         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77815         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77816
77817 2006-07-05  Bruno Haible  <bruno@clisp.org>
77818
77819         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77820         the function exists, before testing against AIX.
77821         Reported by Martin Lambers <marlam@marlam.de>.
77822
77823 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77824
77825         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77826         From Mark D. Baushke.
77827
77828 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77831         to the absolute name, not just one, to bypass Sun C 5.8's
77832         "warning: #include of /usr/include/... may be non-portable".
77833
77834 2006-07-04  Eric Blake  <ebb9@byu.net>
77835
77836         * modules/dirname-tests: New test module.
77837         * tests/test-dirname.c: New file, replacing dirname.c
77838         TEST_DIRNAME section that was recently deleted.
77839
77840 2006-07-04  Bruno Haible  <bruno@clisp.org>
77841
77842         Assume ANSI C header files and <ctype.h> functions.
77843         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77844         (mbsnwidth): Use isprint, iscntrl instead.
77845
77846 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77847
77848         Merge from coreutils.
77849         * MODULES.html.sh: Add xstrtold.
77850         * modules/xstrtold: New file.
77851         * modules/cycle-check (Files): Add lib/same-inode.h.
77852         * modules/dirname (Files): Add m4/double-slash-root.m4.
77853         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77854         * modules/mkdir-p (Files): Add lib/same-inode.h.
77855         * modules/same (Files): Add lib/same-inode.h.
77856
77857 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77858
77859         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77860         This is to keep the terminology clean; POSIX talks about
77861         "absolute pathnames", not "full pathnames", but the GNU
77862         Coding Standards say to use "path" for something else;
77863         so use "absolute" to keep both sides happy.
77864         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77865         Set gl_absolute_header, not gl_full_header_path.
77866         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77867         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77868         All uses changed.
77869
77870         Merge from coreutils.
77871
77872         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77873
77874         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77875         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77876         want to require the building of c-strtod.o.
77877         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77878         needs -lm directly.
77879         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77880
77881         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77882
77883         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77884         --as-needed option if available.  Problem reported by Albert Chin in
77885         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77886         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77887         cc merely issues a bunch of annoying warnings for --as-needed
77888         (this problem was reported by Bob Proulx).  Also, try linking with
77889         -lm to detect a bug in binutils 2.16 (this problem was reported
77890         by Ralf Wildenhues).
77891
77892         2006-06-18  Jim Meyering  <jim@meyering.net>
77893
77894         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77895         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77896         macro.
77897         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77898         also check for glibc-2.4's abort-inducing bug.
77899
77900         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77901         Low-probability clean-up should be to use rmdir to get rid of
77902         the just-created directory, not unlink.
77903
77904         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77905         configure fail, and request a bug report to inform us about it.
77906         Add a comment that, barring reports to the contrary, in 2007 we'll
77907         assume ftruncate is universally available.
77908
77909         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77910
77911         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77912
77913         2006-03-12  Jim Meyering  <jim@meyering.net>
77914
77915         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77916         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77917         * m4/same.m4 (gl_SAME): Likewise.
77918         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77919
77920         2006-03-11  Eric Blake  <ebb9@byu.net>
77921
77922         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77923         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77924         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77925         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77926
77927 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77928
77929         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77930         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77931         reported by Mark D. Baushke, one in
77932         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77933
77934         Merge from coreutils.
77935
77936         * lib/.cppi-disable: Add stdint_.h.
77937         * lib/.cvsignore: Add stdint.h.
77938
77939         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77940
77941         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77942         both double and long double versions.
77943         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77944         * lib/xstrtold.c: New file.
77945         * lib/xstrtod.h (xstrtold): New decl.
77946
77947         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77948
77949         * lib/filemode.c (setst): Remove.
77950         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77951         (arguably) clearer, and the generated code is a bit smaller on my
77952         Debian GNU/Linux stable x86 host.
77953
77954         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77955
77956         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77957         Assume that filemode.h includes sys/types.h and sys/stat.h.
77958         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77959         (ftypelet): Reorder to put common cases first, for efficiency.
77960         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77961         to do 'M'.
77962         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77963         of 10, for compatibility with FreeBSD.  All callers changed.
77964         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77965         types that can't be deduced solely from st_mode.  First arg is now a
77966         const pointer.
77967         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77968         (strmode): Renamed from mode_string.
77969         (filemodestring): New decl.
77970         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77971         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77972         needed.
77973         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77974
77975         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77976
77977         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77978         fsusage.h now does that.  Include fsusage.h first, to test interface.
77979         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77980         at most one method (the old code could have generated decls that
77981         didn't conform to C89, not that this was ever exercised).
77982         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77983
77984         2006-03-19  Jim Meyering  <jim@meyering.net>
77985
77986         Work even in a chroot where d_ino values for entries in "/"
77987         don't match the stat.st_ino values for the same names.
77988         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77989         number, iterate through all entries again, using lstat instead.
77990         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77991         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77992
77993         * lib/getcwd.c (__getcwd): Clarify a comment.
77994         Use memcpy in place of a call to strcpy.
77995
77996         2006-03-12  Jim Meyering  <jim@meyering.net>
77997
77998         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77999         matches that of the current directory (which we're about to chdir ".."
78000         out of), then save the dev-ino of the parent, instead.
78001
78002         * lib/same-inode.h (SAME_INODE): New file/macro.
78003         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78004         Include "same-inode.h", instead.
78005         * lib/same.c: Likewise.
78006         * lib/cycle-check.h: Include "same-inode.h".
78007         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78008         * lib/cycle-check.c (SAME_INODE): Remove definition.
78009         * lib/root-dev-ino.h: Include "same-inode.h".
78010
78011         2006-03-11  Eric Blake  <ebb9@byu.net>
78012
78013         * lib/same.c (same_name): s/base_name/last_component/
78014         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78015         * lib/filenamecat.c (file_name_concat): Likewise.
78016
78017         2006-03-11  Eric Blake  <ebb9@byu.net>,
78018                     Paul Eggert  <eggert@cs.ucla.edu>
78019
78020         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78021         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78022         drive prefix.
78023         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78024         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78025         (last_component): New method.
78026         * lib/dirname.c (dir_len): Determine when drive letters need a
78027         subsequent slash.  Preserve // when it is special.
78028         (dir_name): Don't append dot when drive letter is absolute.
78029         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78030         * lib/basename.c (base_name): New semantics - malloc the result.
78031         Preserve // when it is special.  Preserve relative files that look
78032         like drive letters.
78033         (base_len): Preserve // when it is special.
78034         (last_component): New method, similar to old base_name semantics.
78035         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78036         base_name.  Strip redundant slashes from ///.
78037
78038 2006-07-03  Jim Meyering  <jim@meyering.net>
78039
78040         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78041         macro is used before the first cycle_check call.
78042
78043 2006-07-03  Eric Blake  <ebb9@byu.net>
78044
78045         * modules/dirname (Depends-on): Add xstrndup.
78046
78047 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78050         test cases, so that config.log is a bit easier to follow.
78051
78052 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78053
78054         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78055         both are 64 bits, since this seems to be the tradition, and this
78056         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78057         we ever run into a host that prefers long long to long in this
78058         case, we'll need another configure-time test.  Problem reported by
78059         Jim Meyering.
78060
78061 2006-07-02  Eric Blake  <ebb9@byu.net>
78062
78063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78064
78065 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78066
78067         * modules/inttypes (Depends-on): No longer depends on stdint.
78068         * modules/stdint (Description): Say more about assumptions.
78069         Say that the fast types might differ.  Say macros are used.
78070         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78071         (Makefile.am): Revise list of substituted symbols to match
78072         new stdint.m4.
78073         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78074         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78075         * tests/test-stdint.c (verify_same_types)
78076         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78077         the code conforms to C99/C89.
78078         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78079         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78080
78081 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78082
78083         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78084         but fix a bug, by requiring at least 64 bits.
78085         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78086         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78087         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78088         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78089
78090         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78091         changes.  Make 2.59 a prerequisite.  Check and substitute for
78092         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78093         inttypes.h.  Do not use special include files; just use the
78094         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78095         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78096         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78097         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78098         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78099         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78100         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78101         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78102         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78103         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78104         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78105         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78106         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78107         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78108         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78109         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78110         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78111         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78112         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78113         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78114         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78115         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78116         not check for things that C99 does not require, e.g., int8_t.  If
78117         a test isn't needed unless <stdint.h> isn't working, and is
78118         unlikely to be needed for any other reason, then don't do it
78119         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78120         size_t, since we assume C89 freestanding at least.  Do not check
78121         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78122         the right thing even if the types are not defined.  Instead use:
78123         (gl_STDINT_TYPE_PROPERTIES): New macro.
78124         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78125         testing whether <sys/types.h> clashes, as Autoconf does this for
78126         us now.  All uses removed.
78127         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78128         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78129         (gl_CHECK_TYPE_SAME):
78130         Remove; no longer needed.
78131         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78132         exists, since we'll return 0 anyway in that case.
78133         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78134
78135 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78136
78137         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78138         possible collision with system files.
78139         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78140         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78141         WCHAR_MIN and WCHAR_MAX in this case.
78142         (<stddef.h>): Do not include; no longer needed.
78143         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78144         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78145         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78146         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78147         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78148         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78149         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78150         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78151         !defined(__c99))]: Include in this case too, since it's harmless
78152         now.
78153         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78154         dangerous to do so.
78155         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78156         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78157         (_STDINT_MIN, _STDINT_MAX): New macros.
78158         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78159         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78160         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78161         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78162         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78163         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78164         macros, not typedefs; this simplifies things quite a bit.
78165         Use long int for all types narrower than int64_t.
78166         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78167         Define in terms of long long int or int64_t or long int,
78168         not int64_t or int32_t.  This saves some compile-time testing.
78169         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78170         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78171         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78172         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78173         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78174         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78175         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78176         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78177         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78178         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78179         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78180         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78181         undef any previous version and define our own version, for
78182         simplicity and consistency with the new macros for types.
78183         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78184         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78185         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78186         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78187         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78188         @WINT_T_SUFFIX@ to keep things simple here.
78189         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78190         Simplify by assuming typical 8/16/32/64 host, since we're
78191         already doing that elsewhere anyway.
78192         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78193         and assume long long int is 64 bits if available.  This
78194         speeds up 'configure'.
78195
78196 2006-07-01  Eric Blake  <ebb9@byu.net>
78197
78198         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78199         Reported by Andreas Buening.
78200
78201 2006-07-01  Eric Blake  <ebb9@byu.net>
78202
78203         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78204
78205 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78206
78207         * lib/getaddrinfo.c: fixed typo
78208
78209 2006-06-29  Jim Meyering  <jim@meyering.net>
78210
78211         * modules/strftime (Maintainer): Add my name, since with the
78212         FPRINTFTIME changes strftime.c has forked from glibc.
78213
78214 2006-06-29  Eric Blake  <ebb9@byu.net>
78215
78216         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78217
78218 2006-06-29  Eric Blake  <ebb9@byu.net>
78219
78220         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78221
78222 2006-06-29  Eric Blake  <ebb9@byu.net>
78223
78224         * lib/stat_.h: New file.
78225
78226 2006-06-29  Eric Blake  <ebb9@byu.net>
78227
78228         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78229         unused static function.
78230
78231 2006-06-29  Eric Blake  <ebb9@byu.net>
78232
78233         * doc/functions.texi (Function Portability): Document missing lstat
78234         on mingw.
78235
78236 2006-06-29  Eric Blake  <ebb9@byu.net>
78237
78238         * MODULES.html.sh: Add sys_stat.
78239         * modules/sys_stat: New module.
78240         * modules/mkstemp (Depends-on): Add sys_stat.
78241
78242 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78243
78244         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78245
78246 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78247
78248         * m4/c-bs-a.m4: Removed.
78249
78250 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78251
78252         * lib/strftime.c: Assume strftime() exists.
78253
78254 2006-06-29  Derek Price  <derek@ximbiot.com>
78255
78256         * modules/c-bs-a: Removed - \a is C89.
78257         * MODULES.html.sh: Remove c-bs-a.
78258
78259 2006-06-29  Bruno Haible  <bruno@clisp.org>
78260
78261         * modules/wcwidth (License): Change to LGPL.
78262
78263 2006-06-28  Simon Josefsson  <jas@extundo.com>
78264
78265         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78266         on _WIN32.
78267
78268         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78269         getnameinfo.
78270
78271 2006-06-28  Simon Josefsson  <jas@extundo.com>
78272
78273         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78274
78275 2006-06-28  Simon Josefsson  <jas@extundo.com>
78276
78277         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78278         functions there.  It will succeed on Windows XP, but on Windows
78279         2000 and (presumably) earlier, it will fail, and use the internal
78280         re-implementation.
78281         (use_win32_p): New function.
78282         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78283         Support AI_NUMERICSERV to disable getservbyname.
78284         (getnameinfo): New function, only supports
78285         NI_NUMERICHOST|NI_NUMERICSERV for now.
78286
78287         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78288         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78289         getnameinfo.
78290
78291 2006-06-28  Eric Blake  <ebb9@byu.net>
78292
78293         * modules/wcwidth: New file.
78294         * modules/mbchar (Depends-on): Add wcwidth.
78295         * modules/mbswidth (Depends-on): Add wcwidth.
78296         * MODULES.html.sh: Add wcwidth.
78297
78298 2006-06-28  Eric Blake  <ebb9@byu.net>
78299
78300         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78302
78303 2006-06-28  Eric Blake  <ebb9@byu.net>
78304
78305         * lib/xvasprintf.h: Fix comments.
78306
78307 2006-06-28  Eric Blake  <ebb9@byu.net>
78308
78309         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78310         * lib/mbswidth.c (wcwidth): Move from here...
78311         * lib/wcwidth.h: ...to this new file.
78312
78313 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78314
78315         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78316
78317         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78318         it's obsolete.
78319         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78320
78321 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78322
78323         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78324         Autoconf 2.60 says this stuff was obsolete.
78325
78326 2006-06-28  Bruno Haible  <bruno@clisp.org>
78327
78328         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78329
78330 2006-06-28  Bruno Haible  <bruno@clisp.org>
78331
78332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78333         gt_TYPE_WCHAR_T.
78334
78335 2006-06-28  Bruno Haible  <bruno@clisp.org>
78336
78337         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78338         declaration for wcwidth.
78339         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78340
78341 2006-06-28  Bruno Haible  <bruno@clisp.org>
78342
78343         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78344         (mkdir): Define using _mkdir.
78345
78346 2006-06-28  Bruno Haible  <bruno@clisp.org>
78347
78348         * lib/getaddrinfo.h: Fix POSIX URL.
78349         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78350         _WIN32.
78351         (use_win32_p): Make static.
78352         (getaddrinfo): Reject service name if it is empty or does not consist
78353         solely of decimal digits, or if its value is > 65535.
78354         (getnameinfo): Remove useless casts.
78355
78356 2006-06-27  Simon Josefsson  <jas@extundo.com>
78357
78358         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78359         Eggert and Martin Lambers.
78360
78361 2006-06-27  Simon Josefsson  <jas@extundo.com>
78362
78363         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78364         Eggert and Martin Lambers.
78365
78366 2006-06-27  Bruno Haible  <bruno@clisp.org>
78367
78368         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78369         result to 0, not to empty.
78370         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78371
78372 2006-06-27  Bruno Haible  <bruno@clisp.org>
78373
78374         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78375
78376 2006-06-26  Simon Josefsson  <jas@extundo.com>
78377
78378         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78379         present.
78380
78381 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78384         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78385         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78386
78387 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78388
78389         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78390
78391 2006-06-26  Bruno Haible  <bruno@clisp.org>
78392
78393         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78394
78395 2006-06-26  Bruno Haible  <bruno@clisp.org>
78396
78397         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78398
78399 2006-06-26  Bruno Haible  <bruno@clisp.org>
78400
78401         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78402         SGI C compiler in pre-C99 mode.
78403         Suggested by Mark D. Baushke and Larry Jones.
78404
78405 2006-06-26  Bruno Haible  <bruno@clisp.org>
78406
78407         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78408         WCHAR_MAX.
78409         Reported by Mark D. Baushke and Larry Jones.
78410
78411 2006-06-26  Bruno Haible  <bruno@clisp.org>
78412
78413         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78414         in pre-C99 mode.
78415         Suggested by Mark D. Baushke and Larry Jones.
78416
78417 2006-06-23  Simon Josefsson  <jas@extundo.com>
78418             Bruno Haible  <bruno@clisp.org>
78419
78420         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78421         Emit mostlyclean-local rule.
78422         (func_emit_tests_Makefile_am): Likewise.
78423         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78424
78425 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78426
78427         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78428
78429 2006-06-23  Bruno Haible  <bruno@clisp.org>
78430
78431         * tests/test-stdint.c: Update to match ISO C 99 Technical
78432         Corrigendum 1.
78433
78434 2006-06-23  Bruno Haible  <bruno@clisp.org>
78435
78436         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78437
78438 2006-06-23  Bruno Haible  <bruno@clisp.org>
78439
78440         * lib/stdint_.h: Treat IRIX like OpenBSD.
78441
78442 2006-06-23  Bruno Haible  <bruno@clisp.org>
78443
78444         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78445         ISO C 99 Technical Corrigendum 1.
78446
78447 2006-06-22  Simon Josefsson  <jas@extundo.com>
78448
78449         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78450         MinGW.
78451
78452 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78453
78454         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78455         needed.  Some compiler complained about some of them.  Problem reported
78456         by Larry Jones in
78457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78458
78459 2006-06-21  Simon Josefsson  <jas@extundo.com>
78460
78461         * tests/test-getaddrinfo.c: New file.
78462
78463         * modules/getaddrinfo-tests: New file.
78464
78465         * MODULES.html.sh: Add inet_pton.
78466
78467         * modules/inet_pton: New file.
78468
78469 2006-06-21  Simon Josefsson  <jas@extundo.com>
78470
78471         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78472         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78473         of using the (limited) gnulib implementation on Windows XP.
78474
78475         * m4/inet_pton.m4: New file.
78476
78477 2006-06-21  Simon Josefsson  <jas@extundo.com>
78478
78479         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78480         variable.
78481
78482         * lib/socket_.h: Don't define WINVER.
78483
78484         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78485         slightly modified to work in gnulib.
78486
78487 2006-06-21  Simon Josefsson  <jas@extundo.com>
78488
78489         * doc/gnulib.texi (Windows sockets): Add.
78490
78491 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78492
78493         * lib/read-file.c (fread_file): Start with buffer allocation of
78494         0 bytes rather than 1 byte; this simplifies the code.
78495         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78496         code to free buffer and save/restore errno.
78497         (internal_read_file): Remove unused local.
78498
78499 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78502         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78503         Problem reported by Denis Excoffier in
78504         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78505
78506 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78507
78508         * modules/sys_socket, modules/socklen: Include sys/types since
78509         FreeBSD 4.x's sys/socket.h needs it.
78510
78511 2006-06-19  Simon Josefsson  <jas@extundo.com>
78512
78513         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78514
78515 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78516
78517         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78518
78519 2006-06-19  Bruno Haible  <bruno@clisp.org>
78520
78521         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78522         and FULL_PATH_INTTYPES_H in angle brackets.
78523         Reported by Mark D. Baushke <mdb@gnu.org>.
78524
78525 2006-06-17  Eric Blake  <ebb9@byu.net>
78526
78527         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78528         errno.
78529
78530 2006-06-17  Bruno Haible  <bruno@clisp.org>
78531
78532         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78533         <sys/inttypes.h>.
78534
78535 2006-06-17  Bruno Haible  <bruno@clisp.org>
78536
78537         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78538         whether errno is declared. Assume <errno.h> declares errno.
78539
78540 2006-06-17  Bruno Haible  <bruno@clisp.org>
78541
78542         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78543
78544 2006-06-17  Bruno Haible  <bruno@clisp.org>
78545
78546         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78547         problem on Solaris 2.5.1.
78548
78549 2006-06-16  Eric Blake  <ebb9@byu.net>
78550
78551         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78552         * lib/unicodeio.c [!defined errno]: Likewise.
78553         * lib/strtol.c [!defined errno]: Likewise.
78554         * lib/strtod.c [!defined errno]: Likewise.
78555
78556 2006-06-15  Eric Blake  <ebb9@byu.net>
78557
78558         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78559
78560 2006-06-15  Eric Blake  <ebb9@byu.net>
78561
78562         * config/srclist.txt (ssize_t.m4): Lose sync.
78563
78564 2006-06-15  Bruno Haible  <bruno@clisp.org>
78565
78566         * modules/stdint (Files): Include m4/full-header-path.m4,
78567         m4/size_max.m4, m4/wchar_t.m4.
78568         (Makefile.am): Many more substitutions.
78569         * modules/stdint-tests: New file.
78570         * tests/test-stdint.c: New file.
78571
78572 2006-06-15  Bruno Haible  <bruno@clisp.org>
78573
78574         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78575         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78576         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78577         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78578         gl_CHECK_TYPE_SAME): New macros.
78579
78580 2006-06-15  Bruno Haible  <bruno@clisp.org>
78581
78582         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78583
78584 2006-06-15  Bruno Haible  <bruno@clisp.org>
78585
78586         * lib/stdint_.h: Rewritten to be fully auto-configured.
78587         Fixes bug on HP-UX/IA64.
78588
78589 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78590
78591         * lib/getdate.y (__attribute__): Don't define if already defined.
78592         Problem reported by Larry Jones.
78593         * lib/utimens.c (__attribute__): Likewise.
78594
78595 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78596
78597         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78598         reported by Andreas Schwab.
78599
78600 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78601             Bruno Haible  <bruno@clisp.org>
78602
78603         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78604         check for the declaration of strnlen and a run test that exposes the
78605         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78606         rpl_strndup.
78607
78608 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78609             Bruno Haible  <bruno@clisp.org>
78610
78611         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78612
78613 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78614
78615         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78616         compile test, for Tru64 4.0D.
78617
78618 2006-05-28  Karl Berry  <karl@gnu.org>
78619
78620         * config/srclist.txt (printf-args.c): lose sync.
78621
78622 2006-05-26  Martin Lambers  <marlam@marlam.de>
78623
78624         * lib/getpass.c: Updates the test for the native W32 API, and adds
78625         missing includes, thus fixing compilation warnings.
78626
78627 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78628
78629         * lib/exclude.c (exclude_fnmatch): New function.
78630         (excluded_file_name): Call exclude_fnmatch.
78631         * lib/exclude.h (excluded_file_name): New prototype
78632
78633 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         * lib/tempname.c (small_open, large_open): New macros.
78636         (__open, __open64) [!_LIBC]: Remove.
78637         (__gen_tempname): Use small_open and large_open instead of __open
78638         and __open64.  This fixes a portability bug on HP-UX 11.11i
78639         reported by Simon Wing-Tang in
78640         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78641
78642 2006-05-24  Bruno Haible  <bruno@clisp.org>
78643
78644         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78645         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78646         Reported by Thorsten Maerz <torte@netztorte.de> via
78647         Aaron Stone <aaron@serendipity.cx>.
78648
78649 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78650
78651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78652         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78653         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78654         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78655         not really conditional on the cache.
78656         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78657
78658 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78659
78660         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78661         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78662         (my_usleep): Don't mishandle maximum value.
78663
78664 2006-05-19  Jim Meyering  <jim@meyering.net>
78665
78666         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78667
78668 2006-05-17  Bruno Haible  <bruno@clisp.org>
78669
78670         Cygwin portability.
78671         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78672
78673 2006-05-17  Bruno Haible  <bruno@clisp.org>
78674
78675         * lib/stdint_.h: Fix recognition of Cygwin.
78676
78677 2006-05-15  Bruno Haible  <bruno@clisp.org>
78678
78679         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78680         on libtool patch by Ralf Wildenhues.
78681
78682 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78683
78684         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78685         test for C99 conformance; (bool) 0.5 is an integer constant
78686         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78687         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78688
78689 2006-05-11  Simon Josefsson  <jas@extundo.com>
78690
78691         * m4/xvasprintf.m4: Fix obvious typo.
78692
78693 2006-05-11  Jim Meyering  <jim@meyering.net>
78694
78695         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78696         James Lemley.
78697
78698 2006-05-10  Simon Josefsson  <jas@extundo.com>
78699
78700         * lib/md4.c: Typo fix, update copyright years.
78701         (K1, K2): Don't use L because it turn computations into 64-bit on
78702         64-bit platforms.
78703
78704 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78705
78706         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78707         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78708         unwanted sign propagation, e.g., on hosts with 64-bit int.
78709         There still are some problems with reeelly weird theoretical hosts
78710         (e.g., 33-bit int) but it's not worth worrying about now.
78711         * lib/sha1.c (rol): Likewise.
78712         (K1, K2, K3, K4): Remove unnecessary L suffix.
78713
78714 2006-05-10  Bruno Haible  <bruno@clisp.org>
78715
78716         * lib/des.c: Cast to avoid warnings.
78717
78718 2006-05-09  Bruno Haible  <bruno@clisp.org>
78719
78720         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78721         (Depends-on): Depend also on xsize, stdarg.
78722         (configure.ac): Add gl_XVASPRINTF.
78723
78724 2006-05-09  Bruno Haible  <bruno@clisp.org>
78725
78726         * m4/xvasprintf.m4: New file.
78727
78728 2006-05-09  Bruno Haible  <bruno@clisp.org>
78729
78730         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78731         (EOVERFLOW): Define fallback value.
78732         (xstrcat): New function.
78733         (xvasprintf): Recognize the special case of a string concatenation.
78734
78735 2006-05-08  Eric Blake  <ebb9@byu.net>
78736
78737         * gnulib-tool (func_version): Base copyright year on CVS date.
78738         (func_emit_copyright_notice): New function.
78739         (func_emit_lib_Makefile_am): Use it.
78740         (func_emit_tests_Makefile_am): Likewise.
78741         (func_import): Likewise.
78742
78743 2006-05-08  Bruno Haible  <bruno@clisp.org>
78744
78745         * modules/stdarg: New file.
78746         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78747
78748 2006-05-08  Bruno Haible  <bruno@clisp.org>
78749
78750         * m4/stdarg.m4: New file, from GNU gettext.
78751
78752 2006-05-08  Bruno Haible  <bruno@clisp.org>
78753
78754         * config/srclist.txt (build-aux/config.rpath): different from latest
78755         release.
78756
78757 2006-05-08  Bruno Haible  <bruno@clisp.org>
78758
78759         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78760
78761 2006-05-05  Jim Meyering  <jim@meyering.net>
78762
78763         * m4/warning.m4: New file, derived from bison's file by the same name.
78764
78765 2006-05-03  Bruno Haible  <bruno@clisp.org>
78766
78767         * lib/stdint_.h: Shorter URL.
78768         * lib/inttypes.h: Likewise.
78769
78770 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78771
78772         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78773
78774 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78775
78776         * lib/verify.h: Document the internals better.  Most of this change
78777         was written by Bruno Haible.
78778
78779 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78780
78781         * doc/verify.texi: New file, partly based on a proposal by
78782         Bruno Haible.
78783
78784 2006-05-02  Bruno Haible  <bruno@clisp.org>
78785
78786         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78787         test from here...
78788         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78789
78790 2006-04-29  Bruno Haible  <bruno@clisp.org>
78791
78792         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78793         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78794
78795 2006-04-29  Bruno Haible  <bruno@clisp.org>
78796
78797         * gnulib-tool: Make --update option actually work.
78798
78799 2006-04-29  Bruno Haible  <bruno@clisp.org>
78800
78801         * doc/gcd.texi: New file.
78802         * doc/gnulib.texi: Include it.
78803
78804 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78805
78806         * lib/getdate.y (get_date): When adding relative date, start with the
78807         initial time, not with the result of the first mktime call.
78808
78809 2006-04-25  Bruno Haible  <bruno@clisp.org>
78810
78811         * gnulib-tool (func_import): Output the include directives in three
78812         blocks, sorted separately.
78813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78814
78815 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78816
78817         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78818         to define main with arguments, for C++.  Reported by Eric Blake.
78819         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78820         Prefer 'int main ()' to 'int main (void)', for C++.
78821         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78822         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78823         for 'main', for C99 and C++.
78824
78825 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78828         Don't assume that exit status -1 is valid.
78829         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78830         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78831         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78832         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78833         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78834         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78835         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78836         functions can be used without declaring them, or that you can
78837         exit with status -1.
78838         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78839
78840 2006-04-24  Karl Berry  <karl@gnu.org>
78841
78842         * config/srclist.txt (longdouble.m4): sync lost.
78843
78844 2006-04-24  Eric Blake  <ebb9@byu.net>
78845
78846         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78847
78848 2006-04-24  Bruno Haible  <bruno@clisp.org>
78849
78850         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78851         poll() implementation in AIX.
78852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78853
78854 2006-04-24  Bruno Haible  <bruno@clisp.org>
78855
78856         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78857         assigned exactly once.
78858
78859 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78860             Bruno Haible  <bruno@clisp.org>
78861
78862         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78863         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78864         for AM_CPPFLAGS.
78865
78866 2006-04-23  Bruno Haible  <bruno@clisp.org>
78867
78868         * modules/copy-file: Depend on unistd.
78869         * modules/execute: Likewise.
78870         * modules/fatal-signal: Likewise.
78871         * modules/findprog: Likewise.
78872         * modules/mkdtemp : Likewise.
78873         * modules/pipe: Likewise.
78874         * modules/wait-process: Likewise.
78875
78876 2006-04-23  Bruno Haible  <bruno@clisp.org>
78877
78878         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78879         condition was already detected.
78880         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78881
78882 2006-04-23  Bruno Haible  <bruno@clisp.org>
78883
78884         * lib/copy-file.c: Include <unistd.h> unconditionally.
78885         * lib/execute.c: Likewise.
78886         * lib/fatal-signal.c: Likewise.
78887         * lib/findprog.c: Likewise.
78888         * lib/mkdtemp.c: Likewise.
78889         * lib/pipe.h: Likewise.
78890         * lib/pipe.c: Likewise.
78891         * lib/wait-process.h: Likewise.
78892
78893 2006-04-23  Bruno Haible  <bruno@clisp.org>
78894
78895         * gnulib-tool (func_usage): Fix --import description. Document
78896         --update.
78897         (func_import): Create temporary file in a temporary directory, if
78898         --dry-run is specified. Silence errors from 'grep' when there are no
78899         m4 files in $m4dir.
78900         (func_create_testdir): Silence errors from 'grep' when there are no
78901         m4 files in $m4dir.
78902         Reported by Karl Berry <karl@freefriends.org>.
78903
78904 2006-04-20  Bruno Haible  <bruno@clisp.org>
78905
78906         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78907         one argument, so that the code will be portable to Autoconf 2.60.
78908         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78909         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78910         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78911
78912 2006-04-19  Derek Price  <derek@ximbiot.com>
78913             Eric Blake  <ebb9@byu.net>
78914
78915         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78916         rather than "/full/path.h".  Update comment to match.  Shorten &
78917         generalize m4_translit call via AS_TR_CPP.
78918
78919 2006-04-19  Derek Price  <derek@ximbiot.com>
78920             Eric Blake  <ebb9@byu.net>
78921
78922         * lib/inttypes.h: Correct grammar in comment.
78923
78924 2006-04-18  Derek Price  <derek@ximbiot.com>
78925             Paul Eggert  <eggert@cs.ucla.edu>
78926
78927         * modules/inttypes: New file.
78928         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78929
78930 2006-04-18  Derek Price  <derek@ximbiot.com>
78931             Paul Eggert  <eggert@cs.ucla.edu>
78932
78933         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78934         New files.
78935
78936 2006-04-18  Derek Price  <derek@ximbiot.com>
78937             Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         * lib/inttypes.h: New file.
78940         * lib/strtoimax.c: Assume <inttypes.h>.
78941
78942 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78943
78944         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78945         isn't mounted.  Problem reported by Kir Kolyshkin.
78946
78947 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78950         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78951         Derek R. Price.
78952         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78953         implementation.
78954
78955 2006-04-12  Eric Blake  <ebb9@byu.net>
78956
78957         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78958         is now done automatically by the corresponding Autoconf macro.
78959
78960 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78961
78962         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78963         time_r.h.
78964
78965 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78966
78967         Merge regex changes from libc, removing some of our
78968         POSIX-conformance changes that were rejected and redoing them in a
78969         less-intrusive way.
78970
78971         * lib/regcomp.c (re_compile_internal, init_dfa):
78972         Length arg is now size_t, not Idx.  All uses changed.
78973         (peek_token): Forward decl now says internal_function.
78974         (__re_error_msgid, __re_error_msgid_idx):
78975         Now static rather than extern with attribute_hidden.
78976         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78977         For some reason libc prefers K&R style defns for external functions.
78978         (regerror) [!defined _LIBC]: Likewise.
78979         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78980         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78981         (build_range_exp, build_collating_symbol):
78982         Use K&R-style defn.
78983         (re_compile_fastmap): Use '\0' to memset, not 0.
78984         (utf8_sb_map): Make the calculations more obvious.
78985         (init_dfa, parse_bracket_exp, build_charclass_op):
78986         Call calloc and cast result, as glibc does.
78987         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78988         (build_range_exp, build_collating_symbol):
78989         Now internal functions.
78990
78991         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78992
78993         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78994         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78995         Don't depend on VMS; depend on __VMS instead, for POSIX
78996         namespace cleanness.
78997         (regoff_t): Define to ssize_t, not long int.
78998
78999         Remove the REG_ macros named below.  Instead, make the old names
79000         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79001         __USE_GNU_REGEX.
79002         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79003         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79004         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79005         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79006         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79007         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79008         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79009         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79010         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79011         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79012         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79013         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79014         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79015         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79016         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79017         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79018         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79019         (REG_NREGS):
79020         Remove.  All uses replaced by the old RE_* names.
79021         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79022         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79023         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79024         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79025         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79026         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79027         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79028         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79029         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79030         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79031         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79032         Don't bother having these macros be independent of each others'
79033         values, since they no longer exist in the POSIX name space.
79034
79035         Rename the following member names back to their old names,
79036         unless !__USE_GNU_REGEX.  All uses changed back.
79037         (buffer): Renamed from re_buffer.
79038         (allocated): Renamed from re_allocated.
79039         (used): Renamed from re_used.
79040         (syntax): Renamed from re_syntax.
79041         (fastmap): Renamed from re_fastmap.
79042         (translate): Renamed from re_translate.
79043         (can_be_null): Renamed from re_can_be_null.
79044         (regs_allocated): Renamed from re_regs_allocated.
79045         (fastmap_accurate): Renamed from re_fastmap_accurate.
79046         (no_sub): Renamed from re_no_sub.
79047         (not_bol): Renamed from re_not_bol.
79048         (not_eol): Renamed from re_not_eol.
79049         (newline_anchor): Renamed from re_newline_anchor.
79050         (num_regs): Renamed from rm_num_regs.
79051         (start): Renamed from rm_start.
79052         (end): Renamed from rm_end.
79053
79054         (free_state): Move up a bit.
79055
79056         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79057         #define to be empty.
79058         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79059         when that is what is intended.
79060         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79061         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79062         (MAX): New macro.
79063         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79064         All uses changed back to re_malloc, etc.  It's now the caller's
79065         responsibility to check for overflow; all callers changed.
79066         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79067         (re_x2nrealloc): Remove.
79068         (free_state): Remove decl.
79069
79070         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79071         (re_set_registers, re_exec):
79072         Use K&R-style defn.
79073
79074         2006-01-31  Roland McGrath  <roland@redhat.com>
79075
79076         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79077         Reported by Mike Frysinger <vapier@gentoo.org>.
79078
79079         2006-01-15  Andreas Jaeger  <aj@suse.de>
79080
79081         [BZ #1950]
79082         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79083         build_wcs_upper_buffer change.
79084         (build_wcs_upper_buffer): Change return type.
79085
79086         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79087
79088         * lib/regex_internal.h: Include <stdint.h> if available.
79089
79090         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79091
79092         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79093
79094         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79095
79096         * lib/regcomp.c: Adjust for changed secondary hash function.
79097
79098         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79099
79100         * lib/regex.h: Pretty printing.
79101         Clean up namespace a bit.
79102
79103         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79104
79105         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79106         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79107
79108         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79109                     Ulrich Drepper  <drepper@redhat.com>
79110
79111         [BZ #1302]
79112         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79113         changed.
79114         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79115
79116         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79117
79118         [BZ #281]
79119         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79120         * lib/regcomp.c: Remove unnecessary uses of
79121         unsigned RE_TRANSLATE_TYPE.
79122         * lib/regex_internal.h: Likewise.
79123         * lib/regex_internal.c: Likewise.
79124         * lib/regexec.c: Likewise.
79125         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79126
79127         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79128
79129         * lib/regexec.c (find_recover_state): Remove unnecessary
79130         initialization.
79131         (transit_state_bkref): Make DFA a const pointer.
79132         (get_subexp): Likewise.
79133         (check_arrival): Likewise.
79134         (update_cur_sifted_state): Likewise.
79135         (re_search_internal): Likewise.
79136         (prune_impossible_nodes): Likewise.
79137         (acquire_init_state_context): Likewise.
79138         (proceed_next_node): Likewise.
79139         (set_regs): Likewise.
79140         (free_fail_stack_return): Likewise.
79141         (check_arrival_expand_ecl): Mark DFA parameter as const.
79142         (check_arrival_expand_ecl_sub): Likewise.
79143         (check_subexp_limits): Likewise.
79144         (sub_epsilon_src_nodes):  Likewise.
79145         (add_epsilon_src_nodes):  Likewise.
79146         (merge_state_array): Likewise.
79147         (update_regs): Likewise.
79148         (build_trtable): Likewise.
79149         (sift_states_backward): Mark MCTX parameter as const.
79150         (build_sifted_states): Likewise.
79151         (update_cur_sifted_state): Likewise.
79152         (sift_states_mkref): Likewise.
79153         (check_arrival_expand_ecl): Mark eclosure as const.
79154         (check_dst_limits_calc_pos_1): Likewise.
79155         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79156         pointer.
79157
79158         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79159
79160         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79161         (transit_state_sb): Likewise.
79162         (transit_state_mb): Likewise.
79163         (sift_states_iter_mb): Likewise.
79164         (check_arrival_add_next_nodes): Likewise.
79165         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79166         [_LIBC] (re_search_2_stub): Use mempcpy.
79167
79168         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79169         mbrtowc for very simple UTF-8 case.
79170
79171         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79172         a pointer-to-const.
79173         (re_acquire_state_context): Likewise.
79174         * lib/regex_internal.h: Adjust prototypes.
79175
79176         * lib/regex.c: Prevent using C++ compilers.
79177
79178         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79179         (re_acquire_state_context): Likewise.
79180
79181 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79182
79183         * modules/regex (Depends-on): Add ssize_t.
79184
79185 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79186
79187         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79188         translation table.
79189
79190 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79193
79194 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79195             Bruno Haible  <bruno@clisp.org>
79196
79197         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79198         <sys/types.h> and <inttypes.h>.
79199
79200 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79201
79202         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79203         `__error_t_defined', so argp.h will not typedef the former.
79204
79205 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79206
79207         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79208         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79209         glibc names.  Even if glibc is changed to conform to POSIX, the
79210         traditional names will be available anyway, since regex depends on
79211         the extensions module.  Also, fix a longstanding typo in the
79212         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79213         reported by Emanuele Giaquinta.  Also, change sense of cached
79214         variable, so that the message makes sense.
79215
79216 2006-03-24  Simon Josefsson  <jas@extundo.com>
79217
79218         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79219         including some doc fixes.
79220         (base64_encode_alloc): Fix +1 bug on allocation failures.
79221
79222 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79223
79224         * lib/base64.c (base64_encode): Do not read past end of array with
79225         unsanitized input on systems with CHAR_BIT > 8.
79226
79227 2006-03-24  Eric Blake  <ebb9@byu.net>
79228
79229         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79230
79231 2006-03-22  Karl Berry  <karl@gnu.org>
79232
79233         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79234         * config/srclistvars.sh (COREUTILS): new var.
79235
79236 2006-03-17  Jim Meyering  <jim@meyering.net>
79237
79238         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79239         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79240
79241 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79242
79243         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79244         no longer needs it.  Instead, check that regoff_t is as least
79245         as wide as ptrdiff_t.
79246
79247         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79248         so that our regex.h stays compatible with the installed regex.
79249         This is helpful for installers who configure --without-included-regex.
79250         Problem reported by Emanuele Giaquinta.
79251
79252 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79255         Typedef to long int, not to off_, as POSIX will likely change
79256         in that direction.
79257
79258 2006-03-15  Eric Blake  <ebb9@byu.net>
79259
79260         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79261
79262 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79263
79264         * lib/argp-help.c (validate_uparams): Fix typo
79265         * lib/argp-parse.c (argp_default_options): Consistently begin help
79266         messages with a lowercase letter.
79267
79268 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79269
79270         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79271         overrun buffers and shouldn't be used (much as gets shouldn't be
79272         used).
79273         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79274
79275 2006-03-08  Simon Josefsson  <jas@extundo.com>
79276
79277         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79278         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79279
79280 2006-03-08  Simon Josefsson  <jas@extundo.com>
79281
79282         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79283         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79284
79285 2006-03-08  Simon Josefsson  <jas@extundo.com>
79286
79287         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79288         signal that configure disabled the device.
79289
79290 2006-03-08  Simon Josefsson  <jas@extundo.com>
79291
79292         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79293         languages.
79294
79295 2006-03-07  Simon Josefsson  <jas@extundo.com>
79296
79297         * modules/getopt (Depends-on): Add unistd.
79298
79299         * modules/unistd: New file.
79300
79301 2006-03-07  Simon Josefsson  <jas@extundo.com>
79302
79303         * modules/gc-random: New file.
79304
79305 2006-03-07  Simon Josefsson  <jas@extundo.com>
79306
79307         * m4/unistd_h.m4: New file.
79308
79309 2006-03-07  Simon Josefsson  <jas@extundo.com>
79310
79311         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79312         test to be side-effect free by storing the result in the cache
79313         variable gl_cv_lib_readline, and moving the assignment of
79314         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79315         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79316
79317 2006-03-07  Simon Josefsson  <jas@extundo.com>
79318
79319         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79320         error on missing devices (the functions will return an error).
79321
79322         * m4/gc.m4: Move random stuff to gc-random.m4
79323
79324 2006-03-07  Simon Josefsson  <jas@extundo.com>
79325
79326         * lib/unistd_.h: New file.
79327
79328 2006-03-07  Simon Josefsson  <jas@extundo.com>
79329
79330         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79331
79332 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79333
79334         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79335         Problem reported by Juan Manuel Guerrero.
79336
79337 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79338
79339         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79340         the unistd module.
79341         * lib/getlogin_r.c: Likewise.
79342         * lib/getlogin_r.h: Likewise.
79343         * lib/glob.c: Likewise.
79344         * lib/pagealign_alloc.c: Likewise.
79345         * lib/unistd_.h: Remove; no longer needed.
79346
79347 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79350         Add unistd.
79351         * modules/c-stack (Depends-on): Add unistd.
79352         * modules/getlogin_r: Likewise.
79353         * modules/glob: Likewise.
79354         * modules/pagealign_alloc: Likewise.
79355         * modules/unistd (Files): Remove lib/unistd_.h.
79356         (EXTRA_DIST): Remove.
79357         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79358         need unistd_.h.
79359         (MOSTLYCLEANFILES): Remove unistd.h-t.
79360
79361 2006-03-03  Simon Josefsson  <jas@extundo.com>
79362
79363         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79364
79365 2006-03-03  Simon Josefsson  <jas@extundo.com>
79366
79367         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79368         libidn and bison.
79369
79370 2006-03-03  Simon Josefsson  <jas@extundo.com>
79371
79372         * build-aux/maint.mk: Add indent target.
79373
79374 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79375
79376         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79377         our replacement poll.h in any case, to avoid a differing
79378         declaration from a system header.  Seen on AIX.
79379
79380 2006-03-01  Simon Josefsson  <jas@extundo.com>
79381
79382         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79383         <kasal@ucw.cz>.
79384
79385 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79386
79387         * modules/gettime (Depends-on): Add extensions module.
79388         * modules/nanosleep (Depends-on): Likewise.
79389         * modules/settime (Depends-on): Likewise.
79390
79391 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79392
79393         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79394         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79395         pedantically.
79396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79397         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79398
79399         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79400         not "==".  Reported by Ralf Wildenhues.
79401
79402 2006-03-01  Karl Berry  <karl@gnu.org>
79403
79404         * doc/Copyright/request-*: new files, synced from gnuorg.
79405
79406 2006-03-01  Karl Berry  <karl@gnu.org>
79407
79408         * config/srclist.txt (Copyright/*): new entries.
79409
79410 2006-02-28  Simon Josefsson  <jas@extundo.com>
79411
79412         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79413
79414 2006-02-27  Simon Josefsson  <jas@extundo.com>
79415
79416         * lib/base64.h: Indent #define's.  From Jim Meyering
79417         <jim@meyering.net>.
79418
79419 2006-02-27  Jim Meyering  <jim@meyering.net>
79420
79421         Revert the change of 2006-02-24, so these files can continue
79422         to be sync'd from gettext.
79423         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79424         of `config.h'.
79425
79426 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79427
79428         * modules/intprops: New file.
79429         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79430         Add intprops.
79431         * modules/getloadavg (Files): Remove lib/intprops.h.
79432         (Depends-on): Add intprops.
79433         * modules/human: Likewise.
79434         * modules/inttostr: Likewise.
79435         * modules/openat: Likewise.
79436         * modules/sig2str: Likewise.
79437         * modules/userspec: Likewise.
79438         * modules/utimecmp: Likewise.
79439         * modules/xnanosleep: Likewise.
79440         * modules/xstrtol: Likewise.
79441
79442 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79443
79444         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79445         * modules/lock-tests (TESTS): Use $(EXEEXT).
79446         * modules/tls-tests: Likewise.
79447         * modules/argp-tests: Likewise.
79448         (check_PROGRAMS): New var, replacing...
79449         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79450
79451 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79452
79453         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79454         `config.h'.
79455
79456 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79457
79458         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79459
79460 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79461
79462         Sync from coreutils.
79463         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79464         gl_CHDIR_SAFER.
79465
79466 2006-02-22  Jim Meyering  <jim@meyering.net>
79467
79468         Sync from coreutils.
79469         * m4/chdir-safer.m4: New file.
79470
79471 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79472
79473         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79474         AT_FDCWD exceeds INT_MAX.
79475         * lib/openat.h (AT_FDCWD): Likewise.
79476
79477 2006-02-17  Eric Blake  <address@hidden>
79478
79479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79480
79481 2006-02-16  Simon Josefsson  <jas@extundo.com>
79482
79483         * modules/getaddrinfo (Depends-on): Add sys_socket.
79484
79485 2006-02-15  Simon Josefsson  <jas@extundo.com>
79486
79487         * build-aux/maint.mk: Add dsyntax-check rule.
79488
79489 2006-02-15  Eric Blake  <ebb9@byu.net>
79490
79491         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79492         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79493         'present but cannot compile' warnings on cygwin.
79494         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79495         use ws2tcpip.h if sys/socket.h works.
79496         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79497         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79498
79499 2006-02-14  Simon Josefsson  <jas@extundo.com>
79500
79501         * modules/maintainer-makefile (Files): Rename.
79502
79503         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79504         and (the local) Makefile.cfg to maint-cfg.mk.
79505
79506         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79507         to the latter.
79508
79509         * modules/maintainer-makefile: New module.
79510
79511         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79512         severaly stripped to make it possible to build it up from scratch
79513         with reliable tests.
79514
79515         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79516         fixes to permit overriding the default actions when configure and
79517         makefile are not available.
79518
79519 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79520
79521         Sync from coreutils.
79522         * modules/lstat (Depends-on): Don't depend on xalloc.
79523         (License): Change from GPL to LGPL, since this is now simply a
79524         replacement for a libc function.
79525
79526 2006-02-14  Jim Meyering  <jim@meyering.net>
79527
79528         Sync from coreutils.
79529
79530         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79531         failure on deficient systems, and simplify gnulib lgpl dependencies.
79532         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79533         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79534
79535         * lib/xalloc-die.c: Remove unused definition of N_.
79536
79537 2006-02-14  Jim Meyering  <jim@meyering.net>
79538
79539         Sync from coreutils.
79540         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79541         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79542         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79543         double-quote uses of that variable, to accommodate the rare case in
79544         which getmntent is available in none of the libraries checked.  This
79545         happens at least on FreeBSD 5.0.
79546
79547 2006-02-13  Simon Josefsson  <jas@extundo.com>
79548
79549         * gnulib-tool (Usage): Fix --import, from
79550         karl@freefriends.org (Karl Berry).
79551
79552 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79553
79554         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79555
79556 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79557
79558         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79559         "autoupdate" on 2005-12-12.
79560
79561 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79562
79563         * modules/closeout (Depends-on): Remove atexit.
79564
79565 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79568         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79569
79570 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79573         __EXTENSIONS__ if this causes compilation to fail.  Problem
79574         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79575         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79576
79577 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79578
79579         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79580         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79581         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79582         All uses changed.
79583
79584 2006-01-26  Simon Josefsson  <jas@extundo.com>
79585
79586         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79587         prototype is visible on mingw32.
79588
79589         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79590         for mingw32.
79591
79592         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79593         mingw32).
79594
79595 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79596
79597         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79598         attempt to open for write; this always fails, at least on POSIX
79599         hosts.  This reinstates the 2006-01-09 change, which was
79600         inadvertently removed.
79601
79602 2006-01-26  Bruno Haible  <bruno@clisp.org>
79603
79604         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79605         Reported by Paul Eggert.
79606
79607 2006-01-26  Bruno Haible  <bruno@clisp.org>
79608             Paul Eggert  <eggert@cs.ucla.edu>
79609
79610         * lib/stdbool_.h (_Bool)
79611         [(! (defined __cplusplus || defined __BEOS__)
79612           && !defined __GNUC__
79613           && !(defined __HP_cc || defined __xlc__
79614                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79615                || defined __sgi))]:
79616         #define to signed char in these cases too; this simplifies
79617         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79618         etc., separately) and makes it more conservative.
79619
79620 2006-01-25  Simon Josefsson  <jas@extundo.com>
79621
79622         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79623         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79624         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79625
79626 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79627
79628         * lib/argp-namefrob.h: Bugfix. Remove stray #
79629
79630 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79633         so that we test the test.
79634         Check for yet another HP-UX cc bug involving *bool |= bool.
79635
79636 2006-01-25  Karl Berry  <karl@gnu.org>
79637
79638         * config/srclist.txt (vasnprintf.c): sync lost.
79639
79640 2006-01-25  Jim Meyering  <jim@meyering.net>
79641
79642         Sync from the stable (b5) branch of coreutils:
79643
79644         * lib/fts.c (fts_children): Don't let close() clobber errno from
79645         failed fchdir().
79646
79647         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79648         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79649         a dangling symlink.  That can also happen at least for ELOOP.
79650         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79651         FYI, this bug predates the inclusion of fts.c in coreutils.
79652
79653         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79654         in their own block, so pre-c99 compilers don't object.
79655
79656         Avoid the double-free (first in fts_read, second in fts_close) that
79657         would occur when an `active' directory is made inaccessible (e.g.,
79658         via chmod a-x) during a traversal.
79659         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79660         before returning.  Reproduce this failure by
79661         mkdir -p a/b; cd a; chmod a-x . b
79662         Reported by Stavros Passas.
79663
79664 2006-01-25  Jim Meyering  <jim@meyering.net>
79665
79666         * lib/fileblocks.c: Remove more useless parentheses.
79667         * lib/readutmp.h: Likewise.
79668
79669 2006-01-25  Bruno Haible  <bruno@clisp.org>
79670
79671         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79672         warnings.
79673         Reported by Paul Eggert.
79674
79675 2006-01-25  Bruno Haible  <bruno@clisp.org>
79676
79677         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79678         rid of a trap command. For Solaris sh.
79679         Reported by Mark D. Baushke <mdb@gnu.org>.
79680
79681 2006-01-24  Simon Josefsson  <jas@extundo.com>
79682
79683         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79684         Bruno.
79685
79686 2006-01-24  Karl Berry  <karl@gnu.org>
79687
79688         * config/srclist.txt (argp-namefrob.h): sync lost.
79689
79690 2006-01-24  Jim Meyering  <jim@meyering.net>
79691
79692         * modules/openat (Files): Add lib/intprops.h.
79693         From Mark D. Baushke.
79694
79695 2006-01-24  Jim Meyering  <jim@meyering.net>
79696
79697         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79698         Reported by Mark D. Baushke.
79699
79700 2006-01-24  Jim Meyering  <jim@meyering.net>
79701
79702         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79703
79704 2006-01-24  Bruno Haible  <bruno@clisp.org>
79705
79706         * modules/strnlen (Maintainer): Change from glibc to all.
79707
79708 2006-01-24  Bruno Haible  <bruno@clisp.org>
79709
79710         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79711         Patch by Paul Eggert.
79712
79713 2006-01-24  Bruno Haible  <bruno@clisp.org>
79714
79715         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79716         already has it.
79717         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79718         2005-11-26.
79719
79720         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79721         'signed char' to avoid problems with the built-in _Bool type.
79722         Reported by Paul Eggert on 2005-11-26.
79723
79724 2006-01-24  Bruno Haible  <bruno@clisp.org>
79725
79726         * gnulib-tool (func_import): Avoid constructing complicated sed
79727         expressions inside backquote.
79728         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79729
79730 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79731
79732         These changes imported from libc.
79733         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79734         test and two separate function calls.
79735         * lib/strndup.c (__strndup): Add libc_hidden_def.
79736
79737 2006-01-23  Simon Josefsson  <jas@extundo.com>
79738
79739         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79740         Remove the test_*_SOURCES variable: automake infers it by default.
79741         * modules/tls-tests: Likewise.
79742
79743 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79744
79745         Work around porting bugs reported by Dieter in
79746         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79747         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79748         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79749         Include "getopt.h" first, to check interface.
79750         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79751         !HAVE_DECL_GETENV.
79752         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79753         (__strndup): Revert to K&R-style function dfns, the glibc style.
79754         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79755         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79756         Include strnlen.h first, to get prototype properly.
79757         (strnlen): Renamed from __strnlen.
79758         Remove weak alias.
79759
79760 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79761
79762         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79763
79764 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79765
79766         * config/srclist.txt: Adjust to reflect glibc reorganization.
79767         This affects only comments.
79768
79769 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79770
79771          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79772          Reported by Bruce Korb <bkorb@gnu.org>.
79773
79774 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79775
79776         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79777         to pacify gcc -Wswitch-default.
79778
79779 2006-01-22  Bruno Haible  <bruno@clisp.org>
79780
79781         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79782         temporary buffer for sprintf, take into account the precision also
79783         for 'd', 'i', 'u', 'o', 'x', 'X'.
79784
79785 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79786
79787         * modules/argp-tests: New module
79788         * tests/test-argp.c: New file
79789         * tests/test-argp-2.sh: New file
79790
79791 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79792
79793         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79794         (__argp_base_name): Removed
79795         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79796         typo.
79797         (__argp_base_name): Provide macro definition or extern declaration
79798         depending on the configuration
79799
79800 2006-01-20  Simon Josefsson  <jas@extundo.com>
79801
79802         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79803
79804 2006-01-20  Simon Josefsson  <jas@extundo.com>
79805
79806         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79807
79808 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79809
79810         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79811         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79812         Suggested by Bruno Haible.
79813
79814 2006-01-20  Karl Berry  <karl@gnu.org>
79815
79816         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79817         until changes propagate, I guess.
79818
79819 2006-01-19  Simon Josefsson  <jas@extundo.com>
79820
79821         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79822
79823 2006-01-19  Simon Josefsson  <jas@extundo.com>
79824
79825         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79826
79827 2006-01-19  Simon Josefsson  <jas@extundo.com>
79828
79829         * gnulib-tool: Set check_PROGRAMS.
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: Use
79840         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79841         test_*_SOURCES.
79842
79843 2006-01-18  Simon Josefsson  <jas@extundo.com>
79844
79845         * modules/socklen (Depends-on): Depend on sys_socket.
79846
79847 2006-01-18  Simon Josefsson  <jas@extundo.com>
79848
79849         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79850         modules/des-tests, modules/gc-arcfour-tests,
79851         modules/gc-arctwo-tests, modules/gc-des-tests,
79852         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79853         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79854         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79855         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79856         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79857         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79858         $(EXEEXT) to automake TESTS variable, for mingw32.
79859
79860 2006-01-17  Simon Josefsson  <jas@extundo.com>
79861
79862         * modules/socklen (Include): Need sys/socket.h.
79863
79864 2006-01-17  Bruno Haible  <bruno@clisp.org>
79865
79866         * modules/ssize_t (Include): Add <sys/types.h>.
79867
79868 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79871         it's not portable and it doesn't work with cross-compiles.
79872         Problem reported by Bruno Haible.  Fix missing-$ typo in
79873         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79874         -zignore from being used with Sun's C compiler.
79875
79876 2006-01-12  Simon Josefsson  <jas@extundo.com>
79877
79878         * lib/base64.c: Fix warning, reported by Bruno Haible
79879         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79880
79881 2006-01-12  Bruno Haible  <bruno@clisp.org>
79882
79883         * modules/ldd: New file.
79884         * build-aux/ldd.sh.in: New file.
79885         * MODULES.html.sh (Support for building libraries and executables): Add
79886         ldd.
79887
79888 2006-01-12  Bruno Haible  <bruno@clisp.org>
79889
79890         * m4/ldd.m4: New file.
79891
79892 2006-01-12  Bruno Haible  <bruno@clisp.org>
79893
79894         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79895         endless loop while replacing $auxdir with build-aux.
79896
79897 2006-01-11  Simon Josefsson  <jas@extundo.com>
79898
79899         * lib/stdint_.h (SIZE_MAX): Add missing (.
79900
79901 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         Sync from coreutils.
79904         * lib/md5.c: Fix commentary typos.
79905         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79906         * lib/md5.h (__attribute__): Remove; unused.
79907         * lib/sha1.c: Fix commentary to match md5 better.
79908         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79909         so that we don't need to worry about alignment.  All uses changed.
79910         This merges the 2005-10-28 md5 change into sha1.
79911
79912 2006-01-11  Jim Meyering  <jim@meyering.net>
79913
79914         Sync from coreutils.
79915         * lib/md5.c (OP): Fix spacing.
79916
79917 2006-01-11  Bruno Haible  <bruno@clisp.org>
79918
79919         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79920         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79921         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79922
79923 2006-01-11  Bruno Haible  <bruno@clisp.org>
79924
79925         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79926         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79927         the "early" section as well.
79928
79929 2006-01-11  Bruno Haible  <bruno@clisp.org>
79930
79931         Avoid "ar: no archive members specified" error on MacOS X.
79932         * gnulib-tool (func_modules_add_dummy): New function.
79933         (func_import, func_create_testdir): Invoke it.
79934
79935 2006-01-11  Bruno Haible  <bruno@clisp.org>
79936
79937         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79938         with $auxdir in AC_CONFIG_FILES statements.
79939
79940 2006-01-11  Bruno Haible  <bruno@clisp.org>
79941
79942         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79943         Initialize also noinst_HEADERS to empty.
79944
79945 2006-01-11  Bruno Haible  <bruno@clisp.org>
79946
79947         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79948         variables.
79949         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79950         autoreconf.
79951
79952 2006-01-11  Bruno Haible  <bruno@clisp.org>
79953
79954         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79955         overridable by the user.
79956         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79957
79958 2006-01-10  Simon Josefsson  <jas@extundo.com>
79959
79960         * modules/sys_socket: New file.
79961
79962 2006-01-10  Simon Josefsson  <jas@extundo.com>
79963
79964         * m4/sys_socket_h.m4: New file.
79965
79966 2006-01-10  Simon Josefsson  <jas@extundo.com>
79967
79968         * lib/socket_.h: New file.
79969
79970 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79971
79972         * modules/readutmp (Maintainer): Add myself.
79973
79974 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79975
79976         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79977         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79978         People who are still concerned with buggy memcmp implementations
79979         can invoke gl_FUNC_MEMCMP themselves.
79980
79981 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79982
79983         * lib/regex_internal.h (BITSET_WORD_BITS):
79984         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79985         preprocessor mishandles large unsigned values as if they were signed.
79986         Problem reported by Claudio Fontana in
79987         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79988
79989 2006-01-10  Jim Meyering  <jim@meyering.net>
79990
79991         Avoid the double-free (first in fts_read, second in fts_close) that
79992         would occur when an `active' directory is made inaccessible (e.g.,
79993         via chmod a-x) during a traversal.
79994         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79995         before returning.  Reproduce this failure by
79996         mkdir -p a/b; cd a; chmod a-x . b
79997         Reported by Stavros Passas.
79998
79999         Sync from coreutils.
80000         * lib/sha1.c: Tweak grammar in a comment.
80001
80002 2006-01-10  Jim Meyering  <jim@meyering.net>
80003
80004         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80005         Patch by Joerg Sonnenberger.
80006
80007 2006-01-10  Bruno Haible  <bruno@clisp.org>
80008
80009         * modules/readutmp: Depend on module free.
80010         * modules/strtok_r: Depend on module restrict.
80011
80012 2006-01-10  Bruno Haible  <bruno@clisp.org>
80013
80014         * modules/gettext (configure.ac): Add an invocation of
80015         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80016
80017 2006-01-10  Bruno Haible  <bruno@clisp.org>
80018
80019         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80020         Reported by Werner Lemberg <wl@gnu.org>.
80021
80022 2006-01-10  Bruno Haible  <bruno@clisp.org>
80023
80024         * lib/localcharset.c: Update from GNU gettext.
80025
80026 2006-01-10  Bruno Haible  <bruno@clisp.org>
80027
80028         * lib/argp.h (__const): Remove macro. Use const instead.
80029         * lib/argp-fmtstream.h (__const): Likewise.
80030         * lib/glob_.h (__const): Remove macro.
80031         * lib/glob-libc.h: Use const instead of __const.
80032
80033 2006-01-10  Bruno Haible  <bruno@clisp.org>
80034
80035         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80036         variable.
80037         Needed to avoid an automake error regarding the 'gettext' module.
80038
80039 2006-01-09  Simon Josefsson  <jas@extundo.com>
80040
80041         * modules/inet_ntop (Depends-on): Add restrict.
80042
80043 2006-01-09  Simon Josefsson  <jas@extundo.com>
80044
80045         * modules/gc-rijndael-tests (License): Put under LGPL.
80046
80047         * modules/gc-des-tests (License): Likewise.
80048
80049         * modules/gc-arcfour-tests (License): Likewise.
80050
80051         * modules/gc-arctwo-tests (License): Likewise.
80052
80053         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80054
80055         * modules/gc-hmac-sha1-tests (Files): Likewise.
80056
80057         * modules/gc-hmac-md5-tests (License): Likewise.
80058
80059         * modules/gc-sha1-tests (License): Likewise.
80060
80061         * modules/gc-md5-tests (License): Likewise.
80062
80063         * modules/gc-md4-tests (License): Likewise.
80064
80065         * modules/gc-md2-tests (License): Likewise.
80066
80067         * modules/gc-tests (License): Likewise.
80068
80069         * modules/des-tests (License): Likewise.
80070
80071         * modules/md4-tests (License): Likewise.
80072
80073         * modules/md2-tests (License): Likewise.
80074
80075 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         Sync from coreutils:
80078
80079         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80080         * modules/lib-ignore: New file.
80081         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80082         chdir-safer.m4, lchmod.m4.
80083         * modules/openat: Add mkdirat.c, openat-priv.h.
80084
80085 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80086
80087         Sync from coreutils.
80088         * m4/lib-ignore.m4: New file.
80089         * m4/lchmod.m4: New file.
80090
80091 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80092
80093         Sync from coreutils.
80094         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80095         for write access: POSIX says that must fail.
80096         * lib/fts.c (diropen): Likewise.
80097         * lib/save-cwd.c (save_cwd): Likewise.
80098         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80099         well, for minor improvements on hosts that lack O_DIRECTORY.
80100         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80101         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80102         Fall back on chown if open failed with EACCES.
80103
80104         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80105         Report an error at compile-time if only a 1-second nominal clock
80106         resolution is found.
80107
80108         * lib/lchmod.h: New file.
80109         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80110         (make_dir_parents): Use lchown rather than chown, and
80111         lchmod rather than chmod.
80112
80113         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80114         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80115         "proc" reported by n0dalus.
80116
80117         * lib/mountlist.c: Include <limits.h>.
80118         (dev_from_mount_options)
80119         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80120         New function.  It no longer assumes "dev=" has the System V meaning
80121         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80122         (read_file_system_list)
80123         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80124         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80125         dev= in that case.
80126
80127         * lib/posixtm.h (PDS_PRE_2000): New macro.
80128         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80129         allow_century.  All usages changed.  Reject dates outside the range
80130         1969-1999 if PDS_PRE_2000 is used.
80131
80132 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80133
80134         Sync from coreutils.
80135         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80136         (Time of day items): Mention the possibility of leap seconds.
80137         Problem reported by Dr. David Alan Gilbert.
80138
80139 2006-01-09  Jim Meyering  <jim@meyering.net>
80140
80141         Sync from coreutils.
80142
80143         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80144
80145         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80146
80147         * lib/modechange.c (mode_compile): Reject an invalid mode string
80148         that starts with an octal digit.  From Andreas Gruenbacher.
80149
80150         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80151         and dup to open_safer and dup_safer, respectively.
80152         (openat_permissive): Fix typo in comment.
80153
80154         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80155         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80156         (_): Remove; no longer needed.
80157         (openat): Renamed from rpl_openat; no need for rpl_openat
80158         since openat.h renames openat for us.
80159         Replace most of the body with a call to openat_permissive,
80160         to avoid duplicate code.
80161         Port to (probably hypothetical) environments were mode_t is
80162         wider than int.
80163         (openat_permissive): Require mode arg, so that we can check
80164         types better.  Put it just after flags.  Change cwd failure
80165         indicator from pointer-to-bool to pointer-to-errno-value.
80166         All callers changed.
80167         Invoke openat_save_fail and/or openat_restore_fail if
80168         cwd_errno is null, so that openat can call us.
80169         (openat_permissive, fdopendir, fstatat, unlinkat):
80170         Simplify errno handling to avoid some duplicate code,
80171         as it's OK to set errno on success.
80172         * lib/openat.h: Revamp code so that function macros depend on
80173         __OPENAT_PREFIX only, not also on AT_FDCWD.
80174         (openat_ro): Remove.  Caller changed to use openat_permissive.
80175         (openat_permissive): Now a macro, if not a function.
80176         (openat_restore_fail, openat_save_fail): Now always functions,
80177         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80178
80179         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80180         and openat.c.
80181         * lib/mkdirat.c: Include openat-priv.h.
80182         Remove definitions of macros defined therein.
80183         * lib/openat.c: Likewise.
80184
80185         * lib/mkdirat.c (mkdirat): New file and function.
80186         * lib/openat.h (mkdirat): Declare.
80187
80188         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80189
80190         * lib/openat.h (openat_permissive): Declare.
80191         (openat_ro): Define.
80192
80193         * lib/openat.c (EXPECTED_ERRNO): New macro.
80194         (openat_permissive): New function -- used in remove.c rewrite.
80195         (all functions): Set errno just before returning, only if there
80196         was an actual failure.
80197         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80198
80199         Emulate openat-family functions using Linux's procfs, if possible.
80200         Idea and some code based on Ulrich Drepper's glibc changes.
80201
80202         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80203         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80204         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80205         before falling back on save_cwd and restore_cwd.
80206         (fdopendir, fstatat, unlinkat): Likewise.
80207
80208         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80209         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80210
80211         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80212         as second argument to va_arg.  Otherwise, some versions of gcc
80213         warn that `if this code is reached, the program will abort'.
80214
80215 2006-01-09  Jim Meyering  <jim@meyering.net>
80216
80217         Sync from coreutils.
80218         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80219         Require openat-priv.h.
80220
80221 2006-01-09  Bruno Haible  <bruno@clisp.org>
80222
80223         * modules/strnlen (Include): Use strnlen.h.
80224
80225 2006-01-09  Bruno Haible  <bruno@clisp.org>
80226
80227         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80228
80229 2006-01-09  Bruno Haible  <bruno@clisp.org>
80230
80231         * lib/sysexit_.h (EX_OK): New macro.
80232         Suggested by Martin Lambers <marlam@marlam.de>.
80233
80234 2006-01-09  Bruno Haible  <bruno@clisp.org>
80235
80236         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80237         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80238
80239 2006-01-09  Bruno Haible  <bruno@clisp.org>
80240
80241         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80242         numbers.
80243
80244 2006-01-09  Bruno Haible  <bruno@clisp.org>
80245
80246         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80247         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80248         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80249         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80250
80251 2006-01-09  Bruno Haible  <bruno@clisp.org>
80252
80253         * build-aux/javacomp.sh.in: New file, moved from lib/.
80254         * modules/javacomp-script (Files): Update.
80255         (configure.ac): Add AC_CONFIG_FILES invocation.
80256         (EXTRA_DIST): Remove variable.
80257
80258         * build-aux/javaexec.sh.in: New file, moved from lib/.
80259         * modules/javaexec (Files): Update.
80260         (configure.ac): Add AC_CONFIG_FILES invocation.
80261         (EXTRA_DIST): Remove javaexec.sh.in.
80262
80263         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80264         * modules/csharpcomp-script (Files): Update.
80265         (configure.ac): Add AC_CONFIG_FILES invocation.
80266         (EXTRA_DIST): Remove variable.
80267
80268         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80269         * modules/csharpexec (Files): Update.
80270         (configure.ac): Add AC_CONFIG_FILES invocation.
80271         (EXTRA_DIST): Remove csharpexec.sh.in.
80272
80273 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80274
80275         Sync from coreutils.
80276
80277         Add POSIX ACL support
80278         * lib/acl.h (copy_acl, set_acl): Add declarations.
80279         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80280         systems other than Linux.
80281         (chmod_or_fchmod): New function: use fchmod when possible,
80282         and chmod otherwise.
80283         (file_has_acl): Add a POSIX ACL implementation, with a
80284         Linux-specific subcase.
80285         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80286         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80287         acls are unsupported.
80288         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80289         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80290         are unsupported.
80291
80292 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80293
80294         Sync from coreutils.
80295         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80296
80297 2006-01-07  Bruno Haible  <bruno@clisp.org>
80298
80299         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80300         gl_EARLY.
80301
80302 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80303
80304         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80305         Problem reported for Mingw by Mark Junker.
80306
80307 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80308
80309         * README: Gnulib normally doesn't generate a tarball.
80310
80311 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80312
80313         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80314         long int, not int, for nanosecond counts, so that people who are
80315         used to POSIX struct timespec won't be surprised.  Reported by Jim
80316         Meyering.
80317
80318 2005-12-28  Bruno Haible  <bruno@clisp.org>
80319
80320         * build-aux/config.rpath: Update from GNU gettext.
80321
80322 2005-12-16  Jim Meyering  <jim@meyering.net>
80323
80324         * modules/fprintftime: New module.
80325         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80326
80327 2005-12-16  Jim Meyering  <jim@meyering.net>
80328
80329         * m4/fprintftime.m4: New file.
80330
80331 2005-12-16  Jim Meyering  <jim@meyering.net>
80332
80333         * lib/fprintftime.c, lib/fprintftime.h: New files.
80334
80335 2005-12-15  Simon Josefsson  <jas@extundo.com>
80336
80337         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80338         new m4/socklen.m4.
80339
80340 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80341
80342         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80343         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80344
80345 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80346
80347         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80348         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80349         struct uparams is valid. Fall back to the default values if it is
80350         not.
80351
80352 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80353
80354         * modules/argp (Files): Add argp-pin.c
80355         (Depends-on): dirname
80356         (lib_SOURCES): Add argp-pin.c
80357
80358 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80359
80360         * m4/argp.m4:  Check if program_invocation_name and
80361         program_invocation_short_name are declared and define appropriate
80362         macros if they are not.
80363
80364 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80365
80366         * lib/argp-help.c (__argp_base_name): New function
80367         (__argp_short_program_name): Rewrite using __argp_base_name
80368         * lib/argp-namefrob.h: Define program_invocation_name and
80369         program_invocation_short_name if requested
80370         (__argp_base_name): Add prototype
80371         * lib/argp-parse.c (argp_def): Use gettext wrappers
80372         (argp_default_parser): Use __argp_base_name
80373         * lib/argp-pin.c: New file. Defines program_invocation_name and
80374         program_invocation_short_name on systems that lack them.
80375
80376 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80377
80378         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80379         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80380         porting problem reported by Georg Schwarz in
80381         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80382
80383 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80384
80385         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80386         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80387         porting problem reported by Georg Schwarz in
80388         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80389
80390 2005-12-05  Bruno Haible  <bruno@clisp.org>
80391
80392         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80393         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80394         Reported by Mark Junker <mjscod@gmx.de>.
80395
80396 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80397
80398         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80399         Use implementation from Albert Chin, with some
80400         comments/corrections by Stepan Kasal and myself.
80401
80402 2005-12-02  Bruno Haible  <bruno@clisp.org>
80403
80404         * gnulib-tool (func_import): Accept GPLed build tool modules when
80405         --lgpl is given.
80406         * modules/csharpcomp-script: New file.
80407         * modules/csharpcomp: Depend on it.
80408         * modules/javacomp-script: New file.
80409         * modules/javacomp: Depend on it.
80410         Suggested by Simon Josefsson.
80411
80412 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80413
80414         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80415         statement, to work around an HP-UX 10.20 compiler bug reported by
80416         Peter O'Gorman.
80417
80418 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80419
80420         * modules/savedir (Depends-on): Add openat.
80421
80422 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80423
80424         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80425         (uintmax_t) [defined uintmax_t]: Do not declare.
80426         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80427         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80428         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80429         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80430         sake of portability to weird hosts that C allows (though we don't
80431         know of any practical examples).
80432
80433         * lib/savedir.h (fdsavedir): New decl.
80434         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80435         contains most of the former guts of savedir.
80436         (savedir): Use savedirstream.
80437         Include "openat.h".
80438
80439 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80440
80441         * modules/obstack (Files): Add m4/ulonglong.m4.
80442         Problem reported by Davide Angelocola.
80443
80444 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80445
80446         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80447         coreutils no longer futzes with rounding modes.
80448
80449 2005-11-14  Jim Meyering  <jim@meyering.net>
80450
80451         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80452         replacement of mkstemp.
80453
80454 2005-11-10  Simon Josefsson  <jas@extundo.com>
80455
80456         * lib/readline.c: Remove EOL.
80457
80458 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80459
80460         * modules/gethrxtime (Depends-on): Add gettime.
80461
80462 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80463
80464         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80465         or gettimeofday; no longer needed.
80466
80467 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80468
80469         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80470         time business.
80471         (gethrxtime) [! (HAVE_NANOUPTIME
80472         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80473         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80474         our own approximation.
80475
80476 2005-11-08  Eric Blake  <ebb9@byu.net>
80477
80478         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80479
80480 2005-11-08  Eric Blake  <ebb9@byu.net>
80481
80482         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80483
80484 2005-11-04  Bruno Haible  <bruno@clisp.org>
80485
80486         * gnulib-tool: Implement --update mode.
80487
80488 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80489
80490         Fix porting problem reported by Theodoros V. Kalamatianos.
80491         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80492         Don't assume that futimes failing means we must fail.
80493
80494 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80495
80496         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80497         variables to suggest the intended function of the PATH_MAX check.
80498
80499 2005-10-30  Kean Johnston  <jkj@sco.com>
80500
80501         Trivial changes to support SCO systems.
80502         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80503         as PATH_MAX.
80504         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80505         where __ptr is null when no I/O is pending.
80506
80507 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80508
80509         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80510         leave errno alone.  Problem reported by Dmitry V. Levin.
80511
80512 2005-10-28  Simon Josefsson  <jas@extundo.com>
80513
80514         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80515         Test more.
80516
80517         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80518
80519         * modules/md2, modules/md2-tests: New files.
80520
80521 2005-10-28  Simon Josefsson  <jas@extundo.com>
80522
80523         * m4/inet_ntop.m4: More tests.
80524
80525         * m4/gc-md2.m4, md2.m4: New file.
80526
80527 2005-10-28  Simon Josefsson  <jas@extundo.com>
80528
80529         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80530         "restrict" keywords, as per POSIX.  Protect the function
80531         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80532         Don't use K&R prototypes.  Check the sprintf return values.
80533         Re-define EAFNOSUPPORT if not present.  Indent.
80534
80535         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80536         suggested by Bruno Haible <bruno@clisp.org>.
80537
80538         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80539
80540         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80541
80542         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80543         libgcrypt).
80544
80545         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80546
80547         * lib/md2.h, lib/md2.c: New files.
80548
80549 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80550
80551         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80552         errno alone.  Problem reported by Frederic Jolliton.
80553
80554 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80555
80556         * modules/verify (License): Change from GPL to LGPL.  This is a
80557         tiny module and there are apparently near-equivalents that are
80558         under the BSD license.
80559
80560 2005-10-24  Simon Josefsson  <jas@extundo.com>
80561
80562         * modules/sha1: Relicense to LGPL.
80563
80564 2005-10-24  Simon Josefsson  <jas@extundo.com>
80565
80566         * lib/md4.h: Shrink buffer size, now that we changed the type.
80567
80568 2005-10-23  Simon Josefsson  <jas@extundo.com>
80569
80570         * gnulib-tool (func_import): Fix --tests-base.
80571
80572 2005-10-22  Simon Josefsson  <jas@extundo.com>
80573
80574         * modules/arcfour (Depends-on): Need stdint.
80575
80576 2005-10-22  Simon Josefsson  <jas@extundo.com>
80577
80578         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80579         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80580
80581 2005-10-22  Simon Josefsson  <jas@extundo.com>
80582
80583         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80584         suggested by Bruno Haible <bruno@clisp.org>.
80585
80586 2005-10-22  Simon Josefsson  <jas@extundo.com>
80587
80588         * lib/crc.h: Include stddef.h, for size_t.
80589
80590 2005-10-22  Simon Josefsson  <jas@extundo.com>
80591
80592         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80593         arcfour_context struct (simplify test vector testing in GNU
80594         Shishi).
80595
80596 2005-10-21  Simon Josefsson  <jas@extundo.com>
80597
80598         * modules/des, modules/des-tests: New files.
80599
80600         * modules/gc-des, modules/gc-des-tests: New files.
80601
80602         * tests/test-des.c, tests/test-gc-des.c: New file.
80603
80604 2005-10-21  Simon Josefsson  <jas@extundo.com>
80605
80606         * modules/arctwo, modules/arctwo-tests: New files.
80607
80608         * tests/test-arctwo.c: New file.
80609
80610         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80611
80612         * tests/test-gc-arctwo.c: New file.
80613
80614 2005-10-21  Simon Josefsson  <jas@extundo.com>
80615
80616         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80617         Bruno Haible <bruno@clisp.org>.
80618
80619         * m4/gc-des.m4: New file.
80620
80621 2005-10-21  Simon Josefsson  <jas@extundo.com>
80622
80623         * m4/arctwo.m4: New file.
80624
80625         * m4/gc-arctwo.m4: New file.
80626
80627 2005-10-21  Simon Josefsson  <jas@extundo.com>
80628
80629         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80630         block.
80631
80632 2005-10-21  Simon Josefsson  <jas@extundo.com>
80633
80634         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80635         <bruno@clisp.org>.
80636
80637         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80638
80639         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80640         Bruno Haible <bruno@clisp.org>.
80641
80642         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80643         <bruno@clisp.org>.
80644
80645 2005-10-21  Simon Josefsson  <jas@extundo.com>
80646
80647         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80648
80649 2005-10-21  Simon Josefsson  <jas@extundo.com>
80650
80651         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80652
80653 2005-10-21  Simon Josefsson  <jas@extundo.com>
80654
80655         * lib/des.h, lib/des.c: New files.
80656
80657         * lib/gc-gnulib.c: Support DES.c
80658
80659 2005-10-21  Simon Josefsson  <jas@extundo.com>
80660
80661         * lib/arctwo.h, lib/arctwo.c: New files.
80662
80663         * lib/gc-gnulib.c: Support ARCTWO.
80664
80665 2005-10-21  Simon Josefsson  <jas@extundo.com>
80666
80667         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80668         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80669
80670 2005-10-21  Simon Josefsson  <jas@extundo.com>
80671
80672         * gnulib-tool (func_import, func_create_testdir): Define automake
80673         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80674         Makefile.am snippet),
80675         suggested by Bruno Haible <bruno@clisp.org>.
80676
80677         * modules/gc (Makefile.am): Use it.
80678
80679 2005-10-21  Bruno Haible  <bruno@clisp.org>
80680
80681         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80682         patch.
80683
80684 2005-10-19  Simon Josefsson  <jas@extundo.com>
80685
80686         * tests/test-gc-rijndael.c: New file.
80687
80688         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80689
80690 2005-10-19  Simon Josefsson  <jas@extundo.com>
80691
80692         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80693         interface too.
80694
80695 2005-10-19  Simon Josefsson  <jas@extundo.com>
80696
80697         * tests/test-gc-arcfour.c: New file.
80698
80699         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80700
80701 2005-10-19  Simon Josefsson  <jas@extundo.com>
80702
80703         * modules/gc-md4, modules/gc-md4-tests: New file.
80704
80705         * tests/test-gc-md4.c: New file.
80706
80707 2005-10-19  Simon Josefsson  <jas@extundo.com>
80708
80709         * m4/gc-md4.m4: New file.
80710
80711 2005-10-19  Simon Josefsson  <jas@extundo.com>
80712
80713         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80714         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80715         <kasal@ucw.cz>.
80716
80717 2005-10-19  Simon Josefsson  <jas@extundo.com>
80718
80719         * m4/gc-arcfour.m4: New file.
80720
80721         * m4/gc-rijndael.m4: New file.
80722
80723 2005-10-19  Simon Josefsson  <jas@extundo.com>
80724
80725         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80726
80727 2005-10-19  Simon Josefsson  <jas@extundo.com>
80728
80729         * lib/gc-gnulib.c: Support ARCFOUR.
80730
80731 2005-10-19  Simon Josefsson  <jas@extundo.com>
80732
80733         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80734         support.
80735
80736         * lib/gc.h: Add ECB enum type.
80737
80738         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80739
80740 2005-10-18  Simon Josefsson  <jas@extundo.com>
80741
80742         * tests/test-md5.c: New file.
80743
80744         * modules/md5-tests: New file.
80745
80746 2005-10-18  Simon Josefsson  <jas@extundo.com>
80747
80748         * tests/test-md4.c: New file.
80749
80750         * modules/md4, modules/md4-tests: New files.
80751
80752 2005-10-18  Simon Josefsson  <jas@extundo.com>
80753
80754         * m4/md4.m4: New file.
80755
80756 2005-10-18  Simon Josefsson  <jas@extundo.com>
80757
80758         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80759
80760 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80761
80762         * gnulib-tool (func_create_testdir): Omit the second check whether
80763         BUILT_SOURCES in nonempty.
80764
80765 2005-10-17  Simon Josefsson  <jas@extundo.com>
80766
80767         * tests/test-rijndael.c: New file.
80768
80769 2005-10-17  Simon Josefsson  <jas@extundo.com>
80770
80771         * modules/sha1: Depend on stdint instead of md5.
80772
80773         * modules/md5: Depend on stdint, remove uint32_t.
80774
80775 2005-10-17  Simon Josefsson  <jas@extundo.com>
80776
80777         * modules/gc-sha1-tests: New file.
80778
80779         * tests/test-gc-sha1.c: New file.
80780
80781 2005-10-17  Simon Josefsson  <jas@extundo.com>
80782
80783         * m4/md5.m4: Remove call to uint32_t.m4.
80784
80785 2005-10-17  Simon Josefsson  <jas@extundo.com>
80786
80787         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80788
80789         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80790         md5.h.
80791
80792         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80793
80794         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80795
80796 2005-10-17  Simon Josefsson  <jas@extundo.com>
80797
80798         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80799
80800 2005-10-17  Simon Josefsson  <jas@extundo.com>
80801
80802         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80803
80804 2005-10-17  Simon Josefsson  <jas@extundo.com>
80805
80806         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80807
80808         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80809
80810 2005-10-17  Bruno Haible  <bruno@clisp.org>
80811
80812         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80813         that it can also be used in a test.
80814
80815 2005-10-16  Bruno Haible  <bruno@clisp.org>
80816
80817         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80818         TESTS_ENVIRONMENT, so that individual tests can augment it.
80819
80820         * gnulib-tool (func_create_testdir): Use an intermediate target for
80821         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80822         macros, like $(ALLOCA_H), which cannot be passed through the command
80823         line.
80824
80825 2005-10-15  Simon Josefsson  <jas@extundo.com>
80826
80827         * modules/rijndael-tests: New file.
80828
80829         * modules/rijndael: New file.
80830
80831 2005-10-15  Simon Josefsson  <jas@extundo.com>
80832
80833         * m4/rijndael.m4: New file.
80834
80835 2005-10-15  Simon Josefsson  <jas@extundo.com>
80836
80837         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80838
80839         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80840
80841 2005-10-14  Simon Josefsson  <jas@extundo.com>
80842
80843         * tests/test-arcfour.c: New file.
80844
80845         * modules/arcfour, modules/arcfour-tests: New files.
80846
80847 2005-10-14  Simon Josefsson  <jas@extundo.com>
80848
80849         * m4/arcfour.m4: New file.
80850
80851 2005-10-14  Simon Josefsson  <jas@extundo.com>
80852
80853         * lib/arcfour.h, lib/arcfour.c: New files.
80854
80855 2005-10-14  Roland McGrath  <roland@redhat.com>
80856
80857         Import from libc.  [BZ #1331]
80858         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80859         macro argument.
80860         Reported by Matej Vela <vela@debian.org>.
80861
80862 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80863
80864         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80865         include <wchar.h>; no longer needed.
80866
80867 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80868
80869         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80870
80871 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80872         and  Ulrich Drepper  <drepper@redhat.com>
80873
80874         Import from libc.
80875         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80876         instead of inline stream orientation test and two separate
80877         function calls.  Pay no attention to USE_IN_LIBIO.
80878
80879 2005-10-13  Simon Josefsson  <jas@extundo.com>
80880
80881         * modules/gc-hmac-md5-tests: New file.
80882
80883         * tests/test-gc-hmac-sha1.c: New file.
80884
80885         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80886
80887         * modules/gc-hmac-md5-tests: New file.
80888
80889         * tests/test-gc-md5.c: New file.
80890
80891         * modules/gc-md5-tests: New file.
80892
80893 2005-10-13  Simon Josefsson  <jas@extundo.com>
80894
80895         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80896         Move memory allocation outside of loop.
80897
80898 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80899
80900         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80901         intermediate directory is in a read-only file system.  Problem
80902         reported by Eric Blake.
80903
80904 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80905
80906         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80907
80908 2005-10-12  Simon Josefsson  <jas@extundo.com>
80909
80910         * tests/test-hmac-sha1.c: New file.
80911
80912         * modules/hmac-sha1-tests: New file.
80913
80914         * modules/hmac-sha1: New file.
80915
80916 2005-10-12  Simon Josefsson  <jas@extundo.com>
80917
80918         * modules/gc-sha1: New file.
80919
80920 2005-10-12  Simon Josefsson  <jas@extundo.com>
80921
80922         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80923
80924         * tests/test-gc-pbkdf2-sha1.c: New file.
80925
80926 2005-10-12  Simon Josefsson  <jas@extundo.com>
80927
80928         * modules/gc-md5, modules/gc-hmac-md5: New files.
80929
80930         * modules/gc (Files): Remove md5, memxor and hmac files.
80931
80932 2005-10-12  Simon Josefsson  <jas@extundo.com>
80933
80934         * m4/gc-pbkdf2-sha1.m4: New file.
80935
80936         * m4/gc-hmac-sha1.m4: New file.
80937
80938         * m4/gc-sha1: New file.
80939
80940         * m4/hmac-sha1.m4: New file.
80941
80942 2005-10-12  Simon Josefsson  <jas@extundo.com>
80943
80944         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80945
80946         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80947
80948 2005-10-12  Simon Josefsson  <jas@extundo.com>
80949
80950         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80951         suggested by Bruno Haible <bruno@clisp.org>.
80952
80953 2005-10-12  Simon Josefsson  <jas@extundo.com>
80954
80955         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80956
80957 2005-10-12  Simon Josefsson  <jas@extundo.com>
80958
80959         * lib/gc-pbkdf2-sha1.c: New file.
80960
80961         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80962
80963 2005-10-12  Simon Josefsson  <jas@extundo.com>
80964
80965         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80966
80967         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80968
80969 2005-10-12  Simon Josefsson  <jas@extundo.com>
80970
80971         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80972         GC_USE_HMAC_MD5, respectively.
80973
80974         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80975         (gc_md5): Fix typo.
80976
80977         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80978
80979         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80980
80981         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80982
80983 2005-10-12  Bruno Haible  <bruno@clisp.org>
80984
80985         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80986         Reported by Stepan Kasal <kasal@ucw.cz>.
80987
80988 2005-10-11  Simon Josefsson  <jas@extundo.com>
80989
80990         * tests/test-crc.c: New file.
80991
80992         * modules/crc, modules/crc-tests: New files.
80993
80994 2005-10-11  Simon Josefsson  <jas@extundo.com>
80995
80996         * m4/crc.m4: New file.
80997
80998 2005-10-11  Simon Josefsson  <jas@extundo.com>
80999
81000         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81001
81002         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81003
81004         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81005
81006 2005-10-11  Simon Josefsson  <jas@extundo.com>
81007
81008         * lib/crc.h, lib/crc.c: New files.
81009
81010         * lib/gc.h (gc_hash_buffer): Add doc.
81011
81012 2005-10-11  Bruno Haible  <bruno@clisp.org>
81013
81014         * modules/c-strcasestr: New file.
81015         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81016
81017 2005-10-11  Bruno Haible  <bruno@clisp.org>
81018
81019         * modules/c-strcase: New file.
81020         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81021
81022 2005-10-11  Bruno Haible  <bruno@clisp.org>
81023
81024         * lib/strcasecmp.c: Include limits.h.
81025         (strcasecmp): Avoid integer overflow on exotic platforms.
81026         * lib/strncasecmp.c: Include limits.h.
81027         (strncasecmp): Avoid integer overflow on exotic platforms.
81028         Reported by Paul Eggert.
81029
81030 2005-10-11  Bruno Haible  <bruno@clisp.org>
81031
81032         * lib/c-strcasestr.h: New file, from GNU gettext.
81033         * lib/c-strcasestr.c: New file, from GNU gettext.
81034
81035 2005-10-11  Bruno Haible  <bruno@clisp.org>
81036
81037         * lib/c-strcase.h: New file, from GNU gettext.
81038         * lib/c-strcasecmp.c: New file, from GNU gettext.
81039         * lib/c-strncasecmp.c: New file, from GNU gettext.
81040
81041 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * modules/mempcpy (License): GPL -> LGPL.
81044         * modules/strchrnul (License): Likewise.
81045         * modules/sysexits (License): Likewise.
81046
81047 2005-10-08  Simon Josefsson  <jas@extundo.com>
81048
81049         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81050
81051 2005-10-07  Simon Josefsson  <jas@extundo.com>
81052
81053         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81054
81055 2005-10-06  Simon Josefsson  <jas@extundo.com>
81056
81057         * tests/test-hmac-md5.c: New file.
81058
81059         * modules/hmac-md5-tests: New file.
81060
81061         * modules/hmac-md5: New file.
81062
81063 2005-10-06  Simon Josefsson  <jas@extundo.com>
81064
81065         * m4/hmac-md5.m4: New file.
81066
81067         * m4/memxor.m4: Require gl_C_RESTRICT.
81068
81069 2005-10-06  Simon Josefsson  <jas@extundo.com>
81070
81071         * lib/memxor.c (memxor): Avoid casts and warnings.
81072
81073 2005-10-06  Simon Josefsson  <jas@extundo.com>
81074
81075         * lib/hmac-md5.c: New file.
81076
81077         * lib/hmac.h: New file.
81078
81079 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81080
81081         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81082         promotes to int, not unsigned int, to catch the AIX 5.3
81083         compiler bug.
81084
81085 2005-10-05  Simon Josefsson  <jas@extundo.com>
81086
81087         * modules/memxor: New file.
81088
81089         * modules/iconv (Files): Move config.rpath to havelib, it is used
81090         there.
81091
81092         * modules/havelib (Files): Add config.rpath.
81093
81094 2005-10-05  Simon Josefsson  <jas@extundo.com>
81095
81096         * m4/memxor.m4: New file.
81097
81098 2005-10-05  Simon Josefsson  <jas@extundo.com>
81099
81100         * lib/memxor.c (memxor): Fix compiler error.
81101
81102         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81103         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81104
81105         * lib/memxor.h, lib/memxor.c: New files.
81106
81107         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81108         we assume all systems have it, suggested by Jim Meyering
81109         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81110         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81111         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81112         same reasons.
81113
81114 2005-10-05  Simon Josefsson  <jas@extundo.com>
81115
81116         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81117
81118 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81119
81120         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81121         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81122         needed, since the source code now assumes these .h files.
81123
81124 2005-10-05  Derek Price  <derek@ximbiot.com>
81125
81126         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81127
81128 2005-10-05  Bruno Haible  <bruno@clisp.org>
81129
81130         * modules/stdint (License): Change to LGPL.
81131
81132 2005-10-04  Simon Josefsson  <jas@extundo.com>
81133
81134         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81135         D. Baushke" <mdb@gnu.org>.
81136
81137 2005-10-04  Bruno Haible  <bruno@clisp.org>
81138
81139         * lib/verify.h (verify_true): Provide alternative definition for C++.
81140
81141 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81142
81143         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81144         (SSIZE_MAX): New macro, if not already defined.
81145         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81146         than 2 GiB.
81147
81148 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81149
81150         Sync from coreutils.
81151         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81152         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81153         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81154         ULLONG_MAX doesn't work with 2.7.2.1.
81155
81156 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81157
81158         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81159         From Ben Pfaff.
81160
81161         * modules/exclude (Depends-on): Depend on verify.
81162         * modules/strtoimax (Depends-on): Likewise.
81163         * modules/utimecmp (Depends-on): Likewise.
81164
81165 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81166
81167         * lib/exclude.c: Include verify.h.
81168         (verify): Remove.  All callers changed to use verify.h's version.
81169         * lib/strtoimax.c: Likewise.
81170         * lib/utimecmp.c: Likewis.e
81171
81172         Sync from coreutils.
81173         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81174         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81175         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81176         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81177         bother returning ENOSYS if settimeofday or stime fails; just let
81178         them return whatever errno they want to return.
81179         * lib/utimens.c: Include unistd.h, for dup2.
81180         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81181         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81182
81183 2005-10-02  Jim Meyering  <jim@meyering.net>
81184
81185         Sync from coreutils.
81186         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81187         from glibc-2.2.5 that fails for read-only files.
81188
81189 2005-10-02  Jim Meyering  <jim@meyering.net>
81190
81191         Sync from coreutils.
81192         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81193         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81194         `#if HAVE_CONFIG_H'.
81195         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81196         Remove AT_FDCWD test.
81197         Do not consume the fd unless successful.
81198         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81199         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81200         block, so that we don't even try to compile it if settimeofday is
81201         available.  This works around a compilation failure on OSF1 V5.1,
81202         due to stime requiring a `long int*' while tv_sec is `int'.
81203
81204 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81205
81206         Sync from coreutils.
81207         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81208         against `yes', rather than just testing for nonempty.
81209
81210 2005-10-01  Simon Josefsson  <jas@extundo.com>
81211
81212         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81213         and Darwin.
81214
81215         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81216         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81217         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81218         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81219         Check if struct addrinfo is declared.
81220
81221 2005-10-01  Simon Josefsson  <jas@extundo.com>
81222
81223         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81224         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81225         AI_* and EAI_* definitions.  Protect function declarations.
81226
81227 2005-10-01  Jim Meyering  <jim@meyering.net>
81228
81229         Sync from coreutils.
81230
81231         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81232         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81233         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81234         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81235         in the inet and nsl libraries.  Required on Solaris 5.7.
81236
81237 2005-10-01  Jim Meyering  <jim@meyering.net>
81238
81239         Sync from coreutils.
81240         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81241         in the inet and nsl libraries.  Required on Solaris 5.7.
81242
81243 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81244
81245         * lib/getdelim.c (getdelim): Remove unused variables.
81246
81247 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81248
81249         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81250         so that the code works even with ancient cpp.  Portability problem
81251         with GCC 2.7.2.1 reported by Thomas M.Ott.
81252
81253 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81254
81255         * modules/regex (Depends-on): Add strcase.
81256
81257         * modules/gethostname (Licence): Change from GPL to LGPL, since
81258         gethostname.c is a trivial implementation of a standard library
81259         function.
81260         * modules/poll (License): Change from GPL to LGPL, since it's
81261         derived from LGPL code.
81262
81263 2005-09-27  Jim Meyering  <jim@meyering.net>
81264
81265         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81266         HAVE_CONFIG_H.
81267
81268         * lib/intprops.h (signed_type_or_expr__): Define.
81269         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81270         for unsigned types.
81271
81272 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81273
81274         * lib/verify.h (verify_expr): Remove, replacing with:
81275         (verify_true): New macro that returns true instead of void.
81276         (verify_type__): Remove.
81277         (verify): Use verify_true rather than verify_type__.
81278
81279 2005-09-26  Bruno Haible  <bruno@clisp.org>
81280
81281         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81282         is necessary.
81283         (lib_SOURCES): Remove mbchar.c.
81284         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81285         (Files): Add m4/mbrtowc.m4.
81286         * modules/mbiter: Likewise.
81287         * modules/mbuiter: Likewise.
81288
81289 2005-09-26  Bruno Haible  <bruno@clisp.org>
81290
81291         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81292         compile mbchar.c if they are not both present.
81293         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81294         * m4/mbiter.m4 (gl_MBITER): Likewise.
81295         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81296         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81297         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81298
81299 2005-09-25  Jim Meyering  <jim@meyering.net>
81300
81301         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81302         also uses socklen_t.
81303
81304 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81305
81306         * lib/utimens.c (ENOSYS): Define if not already defined.
81307         (futimens): Support having a null PATH if the file descriptor
81308         is nonnegative.
81309
81310         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81311         Remove.
81312         (__attribute): Define to empty unless GCC 3.1 or later.
81313         This works around a core dump on OpenBSD 3.4, which has GCC
81314         2.95.3, which dumps core when given __attribute__(()).  It also
81315         simplifies other tests, since we really don't want to bother with
81316         worrying about which ancient version of GCC supported what.
81317         Original problem reported by Yoann Vandoorselaere, with part of
81318         the fix suggested by Derek Price.
81319
81320 2005-09-24  Jim Meyering  <jim@meyering.net>
81321
81322         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81323         so we can once again use a positive bitfield width of 1 -- now we
81324         don't have to explain why we were using a bitfield width of 2.
81325
81326 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81327
81328         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81329         and similarly for the other external symbols.  Problem reported
81330         by James Gallager.
81331
81332         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81333         bug reported by Jim Meyering.
81334
81335         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81337         not needed, since socklen is a prerequisite module.
81338
81339 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81340
81341         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81342         Problem reported by Eric Blake.
81343         (getaddrinfo): Initialize se so that it's not garbage.
81344         Redo internal storage allocation so that it doesn't make unportable
81345         assumptions about alignment.
81346         Fix a memory leak.
81347
81348         * lib/utimens.c (futimens): Use futimesat if available.
81349         Prefer it to futimes since it doesn't have the futimes bug.
81350
81351         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81352         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81353         Instead, declare a function that returns a pointer to an array,
81354         and use verify_type__ to declare the size of the array.
81355         Problem and germ of a solution reported by Bruno Haible.
81356         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81357         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81358
81359 2005-09-23  Jim Meyering  <jim@meyering.net>
81360
81361         Sync from coreutils.
81362         Correct build failure (socklen_t not defined) on at least
81363         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81364         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81365
81366 2005-09-23  Jim Meyering  <jim@meyering.net>
81367
81368         * modules/getaddrinfo (Depends-on): Add socklen.
81369
81370 2005-09-23  Bruno Haible  <bruno@clisp.org>
81371
81372         * tests/test-verify.c: New file.
81373
81374 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81375
81376         Sync from coreutils.
81377
81378         * modules/argmatch (Depends-on): Add verify.
81379         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81380         unistd-safer.
81381         * modules/save-cwd (Depends-on): Likewise.
81382
81383         * modules/openat (Files): Add lib/openat-die.c.
81384         (Depends-on): Remove error, exitfail.
81385         Add dirname.
81386
81387         * modules/verify: New file.
81388         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81389         with "verify" module.
81390
81391 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81392
81393         Sync from coreutils.
81394
81395         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81396         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81397         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81398         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81399         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81400         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81401         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81402         Don't bother checking for string.h, stdlib.h, unistd.h.
81403         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81404         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81405         module's job.
81406         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81407         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81408
81409         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81410         (gl_GETDATE): Use it.
81411
81412         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81413
81414 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81415
81416         Sync from coreutils.
81417
81418         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81419         stat-time.h.
81420         * lib/argmatch.h: Include verify.h
81421         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81422         (ARGMATCH_ASSERT): Remove; unused.
81423         * lib/canonicalize.c: Assume STDC_HEADERS.
81424         * lib/exclude.c: Include "strcase.h".
81425         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81426         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81427         and stdio-safer.h.
81428         (getusershell): Call fopen, not fopen_safer.
81429         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81430         Do not include unistd-safer.h.
81431         (save_cwd): Don't call fd_safer; no longer needed
81432         now that we include fcntl--.h.
81433
81434         * lib/getdate.y (relative_time): New type.
81435         (RELATIVE_TIME_0): New constant.
81436         (parser_control): Use relative_time instead of doing it ourselves.
81437         (%union): Add new relative_time rel member.
81438         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81439         Now typeless.
81440         (relunit, relunit_snumber): Now of type rel.
81441         (zone, rel, relunit, get_date): Adjust to above changes.
81442
81443         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81444         Do not include unistd-safer.h.
81445         (getloadavg): Don't call fd_safer; no longer needed
81446         now that we include fcntl--.h.
81447
81448         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81449         (make_dir_parents): Treat ENOSYS like EEXIST.
81450
81451         Improve quality of diagnostics on restore_cwd failure.
81452         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81453         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81454         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81455         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81456         each time through the loop.  Do not diagnose restore_cwd failure;
81457         that is the caller's job (and perhaps the caller does not care).
81458
81459         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81460         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81461         If the file already exists but is not a directory, don't bother
81462         to try to make its parents.
81463         Close potential file descriptor leak if we can't chdir("/") (!).
81464         Don't always return true if chdir($PWD) fails; return true only
81465         if the requested action was done successfully (except for the
81466         chdir($PWD)).
81467         Don't log final directory unless we actually made it.
81468         Refactor to avoid duplicate code to fix up permissions.
81469         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81470
81471         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81472         to make it a bit faster and (I hope) clearer.
81473         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81474         Fix bug in formats like %2N.
81475
81476         * lib/verify.h: New file.
81477
81478 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81479
81480         Sync from coreutils.
81481         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81482
81483 2005-09-22  Jim Meyering  <jim@meyering.net>
81484
81485         Sync from coreutils.
81486
81487         * m4/lstat.m4 (gl_FUNC_LSTAT):
81488         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81489         Remove obsolete comment.
81490         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81491         * m4/xstrtod.m4: Likewise.
81492
81493         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81494
81495 2005-09-22  Jim Meyering  <jim@meyering.net>
81496
81497         Sync from coreutils.
81498
81499         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81500
81501         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81502         the .tm_year member, since otherwise gcc-4.0 would now warn about
81503         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81504
81505         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81506         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81507
81508         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81509         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81510         when run in a time zone for which daylight savings time is in effect
81511         for the starting date.
81512
81513         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81514         stop us from restricting permissions of just-created absolute-named
81515         directories.
81516         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81517         to restore initial working directory.
81518         * lib/mkdir-p.c (make_dir_parents): New parameter:
81519         different_working_dir, to tell caller if/when we change the working
81520         directory and are unable to return to the initial one.
81521         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81522         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81523         `return false'.  This fixes a bug introduced on 2004-07-30.
81524
81525         * lib/openat.c (fdopendir): Be sure to close the supplied
81526         file descriptor before returning.  This makes our replacement
81527         implementation a little closer to Solaris's, where fdopendir
81528         ties the file descriptor to the returned DIR* pointer.
81529         * lib/openat.c (unlinkat): New function.
81530         * lib/openat.h (unlinkat): Add prototype.
81531         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81532         (openat_restore_fail): Rename from openat_restore_die.
81533         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81534
81535         Provide an alternative to exiting immediately upon save_cwd or
81536         restore_cwd failure.  Now, an application can arrange e.g.,
81537         to perform a longjump in that case.
81538         * lib/openat.c: Include dirname.h.
81539         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81540         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81541         and openat_restore_die rather than calling error directly.
81542         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81543
81544         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81545         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81546         define.
81547
81548         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81549         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81550                             int utc, int nanoseconds);
81551         Background:
81552         date should not have to allocate a megabyte of virtual memory to
81553         handle a format argument like +%1048575T.  When implemented with
81554         strftime, it must allocate such a buffer, use strftime to fill it
81555         in, print it, then free it.
81556         With fprintftime, it simply prints everything and exits.
81557         With no need for memory allocation, that's one fewer way to fail.
81558         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81559         optional field width, not before, so we accept %9:z, not %:9z.
81560         (my_strftime): Be sure to use L_('x') for literals.
81561
81562         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81563         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81564         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81565         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81566         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81567         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81568         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81569         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81570         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81571         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81572         * lib/xgethostname.c, lib/xreadlink.c:
81573         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81574
81575         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81576         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81577         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81578         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81579         and don't include <sys/file.h>).
81580
81581 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81582
81583         Sync from coreutils.
81584
81585         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81586         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81587         [!LDAV_DONE]: Avoid unused variable warning.
81588
81589 2005-09-21  Bruno Haible  <bruno@clisp.org>
81590
81591         * lib/unicodeio.h (unicode_to_mb): New declaration.
81592
81593 2005-09-20  Derek Price  <derek@ximbiot.com>
81594
81595         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81596         getaddrinfo.h.
81597
81598 2005-09-20  Bruno Haible  <bruno@clisp.org>
81599
81600         * gnulib-tool: Remove trailing slashes from the values specified for
81601         --source-base, --m4-base, --tests-base, --aux-dir.
81602         Suggested by Simon Josefsson <jas@extundo.com>.
81603
81604 2005-09-20  Bruno Haible  <bruno@clisp.org>
81605
81606         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81607         func_modules_to_filelist, func_import, func_create_testdir): Make all
81608         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81609         change when gnulib-tool is invoked in a different locale.
81610
81611 2005-09-19  Simon Josefsson  <jas@extundo.com>
81612
81613         * m4/socklen.m4: Fix typo.
81614
81615 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81616
81617         Use a consistent style for including <config.h>.
81618         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81619         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81620         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81621         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81622         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81623         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81624         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81625         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81626         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81627         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81628         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81629         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81630         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81631         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81632         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81633         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81634         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81635         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81636         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81637         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81638         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81639         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81640         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81641         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81642         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81643         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81644         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81645         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81646         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81647         lib/xstrtoumax.c, lib/yesno.c:
81648         Standardize inclusion of config.h.
81649         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81650         lib/inttostr.h:  Removed inclusion of config.h from header files.
81651         * lib/inttostr.c:  Adjusted in-tree users.
81652         * lib/timespec.h: Remove superfluous warning to include config.h.
81653         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81654         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81655         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81656         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81657         config.h with HAVE_CONFIG_H.
81658
81659 2005-09-19  Jim Meyering  <jim@meyering.net>
81660
81661         * modules/pathmax (License): Change to LGPL.
81662
81663 2005-09-19  Derek Price  <derek@ximbiot.com>
81664
81665         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81666
81667 2005-09-19  Bruno Haible  <bruno@clisp.org>
81668
81669         * gnulib-tool (import): Provide default for --tests-base.
81670
81671 2005-09-19  Bruno Haible  <bruno@clisp.org>
81672
81673         * doc/quote.texi: New file, extracted from gnulib.texi.
81674         * doc/ctime.texi: New file, extracted from gnulib.texi.
81675         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81676         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81677         * doc/gnulib.texi: Include them.
81678
81679 2005-09-18  Bruno Haible  <bruno@clisp.org>
81680
81681         Portability fix.
81682         * gnulib-tool (func_readlink): New function.
81683         (func_ln_if_changed): Use it.
81684
81685 2005-09-18  Bruno Haible  <bruno@clisp.org>
81686
81687         * gnulib-tool: Support --with-tests also with --import.
81688         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81689         (func_import): Use variables $testsbase and $inctests. Emit a
81690         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81691         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81692         SUBDIRS += $testsdir.
81693         (func_create_testdir): Update.
81694
81695 2005-09-18  Bruno Haible  <bruno@clisp.org>
81696
81697         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81698         instead of $dry_run.
81699         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81700         (func_ln_if_changed): Don't handle dry-run here.
81701         (func_import): In dry-run mode, detect more precisely which actions
81702         would be performed, and don't use "...ing" verbs.
81703
81704 2005-09-18  Bruno Haible  <bruno@clisp.org>
81705
81706         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81707         (func_import): Use join on two temporary files instead of three nested
81708         loops, in order to determine which files are new or old.
81709
81710 2005-09-18  Bruno Haible  <bruno@clisp.org>
81711
81712         * gnulib-tool (func_import): Comment out code that spits out the
81713         new files with --dry-run.
81714
81715 2005-09-18  Bruno Haible  <bruno@clisp.org>
81716
81717         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81718
81719 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81720
81721         * lib/stat-time.h: New file.
81722         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81723         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81724         in a different way.
81725         (timespec_cmp): New function.
81726         * lib/utimecmp.c: Include stat-time.h.
81727         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81728         members exist, not on the obsolescent ST_MTIM_NSEC.
81729         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81730
81731 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81732
81733         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81734
81735 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         * MODULES.html.sh (File system functions): Add stat-time.
81738         * modules/stat-time: New file.
81739         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81740         is now done in a different way, by the stat-time module.
81741         * modules/utimecmp (Depends-on): Add stat-time.
81742
81743 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81744
81745         * m4/st_mtim.m4: Remove.  Superseded by...
81746         * m4/stat-time.m4: New file.
81747         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81748         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81749
81750 2005-09-15  Derek Price  <derek@ximbiot.com>
81751
81752         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81753
81754 2005-09-15  Derek Price  <derek@ximbiot.com>
81755
81756         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81757         * lib/regex_internal.c: Ditto, using this...
81758         (__GNUC_PREREQ): ...new macro.
81759         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81760         using...
81761         (__GNUC_PREREQ): ...this new macro.
81762
81763         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81764
81765 2005-09-15  Derek Price  <derek@ximbiot.com>
81766             Paul Eggert  <eggert@cs.ucla.edu>
81767
81768         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81769         changes, consolidating in...
81770         * lib/regex_internal.h: ...this file.
81771
81772 2005-09-13  Jim Meyering  <jim@meyering.net>
81773
81774         * lib/canon-host.c: Filter through gnu indent and reword comments
81775         slightly.
81776         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81777
81778 2005-09-13  Derek Price  <derek@ximbiot.com>
81779
81780         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81781         failure.
81782         Reported by Jim Meyering  <jim@meyering.net>.
81783
81784 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81785
81786         * lib/base64.c: Typo.
81787         (base64_encode): Put b64str in initialized data section.
81788
81789 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81790
81791         Merge glibc and coreutils changes into gnulib, plus a few
81792         extra fixes.
81793         * lib/md5.c: Use #error rather than a string.
81794         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81795         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81796         (__attribute__): Define to empty for non recent-GCC.
81797         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81798         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81799         Renamed from their non-__ counterparts, with new macros replacing
81800         them if not _LIBC.  Add __THROW attribute.
81801         (rol): Remove.
81802         (struct md5_ctx): Align buffer if using GCC.
81803         * lib/sha1.h (struct sha1_ctx): Likewise.
81804         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81805         The old name was backwards.
81806         (NOTSWAP): Remove; not used.
81807         (rol): New macro, moved here from md5.h.
81808         (sha1_process_block): Remove a FIXME that doesn't make sense.
81809
81810 2005-09-12  Derek Price  <derek@ximbiot.com>
81811
81812         Return usable errors from canon-host.
81813         * lib/canon-host.h: New file.
81814         * lib/canon-host.c (canon_host): Wrap...
81815         (canon_host_r): ...this new function, which now relies exclusively on
81816         getaddrinfo.
81817         (ch_strerror): New function.
81818         (last_cherror): New global.
81819         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81820         interface.
81821         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81822         void *.
81823         (freeaddrinfo): Free ai->ai_canonname when set.
81824
81825 2005-09-12  Derek Price  <derek@ximbiot.com>
81826
81827         Make canon-host require getaddrinfo.
81828         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81829         AC_LIBSOURCE canon-host.h.  Call...
81830         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81831         gl_GETADDRINFO.
81832         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81833
81834 2005-09-12  Derek Price  <derek@ximbiot.com>
81835
81836         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81837         LGPL.
81838         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81839
81840 2005-09-12  Derek Price  <derek@ximbiot.com>
81841
81842         * lib/gai_strerror.c: Include config.h when available.  Include
81843         getaddrinfo.h before other headers to test interface.
81844         Reported by Larry Jones <lawrence.jones@ugs.com>.
81845
81846 2005-09-12  Derek Price  <derek@ximbiot.com>
81847             Paul Eggert  <eggert@cs.ucla.edu>
81848
81849         * modules/glob (Files): Add glob-libc.h.
81850
81851 2005-09-12  Derek Price  <derek@ximbiot.com>
81852             Paul Eggert  <eggert@cs.ucla.edu>
81853
81854         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81855         glob_.h, glob-libc.h.
81856         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81857
81858 2005-09-12  Derek Price  <derek@ximbiot.com>
81859             Paul Eggert  <eggert@cs.ucla.edu>
81860
81861         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81862         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81863         protecting things that should be done only in gnulib contexts.
81864         * lib/glob_.h: New file, containing only the glob things needed for
81865         gnulib.
81866         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81867         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81868         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81869         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81870         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81871         and to respect the namespace rules better.
81872
81873 2005-09-08  Simon Josefsson  <jas@extundo.com>
81874
81875         * modules/socklen: New file.
81876
81877 2005-09-08  Simon Josefsson  <jas@extundo.com>
81878
81879         * m4/socklen.m4: New file.
81880
81881 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81882
81883         * modules/utimens (Files): Add m4/utimbuf.m4, since
81884         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81885         Reported by Sergey Poznyakoff.
81886
81887 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81888
81889         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81890         definitions, since that's the preferred style in glibc.
81891         Fix a minor spacing issue, and update copyright notice to match
81892         glibc's.
81893
81894 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81895
81896         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81897
81898 2005-09-06  Simon Josefsson  <jas@extundo.com>
81899
81900         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81901         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81902
81903 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81904
81905         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81906         warning.
81907
81908 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81909
81910         * config/srclist.txt: Add glibc bug 1302.
81911
81912 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81913
81914         Change bitset word type from unsigned int to unsigned long int,
81915         as this has better performance on typical 64-bit hosts.
81916         Port bitset code to hosts with unusual word sizes.
81917         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81918         (build_collating_symbol):
81919         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81920         argument is a bitset.  This is merely a style issue, but it makes
81921         it clearer that an entire array is expected.
81922         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81923         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81924         Port to the case where bitset_word is not the same as unsigned int.
81925         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81926         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81927         Likewise.
81928         * lib/regexec.c (check_dst_limits_calc_pos_1,
81929         check_subexp_matching_top):
81930         (build_trtable, group_nodes_into_DFAstates):
81931         Likewise.
81932         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81933         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81934         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81935         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81936         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81937         * lib/regcomp.c (optimize_subexps, lower_subexp):
81938         Work even if bitset_word has holes in its bitwise representation.
81939         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81940         * lib/regexec.c (check_dst_limits_calc_pos_1,
81941         check_subexp_matching_top):
81942         Likewise.
81943         * lib/regex_internal.c (re_string_reconstruct):
81944         Don't assume UCHAR_MAX == 255.
81945         * lib/regex_internal.h (bitset_set_all): Likewise.
81946         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81947         All uses changed.
81948         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81949         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81950         All uses changed.
81951         (BITSET_WORD_MAX): New macro.
81952         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81953         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81954         (bitset_empty, bitset_copy):
81955         Prefer sizeof (bitset) to multiplying it out ourselves.
81956         (bitset_not_merge): Remove; unused.
81957         (bitset_contain): Return bool, not unsigned int with one bit on.
81958         All callers changed.
81959         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81960         alignment than re_node_set; do this by defining a new internal
81961         type struct dests_alloc and using it to allocate memory.
81962
81963 2005-09-05  Bruno Haible  <bruno@clisp.org>
81964
81965         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81966         links.
81967
81968 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81969
81970         * modules/size_max (Makefile.am): Add size_max.h
81971
81972 2005-09-04  Derek Price  <derek@ximbiot.com>
81973
81974         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81975
81976 2005-09-03  Simon Josefsson  <jas@extundo.com>
81977
81978         * gnulib-tool: Fix typo.
81979
81980 2005-09-03  Simon Josefsson  <jas@extundo.com>
81981
81982         * config/srclist.txt: Add glibc bug 1293.
81983
81984 2005-09-03  Derek Price  <derek@ximbiot.com>
81985
81986         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81987         From Larry Jones <lawrence.jones@ugs.com>.
81988
81989 2005-09-02  Simon Josefsson  <jas@extundo.com>
81990
81991         * modules/socklen: New file.
81992
81993 2005-09-02  Simon Josefsson  <jas@extundo.com>
81994
81995         * modules/havelib: New module.
81996
81997         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81998         Use havelib.
81999
82000 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82001
82002         Check for arithmetic overflow when calculating sizes, to prevent
82003         some buffer-overflow issues.  These patches are conservative, in the
82004         sense that when I couldn't determine whether an overflow was possible,
82005         I inserted a run-time check.
82006         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82007         macros.
82008         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82009         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82010         (re_xnrealloc, re_x2nrealloc): New inline functions.
82011         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82012         parse_bracket_exp):
82013         (build_equiv_class, build_charclass): Check for arithmetic overflow
82014         in size expression calculations.
82015         * lib/regex_internal.c (re_string_realloc_buffers):
82016         (build_wcs_upper_buffer, re_node_set_add_intersect):
82017         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82018         (re_dfa_add_node, register_state): Likewise.
82019         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82020         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82021         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82022         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82023
82024 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82025
82026         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82027         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82028
82029 2005-09-02  Bruno Haible  <bruno@clisp.org>
82030
82031         Support for lib vs. lib64 distinction on biarch platforms.
82032         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82033         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82034         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82035
82036 2005-09-02  Bruno Haible  <bruno@clisp.org>
82037
82038         * gnulib-tool (import): In the other first-use case, provide defaults
82039         as well.
82040
82041 2005-09-02  Bruno Haible  <bruno@clisp.org>
82042
82043         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82044         patches not yet found in the latest gettext release.
82045
82046 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82047
82048         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82049         to avoid a collision with bits/local_lim.h in glibc.
82050         All uses changed.  Problem reported by Dmitry V. Levin in
82051         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82052
82053         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82054         bugs in int versus size_t comparisons.
82055         (re_string_context_at): Fix bug where the code assumed that
82056         Idx is signed.
82057
82058         Use bool where appropriate.
82059         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82060         All callers changed.
82061         (calc_eclosure_iter): Likewise, for ROOT arg.
82062         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82063         (build_charclass_op): Likewise, for NON_MATCH arg.
82064         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82065         (re_string_construct_common): Likewise, for ICASE arg.
82066         * lib/regexec.c (re_search_2_stub, re_search_stub):
82067         Likewise, for RET_LEN arg.
82068         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82069         (set_regs): Likewise, for FL_BACKTRACK arg.
82070         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82071         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82072         (calc_eclosure_iter, parse_bracket_exp):
82073         Use bool for internal variables that are booleans.
82074         * lib/regexec.c (re_search_internal, check_matching,
82075         proceed_next_node):
82076         (set_regs, build_sifted_states, sift_states_bkref):
82077         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82078         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82079         (find_collation_sequence_value):
82080         Likewise.
82081         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82082         (re_node_set_compare):
82083         Return bool, not int. All callers changed.
82084         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82085         (build_trtable, check_node_accept): Likewise.
82086         * lib/regex_internal.h: Include stdbool.h.
82087
82088         Fix bugs uncovered when converting to bool.
82089         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82090         failure instead of charging ahead blindly.
82091         * lib/regex_internal.c (register_state): Likewise.
82092         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82093         for freeing internal storage.
82094         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82095         bitset pieces used as boolean, to avoid undefined behavior
82096         on hosts that do int overflow checking.
82097
82098 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82099
82100         * config/srclist.txt: Add glibc bugs 1285-1287.
82101
82102 2005-09-01  Jim Meyering  <jim@meyering.net>
82103
82104         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82105         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82106         Require gl_STAT_MACROS, too.
82107
82108 2005-09-01  Bruno Haible  <bruno@clisp.org>
82109
82110         * gnulib-tool (import): In the first-use case, provide defaults.
82111
82112 2005-09-01  Bruno Haible  <bruno@clisp.org>
82113
82114         * gnulib-tool (func_import): Remove the .tmp files.
82115
82116 2005-09-01  Bruno Haible  <bruno@clisp.org>
82117
82118         * gnulib-tool (func_import): Fix handling of symbolic links.
82119
82120 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82121
82122         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82123         old glibc regex code mishandles strings longer than 2**31 bytes.
82124         This patch fixes this when the regex code is used in gnulib
82125         (i.e., outside glibc).
82126
82127         This patch should not affect the use of the regex code inside
82128         glibc.  No doubt this problem also needs to be handled for glibc
82129         as well, but the result will be an incompatible change to the
82130         glibc ABI, and the old ABI will have to be supported too.  That
82131         can be the the subject for another patch.
82132
82133         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82134         governing whether the rest of this patch is active.  By default,
82135         the macro is disabled and the patch has no effect.
82136         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82137         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82138         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82139         (re_match_2, re_set_registers): Use the new types.
82140         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82141         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82142         New macros.
82143         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82144         (re_string_context_at, bin_tree_t, re_dfastate_t):
82145         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82146         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82147         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82148         (re_string_char_size_at, re_string_wchar_at):
82149         (re_string_elem_size_at):
82150         Use the new types and macros to port to 64-bit hosts.
82151         Use unsigned types for internal values, so that the code
82152         mostly works even for arrays larger than SSIZE_MAX.
82153         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82154         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82155         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82156         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82157         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82158         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82159         (calc_inveclosure, parse_dup_op, build_range_exp):
82160         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82161         (fetch_number, create_token_tree, mark_opt_subexp):
82162         Likewise.
82163         * lib/regex_internal.c (re_string_construct_common,
82164         create_ci_newstate):
82165         (create_cd_newstate, re_string_allocate, re_string_construct):
82166         (re_string_realloc_buffers, build_wcs_upper_buffer):
82167         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82168         (re_string_reconstruct, re_string_peek_byte_case):
82169         (re_string_fetch_byte_case, re_string_context_at):
82170         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82171         (re_node_set_init_copy, re_node_set_add_intersect):
82172         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82173         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82174         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82175         (re_acquire_state, re_acquire_state_context, register_state):
82176         Likewise.
82177         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82178         search_cur_bkref_entry):
82179         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82180         (re_search_internal, re_search_2_stub, re_search_stub)
82181         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82182         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82183         (update_cur_sifted_state, check_dst_limits):
82184         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82185         (check_subexp_limits, sift_states_bkref, merge_state_array):
82186         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82187         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82188         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82189         (expand_bkref_cache, check_node_accept_bytes):
82190         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82191         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82192         (acquire_init_state_context, check_halt_node_context):
82193         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82194         (sift_states_backward, clean_state_log_if_needed):
82195         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82196         (find_recover_state, transit_state_sb, transit_state_mb):
82197         (transit_state_bkref, build_trtable, match_ctx_clean):
82198         Likewise.
82199         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82200         to work around an assumption that REG_MISSING is negative.
82201
82202         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82203         (seek_collating_symbol_entry) [defined _LIBC]:
82204         (lookup_collation_sequence_value) [defined _LIBC]:
82205         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82206         Use prototypes rather than old-style function definitions.
82207         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82208         (transit_state_sb) [0]:
82209         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82210
82211         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82212         rm_eo.
82213
82214         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82215         (optimize_subexps, lower_subexp):
82216         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82217         since the signed shift might overflow.  Use 1u<<31 instead.
82218         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82219         Likewise.
82220         * lib/regexec.c (check_dst_limits_calc_pos_1,
82221         check_subexp_matching_top): Likewise.
82222
82223         * lib/regcomp.c (optimize_subexps, lower_subexp):
82224         Use CHAR_BIT rather than 8, for clarity.
82225         * lib/regexec.c (check_dst_limits_calc_pos_1):
82226         (check_subexp_matching_top): Likewise.
82227         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82228         have to worry about portability issues when shifting it left.
82229         Remove no-longer-needed test for table_size > 0.
82230         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82231         in a word, as the resulting behavior is undefined.
82232         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82233         in one case, a <= should have been an <, and in another case the
82234         whole test was missing.
82235         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82236         the standard name CHAR_BIT.
82237         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82238         this is not true on one's complement and signed-magnitude hosts.
82239
82240         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82241         next_last_offset.
82242         (struct re_dfa_t): Remove unused member states_alloc.
82243         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82244
82245 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82246
82247         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82248         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82249         and large-file glibc and in 32-bit large-file Solaris.
82250
82251 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82252
82253         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82254         lengths fit in regoff_t; this isn't true if regoff_t is the same
82255         width as size_t.
82256         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82257         (= START + RANGE) instead of RANGE.  This avoids overflow
82258         problems when regoff_t is the same width as size_t.
82259         All callers changed.
82260         (re_search_2_stub): Check for overflow when adding the
82261         sizes of the two strings.
82262         (re_search_stub): Check for overflow when adding START
82263         to RANGE; if it occurs, substitute the extreme value.
82264
82265 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82266
82267         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82268
82269 2005-08-31  Jim Meyering  <jim@meyering.net>
82270
82271         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82272         a pointer-to-const.
82273         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82274         (register_state): Likewise.
82275         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82276         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82277         (group_nodes_into_DFAstates): Likewise.
82278
82279 2005-08-31  Jim Meyering  <jim@meyering.net>
82280
82281         * check-module: Add a FIXME comment.
82282
82283 2005-08-31  Eric Blake  <ebb9@byu.net>
82284
82285         * modules/unistd-safer (Files): Add unistd--.h.
82286         * modules/stdio-safer (Files): Add stdio--.h.
82287
82288 2005-08-31  Derek Price  <derek@ximbiot.com>
82289
82290         * lib/getdelim.c (getdelim): Return EOF on EOF.
82291         Reported by Larry Jones <lawrence.jones@ugs.com>.
82292
82293 2005-08-31  Bruno Haible  <bruno@clisp.org>
82294
82295         Avoid unnecessary diffs in the generated lib/Makefile.am.
82296         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82297         the generated files.
82298         (func_import): Don't set cmd.
82299
82300 2005-08-31  Bruno Haible  <bruno@clisp.org>
82301
82302         * lib/strstr.c: Include <stddef.h>, for NULL.
82303         * lib/strcasestr.c: Likewise.
82304         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82305
82306 2005-08-31  Bruno Haible  <bruno@clisp.org>
82307
82308         * gnulib-tool: New option --macro-prefix.
82309         (func_import): Use macro_prefix.
82310         (import): Handle option --macro-prefix.
82311
82312 2005-08-31  Bruno Haible  <bruno@clisp.org>
82313
82314         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82315         Also use new variables cached_lgpl, cached_libtool.
82316
82317 2005-08-31  Bruno Haible  <bruno@clisp.org>
82318
82319         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82320         always instantiating them.
82321
82322 2005-08-31  Bruno Haible  <bruno@clisp.org>
82323
82324         * gnulib-tool (func_import): Read the previous cached settings
82325         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82326         earlier added by gnulib but are now dropped. Warn when a gnulib file
82327         overwrites a non-gnulib file.
82328
82329 2005-08-31  Bruno Haible  <bruno@clisp.org>
82330
82331         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82332         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82333         projects that don't keep autogenerated files in CVS. Put into
82334         actioncmd only the specified modules, not the transitive closure.
82335
82336 2005-08-31  Bruno Haible  <bruno@clisp.org>
82337
82338         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82339         Create directories that shall be filled.
82340         (import): Don't look for gl_* macros in configure.ac. Recurse across
82341         all directories containing a gnulib-cache.m4 files, if meaningful.
82342
82343 2005-08-31  Bruno Haible  <bruno@clisp.org>
82344
82345         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82346         (import): Set seen_libtool when we see gl_LIBTOOL.
82347
82348 2005-08-31  Bruno Haible  <bruno@clisp.org>
82349
82350         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82351         declaration macro definitions from generated gnulib.m4.
82352
82353 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82354
82355         * lib/iconvme.h: Add prototype for iconv_alloc.
82356
82357 2005-08-29  Simon Josefsson  <jas@extundo.com>
82358
82359         * lib/iconvme.c: Fix errno.
82360
82361 2005-08-29  Bruno Haible  <bruno@clisp.org>
82362
82363         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82364         that it works when the directory contains spaces.
82365
82366 2005-08-29  Bruno Haible  <bruno@clisp.org>
82367
82368         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82369
82370 2005-08-29  Bruno Haible  <bruno@clisp.org>
82371
82372         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82373         Emit more advice.
82374
82375 2005-08-29  Bruno Haible  <bruno@clisp.org>
82376         and Stepan Kasal  <kasal@ucw.cz>
82377
82378         * check-module: If more parameters are given, check each of them
82379         separately; add more exceptions, as noted by Jim Meyering.
82380         (check_module): New procedure.
82381         (%exempt_header): Now contains all exceptions.
82382
82383 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82384
82385         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82386
82387 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82388
82389         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82390
82391 2005-08-28  Bruno Haible  <bruno@clisp.org>
82392
82393         * m4/gnulib-tool.m4: New file.
82394
82395 2005-08-27  Jim Meyering  <jim@meyering.net>
82396
82397         * modules/unistd-safer (Files): Add pipe-safer.c.
82398         * modules/fcntl-safer (Files): Add creat-safer.c.
82399
82400 2005-08-27  Jim Meyering  <jim@meyering.net>
82401
82402         * m4/stdlib-safer.m4: New file.  From coreutils.
82403         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82404         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82405         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82406         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82407         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82408
82409 2005-08-27  Jim Meyering  <jim@meyering.net>
82410
82411         * lib/fopen-safer.c: Merge minor changes from coreutils.
82412         * lib/dup-safer.c: Likewise.
82413         * lib/fd-safer.c: Likewise.
82414
82415         Merge from coreutils.
82416         * lib/stdio--.h: New file.
82417         * lib/stdlib--.h: New file.
82418         * lib/mkstemp-safer.c: New file.
82419
82420         GNU tar needs these.
82421         * lib/pipe-safer.c: New file.
82422         * lib/creat-safer.c: New file.
82423         * lib/fcntl--.h (creat): Define to creat_safer.
82424         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82425         * lib/unistd--.h (pipe): Define to pipe_safer.
82426         * lib/unistd-safer.h: Declare pipe_safer.
82427
82428 2005-08-26  Simon Josefsson  <jas@extundo.com>
82429
82430         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82431         Haible <bruno@clisp.org>.
82432
82433 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82434
82435         * lib/regex_internal.h: Remove all references to
82436         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82437         or better.
82438         (bitset_not, bitset_merge, bitset_not_merge):
82439         (bitset_mask, re_string_allocate, re_string_construct):
82440         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82441         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82442         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82443         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82444         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82445         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82446         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82447         (re_acquire_state_context):
82448         Remove unnecessary forward decls.
82449         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82450         Put __attribute at function definition,
82451         now that the function decl has been removed.
82452         * lib/regex_internal.c (re_string_peek_byte_case):
82453         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82454         Likewise.
82455
82456 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82457
82458         * m4/regex.m4: Add AC_PREREQ(2.50).
82459         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82460
82461 2005-08-25  Simon Josefsson  <jas@extundo.com>
82462
82463         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82464         __fsetlocking.
82465
82466 2005-08-25  Simon Josefsson  <jas@extundo.com>
82467
82468         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82469         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82470         GLIBC specific code.
82471
82472 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82473
82474         Make regex safe for g++.  This fixes one real bug (an "err"
82475         that should have been "*err").  g++ problem reported by
82476         Sam Steingold.
82477         * lib/regex_internal.h (re_calloc): New macro, consistent with
82478         re_malloc etc.  All callers of calloc changed to use re_calloc.
82479         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82480         not int.  All callers changed.
82481         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82482         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82483         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82484         (find_recover_state): Change "err" to "*err"; this fixes what
82485         appears to be a real bug.
82486         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82487         versus int.
82488
82489 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82490
82491         * modules/regex (Depends-on): Add malloc, since the code
82492         assumes that !malloc(0) means failure.
82493
82494 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82495
82496         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82497
82498         alloca modernization/simplification for regex.
82499         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82500         needs to be at the start of the file, and can be moved into
82501         regex_internal.h and simplified.
82502         * lib/regex_internal.h: Include <alloca.h>.
82503         (__libc_use_alloca) [!defined _LIBC]: New macro.
82504         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82505         now works outside glibc.
82506
82507 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82508
82509         * config/srclist.txt: Add glibc bugs 1241, 1245.
82510
82511 2005-08-25  Jim Meyering  <jim@meyering.net>
82512
82513         * lib/open-safer.c: Include <config.h>.
82514         Otherwise, we'd lose LARGEFILE support in any file using
82515         e.g. "fcntl--.h"
82516
82517 2005-08-25  Bruno Haible  <bruno@clisp.org>
82518
82519         * m4/minmax.m4: Require autoconf 2.52.
82520         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82521         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82522         alternatives of translit over the alphabet.
82523         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82524
82525 2005-08-24  Simon Josefsson  <jas@extundo.com>
82526
82527         * tests/test-getpass.c: New file.
82528
82529 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82530
82531         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82532         for GNU regex features.
82533
82534 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82535
82536         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82537         * lib/regex.h (regerror): Likewise.
82538
82539         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82540         requires this.  (The code never needed it.)
82541
82542         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82543         All uses of recently-renamed identifiers changed to use the new,
82544         POSIX-compliant names.  The code will build and run just fine
82545         without these changes, but it's better to eat our own dog food
82546         and use the standard-conforming names.
82547
82548         * lib/regex.h: Fix a multitude of POSIX name space violations.
82549         These changes have an effect only for programs that define
82550         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82551         do not change anything for programs compiled in the normal way.
82552         Also, there is no effect on the ABI.
82553
82554         (_REGEX_SOURCE): New macro.
82555         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82556         defined and _GNU_SOURCE is not; this fixes a name space violation.
82557
82558         Rename the following macros to obey POSIX requirements.
82559         The old names are still visible as macros if _REGEX_SOURCE is defined.
82560         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82561         RE_BACKSLASH_ESCAPE_IN_LISTS.
82562         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82563         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82564         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82565         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82566         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82567         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82568         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82569         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82570         (REG_INTERVALS): renamed from RE_INTERVALS.
82571         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82572         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82573         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82574         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82575         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82576         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82577         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82578         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82579         RE_UNMATCHED_RIGHT_PAREN_ORD.
82580         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82581         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82582         (REG_DEBUG): renamed from RE_DEBUG.
82583         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82584         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82585         unusual, since we can't clash with the POSIX REG_ICASE.
82586         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82587         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82588         (REG_NO_SUB): renamed from RE_NO_SUB.
82589         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82590         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82591         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82592         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82593         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82594         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82595         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82596         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82597         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82598         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82599         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82600         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82601         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82602         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82603         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82604         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82605         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82606         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82607         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82608         (REG_FIXED): Renamed from REGS_FIXED.
82609         (REG_NREGS): Renamed from RE_NREGS.
82610
82611         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82612         of other REG_* macros, since POSIX says the user is allowed to
82613         #undef these macros selectively.
82614
82615         (reg_errcode_t): Update comment stating what other tables need
82616         to be consistent.
82617
82618         Rename the following enum values to obey POSIX requirements.
82619         The old names are still visible as macros.
82620         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82621         is not defined, since GNU is supposed to be a superset of POSIX as
82622         much as possible, and since we want reg_errcode_t to be a signed
82623         type for implementation consistency.
82624         (_REG_NOERROR): Renamed from REG_NOERROR.
82625         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82626         (_REG_BADPAT): Renamed from REG_BADPAT.
82627         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82628         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82629         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82630         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82631         (_REG_EBRACK): Renamed from REG_EBRACK.
82632         (_REG_EPAREN): Renamed from REG_EPAREN.
82633         (_REG_EBRACE): Renamed from REG_EBRACE.
82634         (_REG_BADBR): Renamed from REG_BADBR.
82635         (_REG_ERANGE): Renamed from REG_ERANGE.
82636         (_REG_ESPACE): Renamed from REG_ESPACE.
82637         (_REG_BADRPT): Renamed from REG_BADRPT.
82638         (_REG_EEND): Renamed from REG_EEND.
82639         (_REG_ESIZE): Renamed from REG_ESIZE.
82640         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82641         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82642         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82643         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82644         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82645
82646         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82647         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82648         changed.  But support the old name if the new one is not defined
82649         and if _REGEX_SOURCE.
82650
82651         Change the following member names in struct re_pattern_buffer.
82652         The old names are still supported if !_REGEX_SOURCE.
82653         The new names are always supported, regardless of _REGEX_SOURCE.
82654         (re_buffer): Renamed from buffer.
82655         (re_allocated): Renamed from allocated.
82656         (re_used): Renamed from used.
82657         (re_syntax): Renamed from syntax.
82658         (re_fastmap): Renamed from fastmap.
82659         (re_translate): Renamed from translate.
82660         (re_can_be_null): Renamed from can_be_null.
82661         (re_regs_allocated): Renamed from regs_allocated.
82662         (re_fastmap_accurate): Renamed from fastmap_accurate.
82663         (re_no_sub): Renamed from no_sub.
82664         (re_not_bol): Renamed from not_bol.
82665         (re_not_eol): Renamed from not_eol.
82666         (re_newline_anchor): Renamed from newline_anchor.
82667
82668         Change the following member names in struct re_registers.
82669         The old names are still supported if !_REGEX_SOURCE.
82670         The new names are always supported, regardless of _REGEX_SOURCE.
82671         (rm_num_regs): Renamed from num_regs.
82672         (rm_start): Renamed from start.
82673         (rm_end): Renamed from end.
82674
82675         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82676         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82677         Prepend __ to parameter names.
82678
82679         Undo yesterday's changes.
82680
82681 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82682
82683         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82684         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82685         lib/regex.c.
82686
82687 2005-08-24  Jim Meyering  <jim@meyering.net>
82688
82689         Sync from coreutils.
82690         * m4/fcntl-safer.m4: New file.
82691
82692         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82693         and object files for this module.
82694
82695 2005-08-24  Jim Meyering  <jim@meyering.net>
82696
82697         Sync from coreutils.
82698         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82699
82700 2005-08-24  Jim Meyering  <jim@meyering.net>
82701
82702         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82703         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82704
82705 2005-08-24  Jim Meyering  <jim@meyering.net>
82706
82707         * modules/fcntl-safer: New module.
82708         * modules/fts (Depends-on): Add fcntl-safer.
82709         * MODULES.html.sh (File descriptor based Input/Output):
82710         Add fcntl-safer.
82711
82712 2005-08-24  Bruno Haible  <bruno@clisp.org>
82713
82714         Support for unit test modules.
82715         * modules/README: Mention tests modules.
82716         * modules/TEMPLATE-TESTS: New file.
82717         * gnulib-tool: New options --extract-tests-module, --with-tests and
82718         --tests-base (unused for the moment).
82719         (testsbase, inctests): New variables.
82720         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82721         (func_verify_module): Exclude TEMPLATE-TESTS.
82722         (func_verify_nontests_module, func_verify_tests_module): New functions.
82723         (func_get_dependencies): Add implicit dependency for tests modules.
82724         (func_get_tests_module): New function.
82725         (func_modules_transitive_closure): When --with-tests was specified,
82726         include the unit tests as well, unless explicitly avoided.
82727         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82728         (func_emit_tests_Makefile_am): New function.
82729         (func_create_testdir): When --with-tests was specified, emit a
82730         tests/ directory.
82731         * MODULES.html.sh (Future developments): Update.
82732
82733 2005-08-24  Bruno Haible  <bruno@clisp.org>
82734
82735         * modules/tls-tests: New file.
82736         * tests/test-tls.c: New file, from GNU gettext.
82737
82738 2005-08-24  Bruno Haible  <bruno@clisp.org>
82739
82740         * modules/lock-tests: New file.
82741         * tests/test-lock.c: New file, from GNU gettext.
82742
82743 2005-08-24  Bruno Haible  <bruno@clisp.org>
82744
82745         * lib/lock.h: Add multiple inclusion guard.
82746         * lib/tls.h: Add multiple inclusion guard.
82747
82748 2005-08-24  Bruno Haible  <bruno@clisp.org>
82749
82750         * gnulib-tool: Add support for the --aux-dir option to
82751         --create-testdir, --create-megatestdir, --test, --megatest.
82752         (func_create_testdir, func_create_megatestdir): Optionally emit a
82753         AC_CONFIG_AUX_DIR directive.
82754         (create-testdir, create-megatestdir, test, megatest): Provide a
82755         default value for $auxdir.
82756
82757 2005-08-24  Bruno Haible  <bruno@clisp.org>
82758
82759         * gnulib-tool (import): Use compound statement instead of subshell
82760         where possible.
82761
82762 2005-08-24  Bruno Haible  <bruno@clisp.org>
82763
82764         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82765
82766 2005-08-24  Bruno Haible  <bruno@clisp.org>
82767
82768         * gnulib-tool (func_version): Update.
82769
82770 2005-08-24  Bruno Haible  <bruno@clisp.org>
82771
82772         * gnulib-tool (func_import, func_create_testdir,
82773         func_create_megatestdir): Quote all autoconf macro arguments.
82774
82775 2005-08-24  Bruno Haible  <bruno@clisp.org>
82776
82777         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82778         option --force, because --force causes the aclocal.m4 of each
82779         subdirectory to be newer than the corresponding config.h.in.
82780
82781 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82782
82783         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82784         All contents moved to gl_REGEX.
82785         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82786         assume that it does.
82787
82788 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82789
82790         * lib/regex.h (REG_NOSYS)
82791         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82792         Define, since POSIX requires it as of 2001.
82793         (_REG_ENOSYS)
82794         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82795         New private symbol, used to keep the enum signed in all cases.
82796         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82797         Youngman in
82798         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82799
82800         * lib/regex_internal.c (re_string_skip_chars, register_state):
82801         (calc_state_hash):
82802         Remove forward decls; no longer needed now that we use prototypes.
82803         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82804         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82805         (clean_state_log_if_needed): Likewise.
82806
82807 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82808
82809         * config/srclist.txt: Add glibc bugs 1231-1233.
82810
82811 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82812
82813         Fix problems reported by Sam Steingold in
82814         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82815         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82816         assumed that reg_errcode_t is a signed type, which is not
82817         necessarily true if _XOPEN_SOURCE is not defined.
82818         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82819         since some compilers warn about it otherwise.
82820
82821 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82822
82823         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82824         (init_word_char, create_initial_state, duplicate_node_closure):
82825         (fetch_token, peek_token_bracket, build_range_exp):
82826         (build_collating_symbol): Remove forward decls; no longer needed
82827         now that we use prototypes.
82828
82829         * lib/regcomp.c:
82830         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82831         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82832         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82833         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82834         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82835         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82836         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82837         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82838         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82839         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82840         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82841         (build_charclass, build_charclass_op, fetch_number, create_tree):
82842         (create_token_tree, mark_opt_subexp, duplicate_tree):
82843         Use prototypes rather than old-style definitions.
82844
82845         * lib/regex_internal.c:
82846         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82847         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82848         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82849         (re_string_reconstruct, re_string_peek_byte_case):
82850         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82851         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82852         (re_node_set_init_copy, re_node_set_add_intersect):
82853         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82854         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82855         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82856         (re_acquire_state, re_acquire_state_context, register_state):
82857         (create_ci_newstate, create_cd_newstate, free_state):
82858         Likewise.
82859         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82860         re_search_2):
82861         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82862         (re_search_internal, prune_impossible_nodes):
82863         (acquire_init_state_context, check_matching, static):
82864         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82865         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82866         (update_regs, sift_states_backward, build_sifted_states):
82867         (clean_state_log_if_needed, merge_state_array):
82868         (update_cur_sifted_state, add_epsilon_src_nodes):
82869         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82870         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82871         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82872         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82873         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82874         (check_arrival, check_arrival_add_next_nodes):
82875         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82876         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82877         (check_node_accept_bytes, check_node_accept, extend_buffers):
82878         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82879         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82880         (sift_ctx_init):
82881         Likewise.
82882
82883         * lib/regex_internal.h:
82884         (re_string_allocate, re_string_construct, re_string_reconstruct):
82885         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82886         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82887         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82888         (re_string_context_at, re_string_peek_byte_case):
82889         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82890         is defined, since we now use prototypes always.
82891
82892         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82893         C89 or better.  All uses removed.
82894
82895 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82896
82897         * config/srclist.txt: Add glibc bugs 1220-1227.
82898
82899 2005-08-20  Jim Meyering  <jim@meyering.net>
82900
82901         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82902         of unused local, dfa.
82903
82904 2005-08-20  Bruno Haible  <bruno@clisp.org>
82905
82906         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82907
82908 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82909
82910         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82911         (re_node_set_insert_last, re_dfa_add_node):
82912         Rename local variables to avoid GCC shadowing warnings.
82913
82914 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82915
82916         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82917         [defined lint]: Suppress bogus uninitialized-variable warnings.
82918
82919         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82920         and let the caller return REG_ESPACE if out of space.  This
82921         removes an uninitialied-variable warning with GCC 4.0.1, and also
82922         avoids taking the address of a local variable.  All callers
82923         changed.
82924
82925 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82926
82927         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82928         $LIBCSRC/posix/regexec.c.
82929         Add glibc bug 1217 for regcomp.c.
82930
82931 2005-08-19  Jim Meyering  <jim@meyering.net>
82932
82933         * lib/regexec.c (proceed_next_node): Redo local variables to
82934         avoid GCC shadowing warnings.
82935
82936 2005-08-18  Bruno Haible  <bruno@clisp.org>
82937
82938         * lib/strstr.c (strstr): Fix return value in multibyte case.
82939         * lib/strcasestr.c (strcasestr): Likewise.
82940
82941 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82942
82943         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82944
82945 2005-08-17  Jim Meyering  <jim@meyering.net>
82946
82947         Make the %s format (seconds since the epoch) work for a negative
82948         number and when used with a zero-padded field width, e.g. %015s.
82949
82950         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82951         label so that it precedes the code to set `digits'.  Otherwise,
82952         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82953         print `00-22'.  Now, it prints `-0022', as it should.
82954
82955 2005-08-17  Bruno Haible  <bruno@clisp.org>
82956
82957         * modules/strstr (Files): Add m4/mbrtowc.m4.
82958         (Depends-on): Add mbuiter.
82959
82960 2005-08-17  Bruno Haible  <bruno@clisp.org>
82961
82962         * modules/strcasestr: New file.
82963         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82964         strcasestr.
82965
82966 2005-08-17  Bruno Haible  <bruno@clisp.org>
82967
82968         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82969
82970 2005-08-17  Bruno Haible  <bruno@clisp.org>
82971
82972         * modules/mbuiter: New file.
82973         * MODULES.html.sh (Extended multibyte and wide character utilities):
82974         Add mbuiter.
82975
82976 2005-08-17  Bruno Haible  <bruno@clisp.org>
82977
82978         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82979         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82980
82981 2005-08-17  Bruno Haible  <bruno@clisp.org>
82982
82983         * m4/strcasestr.m4: New file.
82984
82985 2005-08-17  Bruno Haible  <bruno@clisp.org>
82986
82987         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82988         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82989
82990 2005-08-17  Bruno Haible  <bruno@clisp.org>
82991
82992         * lib/strcasestr.h: New file.
82993         * lib/strcasestr.c: New file.
82994
82995 2005-08-17  Bruno Haible  <bruno@clisp.org>
82996
82997         * lib/strcasecmp.c: Use mbuiter.h.
82998
82999 2005-08-17  Bruno Haible  <bruno@clisp.org>
83000
83001         * lib/mbuiter.h: New file.
83002
83003 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83004
83005         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83006         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83007         and gl_GETOPT are both invoked via different paths (as happens
83008         with GNU tar CVS because it uses both argp and getopt), the former
83009         wins.
83010
83011 2005-08-16  Bruno Haible  <bruno@clisp.org>
83012
83013         * modules/tls: New file.
83014         * MODULES.html.sh (Multithreading): Add tls.
83015
83016 2005-08-16  Bruno Haible  <bruno@clisp.org>
83017
83018         * modules/strnlen1: New file.
83019         * MODULES.html.sh (String handling): Add strnlen1.
83020
83021 2005-08-16  Bruno Haible  <bruno@clisp.org>
83022
83023         * modules/strcase (Files): Add m4/mbrtowc.m4.
83024         (Depends-on): Add strnlen1, mbchar.
83025
83026 2005-08-16  Bruno Haible  <bruno@clisp.org>
83027
83028         * modules/mbiter: New file.
83029         * MODULES.html.sh (Extended multibyte and wide character utilities):
83030         Add mbiter.
83031
83032 2005-08-16  Bruno Haible  <bruno@clisp.org>
83033
83034         * modules/mbfile: New file.
83035         * MODULES.html.sh (Extended multibyte and wide character utilities):
83036         Add mbfile.
83037
83038 2005-08-16  Bruno Haible  <bruno@clisp.org>
83039
83040         * modules/mbchar: New file.
83041         * MODULES.html.sh (Extended multibyte and wide character utilities):
83042         New section.
83043
83044 2005-08-16  Bruno Haible  <bruno@clisp.org>
83045
83046         * m4/tls.m4: New file, from GNU gettext.
83047
83048 2005-08-16  Bruno Haible  <bruno@clisp.org>
83049
83050         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83051         always.
83052         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83053
83054 2005-08-16  Bruno Haible  <bruno@clisp.org>
83055
83056         * m4/mbiter.m4: New file.
83057
83058 2005-08-16  Bruno Haible  <bruno@clisp.org>
83059
83060         * m4/mbfile.m4: New file.
83061
83062 2005-08-16  Bruno Haible  <bruno@clisp.org>
83063
83064         * m4/mbchar.m4: New file.
83065
83066 2005-08-16  Bruno Haible  <bruno@clisp.org>
83067
83068         * lib/tls.h: New file, from GNU gettext.
83069         * lib/tls.c: New file, from GNU gettext.
83070
83071 2005-08-16  Bruno Haible  <bruno@clisp.org>
83072
83073         * lib/strnlen1.h: New file.
83074         * lib/strnlen1.c: New file.
83075
83076 2005-08-16  Bruno Haible  <bruno@clisp.org>
83077
83078         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83079         (mbi_init): Update.
83080         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83081         NUL byte, not after it.
83082
83083 2005-08-16  Bruno Haible  <bruno@clisp.org>
83084
83085         * lib/strcase.h (strcasecmp): Add note in comments.
83086         * lib/strncasecmp.c: Use code from strcasecmp.c.
83087         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83088         (strcasecmp): Work correctly in multibyte locales.
83089
83090 2005-08-16  Bruno Haible  <bruno@clisp.org>
83091
83092         * lib/mbiter.h: New file.
83093
83094 2005-08-16  Bruno Haible  <bruno@clisp.org>
83095
83096         * lib/mbfile.h: New file.
83097
83098 2005-08-16  Bruno Haible  <bruno@clisp.org>
83099
83100         * lib/mbchar.h: New file.
83101         * lib/mbchar.c: New file.
83102
83103 2005-08-16  Bruno Haible  <bruno@clisp.org>
83104
83105         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83106         the valid ones. Makes the comparison operations transitive:
83107         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83108         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83109
83110 2005-08-15  Simon Josefsson  <jas@extundo.com>
83111
83112         * modules/ssize_t (License): Change to 'unlimited'.
83113
83114         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83115
83116 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83117
83118         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83119         Add comments for each pending glibc patch.
83120
83121 2005-08-15  Bruno Haible  <bruno@clisp.org>
83122
83123         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83124         __cplusplus is defined.
83125
83126 2005-08-14  Jim Meyering  <jim@meyering.net>
83127
83128         Sync from coreutils.
83129
83130         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83131         Use the hash-table-based cycle-detection code not just when
83132         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83133         Reported by James Youngman in
83134         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83135         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83136         FTS_TIGHT_CYCLE_CHECK.
83137         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83138         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83139         once again.
83140         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83141         * lib/fts.c (fd_safer): Remove decl.
83142         Include fcntl--.h rather than unistd-safer.h
83143         (fts_safe_changedir): Don't call fd_safer; no longer needed
83144         now that we include fcntl--.h.
83145
83146 2005-08-12  Simon Josefsson  <jas@extundo.com>
83147
83148         * modules/getndelim2: Use ssize_t module.
83149         * modules/getnline: Likewise.
83150         * modules/safe-read: Likewise.
83151         * modules/xreadlink: Likewise.
83152
83153         * modules/ssize_t: New file.
83154
83155 2005-08-12  Simon Josefsson  <jas@extundo.com>
83156
83157         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83158
83159 2005-08-12  Simon Josefsson  <jas@extundo.com>
83160
83161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83162         ssize_t.
83163
83164 2005-08-12  Simon Josefsson  <jas@extundo.com>
83165
83166         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83167         readline, getdelim and check_version.
83168         (Support for systems lacking ISO C 99: Sizes of integer types):
83169         Add size_max.
83170
83171 2005-08-12  Bruno Haible  <bruno@clisp.org>
83172
83173         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83174
83175 2005-08-11  Simon Josefsson  <jas@extundo.com>
83176
83177         * modules/readline: New file.
83178
83179         * modules/strnlen (Files): Add strnlen.h.
83180
83181 2005-08-11  Simon Josefsson  <jas@extundo.com>
83182
83183         * m4/readline.m4: New file.
83184
83185 2005-08-11  Simon Josefsson  <jas@extundo.com>
83186
83187         * lib/readline.h, readline.c: New file.
83188
83189 2005-08-11  Simon Josefsson  <jas@extundo.com>
83190
83191         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83192         gl_AVOID.
83193
83194 2005-08-11  Bruno Haible  <bruno@clisp.org>
83195
83196         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83197
83198 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83199
83200         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83201
83202 2005-08-10  Simon Josefsson  <jas@extundo.com>
83203
83204         * tests/test-iconvme.c: New file.
83205
83206 2005-08-10  Simon Josefsson  <jas@extundo.com>
83207
83208         * m4/strnlen.m4: New file.
83209
83210         * m4/strndup.m4: Don't check for strnlen declaration, done in
83211         strnlen.m4.
83212
83213 2005-08-10  Simon Josefsson  <jas@extundo.com>
83214
83215         * lib/strndup.c: Use strnlen.h.
83216
83217         * lib/strnlen.h: New file.
83218
83219 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83220
83221         * README: Typos.
83222
83223 2005-08-02  Simon Josefsson  <jas@extundo.com>
83224
83225         * modules/readline: New file.
83226
83227 2005-08-02  Simon Josefsson  <jas@extundo.com>
83228
83229         * modules/getdelim: New file.
83230
83231         * modules/getline: Rewrite, don't use getndelim2.
83232
83233 2005-08-02  Simon Josefsson  <jas@extundo.com>
83234
83235         * m4/getline.m4: Separate out getdelim stuff into separate module.
83236
83237         * m4/getdelim.m4: New file.
83238
83239 2005-08-02  Simon Josefsson  <jas@extundo.com>
83240
83241         * lib/getline.h, getline.c: Rewrite.
83242
83243         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83244
83245 2005-07-31  Bruno Haible  <bruno@clisp.org>
83246
83247         * lib/lock.h (gl_lock_initializer): New macro.
83248         (gl_lock_define_initialized): Use it.
83249         (gl_rwlock_initializer): New macro.
83250         (gl_rwlock_define_initialized): Use it.
83251         (gl_recursive_lock_initializer): New macro.
83252         (gl_recursive_lock_define_initialized): Use it.
83253
83254 2005-07-30  Karl Berry  <karl@gnu.org>
83255
83256         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83257         Report from Ben Pfaff, regarding getopt.
83258
83259 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83260
83261         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83262         normal way.
83263         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83264         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83265         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83266         (gl_GETOPT): Use the new macros.  Most of the implementation
83267         is moved to the new macros.  This is for programs like Emacs
83268         that don't want all the functionality of gl_GETOPT.
83269
83270 2005-07-26  Bruno Haible  <bruno@clisp.org>
83271
83272         * m4/lock.m4: Update from GNU gettext.
83273
83274 2005-07-26  Bruno Haible  <bruno@clisp.org>
83275
83276         * lib/lock.h: Update from GNU gettext.
83277         * lib/lock.c: Update from GNU gettext.
83278
83279 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83280
83281         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83282         obsolescent AC_TRY_RUN.  Include the default includes files, for
83283         'exit'.
83284
83285 2005-07-24  Bruno Haible  <bruno@clisp.org>
83286
83287         * modules/visibility: New file.
83288         * MODULES.html.sh (Misc): Add visibility.
83289
83290 2005-07-24  Bruno Haible  <bruno@clisp.org>
83291
83292         * m4/visibility.m4: New file.
83293
83294 2005-07-24  Bruno Haible  <bruno@clisp.org>
83295
83296         * doc/visibility.texi: New file.
83297
83298 2005-07-22  Bruno Haible  <bruno@clisp.org>
83299
83300         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83301         $(ALLOCA_H), redundant through BUILT_SOURCES.
83302         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83303         redundant through BUILT_SOURCES.
83304         * modules/byteswap (Makefile.am): Remove explicit dependency on
83305         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83306         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83307         $(FNMATCH_H), redundant through BUILT_SOURCES.
83308         * modules/getopt (Makefile.am): Remove explicit dependency on
83309         $(GETOPT_H), redundant through BUILT_SOURCES.
83310         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83311         redundant through BUILT_SOURCES.
83312         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83313         redundant through BUILT_SOURCES.
83314         * modules/stdbool (Makefile.am): Remove explicit dependency on
83315         $(STDBOOL_H), redundant through BUILT_SOURCES.
83316         * modules/stdint (Makefile.am): Remove explicit dependency on
83317         $(STDINT_H), redundant through BUILT_SOURCES.
83318         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83319         Remove explicit dependency on $(SYSEXITS_H).
83320         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83321
83322 2005-07-18  Simon Josefsson  <jas@extundo.com>
83323
83324         * lib/check-version.c (check_version): Accept identical versions too.
83325
83326 2005-07-18  Bruno Haible  <bruno@clisp.org>
83327
83328         * modules/lock: New file.
83329         * MODULES.html.sh (Multithreading): New section.
83330
83331 2005-07-18  Bruno Haible  <bruno@clisp.org>
83332
83333         * m4/lock.m4: New file, from GNU gettext.
83334
83335 2005-07-18  Bruno Haible  <bruno@clisp.org>
83336
83337         * lib/lock.h: New file, from GNU gettext.
83338         * lib/lock.c: New file, from GNU gettext.
83339
83340 2005-07-18  Bruno Haible  <bruno@clisp.org>
83341
83342         * lib/lock.h (gl_once_t): New type.
83343         (gl_once_define, gl_once): New macros.
83344         * lib/lock.c (fresh_once): New variable.
83345         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83346         functions.
83347
83348 2005-07-16  Simon Josefsson  <jas@extundo.com>
83349
83350         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83351         workaround, suggested by Bruno.
83352
83353 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83354
83355         * modules/xalloc (Depends-on): Add xalloc-die.
83356         * modules/xvasprintf (Depends-on): Add xalloc-die.
83357
83358 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83359
83360         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83361         with a minor change.
83362
83363 2005-07-15  Bruno Haible  <bruno@clisp.org>
83364
83365         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83366         When using lib/poll.c, define poll as rpl_poll.
83367
83368 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83369
83370         * modules/argp (Depends-on): Remove unlocked-io.
83371
83372 2005-07-14  Derek Price  <derek@ximbiot.com>
83373
83374         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83375         for glob symlink bug.
83376
83377 2005-07-14  Bruno Haible  <bruno@clisp.org>
83378
83379         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83380         Instead, test for *_unlocked function declarations directly.
83381
83382 2005-07-11  Simon Josefsson  <jas@extundo.com>
83383
83384         * modules/size_max: New file.
83385
83386         * modules/xsize: Depend on size_max module for size_max.m4.
83387
83388 2005-07-11  Simon Josefsson  <jas@extundo.com>
83389
83390         * lib/size_max.h: New file.
83391
83392 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83393
83394         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83395         copyright symbol and the year.
83396         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83397         (version_etc_va): Use parameterized copyright notice.
83398         Reword to conform to the current GNU coding standards.
83399
83400 2005-07-11  Karl Berry  <karl@gnu.org>
83401
83402         * doc/gnulib.texi (Quoting): new node.
83403         (Initial import): more info, from Patrice.
83404
83405 2005-07-11  Bruno Haible  <bruno@clisp.org>
83406
83407         * gnulib-tool (func_usage): Document option --avoid.
83408         (Command line options): Handle --avoid.
83409         (func_acceptable): New function.
83410         (func_modules_transitive_closure): Use it.
83411
83412 2005-07-11  Bruno Haible  <bruno@clisp.org>
83413
83414         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83415         Reported by Jim Meyering.
83416
83417 2005-07-10  Bruno Haible  <bruno@clisp.org>
83418
83419         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83420         Needed when size_t is smaller than 'unsigned int'.
83421         Reported by Paul Eggert.
83422
83423 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83424
83425         * modules/argp (Depends-on): Add unlocked-io
83426
83427 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83428
83429         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83430         block of defines.
83431
83432 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83433
83434         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83435         fix now.
83436
83437 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83438         and Paul Eggert  <eggert@cs.ucla.edu>
83439
83440         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83441         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83442
83443 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83444
83445         * modules/regex (Files): Add lib/regex_internal.c,
83446         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83447         (Depends-on): Add extensions.
83448         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83449
83450 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83451
83452         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83453         pathconf.
83454         * m4/same.m4 (gl_SAME): Likewise.
83455         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83456
83457         * m4/regex.m4: Adjust to new libc regex implementation.
83458         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83459         all the .c and .h parts of (the new) regex.
83460         Quote the m4 stuff better.
83461         Check for RE_ICASE bug of old gnulib.
83462         Check for REG_STARTEND of recent libc.
83463         Rename local variables from jm_* to gl_*.
83464         Quote operand of "test -f".
83465         Say "recent enough" version of libc, not "version 2".
83466         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83467         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83468         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83469         Remove check for btowc, isascii.
83470         Require AM_LANGINFO_CODESET.
83471
83472 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83473
83474         * lib/regex.c, regex.h: Sync from libc.
83475         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83476         * lib/regexec.c:
83477         New files, synced from libc, except that regex_internal.h
83478         currently has a small porting fix.
83479
83480 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83481
83482         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83483         regex_internal.c, regexec.c.
83484         Add regex_internal.h too, but as a comment, since the libc version
83485         is currently broken in gnulib mode.
83486
83487 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83488
83489         Support programs like Emacs that use gnulib but not gettext.
83490         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83491         * modules/gettext-h: New file.
83492         * modules/gettext (Files): Remove lib/gettext.h.
83493         (Depends-on): Add gettext-h.
83494         (Makefile.am): Remove lib_SOURCES.
83495         * modules/argmatch, modules/c-stack, modules/closeout:
83496         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83497         * modules/execute, modules/file-type, modules/getaddrinfo:
83498         * modules/getopt, modules/human, modules/javacomp:
83499         * modules/javaexec, modules/mkdir-p, modules/obstack:
83500         * modules/openat, modules/pagealign_alloc, modules/pipe:
83501         * modules/quotearg, modules/regex, modules/rpmatch:
83502         * modules/unicodeio, modules/userspec, modules/version-etc:
83503         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83504         * modules/xsetenv:
83505         Depend on gettext-h, not gettext.
83506
83507 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83508
83509         * gnulib-tool (func_import): Add support for 'public domain' license.
83510         * modules/alloca, modules/atexit, modules/memmove:
83511         Now public domain, not GPL.
83512         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83513         * modules/realloc, modules/strerror, modules/strtod:
83514         Now LGPL, not GPL.
83515
83516 2005-07-05  Bruno Haible  <bruno@clisp.org>
83517
83518         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83519         autoconf CVS. Needed for mingw.
83520
83521 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83522
83523         Remove the dependency of the strftime module on the tzset module.
83524         * modules/strftime (Depends-on): Remove dependency on tzset.
83525
83526 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83527
83528         Remove the dependency of the strftime module on the tzset module.
83529         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83530         gl_FUNC_TZSET_CLOBBER.
83531
83532 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83533
83534         Remove the dependency of the strftime module on the tzset module.
83535         * lib/strftime.c (my_strftime)
83536         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83537         Copy the input structure, to work around some of the bug with
83538         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83539         Solaris releases, you should also use the tzset module, but we won't
83540         require it as a dependency any more since we don't want LGPLed code
83541         to depend on GPLed code.
83542
83543 2005-07-02  Jim Meyering  <jim@meyering.net>
83544
83545         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83546         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83547         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83548         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83549
83550 2005-07-02  Jim Meyering  <jim@meyering.net>
83551
83552         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83553
83554 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83555
83556         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83557         declares only 'struct timespec;' (!).
83558
83559 2005-07-01  Jim Meyering  <jim@meyering.net>
83560
83561         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83562         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83563         * lib/save-cwd.c, tempname.c:
83564         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83565         and don't include <sys/file.h>).
83566
83567 2005-06-29  Jim Meyering  <jim@meyering.net>
83568
83569         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83570         type name.  Use the variable name instead.
83571         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83572         Likewise.
83573
83574 2005-06-28  Simon Josefsson  <jas@extundo.com>
83575
83576         * modules/check-version (Files): Add check-version.m4.
83577
83578 2005-06-28  Simon Josefsson  <jas@extundo.com>
83579
83580         * m4/check-version.m4: New file, suggested by Jim Meyering
83581         <jim@meyering.net>.
83582
83583 2005-06-28  Simon Josefsson  <jas@extundo.com>
83584
83585         * lib/check-version.h, lib/check-version.c: New files.
83586
83587 2005-06-28  Simon Josefsson  <jas@extundo.com>
83588
83589         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83590         collision with global variable.  Better indentation.  Don't
83591         increment buffer pointer beyond buffer end.  Based on comments
83592         from Paul Eggert <eggert@cs.ucla.edu>.
83593
83594         * lib/base64.h: Indent.
83595
83596 2005-06-28  Simon Josefsson  <jas@extundo.com>
83597
83598         * doc/gnulib.texi (Library version handling): New section.
83599
83600 2005-06-28  Jim Meyering  <jim@meyering.net>
83601
83602         * check-module (find_included_lib_files): Hard-code another
83603         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83604         but modules/fts-lgpl (correctly) does not list those files.
83605
83606         * modules/canonicalize (Files): Add lib/pathmax.h.
83607
83608 2005-06-25  Simon Josefsson  <jas@extundo.com>
83609
83610         * modules/check-version: New file.
83611
83612 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83613
83614         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83615         initializer of struct addrinfo, as an indication that we don't
83616         care how many members the structure has.
83617
83618 2005-06-24  Derek Price  <derek@ximbiot.com>
83619         and Bruno Haible  <bruno@clisp.org>
83620
83621         Remove stat module & update lstat.
83622         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83623         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83624         * m4/stat.m4: Remove this file.
83625
83626 2005-06-24  Derek Price  <derek@ximbiot.com>
83627         and Bruno Haible  <bruno@clisp.org>
83628
83629         Remove stat module & update lstat.
83630         * lib/stat.c: Remove this file...
83631         (slash_aware_lstat): ...moving this content and its support...
83632         * lib/lstat.c (rpl_lstat): ...into here.
83633         * lib/lstat.h: New file.
83634
83635 2005-06-24  Derek Price  <derek@ximbiot.com>
83636         and Bruno Haible  <bruno@clisp.org>
83637
83638         Remove stat module & update lstat.
83639         * config/srclist.txt (libc sources): Remove stat.
83640
83641 2005-06-24  Derek Price  <derek@ximbiot.com>
83642         and Bruno Haible  <bruno@clisp.org>
83643
83644         Remove stat module & update lstat.
83645         * MODULES.html.sh (stat): Remove.
83646         * MODULES.html: Regenerated.
83647         * modules/lstat (Description): Correct function name.
83648         (Files): Add "lstat.h".
83649         (Depends-on): Remove stat, add xalloc, stat-macros.
83650         * modules/stat: Remove this file.
83651         (Include): Add "lstat.h", remove <sys/stat.h>.
83652
83653 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83654
83655         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83656         (ranged_convert): Don't save conversion in a temporary struct.
83657         This causes a warning with GCC 4.0.0, and anyway in the typical
83658         case it's not worth the extra 100 bytes or so of code.
83659         (ranged_convert, __mktime_internal): When calling a function via a
83660         pointer P, use P () rather than (*P) (), as we now assume C89 or
83661         better.
83662
83663 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83664
83665         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83666         "who -r" failed to give output.  Problem reported by Tim Waugh.
83667
83668         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83669         (xcalloc): Use it to avoid needless tests.
83670         Problem reported by Jim Meyering.
83671
83672 2005-06-20  Derek Price  <derek@ximbiot.com>
83673
83674         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83675         unnecessary for Autoconfs > 2.59c.
83676
83677 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83678
83679         * lib/argp.h (__option_is_short): Check upper limit of
83680         __key. Isprint() requires its argument to have the value
83681         of an unsigned char or EOF.
83682
83683 2005-06-16  Jim Meyering  <jim@meyering.net>
83684
83685         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83686         when either N or S is zero.
83687
83688 2005-06-16  Derek Price  <derek@ximbiot.com>
83689
83690         * m4/bison.m4: Declare YACC & YFLAGS precious.
83691
83692 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83693
83694         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83695         multibyte string or pattern, fall back on unibyte matching.
83696         Problem reported by James Youngman.
83697
83698 2005-06-08  Bruno Haible  <bruno@clisp.org>
83699
83700         * modules/csharpcomp: New file.
83701         * MODULES.html.sh (C#): Add csharpcomp.
83702
83703 2005-06-08  Bruno Haible  <bruno@clisp.org>
83704
83705         * m4/csharpcomp.m4: New file, from GNU gettext.
83706
83707 2005-06-08  Bruno Haible  <bruno@clisp.org>
83708
83709         * lib/csharpcomp.h: New file, from GNU gettext.
83710         * lib/csharpcomp.c: New file, from GNU gettext.
83711         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83712
83713 2005-06-08  Bruno Haible  <bruno@clisp.org>
83714
83715         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83716         warning on mingw.
83717
83718 2005-06-07  Derek Price  <derek@ximbiot.com>
83719
83720         Sync from CVS.
83721         * lib/glob_.h: Indent nested #ifdef.
83722
83723 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83724
83725         Sync from coreutils.
83726         Use "file name" when talking about file names, instead of "filename"
83727         or "path", as per the GNU coding standards.
83728         * lib/mkdir-p.c: Renamed from makepath.c.
83729         (make_dir_parents): Renamed from make_path.  All callers changed.
83730         * lib/mkdir-p.h: Likewise.  All includers changed.
83731         * lib/filenamecat.c: Renamed from path-concat.c.
83732         (file_name_concat): Renamed from path_concat.  All callers changed.
83733         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83734         * lib/filenamecat.h: Likewise.  All includers changed.
83735         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83736         in comments or local variable names.
83737         * lib/basename.c: Likewise.
83738         * lib/canonicalize.c, canonicalize.h: Likewise.
83739         * lib/dirname.c, dirname.h: Likewise.
83740         * lib/euidaccess.c: Likewise.
83741         * lib/exclude.c: Likewise
83742         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83743         * lib/fsusage.c, fsuage.h: Likewise.
83744         * lib/fts.c, fts_.h: Likewise.
83745         * lib/getcwd.c: Likewise.
83746         * lib/getloadavg.c: Likewise.
83747         * lib/mkstemp.c: Likewise.
83748         * lib/mountlist.c, mountlist.h: Likewise.
83749         * lib/openat.c, openat.h: Likewise.
83750         * lib/readlink-stub.c: Likewise.
83751         * lib/readutmp.c, readutmp.h: Likewise.
83752         * lib/rename.c: Likewise.
83753         * lib/rmdir.c: Likewise.
83754         * lib/same.c: Likewise.
83755         * lib/savedir.c: Likewise.
83756         * lib/stripslash.c: Likewise.
83757         * lib/tempname.c: Likewise.
83758         * lib/xreadlink.c: Likewise.
83759         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83760         All uses changed.
83761         * lib/exclude.h: Likewise.
83762
83763         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83764         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83765         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83766         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83767         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83768         files have been getting away with it for years (MORE/BSD 4.3
83769         is extinct now).
83770         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83771         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83772
83773         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83774         Define to 256, not 255, as per modern POSIX.
83775
83776 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83777
83778         Sync from coreutils.
83779         Use "file name" when talking about file names, instead of "filename"
83780         or "path", as per the GNU coding standards.
83781         * MODULES.html.sh: mkdir-p renamed from makepath.
83782         filenamecat renamed from path-concat.
83783         * modules/filenamecat: Renamed from modules/path-concat.
83784         (Files): filenamecat.h and filenamecat.c renamed from
83785         path-concat.h and path-concat.c.
83786         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83787         (Include): filenamecat.h, not path-concat.h.
83788         * modules/mkdir-p: Renamed from modules/makepath.
83789         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83790         makepath.c.
83791         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83792         (Include): mkdir-p.h, not makepath.h.
83793
83794 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83795
83796         Sync from coreutils.
83797         * m4/mkdir-p.m4: Renamed from makepath.m4.
83798         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83799         Rename files from makepath.c to mkdir-p.c, and from
83800         makepath.h to mkdir-p.h.
83801         * m4/filenamecat.m4: Renamed from path-concat.m4.
83802         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83803         Rename files from path-concat.c to filenamecat.c,
83804         and from path-concat.h to filenamecat.h.
83805         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83806         "file name" in local variables or comments.
83807         * m4/rename.m4: Likewise.
83808
83809 2005-06-01  Bruno Haible  <bruno@clisp.org>
83810
83811         * modules/csharpexec: New file.
83812         * MODULES.html.sh (C#): New section.
83813
83814 2005-06-01  Bruno Haible  <bruno@clisp.org>
83815
83816         * m4/csharp.m4: New file, from GNU gettext.
83817         * m4/csharpexec.m4: New file, from GNU gettext.
83818
83819 2005-06-01  Bruno Haible  <bruno@clisp.org>
83820
83821         * lib/csharpexec.h: New file, from GNU gettext.
83822         * lib/csharpexec.c: New file, from GNU gettext.
83823         * lib/csharpexec.sh.in: New file, from GNU gettext.
83824
83825 2005-05-31  Derek Price  <derek@ximbiot.com>
83826             Paul Eggert  <eggert@cs.ucla.edu>
83827
83828         Sync from cvs.
83829         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83830
83831 2005-05-31  Derek Price  <derek@ximbiot.com>
83832             Paul Eggert  <eggert@cs.ucla.edu>
83833
83834         Sync from cvs.
83835         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83836
83837 2005-05-29  Derek Price  <derek@ximbiot.com>
83838
83839         * config/srclist.txt (glob_.h, glob.c): Add these files.
83840
83841 2005-05-29  Derek Price  <derek@ximbiot.com>
83842
83843         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83844         * modules/glob: New file.
83845         * modules/getlogin_r: Add link to POSIX spec in description.
83846
83847 2005-05-29  Derek Price  <derek@ximbiot.com>
83848             Paul Eggert  <eggert@cs.ucla.edu>
83849
83850         * m4/glob.m4: New file.
83851
83852 2005-05-29  Derek Price  <derek@ximbiot.com>
83853             Paul Eggert  <eggert@cs.ucla.edu>
83854
83855         * lib/glob_.h, lib/glob.c: New files.
83856
83857 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83858
83859         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83860         * modules/fts-lgpl (Depends-on): Remove gettext.
83861
83862 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83863
83864         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83865         and don't require gt_INTTYPES_PRI.
83866
83867 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83868
83869         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83870
83871         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83872         the configuration hassle isn't worth it.
83873         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83874         (LONGEST_MODIFIER, PRIuMAX): Remove.
83875
83876 2005-05-27  Bruno Haible  <bruno@clisp.org>
83877
83878         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83879
83880 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83881
83882         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83883         _POSIX_PTHREAD_SEMANTICS for Solaris.
83884
83885 2005-05-25  Derek Price  <derek@ximbiot.com>
83886
83887         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83888
83889 2005-05-25  Derek Price  <derek@ximbiot.com>
83890             Paul Eggert  <eggert@cs.ucla.edu>
83891
83892         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83893         * lib/getlogin_r.c, getlogin_r.h: New files.
83894
83895 2005-05-25  Bruno Haible  <bruno@clisp.org>
83896             Derek Price  <derek@ximbiot.com>
83897
83898         * lib/getlogin_r.h: Simplify API documentation.
83899
83900 2005-05-23  Derek Price  <derek@ximbiot.com>
83901
83902         * modules/minmax (Files): Add m4/minmax.m4.
83903         (configure.ac): Add gl_MINMAX.
83904
83905 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83906
83907         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83908         so that unistd-safer.h (GPL'ed code) need not be included.
83909
83910 2005-05-22  Bruno Haible  <bruno@clisp.org>
83911
83912         * m4/minmax.m4: New file.
83913         Based on a patch by Derek Price <derek@ximbiot.com>.
83914
83915 2005-05-22  Bruno Haible  <bruno@clisp.org>
83916
83917         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83918         (INT64_MIN): Fix definition.
83919         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83920
83921         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83922         NEED_SIGNED_INT_TYPES.
83923
83924         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83925         HAVE_SYSTEM_INTTYPES.
83926
83927 2005-05-22  Bruno Haible  <bruno@clisp.org>
83928
83929         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83930         Also include <sys/param.h> if it defines MIN, MAX.
83931         Based on a patch by Derek Price <derek@ximbiot.com>.
83932
83933 2005-05-21  Jim Meyering  <jim@meyering.net>
83934
83935         * modules/fts (Files): Add m4/inttypes-pri.m4.
83936         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83937
83938 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83939
83940         New fts module.
83941         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83942         (setup_dir, free_dir): New functions.
83943         (enter_dir, leave_dir): Define trivial
83944         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83945         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83946         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83947         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83948         Move to fts-cycle.c.
83949         (fts_open): Use setup_dir.
83950         (fts_close): Use free_dir.
83951         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83952         This adds a label and some gotos, but the alternatives were messier.
83953         Check for memory allocation failure when entering a dir.
83954         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83955         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83956         (FTS): New member fts_cycle, that is a union that contains the
83957         old active_dir_ht and cycle_state.  All uses changed to mention
83958         fts_cycle.ht and fts_cycle.state.
83959         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83960         fts.c, with the following changes:
83961         (setup_dir, free_dir): New functions.
83962         (enter_dir): Now returns bool.  Return true if successful, false
83963         if memory exhausted.  All callers changed.
83964         Do not bother partly cleaning up on
83965         memory allocation failure; that is free_dir's job.
83966         However, free ad if hash_insert fails, to avoid memory leak.
83967         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83968         fts->fts_options to see which union member to use.
83969
83970 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83971
83972         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83973         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83974
83975 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83978
83979 2005-05-20  Jim Meyering  <jim@meyering.net>
83980
83981         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83982         Now a macro, to pacify GCC.
83983
83984 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83985
83986         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83987         of -1.
83988
83989 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83990
83991         * lib/chown.c (rpl_chown): Return -1 on failure.
83992
83993 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83994
83995         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83996         Don't check for stddef.h.
83997         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83998         don't use its results.
83999         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84000         since we include them unconditionally.  Don't require
84001         AM_STDBOOL_H, since stdbool is a prerequisite.
84002         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84003         since we assume C89 or better.
84004         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84005         as we don't use their results.
84006         Don't check for fchdir, memmove, memset, strrchr, as we use
84007         them unconditionally.
84008         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84009         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84010
84011 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84012
84013         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84014         Include <stddef.h> unconditionally, since we assume C89 now.
84015         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84016         * lib/fts.c: Include fts_.h first, to check interface.
84017         Do not include intprops.h; no longer needed.
84018         Include cycle-check.h and hash.h, since fts_.h no longer does.
84019         Remove unnecessary casts of closedir to void.
84020         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84021         decide whether to decrement nlinks.
84022         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84023         (FTS): Use struct hash_table * instead of Hash_table, so that
84024         we no longer need to include hash.h here.
84025
84026 2005-05-18  Jim Meyering  <jim@meyering.net>
84027
84028         * modules/dirfd (License): Change to LGPL.  Most of the code
84029         is already in the public domain.
84030
84031 2005-05-18  Jim Meyering  <jim@meyering.net>
84032
84033         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84034         Reported by Yoann Vandoorselaere.
84035
84036 2005-05-17  Jim Meyering  <jim@meyering.net>
84037
84038         * m4/fts.m4: New file, from coreutils.
84039
84040 2005-05-17  Jim Meyering  <jim@meyering.net>
84041
84042         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84043
84044 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         Sync from coreutils.
84047         * m4/unlinkdir.m4: New file.
84048
84049 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84050
84051         Sync from coreutils.
84052         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84053         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84054         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84055         White space changes only.
84056         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84057         special.
84058         * lib/yesno.c: Include getline.h, not ctype.h.
84059         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84060         Use getline to remove arbitrary restriction on response length.
84061
84062 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84063
84064         * config/srclist-update: Spell out "Street" in FSF postal
84065         mail address; this is the style the FSF seems to prefer.
84066
84067         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84068         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84069         this updates FSF postal mail address.
84070
84071         Sync from coreutils.
84072         * modules/unlinkdir: New file.
84073         * modules/yesno (Depends-on): Add getline.
84074         * MODULES.html.sh (File system functions): Add unlinkdir.
84075
84076 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84077
84078         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84079         lib/strsep.h:
84080         Change the initial comment to refer to GPL, not LGPL.
84081         gnulib-tool will change it to LGPL as needed.
84082
84083         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84084         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84085         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84086         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84087         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84088         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84089         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84090         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84091         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84092         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84093         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84094         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84095         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84096         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84097         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84098         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84099         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84100         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84101         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84102         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84103         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84104         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84105         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84106         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84107         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84108         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84109         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84110         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84111         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84112         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84113         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84114         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84115         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84116         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84117         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84118         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84119         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84120         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84121         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84122         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84123         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84124         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84125         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84126         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84127         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84128         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84129         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84130         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84131         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84132         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84133         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84134         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84135         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84136         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84137         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84138         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84139         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84140         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84141         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84142         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84143         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84144         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84145         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84146         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84147         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84148         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84149         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84150         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84151         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84152         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84153         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84154         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84155         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84156         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84157         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84158         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84159         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84160         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84161         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84162         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84163         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84164         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84165         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84166         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84167         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84168         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84169         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84170         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84171         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84172         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84173         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84174         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84175         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84176         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84177         lib/yesno.c, lib/yesno.h:
84178         Update FSF postal mail address.
84179
84180 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84181
84182         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84183         tests/test-memmem.c, tests/test-stpncpy.c:
84184         Update FSF postal mail address.
84185
84186 2005-05-13  Bruno Haible  <bruno@clisp.org>
84187
84188         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84189         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84190         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84191         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84192         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84193         Add support for 64-bit integers in the MSVC compiler.
84194
84195 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84196
84197         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84198
84199 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84200
84201         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84202
84203 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84204
84205         * doc/getdate.texi (General date syntax): Don't say that date
84206         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84207         Problem reported by Nic Ferrier.
84208
84209 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84210
84211         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84212         specified in ai_socktype. Fix invalid ai_protocol
84213         check. ai_protocol is usually set to 0 or depending on
84214         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84215         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84216         ai_socktype / ai_protocol in the returned addrinfo structure.
84217
84218 2005-05-10  Simon Josefsson  <jas@extundo.com>
84219
84220         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84221         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84222
84223 2005-05-10  Karl Berry  <karl@gnu.org>
84224
84225         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84226         (from http://www.gnu.org/licenses).
84227         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84228         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84229         fdl.texi suffices.
84230
84231 2005-05-10  Karl Berry  <karl@gnu.org>
84232
84233         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84234         (COPYING.DOC): remove.
84235
84236         * config/srclist-update: new FSF address.
84237
84238 2005-05-10  Derek Price  <derek@ximbiot.com>
84239
84240         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84241         possible.
84242
84243 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84244             Bruno Haible  <bruno@clisp.org>
84245
84246         * modules/inet_ntop: New file.
84247         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84248         inet_ntop.
84249
84250 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84251             Bruno Haible  <bruno@clisp.org>
84252
84253         * m4/inet_ntop.m4: New file.
84254
84255 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84256             Bruno Haible  <bruno@clisp.org>
84257
84258         * lib/inet_ntop.h: New file.
84259         * lib/inet_ntop.c: New file, from glibc with modifications.
84260
84261 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84262
84263         * modules/time_r (License): Change to LGPL.
84264         * modules/extensions (License): Change to LGPL.  Actually,
84265         the license is more permissive than that, but currently gnulib-tool
84266         doesn't know how to handle more-permissive licenses.
84267
84268         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84269         Problem reported by Dave Love.
84270
84271 2005-05-08  Jim Meyering  <jim@meyering.net>
84272
84273         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84274         blank.
84275
84276 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84277
84278         * modules/argmatch (Depends-on): Add stdbool.
84279         * modules/backupfile (Depends-on): Likewise.
84280         * modules/chdir-long (Depends-on): Likewise.
84281         * modules/closeout (Depends-on): Likewise.
84282         * modules/cycle-check (Depends-on): Likewise.
84283         * modules/dirname (Depends-on): Likewise.
84284         * modules/fnmatch (Depends-on): Likewise.
84285         * modules/fsusage (Depends-on): Likewise.
84286         * modules/fwriteerror (Depends-on): Likewise.
84287         * modules/getcwd (Depends-on): Likewise.
84288         * modules/getloadavg (Depends-on): Likewise.
84289         * modules/hard-locale (Depends-on): Likewise.
84290         * modules/makepath (Depends-on): Likewise.
84291         * modules/mountlist (Depends-on): Likewise.
84292         * modules/nanosleep (Depends-on): Likewise.
84293         * modules/posixtm (Depends-on): Likewise.
84294         * modules/quotearg (Depends-on): Likewise.
84295         * modules/readtokens (Depends-on): Likewise.
84296         * modules/readtokens0 (Depends-on): Likewise.
84297         * modules/readutmp (Depends-on): Likewise.
84298         * modules/save-cwd (Depends-on): Likewise.
84299         * modules/strftime (Depends-on): Likewise.
84300         * modules/userspec (Depends-on): Likewise.
84301         * modules/utimecmp (Depends-on): Likewise.
84302         * modules/xgetcwd (Depends-on): Likewise.
84303         * modules/xnanosleep (Depends-on): Likewise.
84304         * modules/xstrtod (Depends-on): Likewise.
84305         * modules/yesno (Depends-on): Likewise.
84306
84307 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84308
84309         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84310         needless checks.
84311
84312 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84313
84314         Merge from coreutils.  Among other things,
84315         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84316         * lib/fd-safer.c: New file.
84317         * lib/fcntl-safer.h, open-safer.c: Remove.
84318         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84319         * lib/dup-safer.c: Include unistd-safer.h first.
84320         Don't include errno.h.
84321         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84322         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84323         * lib/file-type.c: Rely on file-type.h change.
84324         * lib/getloadavg.c: Include unistd-safer.h.
84325         (getloadavg): Use safer open.
84326         * lib/getusershell.c: Include "stdio-safer.h".
84327         (getusershell): Use safer fopen.
84328         * lib/long-options.c (long_options): Use NULL rather than 0.
84329         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84330         'free'.
84331         * lib/modechange.c: Likewise.
84332         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84333         (MODE_DONE): New constant.
84334         (struct mode_change): Remove 'next' member.
84335         (make_node_op_equals): New function; like the old one of the
84336         same name, except it allocates an array.
84337         (mode_compile, mode_create_from_ref): Use it.
84338         (mode_compile): Allocate result as an array, not a linked list.
84339         Parse octal string ourself, so that we catch mistakes like "+0".
84340         (mode_adjust): Arg is an array, not a linked list.
84341         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84342         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84343         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84344         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84345         Remove.  This is now stat-macros.h's job.
84346         (talloc): Remove.  All callers replaced by xalloc, so that
84347         our invokers don't have to worry about reporting memory failures.
84348         (make_node_op_equals): Remove.
84349         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84350         New constants.
84351         (struct mode_change): Moved here from modechange.h.
84352         (mode_append_entry): Remove.
84353         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84354         apps to have incorrect behavior.  Use simpler algorithm for head
84355         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84356         Detect more invalid usages rather than having somewhat-random behavior.
84357         Don't insert an "a=" action, as that leads to incorrect behavior.
84358         (mode_compile, mode_create_from_ref): Return NULL on error instead
84359         of an enum, since now there's only one way to have an error.  All
84360         callers changed.
84361         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84362         at the correct time.  Simplify calculation of "+u" and its ilk.
84363         Don't mishandle "+X".
84364         (mode_free): Remove "register" and localize decls.
84365         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84366         (struct mode_change): Move to modechange.c; callers don't
84367         need to see this stuff.
84368         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84369         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84370         (mode_change, mode_adjust): Reflect the new signatures noted above.
84371         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84372         that might redefine system include files.
84373         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84374         (my_usleep): Use NULL rather than (void *) 0.
84375         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84376         Use siginterrupt to specify that system calls should be interrupted.
84377         (rpl_nanosleep): Move initialization of suspended closer to call of
84378         my_usleep.
84379         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84380         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84381         (desirable_utmp_entry): New function.
84382         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84383         using x2nrealloc, to simplify logic.
84384         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84385         size calculation.  Do not assume utmp file is a regular file.
84386         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84387         (READ_UTMP_CHECK_PIDS): New constant.
84388         * lib/save-cwd.c: Include unistd-safer.h.
84389         (save_cwd): Use fd_safer.
84390         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84391         [!_LIBC] Include "stat-macros.h" instead.
84392         * lib/unistd-safer.h (fd_safer): New decl.
84393
84394 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84395
84396         * modules/getloadavg (Depends-on): Add unistd-safer.
84397         * modules/getusershell (Depends-on): Add stdio-safer.
84398         * modules/lstat (Depends-on): Remove xalloc.
84399         * modules/mkstemp (Depends-on): Add stat-macros.
84400         * modules/modechange (Depends-on): Remove xstrtol.
84401         Add stat-macros, xalloc.
84402         * modules/save-cwd (Depends-on): Add unistd-safer.
84403         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84404         * modules/unistd-safer (Files): Add lib/fd-safer.c
84405         (Makefile.am): Remove lib_SOURCES.
84406
84407         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84408         Remove fcntl-safer; unistd-safer supersedes it.
84409
84410 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84411
84412         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84413         AC_HEADER_STAT.
84414         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84415         (gl_PREREQ_CHOWN): Remove.
84416         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84417         it.  Don't require AC_HEADER_STAT.
84418         (gl_PREREQ_LSTAT): Remove.
84419         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84420         Don't require AC_HEADER_STAT.
84421         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84422         (gl_PREREQ_RMDIR): Remove.
84423         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84424         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84425         the stat-macros module a prerequisite.
84426         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84427         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84428         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84429         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84430         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84431         variable names.
84432         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84433         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84434         variable prefixes.
84435         * m4/fcntl-safer.m4: Remove.
84436         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84437         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84438         Invoke gl_PREREQ_FD_SAFER.
84439         (gl_PREREQ_FD_SAFER): New macro.
84440         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84441         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84442         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84443         Remove duplicate call to AC_LIBOBJ(readutmp).
84444         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84445
84446         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84447         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84448
84449 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84450
84451         * MODULES.html.sh (Misc): Add byteswap.
84452
84453 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84454
84455         * modules/getcwd (Depends-on): Add extensions.
84456         * modules/openat (Depends-on): Likewise.
84457
84458 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84459
84460         * modules/byteswap: New file.
84461
84462 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84463
84464         * m4/byteswap.m4: New file.
84465
84466 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84467
84468         * lib/byteswap_.h: New file.
84469
84470 2005-04-25  Karl Berry  <karl@gnu.org>
84471
84472         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84473
84474 2005-04-25  Albert Chin  <china@thewrittenword.com>
84475
84476         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84477         Toolkit C bug.
84478
84479 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84480
84481         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84482         (func_ln_if_changed): Remove forcibly for no error message
84483         in case file does not exist.
84484
84485 2005-04-19  Simon Josefsson  <jas@extundo.com>
84486
84487         * gnulib-tool (Options): Make --symlink mean --symbolic.
84488
84489 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84490
84491         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84492
84493 2005-04-16  Simon Josefsson  <jas@extundo.com>
84494
84495         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84496
84497 2005-04-15  Simon Josefsson  <jas@extundo.com>
84498
84499         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84500
84501 2005-04-15  Simon Josefsson  <jas@extundo.com>
84502
84503         * gnulib-tool: Rename --symlink to --symbolic.
84504
84505 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84506
84507         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84508         symbolic links to files instead of copying/moving.  Add --aux-dir,
84509         specifying directory relative --dir where auxiliary build tools
84510         are placed.
84511
84512 2005-04-14  Bruno Haible  <bruno@clisp.org>
84513
84514         * modules/allocsa (License): Change to LGPL.
84515         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84516
84517 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84518
84519         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84520         that "UTC +1 second" continues to work.  Problem reported
84521         by Dmitry V. Levin.
84522         (relunit_snumber): New rule.
84523         (relunit): Use it.
84524
84525 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84526
84527         * lib/getdate.y (universal_time_zone_table): New constant.
84528         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84529         universal_time_zone_table.
84530         (lookup_zone): Prefer universal_time_zone_table to
84531         local_time_zone_table, so that "GMT" time stamps are allowed in
84532         London during the summer.  Problem reported by Ian Abbott.
84533
84534 2005-04-12  Jim Meyering  <jim@meyering.net>
84535
84536         * lib/human.c (humblock): Set *options even when returning due to
84537         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84538         warning from gcc-4.
84539
84540 2005-04-09  Jim Meyering  <jim@meyering.net>
84541
84542         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84543         -Wuninitialized: initialize tm0.tm_year.
84544
84545 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84546
84547         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84548         count, since there's no maximum.  All uses changed.
84549         Add member dsts_seen.
84550         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84551         not being INT_MAX.
84552         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84553         Use pc_rels_seen to decide whether a date is absolute.
84554
84555         * lib/getdate.y (number): Don't overwrite year.
84556         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84557         check.
84558
84559 2005-04-02  Simon Josefsson  <jas@extundo.com>
84560
84561         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84562         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84563
84564 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84565
84566         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84567         where no absolute path name can be longer than PATH_MAX.
84568
84569 2005-03-27  Jim Meyering  <jim@meyering.net>
84570
84571         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84572
84573 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84574
84575         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84576         "one's complement" -> "ones' complement" in comment, as per Knuth.
84577         "value of type" -> "type or expression" in comment.
84578         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84579
84580 2005-03-26  Jim Meyering  <jim@meyering.net>
84581
84582         Comment nits.
84583         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84584         Correct typos: s/or/of/.
84585
84586 2005-03-26  Jim Meyering  <jim@meyering.net>
84587
84588         * modules/check-include-files: Move to ../ and rename to...
84589         * check-module: ...this.
84590
84591 2005-03-25  Jim Meyering  <jim@meyering.net>
84592
84593         * modules/xvasprintf (Files): Add xalloc.h.
84594
84595 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84596
84597         * modules/gettext (Files): config/config.rpath ->
84598         build-aux/config.rpath
84599         * modules/iconv (Files): Likewise.
84600         Problem reported by Oskar Liljeblad.
84601
84602 2005-03-23  Jim Meyering  <jim@meyering.net>
84603
84604         * modules/check-include-files: New script to check for
84605         missing dependencies, multiple includes, etc.
84606
84607         * modules/c-strtold (Depends-on): Add xalloc.
84608         * modules/c-strtod (Depends-on): Add xalloc.
84609         * modules/hash (Depends-on): Add xalloc.
84610         (Files): Remove lib/xalloc.h.
84611
84612         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84613         * modules/userspec (Files): Add lib/inttostr.h.
84614
84615 2005-03-23  Jim Meyering  <jim@meyering.net>
84616
84617         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84618
84619 2005-03-22  Jim Meyering  <jim@meyering.net>
84620
84621         * modules/stat-macros: New module.
84622         * modules/canonicalize, modules/euidaccess, modules/file-type,
84623         * modules/filemode, modules/lchown, modules/makepath,
84624         * modules/rmdir, modules/stat: Depend on new stat-macros module
84625         rather than listing lib/stat-macros.h manually.
84626         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84627
84628 2005-03-22  Jim Meyering  <jim@meyering.net>
84629
84630         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84631
84632 2005-03-22  Bruno Haible  <bruno@clisp.org>
84633
84634         * config/srclist.txt: Replace target directory 'config' with
84635         'build-aux'.
84636         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84637         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84638         ../build-aux/.
84639
84640 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84641
84642         * modules/chdir-long (Depends-on): Add mempcpy.
84643
84644         * modules/acl, modules/backupfile, modules/c-strtod,
84645         modules/c-strtold, modules/canon-host, modules/canonicalize,
84646         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84647         modules/exclude, modules/exitfail, modules/file-type,
84648         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84649         modules/getdate, modules/getline, modules/getpagesize,
84650         modules/getpass, modules/getugroups, modules/group-member,
84651         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84652         modules/inttostr, modules/long-options, modules/makepath,
84653         modules/md5, modules/memcasecmp, modules/memcoll,
84654         modules/modechange, modules/mountlist, modules/path-concat,
84655         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84656         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84657         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84658         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84659         modules/strftime, modules/strndup, modules/strverscmp,
84660         modules/timespec, modules/unlocked-io, modules/userspec,
84661         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84662         modules/yesno:
84663         Remove lib_SOURCES line from Makefile.am section, as this is now
84664         done automatically by the corresponding Autoconf macro.
84665
84666 2005-03-21  Jim Meyering  <jim@meyering.net>
84667
84668         Changes imported from coreutils.
84669
84670         * lib/cycle-check.c: Don't include xalloc.h.
84671
84672         * lib/path-concat.c: Don't include assert.h.
84673         (path_concat): Remove assertion that would have triggered
84674         for ABASE starting with more than one slash.
84675         Reported by Andreas Schwab.
84676
84677         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84678         properly when ABASE is an absolute file name.
84679         Correct the description of this function.
84680         Include <assert.h>.
84681         Add an assertion and a test driver.
84682         This fixes a bug introduced on 2004-07-02.
84683         Andreas Schwab reported the resulting failure of cp --parents:
84684         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84685
84686 2005-03-21  Jim Meyering  <jim@meyering.net>
84687
84688         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84689         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84690
84691 2005-03-21  Jim Meyering  <jim@meyering.net>
84692         and  Paul Eggert  <eggert@cs.ucla.edu>
84693
84694         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84695         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84696         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84697         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84698         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84699         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84700         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84701         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84702         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84703         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84704         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84705         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84706         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84707         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84708         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84709         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84710         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84711         for these modules.
84712
84713 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84714
84715         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84716         (which shouldn't happen), generate nothing instead of returning 0
84717         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84718
84719 2005-03-16  Bruno Haible  <bruno@clisp.org>
84720
84721         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84722         HAVE_LONGLONG_64BIT.
84723
84724 2005-03-16  Bruno Haible  <bruno@clisp.org>
84725
84726         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84727         HAVE_LONGLONG_64BIT.
84728
84729 2005-03-16  Bruno Haible  <bruno@clisp.org>
84730
84731         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84732         HAVE_LONGLONG_64BIT.
84733
84734 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84735
84736         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84737         reliably distinguish strftime failure from empty output on POSIX
84738         hosts.
84739
84740 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84741
84742         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84743         (iconv_string): Don't guess a size-zero buffer, as that might cause
84744         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84745         result would be 'too large', where 'too large' is (heuristically)
84746         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84747         overflow concerns.  This will prevent some unwanted malloc failures
84748         when the inputs are very large.
84749
84750 2005-03-15  Karl Berry  <karl@gnu.org>
84751
84752         * config/srclist.txt (config.rpath): from gettext.
84753         * config/config.rpath: update.
84754
84755 2005-03-15  Bruno Haible  <bruno@clisp.org>
84756
84757         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84758         to 'negate'.
84759
84760         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84761         variable.
84762
84763         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84764         results.
84765
84766 2005-03-14  Simon Josefsson  <jas@extundo.com>
84767
84768         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84769         <fx@gnu.org>.
84770
84771 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84772
84773         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84774         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84775         intprops.h.
84776         * lib/strtol.c: Likewise.
84777
84778 2005-03-14  Jim Meyering  <jim@meyering.net>
84779
84780         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84781         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84782         to be nonzero so that we (and caller) can detect the difference
84783         between a valid zero-length expansion and an error return, even
84784         when the underlying strftime fails before writing anything into
84785         that location.
84786
84787 2005-03-14  Bruno Haible  <bruno@clisp.org>
84788
84789         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84790         Update from GNU gettext 0.14.3.
84791
84792 2005-03-10  Jim Meyering  <jim@meyering.net>
84793
84794         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84795
84796 2005-03-10  Jim Meyering  <jim@meyering.net>
84797
84798         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84799         so that this module works on systems without fchdir.
84800
84801 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84802
84803         Factor int-properties macros into a single file, except for
84804         glibc-related files.
84805         * lib/intprops.h: New file.
84806         * lib/getloadavg.c: Include it instead of limits.h.
84807         (INT_STRLEN_BOUND): Remove.
84808         * lib/human.c: Include intprops.h.
84809         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84810         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84811         302/1000.
84812         * lib/inttostr.h: Include intprops.h instead of limits.h.
84813         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84814         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84815         for consistency with intprops.h.
84816         (time_t_is_integer, twos_complement_arithmetic): Use them.
84817         * lib/sig2str.h: Include <signal.h>, intprops.h.
84818         (INT_STRLEN_BOUND): Remove.
84819         * lib/strftime.c (TYPE_SIGNED): Remove.
84820         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84821         * lib/strtol.c: Adjust comments to match intprops.h.
84822         * lib/userspec.c: Include intprops.h.
84823         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84824         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84825         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84826         instead of rolling our own expressions.
84827         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84828
84829         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84830         instead of int.
84831         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84832         the right thing even if adding 1900 would overflow.  Similarly
84833         for tm_mon + 1 and tm_yday + 1.
84834         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84835         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84836         (DO_SIGNED_NUMBER): New macro.
84837         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84838
84839 2005-03-07  Bruno Haible  <bruno@clisp.org>
84840
84841         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84842
84843 2005-03-07  Bruno Haible  <bruno@clisp.org>
84844
84845         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84846
84847 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84848
84849         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84850         (func_import): Only replace files via --import when they have actually
84851         changed.
84852
84853 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84854
84855         * m4/mmap-anon.m4: New file.
84856         * m4/pagealign_alloc.m4: New file.
84857
84858 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84859             Bruno Haible  <bruno@clisp.org>
84860
84861         * modules/pagealign_alloc: New file.
84862         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84863
84864 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84865             Bruno Haible  <bruno@clisp.org>
84866
84867         * lib/pagealign_alloc.h: New file.
84868         * lib/pagealign_alloc.c: New file.
84869
84870 2005-03-03  Bruno Haible  <bruno@clisp.org>
84871
84872         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84873         Use an all-permissive copyright notice, recommended by RMS.
84874
84875 2005-03-02  Bruno Haible  <bruno@clisp.org>
84876
84877         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84878         of AIX, the replacement has to be done only after <string.h> is
84879         included, therefore not in config.h. stpncpy.h does the replacement,
84880         and stpncpy.c uses it.
84881
84882 2005-03-02  Bruno Haible  <bruno@clisp.org>
84883
84884         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84885         stpncpy.c uses it.
84886
84887 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84888
84889         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84890         The workaround isn't strictly needed for POSIX conformance, and
84891         it's too much of a pain to configure and maintain.  We'll ask
84892         people to fix their kernels instead.
84893         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84894         (NANOSLEEP_BUG_WORKAROUND): Remove.
84895         (xnanosleep): Remove the workaround.
84896
84897 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84898
84899         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84900         Reported by Derek Price.
84901         (Include): Add "timespec.h".
84902
84903         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84904
84905 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84906
84907         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84908         to detect nanosleep bug.
84909
84910 2005-03-01  Bruno Haible  <bruno@clisp.org>
84911
84912         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84913
84914 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84915
84916         * modules/gethrxtime: New file.
84917         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84918         (Depends-on): Add gethrxtime.
84919         (configure.ac): Add gl_XNANOSLEEP.
84920         (Makefile.am): Remove lib_SOURCES line.
84921
84922 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84923
84924         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84925         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84926
84927 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84928
84929         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84930         * lib/timespec.h (gettime): Return void, since it always
84931         succeeds now.  All uses changed.
84932         * lib/gettime.c (gettime): Likewise.
84933         [HAVE_NANOTIME]: Prefer nanotime.
84934         Assume gettimeofday succeeds, as POSIX requires.
84935         Assime time () succeeds, since other code already does.
84936         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84937         (timespec_subtract): Remove.
84938         (NANOSLEEP_BUG_WORKAROUND): New constant.
84939         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84940         things considerably.  Use it only on GNU/Linux hosts, since the
84941         workaround shouldn't be needed elsewhere.
84942
84943 2005-02-24  Bruno Haible  <bruno@clisp.org>
84944
84945         * modules/gettext (Files): Add m4/glibc2.m4.
84946
84947 2005-02-24  Bruno Haible  <bruno@clisp.org>
84948
84949         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84950         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84951         * m4/progtest.m4:
84952         Update from GNU gettext 0.14.2.
84953         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84954
84955 2005-02-24  Bruno Haible  <bruno@clisp.org>
84956
84957         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84958         * lib/config.charset: Update from GNU gettext 0.14.2.
84959
84960 2005-02-24  Bruno Haible  <bruno@clisp.org>
84961
84962         * lib/gettext.h: Update from GNU gettext 0.14.2.
84963
84964 2005-02-23  Simon Josefsson  <jas@extundo.com>
84965
84966         * m4/iconvme.m4: New file.
84967
84968 2005-02-23  Jim Meyering  <jim@meyering.net>
84969
84970         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84971         change.
84972         Thanks to Bruno Haible for catching it.
84973
84974 2005-02-22  Simon Josefsson  <jas@extundo.com>
84975
84976         * modules/iconvme: New file.
84977
84978         * MODULES.html.sh: Add iconvme.
84979
84980 2005-02-22  Simon Josefsson  <jas@extundo.com>
84981
84982         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84983
84984 2005-02-22  Simon Josefsson  <jas@extundo.com>
84985
84986         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84987
84988 2005-02-22  Jim Meyering  <jim@meyering.net>
84989
84990         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84991         s/ifndef/ifdef/.
84992
84993 2005-02-20  Neil Conway  <neilc@samurai.com>
84994
84995         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84996         returned by OSX/Darwin if the specified buffer is not large
84997         enough for the hostname.
84998
84999 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85000
85001         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85002         pass it to _help, otherwise the latter coredumps trying to
85003         dereference state.root_argp.
85004
85005 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85006
85007         * modules/chdir-long (Depends-on): Add memrchr.
85008         * modules/memrchr (Files): Add lib/memrchr.h.
85009         (Include): "memrchr.h".
85010
85011 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85012
85013         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85014
85015 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85016
85017         * lib/memrchr.h: New file.
85018         * lib/chdir-long.c: Include it.
85019         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85020         Don't bother including stddef.h.
85021
85022 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85023
85024         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85025         inclusion.
85026         Include <sys/types.h>, for dev_t.
85027         (ME_DUMMY, ME_REMOTE): Move from here....
85028         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85029         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85030         Dmitry V. Levin.
85031         Include mountlist.h first, to test the interface.
85032
85033 2005-01-29  Bruno Haible  <bruno@clisp.org>
85034
85035         * lib/progname.c (program_name): Initialize.
85036         Needed when linking statically on MacOS X.
85037
85038 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85039
85040         Sync from coreutils.
85041         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85042         (Depends-on): Add c-strtod.
85043         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85044
85045 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85046
85047         Sync from coreutils.
85048         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85049
85050         Remove files that are specific to coreutils.
85051         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85052
85053 2005-01-28  Bruno Haible  <bruno@clisp.org>
85054
85055         * modules/javacomp: New file.
85056         * MODULES.html.sh (Java): Add javacomp.
85057
85058 2005-01-28  Bruno Haible  <bruno@clisp.org>
85059
85060         * m4/javacomp.m4: New file, from GNU gettext.
85061
85062 2005-01-28  Bruno Haible  <bruno@clisp.org>
85063
85064         * lib/javacomp.sh.in: New file, from GNU gettext.
85065         * lib/javacomp.h: New file, from GNU gettext.
85066         * lib/javacomp.c: New file, from GNU gettext.
85067
85068 2005-01-26  Simon Josefsson  <jas@extundo.com>
85069
85070         * lib/gai_strerror.c: Use GPL in header.
85071
85072 2005-01-26  Bruno Haible  <bruno@clisp.org>
85073
85074         * modules/javaexec: New file.
85075         * MODULES.html.sh (Java): Add javaexec.
85076
85077 2005-01-26  Bruno Haible  <bruno@clisp.org>
85078
85079         * m4/javaexec.m4: New file, from GNU gettext.
85080
85081 2005-01-26  Bruno Haible  <bruno@clisp.org>
85082
85083         * lib/javaexec.sh.in: New file, from GNU gettext.
85084         * lib/javaexec.h: New file, from GNU gettext.
85085         * lib/javaexec.c: New file, from GNU gettext.
85086
85087 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85088
85089         * modules/lchown (Depends-on): Remove lchown.h
85090
85091 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85092
85093         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85094         must be defined if the header file was not found, in order
85095         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85096
85097 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85098
85099         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85100         initializers for struct pentry_state.
85101         (__argp_error): Check return value of __asprintf
85102         (__argp_failure): Translate error message
85103
85104         * lib/argp-parse.c: Removed braces around the expansion of N_()
85105
85106 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85107
85108         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85109         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85110         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85111         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85112         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85113         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85114         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85115         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85116         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85117         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85118         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85119         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85120         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85121         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85122         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85123         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85124         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85125         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85126         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85127         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85128         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85129         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85130         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85131         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85132         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85133         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85134         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85135         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85136         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85137         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85138         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85139         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85140         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85141         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85142         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85143         Use an all-permissive copyright notice, recommended by RMS.
85144
85145 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85146
85147         * modules/chdir-long (Depends-on): Remove mempcpy.
85148
85149 2005-01-21  Jim Meyering  <jim@meyering.net>
85150
85151         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85152         same value as for Solaris 9.
85153
85154         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85155         component length.  This included changing the parameter to be
85156         of type `char *' rather than `char const *'.
85157         * lib/chdir-long.h (chdir_long): Update prototype.
85158
85159         * lib/openat.c (fdopendir, fstatat): New functions.
85160         * lib/openat.h: Include headers required for use of DIR and struct
85161         stat.
85162         [AT_SYMLINK_NOFOLLOW]: Define.
85163         (fdopendir, fstatat): Add prototypes.
85164
85165 2005-01-21  Bruno Haible  <bruno@clisp.org>
85166
85167         * modules/classpath: New file.
85168         * MODULES.html.sh (Java): Add classpath.
85169
85170 2005-01-21  Bruno Haible  <bruno@clisp.org>
85171
85172         * lib/classpath.h: New file, from GNU gettext.
85173         * lib/classpath.c: New file, from GNU gettext.
85174
85175 2005-01-20  Simon Josefsson  <jas@extundo.com>
85176
85177         * modules/version-etc-fsf: New file.
85178
85179 2005-01-20  Simon Josefsson  <jas@extundo.com>
85180
85181         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85182         * lib/version-etc.c: Remove version_etc_copyright.
85183         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85184         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85185
85186 2005-01-20  Simon Josefsson  <jas@extundo.com>
85187
85188         * lib/base64.h (isbase64): Add.
85189
85190         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85191         using a unsigned prototype, don't inline.
85192         (base64_decode): Use it.
85193
85194 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85195
85196         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85197         it.
85198
85199 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85200
85201         * lib/save-cwd.c (save_cwd): Remove code to support the case
85202         where fchdir is missing or flaky.
85203
85204 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85205
85206         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85207
85208 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85209
85210         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85211         AC_LIBSOURCES now does this.
85212         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85213         with new ullong_max module.
85214
85215 2005-01-19  Bruno Haible  <bruno@clisp.org>
85216
85217         * modules/sh-quote: New file.
85218         * MODULES.html.sh (Executing programs): Add sh-quote.
85219
85220 2005-01-19  Bruno Haible  <bruno@clisp.org>
85221
85222         * lib/sh-quote.h: New file, from GNU gettext.
85223         * lib/sh-quote.c: New file, from GNU gettext.
85224
85225 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85226
85227         Merge from coreutils.
85228         * m4/ullong_max.m4: New file.
85229         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85230         (gl_MACROS): Assume localeconv exists.
85231
85232 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85233
85234         Merge changes from coreutils, as described below in several
85235         changelogs dated today.
85236
85237         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85238         (O_DIRECTORY): Remove; not needed here, since "." must be
85239         a directory.  All uses removed.
85240         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85241         universal on Suns, and we also need to test for IRIX.
85242         Revamp code to use 'if' rather than '#if'.
85243         Avoid unnecessary comparison of cwd->desc to 0.
85244
85245         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85246         for known valid error numbers rather than observed invalid ones.
85247
85248 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85249
85250         * modules/ullong_max: New file.
85251
85252         * modules/chdir-long, modules/openat: New files.
85253         * modules/save-cwd (Depends-on): Depend on chdir-long.
85254         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85255
85256 2005-01-18  Jim Meyering  <jim@meyering.net>
85257
85258         Merge from coreutils.
85259         * m4/chdir-long.m4, m4/openat.m4: New files.
85260         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85261         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85262         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85263         is sane and DOES follow symlinks.  Besides, testing 20 different
85264         systems found no broken chown implementations.
85265         Prompted by a change in rsync's copy of this macro.
85266         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85267
85268         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85269
85270         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85271         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85272         NULL-means-set-to-current-time semantics.
85273         Remove temporary file immediately, rather than waiting
85274         for configure's at-exit trap code to do it.
85275
85276 2005-01-18  Jim Meyering  <jim@meyering.net>
85277
85278         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85279
85280         * lib/utimens.c (futimens): Account for the fact that futimes
85281         can also fail with errno == ENOSYS or errno == ENOENT.
85282         Patch from Dmitry V. Levin.
85283
85284         Change the name of the robust chdir function from chdir to chdir_long.
85285         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85286         (restore_cwd): Use chdir_long, not chdir.
85287         * lib/chdir-long.c: Renamed from chdir.c.
85288         * lib/chdir-long.h: Renamed from chdir.h.
85289         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85290         Hurd.
85291
85292 2005-01-18  Bruno Haible  <bruno@clisp.org>
85293
85294         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85295         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85296         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85297         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85298         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85299         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85300         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85301         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85302         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85303         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85304         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85305         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85306         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85307         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85308         Use an all-permissive copyright notice, recommended by RMS.
85309
85310 2005-01-18  Bob Proulx  <bob@proulx.com>
85311
85312         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85313         simplify offsetof() macro construct to avoid compile failure with
85314         native HP-UX 11.0 ANSI C compiler.
85315
85316 2005-01-17  Bruno Haible  <bruno@clisp.org>
85317
85318         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85319         redundant because stpncpy.m4 takes care of it.
85320
85321 2005-01-17  Bruno Haible  <bruno@clisp.org>
85322
85323         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85324
85325 2005-01-17  Bruno Haible  <bruno@clisp.org>
85326
85327         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85328         used.
85329
85330 2005-01-17  Bruno Haible  <bruno@clisp.org>
85331
85332         * lib/fwriteerror.h (fwriteerror): Change specification to include
85333         fclose.
85334         * lib/fwriteerror.c: Include <stdbool.h>.
85335         (fwriteerror): At the end, close the file stream. Record whether
85336         stdout was already closed.
85337
85338 2005-01-17  Bruno Haible  <bruno@clisp.org>
85339
85340         * lib/execute.c (environ): Declare if needed.
85341         * lib/pipe.c (environ): Likewise.
85342         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85343
85344 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85345
85346         * modules/argp: Depend on vsnprintf
85347
85348 2005-01-10  Jim Meyering  <jim@meyering.net>
85349
85350         * modules/closeout (Depends-on): Add atexit.
85351
85352 2005-01-06  Bruno Haible  <bruno@clisp.org>
85353
85354         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85355
85356 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85357
85358         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85359         definitions to be after all include files, to avoid collisions.
85360         Problem reported by Bob Proulx.
85361
85362 2005-01-04  Jim Meyering  <jim@meyering.net>
85363
85364         Changes imported from coreutils.
85365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85366         as the mkstemp template, use a temporary directory and an
85367         8.3-friendly template to avoid trouble on systems like DJGPP.
85368         Reported by Juan M. Guerrero via Stepan Kasal.
85369         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85370         close. Remove the temporary directory right away, rather than waiting
85371         for configure's at-exit trap code to do it.
85372         Suggestion from Stepan Kasal.
85373
85374 2005-01-01  Simon Josefsson  <jas@extundo.com>
85375
85376         * gnulib-tool: Print #include directives when --import'ing.
85377
85378 2004-12-28  Simon Josefsson  <jas@extundo.com>
85379
85380         * tests/test-base64.c: Include required header files.  Remove
85381         unused variables.
85382
85383 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85384
85385         * modules/error (Depends-on): Remove gettext.
85386
85387 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85388
85389         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85390         not needed.  This removes a dependency on the gettext module.
85391         [defined _LIBC]: Do not include <libintl.h>; not needed.
85392
85393 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85394
85395         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85396         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85397
85398 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85399
85400         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85401         HAVE_DECL_STRTOLD.
85402
85403 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85404
85405         * modules/getdate (Depends-on): Remove alloca-opt.
85406
85407 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85408
85409         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85410
85411 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85412
85413         * lib/argp-parse.c: Include <stddef.h>.
85414         (alignof, alignto): New macros.
85415         (parser_init): Don't assume that void * is aligned sufficiently
85416         for struct option.
85417
85418         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85419         need to extend the stack.
85420         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85421         large.
85422
85423 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85424
85425         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85426
85427 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85428
85429         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85430         (2004-10-24) change.  Apparently this was a false alarm.
85431
85432         * modules/getdate: Depend on alloca-opt, not alloca.
85433
85434 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85435
85436         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85437         Remove now-obsolete comment about AIX.
85438         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85439         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85440         (YYMAXDEPTH): New macro.
85441
85442 2004-12-18  Simon Josefsson  <jas@extundo.com>
85443
85444         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85445
85446 2004-12-18  Bruno Haible  <bruno@clisp.org>
85447
85448         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85449
85450 2004-12-18  Bruno Haible  <bruno@clisp.org>
85451
85452         * lib/fatal-signal.c (fatal_signals): Make non-const.
85453         (init_fatal_signals): New function.
85454         (uninstall_handlers, install_handlers): Ignore signals that were set to
85455         SIG_IGN.
85456         (at_fatal_signal): Call init_fatal_signals.
85457         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85458         SIG_IGN.
85459         Reported by Paul Eggert.
85460
85461 2004-12-18  Bruno Haible  <bruno@clisp.org>
85462
85463         * doc/alloca.texi: New file.
85464         * doc/alloca-opt.texi: New file.
85465
85466 2004-12-17  Jim Meyering  <jim@meyering.net>
85467
85468         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85469         Otherwise, install-sh could exit with improper exit status when
85470         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85471
85472 2004-12-16  Simon Josefsson  <jas@extundo.com>
85473
85474         * tests/test-base64.c: Add license.
85475
85476 2004-12-15  Stepan Kasal  <address@hidden>
85477
85478         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85479
85480 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85481
85482         * modules/getcwd (Files): Add m4/d-ino.m4.
85483         Suggested by Mark D. Baushke.
85484
85485 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85486
85487         * lib/getdate.y (textint): New member "negative".
85488         (time_zone_hhmm): New function.
85489         Expect 14 shift-reduce conflicts, not 13.
85490         (o_colon_minutes): New rule.
85491         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85492         (yylex): Set the "negative" member of signed numbers.
85493
85494 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85495
85496         * doc/getdate.texi (Time of day items, Time zone items):
85497         Describe new formats +00:00, UTC+00:00.
85498
85499 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85500
85501         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85502         spurious "-l"s.  Problem reported by Stepan Kasal.
85503
85504 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85505
85506         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85507         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85508
85509 2004-12-04  Simon Josefsson  <jas@extundo.com>
85510
85511         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85512         Vandoorselaere <yoann@prelude-ids.org>.
85513
85514 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85515
85516         Changes imported from coreutils.
85517         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85518         exist.
85519         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85520
85521 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85522
85523         Changes imported from coreutils.
85524         * lib/hard-locale.c: Assume <locale.h> exists.
85525         Include "strdup.h".
85526         (GLIBC_VERSION): New macro.
85527         (hard_locale): Assume setlocale exists.
85528         Rewrite to avoid #ifdef.
85529         Use strdup rather than malloc + strcpy.
85530         * lib/human.c: Assume <locale.h> exists.
85531         (human_readable): Assume localeconv exists.
85532
85533 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85534
85535         * modules/hard-locale (Depends-on): Add strdup.
85536
85537 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85538
85539         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85540         convert T2, not T.  (Imported from libc.)
85541
85542 2004-11-30  Simon Josefsson  <jas@extundo.com>
85543
85544         * modules/restrict (License): Change to LGPL.
85545
85546 2004-11-30  Simon Josefsson  <jas@extundo.com>
85547
85548         * m4/restrict.m4: Add copyright and copying conditions.
85549
85550 2004-11-30  Simon Josefsson  <jas@extundo.com>
85551
85552         * m4/base64.m4: New file.
85553
85554 2004-11-30  Simon Josefsson  <jas@extundo.com>
85555
85556         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85557         base64.
85558
85559         * tests/test-base64.c: New file.
85560
85561         * modules/base64: New file.
85562
85563 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85564
85565         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85566         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85567
85568         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85569
85570 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85571
85572         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85573         (__getcwd.c): Don't restore errno; glibc doesn't.
85574         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85575         first, falling back to our code only if its results look suspicious.
85576         Ensure that the resulting buffer is only as large as necessary.
85577
85578         * lib/readutmp.c: Include readutmp.h first.
85579         Include <errno.h>, since readutmp.h no longer does that.
85580         * lib/readutmp.h: Don't include <errno.h>,
85581         <sys/param.h>, <time.h>; not needed to establish interface.
85582         (errno): Remove decl.
85583         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85584         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85585         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85586
85587 2004-11-28  Simon Josefsson  <jas@extundo.com>
85588
85589         * lib/base64.h, base64.c: New file.
85590
85591 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85592
85593         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85594
85595 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85596
85597         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85598         (Depends-on): Remove pathmax, same.  Add mempcpy.
85599         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85600         (Makefile.am): Append getcwd.h to lib_SOURCES.
85601         (Include): Add getcwd.h.
85602         (Maintainer): Change from Jim Meyering to "all, glibc",
85603         since getdate now uses intended-for-glibc code.
85604         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85605         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85606
85607 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85608
85609         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85610         HP's ANSI C compiler.
85611         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85612         Declaring int functions causes warnings on some modern systems and
85613         shouldn't be needed to compile on ancient ones.
85614         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85615         defined.
85616
85617         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85618         with the following changes.
85619         (__set_errno): Parenthesize properly.
85620         Include <stdbool.h>.
85621         (MIN, MAX, MATCHING_INO): New macros.
85622         (__getcwd): Define with prototype, not K&R form.
85623         Use heuristics to allocate default buffer on stack if possible.
85624         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85625         behavior, and to avoid the PATH_MAX limit when computing
85626         ../../../../...
85627         Use MATCHING_INO to compare inode number to file.
85628         Check for arithmetic overflow in size calculations.
85629         Fix bug in reallocation of dot array that caused getcwd to fail
85630         on directories nested deeper than 75.
85631         Be more careful about saving errno on error.
85632         Do not use realloc; use only free+malloc, as this is a bit
85633         more flexible and avoids a needless copy operation.
85634         Do not inspect st_dev and st_ino for symbolic links; POSIX
85635         doesn't specify the latter.
85636         Check for closedir errors.
85637         Avoid needless casts.
85638         Use "#ifdef weak_alias" around weak_alias, to be like other
85639         glibc code.
85640         The following changes to getcwd.c have effect only when used in
85641         gnulib; they have no effect inside glibc proper.
85642         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85643         as alloca isn't used.
85644         (alloca, __alloca): Likewise.
85645         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85646         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85647         unconditionally, as gnulib assumes C89 or better.
85648         Do not include <sys/param.h>.
85649         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85650         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85651         better.
85652         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85653         Include <dirent.h> in a way that is compatible with modern Autoconf.
85654         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85655         New macros, if not already defined.
85656         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85657         Use "_LIBC", not "defined _LIBC", for consistency.
85658         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85659         a mempcpy module.
85660         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85661         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85662         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85663         credit only to Jim Meyering and adjust the copyright dates.
85664         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85665         <stdlib.h>, <unistd.h>, "pathmax.h".
85666         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85667         (INITIAL_BUFFER_SIZE): Remove.
85668         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85669
85670 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85671
85672         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85673         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85674         Use the _ONCE methods, for efficiency.
85675         Check for fcntl.h.  In test program, include <errno.h>
85676         and <fcntl.h> if available.  Remove old K&R cruft from
85677         test program.  Check for common errors in GNU/Linux,
85678         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85679         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85680         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85681         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85682         name accordingly.
85683         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85684         accommodate new getcwd.c.
85685         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85686         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85687         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85688         that's all we need now.
85689
85690 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85691
85692         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85693         argp-parse.c depends on getopt internals, that means we should
85694         always use our getopt, to be on the safe side.
85695         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85696         order not to spoil the result of an eventual previous invocation
85697         of gl_GETOPT_SUBSTITUTE.
85698
85699 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85700
85701         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85702         redefinition warnings. To avoid them, include the defines
85703         in `#if !defined __need_getopt ... #endif'. The only place
85704         where __getopt_argv_const is used is in definitions
85705         of getopt_long and getopt_long_only below, which are as well
85706         protected by `#ifndef __need_getopt'.
85707         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85708         __need_getopt after including <stdio.h> and <unistd.h> These
85709         headers might have defined it.
85710
85711 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85712
85713         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85714
85715 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85716
85717         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85718         (futimens): New function, which uses futimes if available.
85719         (futimens, utimens): Support timespec==NULL, with same semantics
85720         as utime and utimens.
85721         * lib/utimens.h (futimens): New decl.
85722
85723 2004-11-23  Jim Meyering  <jim@meyering.net>
85724
85725         * lib/getopt_.h: Remove trailing blanks.
85726
85727 2004-11-23  Jim Meyering  <jim@meyering.net>
85728
85729         * lib/__fpending.c: Add comment.
85730
85731 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85732
85733         * modules/canonicalize (Depends-on): Add xreadlink.
85734         Problem reported by James Youngman.
85735
85736 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85737
85738         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85739         New macros.
85740         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85741         optopt): Use them instead of invoking ## directly; otherwise, the
85742         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85743
85744 2004-11-19  Bruno Haible  <bruno@clisp.org>
85745
85746         * lib/strtok_r.c: Move comments from here...
85747         * lib/strtok_r.h: ... to here.
85748
85749 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85750
85751         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85752         implementations that mishandle size_t overflow.
85753
85754 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85755
85756         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85757         might fail.  Problem reported by Yoann Vandoorselaere.
85758         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85759         implementations that mishandle size_t overflow.
85760
85761 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85762
85763         * modules/canon-host (Depends-on): Add strdup.
85764
85765 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85766
85767         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85768
85769 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85770
85771         * lib/canon-host.c: Include "strdup.h".
85772         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85773         Use strdup instead of malloc/strcpy to duplicate strings.
85774
85775         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85776         (human_space_before_unit): New constant.
85777         * lib/human.c (human_readable): Support it.
85778
85779         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85780         (xgetcwd): Set errno correctly when failing.
85781         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85782         the failure is actually due to a PATH_MAX problem.
85783
85784         Further getopt changes to make it more likely that glibc will
85785         buy the changes back.
85786         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85787         (getopt): Use it, so to preserve glibc semantic
85788         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85789         when compiling for libc.
85790         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85791         (getopt_long, getopt_long_only): Use it.
85792
85793         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85794         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85795         (getopt): Argv is now char * const *, as per standard.
85796         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85797         not char *__getopt_argv_const *.
85798         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85799         _getopt_long_only_r): Likewise.
85800         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85801         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85802         _getopt_long_r, _getopt_long_only_r): Likewise.
85803         * lib/getopt_.h (__getopt_argv_const): Remove.
85804         (getopt): Argv is now char * const *, as per standard.
85805
85806         * lib/getdate.y (tORDINAL): New token.
85807         (day, relunit): Allow it for relative times.
85808         (relative_time_table): Use tORDINAL for ordinals.
85809
85810 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85811
85812         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85813         Document that "second" isn't allowed as an ordinal number.
85814
85815 2004-11-16  Jim Meyering  <jim@meyering.net>
85816
85817         * modules/closeout (Depends-on): Add fpending.
85818
85819 2004-11-15  Jim Meyering  <jim@meyering.net>
85820
85821         * lib/closeout.c: Include "__fpending.h" once again.
85822         Include <stdbool.h>.
85823         (close_stdout): Don't fail just because stdout was closed initially,
85824         since some programs don't write to stdout in the normal course of
85825         operation (other than --version and --help), and we don't want this
85826         function to make e.g. `touch file >&-' fail.
85827         But do fail if it was closed and someone has tried to write to it.
85828         E.g., `printf foo >&-' must fail.
85829
85830 2004-11-13  Jim Meyering  <jim@meyering.net>
85831
85832         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85833
85834 2004-11-12  Simon Josefsson  <jas@extundo.com>
85835
85836         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85837         small doc fix is still pending.
85838
85839 2004-11-11  Simon Josefsson  <jas@extundo.com>
85840
85841         * modules/strtok_r: New file.
85842
85843         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85844         strtok_r.
85845
85846 2004-11-11  Simon Josefsson  <jas@extundo.com>
85847
85848         * m4/strtok_r.m4: New file.
85849
85850         * m4/getopt.m4: Replace opterr.
85851
85852 2004-11-11  Simon Josefsson  <jas@extundo.com>
85853
85854         * lib/strtok_r.h, strtok_r.c: New file.
85855
85856 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85857
85858         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85859         of replacing opterr, getopt, etc.  This should handle the
85860         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85861
85862 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85863
85864         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85865         we can stop lying to compilers about the constness of argv when we
85866         are compiled outside glibc.
85867         (getopt, getopt_long, getopt_long_only): Use it.
85868         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85869         _getopt_internal, getopt): Likewise.
85870         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85871         _getopt_long_only_r): Likewise.
85872         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85873         _getopt_long_r, _getopt_long_only_r): Likewise.
85874
85875         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85876         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85877         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85878         the other external symbols.
85879         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85880         declaration, since the above renaming now works around collisions.
85881
85882 2004-11-11  Jim Meyering  <jim@meyering.net>
85883
85884         * lib/linebreak.c: Remove trailing blanks.
85885         * lib/alloca_.h: Likewise.
85886         * lib/acosl.c: Likewise.
85887         * lib/euidaccess.c: Likewise.
85888         * lib/allocsa.h: Likewise.
85889
85890 2004-11-10  Simon Josefsson  <jas@extundo.com>
85891
85892         * m4/getaddrinfo.m4: New file.
85893
85894 2004-11-10  Simon Josefsson  <jas@extundo.com>
85895
85896         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85897
85898 2004-11-10  Simon Josefsson  <jas@extundo.com>
85899
85900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85901         getaddrinfo.
85902
85903         * modules/getaddrinfo: New file.
85904
85905 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85906
85907         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85908
85909 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85910
85911         * lib/mktime.c (SHR): New macro, which is a portable
85912         substitute for >> that should work even on Crays.
85913         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85914         Problem reported by Mark D. Baushke in
85915         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85916         * lib/getdate.y (SHR): Likewise.
85917         (tm_diff): Use it.
85918         * lib/strftime.c (SHR): Likewise.
85919         (tm_diff): Use it.
85920         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85921         quote_these_too, so that right shifts are well defined.  All uses
85922         changed.
85923
85924 2004-11-10  Jim Meyering  <jim@meyering.net>
85925
85926         Ensure that no close failure goes unreported.
85927         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85928         return early when it seems there's nothing to flush.
85929         Don't include __fpending.h.
85930
85931 2004-11-10  Jim Meyering  <jim@meyering.net>
85932
85933         * modules/closeout (Depends-on): Remove fpending.
85934
85935 2004-11-10  Jim Meyering  <jim@meyering.net>
85936
85937         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85938
85939 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85940
85941         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85942         gl_FUNC_STRFTIME.
85943         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85944         and AC_REQUIRE when possible, to avoid duplicate checks.
85945         Check for <wchar.h>.
85946
85947 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85948
85949         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85950
85951 2004-11-09  Bruno Haible  <bruno@clisp.org>
85952
85953         * m4/sockpfaf.m4: New file.
85954
85955 2004-11-05  Bruno Haible  <bruno@clisp.org>
85956
85957         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85958         Reported by Mark D. Baushke <mdb@cvshome.org>.
85959
85960 2004-11-04  Bruno Haible  <bruno@clisp.org>
85961
85962         2004-09-11  Bruno Haible  <bruno@clisp.org>
85963                 * allocsa.valgrind: New file.
85964         2004-02-06  Bruno Haible  <bruno@clisp.org>
85965                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85966                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85967                 Reported by Christopher Seip <chris.seip@hp.com>.
85968
85969 2004-11-04  Bruno Haible  <bruno@clisp.org>
85970
85971         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85972         (Makefile.am): Distribute it.
85973
85974 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85975
85976         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85977         with errno == ERANGE if the buffer is too small.
85978         Problem reported by Mark D. Baushke.
85979
85980 2004-11-03  Albert Chin  <china@thewrittenword.com>
85981             Paul Eggert  <eggert@cs.ucla.edu>
85982
85983         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85984         equivalent, substitute $ac_type for equivalent type rather than
85985         blindly using uint32_t *always* which won't work if uint32_t is not
85986         available.  Define _UINT32_T to work around typedef of uint32_t if
85987         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85988         2.5.1.
85989
85990 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85991
85992         * m4/jm-macros.m4: Sync from coreutils.
85993         (gl_MACROS): Check for mbrlen, for pathchk.
85994         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85995
85996 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85997
85998         * lib/xreadlink.c (MAXSIZE): New macro.
85999         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86000         size does not exceed MAXSIZE.  Avoid cast.
86001         As suggested by Mark D. Baushke in
86002         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86003         if readlink fails with buffer size just under MAXSIZE, try again
86004         with MAXSIZE.
86005
86006 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86007
86008         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86009
86010 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86011         and  Paul Eggert  <eggert@cs.ucla.edu>
86012
86013         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86014         (get_date): Overparenthesize to avoid GCC warning.
86015
86016 2004-11-02  Bruno Haible  <bruno@clisp.org>
86017
86018         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86019         returns void.
86020
86021 2004-11-02  Bruno Haible  <bruno@clisp.org>
86022
86023         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86024         function returns void.
86025
86026 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86027
86028         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86029         fflush_unlocked, flockfile, funlockfile, funlockfile,
86030         fputs_unlocked, putc_unlocked.
86031
86032 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86033
86034         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86035         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86036         already declared.
86037
86038 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86039
86040         * modules/getdate (Files): Add doc/getdate.texi.
86041         (Depends-on): Add setenv, xalloc.
86042
86043 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86044
86045         * lib/getdate.y: Add support for TZ="foo" within a date string.
86046         Fix some bugs near time_t boundaries.  Reject dates with
86047         out-of-range components, e.g., "Sept 31".
86048         Include <stdlib.h>, "setenv.h", "xalloc.h".
86049         (ISDIGIT_LOCALE): Remove; unused.
86050         Note that the TZ and time functions used here are not reentrant.
86051         (mktime_ok, get_tz): New functions.
86052         (TZBUFSIZE): New constant.
86053         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86054         This requires that we sometimes generate our own TZ="XXX..." setting.
86055
86056 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86057
86058         * doc/getdate.texi: New file, from coreutils with modifications for
86059         the new TZ parsing.
86060
86061 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86062
86063         * lib/mktime.c (not_equal_tm): Remove redundant check.
86064
86065 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86066
86067         * modules/regex (lib_SOURCES): Add regex.c.
86068         Reported by James Youngman in
86069         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86070
86071 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86072
86073         * lib/getdate.y: Use Bison 1.875 features, and some minor
86074         code cleanups.  This change does not affect semantics.
86075         Don't include <stdlib.h>; no longer needed.
86076         Don't include unlocked-io.h; only the "#if TEST" code uses
86077         stdio, and performance isn't crucial there.
86078         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86079         Bison 1.875 features as described below.
86080         All uses of "PC." replaced by "pc->".
86081         (YYSTYPE): Add a forward declaration.
86082         (yylex, yyerror): Use full prototypes in forward decls.
86083         Use "%pure-parser" rather than obsolescent "%pure_parser".
86084         Use %parse-param and %lex-param instead of obsolescent
86085         YYPARSE_PARAM and YYLEX_PARAM.
86086         (meridian_table, month_and_day_table, time_units_table,
86087         relative_time_table, time_zone_table, military_table,
86088         lookup_zone, lookup_word, get_date):
86089         Use NULL instead of 0 where appropriate.
86090         (to_hour): Avoid abort (), to avoid a dependency on
86091         stdlib.h.
86092         (yyerror, yylex): Now accepts parser_control * arg.
86093         (main) [TEST]: Use '\0' rather than 0 for char.
86094
86095 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86096
86097         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86098
86099 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86100
86101         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86102         It's now the caller's responsibility to handle the case where
86103         !HAVE_GETPAGESIZE && !defined getpagesize.
86104
86105         * lib/mktime.c (leapyear): Arg is long int, not int.
86106
86107 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86108
86109         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86110
86111 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86112
86113         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86114         missing.  Problem reported by James Youngman.
86115
86116 2004-10-16  Simon Josefsson  <jas@extundo.com>
86117
86118         * gnulib-tool: Fix comments.  Fix parse problem.
86119         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86120
86121 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86122
86123         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86124         implementation of getopt_long.  Problem reported by Alexander Taler in:
86125         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86126
86127 2004-10-15  Bruno Haible  <bruno@clisp.org>
86128
86129         * gnulib-tool: Untabify. Initialize supplied_libname.
86130         (func_usage): More homogenous output.
86131         (func_modules_transitive_closure, func_modules_to_filelist,
86132         func_emit_lib_Makefile_am): New functions.
86133         (func_import): New function, extracted from big case statement. Use
86134         func_get_license, func_modules_transitive_closure,
86135         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86136         opt_lgpl. Don't use test -a, as it's not portable.
86137         (func_create_testdir): Use func_modules_transitive_closure,
86138         func_modules_to_filelist, func_emit_lib_Makefile_am.
86139
86140 2004-10-15  Bruno Haible  <bruno@clisp.org>
86141
86142         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86143
86144 2004-10-15  Bruno Haible  <bruno@clisp.org>
86145
86146         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86147         the portions belonging to each module.
86148         Suggested by Derek Robert Price <derek@ximbiot.com>.
86149
86150 2004-10-12  Simon Josefsson  <jas@extundo.com>
86151
86152         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86153         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86154         to real functions.
86155
86156 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86157
86158         * modules/vsnprintf: New file.
86159
86160 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86161
86162         * m4/vsnprintf.m4: New file.
86163
86164 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86165
86166         * lib/vsnprintf.h: New file.
86167         * lib/vsnprintf.c: New file.
86168
86169 2004-10-11  Bruno Haible  <bruno@clisp.org>
86170
86171         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86172         vsnprintf.
86173
86174 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86175
86176         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86177
86178 2004-10-07  Bruno Haible  <bruno@clisp.org>
86179
86180         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86181         fits into the provided buffer.
86182
86183 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86184
86185         * lib/diacrit.c, diacrit.h: Add GPL notice.
86186
86187         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86188         notice.
86189         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86190         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86191         This avoids a potential constant-folding bug.
86192
86193 2004-10-05  Bruno Haible  <bruno@clisp.org>
86194
86195         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86196         for the declaration of strsep.
86197
86198 2004-10-05  Bruno Haible  <bruno@clisp.org>
86199
86200         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86201
86202 2004-10-04  Simon Josefsson  <jas@extundo.com>
86203
86204         * modules/memmem: New file.
86205         * tests/test-memmem.c: New file.
86206         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86207
86208 2004-10-04  Simon Josefsson  <jas@extundo.com>
86209
86210         * m4/memmem.m4: New file.
86211
86212 2004-10-04  Simon Josefsson  <jas@extundo.com>
86213
86214         * lib/memmem.h: New file.
86215         * lib/memmem.c: New file, taken from glibc.
86216
86217 2004-10-04  Simon Josefsson  <jas@extundo.com>
86218
86219         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86220         '#ifdef USE_UNLOCKED_IO'.
86221
86222 2004-10-04  Simon Josefsson  <jas@extundo.com>
86223
86224         * config/srclist.txt: Add memmem from glibc.
86225
86226 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86227
86228         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86229
86230         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86231         modules/exclude, modules/getdate, modules/getline,
86232         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86233         modules/getusershell, modules/linebuffer, modules/md5,
86234         modules/mountlist, modules/posixtm, modules/readtokens,
86235         modules/readutmp, modules/regex, modules/sha1,
86236         modules/version-etc, modules/yesno:
86237         Remove dependency on unlocked-io.
86238
86239 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86240
86241         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86242
86243         * m4/unlocked-io.m4: Add copyright notice.
86244         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86245
86246 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86247
86248         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86249         * lib/xmalloc.c (xmemdup): Likewise.
86250         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86251         XFREE): Remove these long-obsolescent macros.
86252         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86253         * lib/xstrdup.c: Remove.
86254
86255         * lib/regex.c (re_comp): Cast gettext return value to char *,
86256         Problem reported by Martin Neitzel via Mark D. Baushke.
86257
86258 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86259
86260         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86261         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86262         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86263         regex.c, sha1.c, version-etc.c, yesno.c:
86264         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86265         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86266         the includer's responsibility.
86267
86268         Sync from coreutils.
86269
86270         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86271         points to the start of a string, as the C Standard says the
86272         resulting behavior is undefined.
86273
86274         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86275         simple -> simple_backups, numbered_existing ->
86276         numbered_existing_backups, numbered -> numbered_backups
86277         to avoid shadowing problems.  All uses changed.
86278         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86279         * lib/backupfile.c (check_extension, numbered_backup):
86280         Rename locals to avoid shadowing 'basename'.
86281         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86282         once.
86283
86284         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86285         * lib/.cvsignore: Add getopt.h.
86286
86287 2004-10-04  Bruno Haible  <bruno@clisp.org>
86288
86289         * modules/README: New file.
86290         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86291         not a module.
86292
86293 2004-10-02  Jim Meyering  <jim@meyering.net>
86294
86295         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86296
86297 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86298
86299         * modules/strsep: New file.
86300
86301 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86302
86303         * m4/strsep.m4: New file.
86304
86305 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86306
86307         * lib/strsep.h: New file.
86308         * lib/strsep.c: New file.
86309
86310 2004-10-01  Simon Josefsson  <jas@extundo.com>
86311
86312         * lib/snprintf.c (snprintf): Handle size==0.
86313
86314 2004-10-01  Simon Josefsson  <jas@extundo.com>
86315             Bruno Haible  <bruno@clisp.org>
86316
86317         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86318         (snprintf): Declare 'args'.
86319
86320 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86321
86322         * lib/snprintf.c: Remove comments as to why each header is needed.
86323
86324 2004-10-01  Bruno Haible  <bruno@clisp.org>
86325
86326         * MODULES.html.sh: Add strsep.
86327
86328 2004-09-30  Simon Josefsson  <jas@extundo.com>
86329
86330         * modules/snprintf: New file.
86331
86332 2004-09-30  Simon Josefsson  <jas@extundo.com>
86333
86334         * m4/snprintf.m4: New file.
86335
86336 2004-09-30  Simon Josefsson  <jas@extundo.com>
86337
86338         * lib/snprintf.h, lib/snprintf.c: New files.
86339
86340 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86341
86342         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86343         (hol_entry_help): Never translate an empty string.
86344         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86345         * lib/argp.h (OPTION_NO_TRANS): New option.
86346
86347 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86348
86349         * modules/argp (Maintainer): Replace Simon Josefsson
86350         by Sergey Poznyakoff.
86351
86352 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86353
86354         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86355         changes merged back into glibc.
86356
86357 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86358
86359         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86360
86361 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86362
86363         * lib/xvasprintf.c: Include xalloc.h.
86364         (xvasprintf): Use xalloc_die, not xmalloc_die.
86365
86366 2004-09-29  Bruno Haible  <bruno@clisp.org>
86367
86368         * modules/alloca-opt: New file, derived from modules/alloca.
86369         * modules/allocsa: Depend on alloca-opt instead of alloca.
86370         * modules/setenv: Likewise.
86371         * modules/vasnprintf: Likewise.
86372         * MODULES.html.sh: Add alloca-opt.
86373
86374 2004-09-28  Simon Josefsson  <jas@extundo.com>
86375
86376         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86377         LGPL, and to replace license template from GPL to LGPL.
86378
86379 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86380
86381         * modules/dummy: Change license to LGPL.
86382
86383 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86384
86385         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86386
86387 2004-09-24  Simon Josefsson  <jas@extundo.com>
86388
86389         * modules/minmax (License): Change from GPL to LGPL.
86390
86391 2004-09-23  Simon Josefsson  <jas@extundo.com>
86392
86393         * gnulib-tool (--import): Typo.
86394
86395 2004-09-23  Simon Josefsson  <jas@extundo.com>
86396
86397         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86398
86399 2004-09-22  Bruno Haible  <bruno@clisp.org>
86400
86401         * modules/*: Add 'License' field.
86402         * gnulib-tool: Accept --extract-license option.
86403         (func_get_license): New function.
86404
86405 2004-09-21  Bruno Haible  <bruno@clisp.org>
86406
86407         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86408         Reported by Simon Josefsson.
86409
86410 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86411
86412         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86413         gl_AC_TYPE_LONG_LONG.
86414
86415 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86416
86417         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86418
86419 2004-09-18  Simon Josefsson  <jas@extundo.com>
86420         and  Paul Eggert  <eggert@cs.ucla.edu>
86421
86422         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86423         calls with autoreconf.  Define GL_LIB.
86424
86425 2004-09-14  Karl Berry  <karl@gnu.org>
86426
86427         * config/srclist.txt: unsync setenv.c, sigh.
86428
86429 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86430
86431         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86432         Problem reported by Bruno Haible in:
86433         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86434
86435 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86436
86437         * config/srclist.txt: Comment out argp-pvh.c.
86438
86439 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86440
86441         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86442         in case some system header has #define'd it.  Problem reported by
86443         Soeren D. Schulze in
86444         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86445
86446 2004-09-09  Karl Berry  <karl@gnu.org>
86447
86448         * regex.[ch]: delete from the root.  These were supposed to be
86449                 synced with emacs cvs, but this has not happened for about
86450                 a year, and anyway nothing else uses emacs regex.[ch].
86451                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86452                 lib/regex[.ch] is untouched.
86453
86454 2004-09-09  Bruno Haible  <bruno@clisp.org>
86455
86456         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86457
86458 2004-09-09  Bruno Haible  <bruno@clisp.org>
86459
86460         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86461         modifications.
86462         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86463
86464 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86465
86466         * modules/xvasprintf: New file.
86467         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86468
86469 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86470
86471         * lib/xvasprintf.h: New file.
86472         * lib/xvasprintf.c: New file.
86473         * lib/xasprintf.c: New file.
86474
86475 2004-09-08  Bruno Haible  <bruno@clisp.org>
86476
86477         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86478
86479 2004-09-08  Bruno Haible  <bruno@clisp.org>
86480
86481         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86482         length is > INT_MAX.
86483         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86484         more.
86485
86486 2004-09-08  Bruno Haible  <bruno@clisp.org>
86487
86488         * lib/stdint_.h: New file, taken from GNU clisp.
86489
86490 2004-09-08  Bruno Haible  <bruno@clisp.org>
86491             Oskar Liljeblad  <oskar@osk.mine.nu>
86492
86493         * modules/stdint: New file.
86494         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86495
86496 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86497
86498         Import from coreutils.
86499         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86500         strings on unbounded length.  alloca's performance benefits aren't
86501         that important here.
86502         (V_STRDUP): Remove.
86503         (parse_with_separator): New function, with most of the internals
86504         of the old parse_user_spec.  Allow user to omit both user and group,
86505         for compatibility with FreeBSD.
86506         Clone only the user name, not the entire spec.
86507         Do not set *uid, *gid unless entirely successful.
86508         Avoid memory leak in some failing cases.
86509         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86510         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86511         (parse_user_spec): Rewrite to use parse_with_separator.
86512
86513 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86514
86515         * modules/userspec: Don't depend on alloca.
86516
86517 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86518
86519         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86520
86521 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86522
86523         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86524         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86525         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86526
86527 2004-08-16  Simon Josefsson  <jas@extundo.com>
86528
86529         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86530         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86531         Add --dry-run for --import.
86532         Let user provided command line parameters override configure.ac
86533         settings.
86534
86535 2004-08-12  Simon Josefsson  <jas@extundo.com>
86536
86537         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86538         as discussed with Paul Eggert in threads rooted at
86539         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86540         and
86541         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86542         Before, the test was empty, and relied on ELIDE_CODE in source
86543         code.)
86544         (gl_PREREQ_GETOPT): New macro.
86545         (gl_GETOPT): Use them.
86546
86547 2004-08-12  Simon Josefsson  <jas@extundo.com>
86548
86549         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86550         * lib/getopt_.h: Renamed from getopt.h.
86551
86552 2004-08-12  Simon Josefsson  <jas@extundo.com>
86553
86554         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86555         Change default library name from libfoo to libgnu.
86556         Now, if you have a configure.ac that says:
86557                 gl_SOURCE_BASE(gl)
86558                 gl_M4_BASE(gl/m4)
86559                 gl_MODULES(error getopt etcetera)
86560                 gl_INIT
86561         you can import all you need by running:
86562                 ../gnulib/gnulib-tool --import
86563
86564         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86565         (Makefile.am): Rewrite, use logic from argz.
86566         (Include): Use <getopt.h> instead of "getopt.h".
86567
86568 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86569
86570         * modules/argp (Files): Add m4/unlocked-io.m4.
86571         (Depends-on): Add extensions.
86572
86573 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86574
86575         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86576         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86577         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86578         Check for program_invocation_name, program_invocation_short_name,
86579         flockfile, funlockfile, features.h, _getopt_long_only_r.
86580
86581 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86582
86583         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86584         its complicated substitute.
86585         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86586         and program_invocation_name.
86587         (__argp_basename) [!_LIBC]: Remove; the only use was
86588         replaced by its body.
86589         (__argp_short_program_name): Change condition from
86590         !defined __argp_short_program_name to
86591         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86592         to match argp-namefrob.h.
86593         (__argp_failure): Don't assume strerror_r returns char *.
86594         * lib/argp-parse.c (N_): Define unconditionally.
86595         (argp_default_options): Fill out initializers with 0 to avoid
86596         gcc warnings.
86597
86598 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86599
86600         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86601         getopt1.c.
86602
86603 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86604
86605         Merge from coreutils.
86606
86607         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86608
86609         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86610         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86611
86612 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86613
86614         Merge from coreutils.
86615
86616         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86617         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86618         for Reliant Unix 5.43.
86619
86620         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86621         (union fooround): Use uintmax_t, not long int.
86622         The rest is a merge from libc:
86623         [defined _LIBC]: Include <shlib-compat.h>.
86624         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86625
86626         * lib/settime.c (settime): Recode to avoid warning with
86627         Sun Forte C 6U2.
86628
86629         * lib/strverscmp.c: Convert to UTF-8.
86630
86631 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86632
86633         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86634         m4/uintmax_t.m4.
86635
86636 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86637
86638         * modules/xalloc-die: New file.
86639         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86640
86641         * modules/md5 (Files): Add m4/uint32_t.m4.
86642         * modules/sha1: Renamed from modules/sha.
86643         (Files):
86644         Rename lib/sha.h to lib/sha1.h.
86645         Rename lib/sha.c to lib/sha1.c.
86646         Rename m4/sha.m4 to m4/sha1.m4.
86647         (lib_SOURCES): Likewise.
86648         (configure.ac): Rename gl_SHA to gl_SHA1.
86649         (Include): sha.h -> sha1.h.
86650
86651 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86652
86653         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86654         * m4/sha1.m4: Renamed from sha.m4.
86655         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86656
86657 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86658
86659         * lib/obstack.h (obstack_empty_p):
86660         Don't assume that chunk->contents is suitably aligned.
86661         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86662         Likewise. Problem reported by Benno in
86663         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86664
86665         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86666         readable.  This could be improved further but it'd take some work.
86667
86668 2004-08-08  Simon Josefsson  <jas@extundo.com>
86669
86670         * modules/xgethostname (Depends-on): Remove exit and error (not
86671         used).
86672
86673         * modules/getpass-gnu: Add getpass.h.
86674         (Depends-on): Add stdbool.
86675         * modules/getpass: Add getpass.h.
86676
86677 2004-08-08  Simon Josefsson  <jas@extundo.com>
86678
86679         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86680         Check getpass declaration.
86681
86682 2004-08-08  Simon Josefsson  <jas@extundo.com>
86683
86684         * lib/xgethostname.c: Don't include error.h (not used).
86685
86686         * lib/getpass.h: Add.
86687         * lib/getpass.c: Include getpass.h first.
86688
86689 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86690
86691         * lib/xalloc-die.c: New file.
86692         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86693         All uses removed.
86694         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86695         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86696         xalloc-die.c.
86697         (_, N_, xalloc_die): Move to xalloc-die.c.
86698         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86699         so that we needn't mess with xalloc_msg_memory_exhausted.
86700
86701         * lib/sha1.h: Renamed from sha.h.
86702         (SHA1_H): Renamed from _SHA_H.
86703         (sha1_ctx): Renamed from sha_ctx.
86704         (sha1_init_ctx): Renamed from sha_init_ctx.
86705         (sha1_process_block): Renamed from sha_process_block.
86706         (sha1_process_bytes): Renamed from sha_process_bytes.
86707         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86708         (sha1_read_ctx): Renamed from sha_read_ctx.
86709         (sha1_stream): Renamed from sha_stream.
86710         (sha1_buffer): Renamed from sha_buffer.
86711         * lib/sha1.c: Likewise; renamed from sha.c.
86712         Do not include <sys/types.h>.
86713         Include <stddef.h> rather than <stdlib.h>.
86714
86715 2004-08-08  Bruno Haible  <bruno@clisp.org>
86716
86717         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86718         FILESYSTEM_PREFIX_LEN.
86719         * lib/progreloc.c: Likewise.
86720         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86721
86722 2004-08-06  Simon Josefsson  <jas@extundo.com>
86723
86724         * modules/progname (Depends-on): Don't depend on stdbool.
86725
86726 2004-08-06  Simon Josefsson  <jas@extundo.com>
86727
86728         * modules/getsubopt: New file.
86729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86730         getsubopt.
86731
86732 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86733
86734         More merge from coreutils.
86735
86736         * m4/utimens.m4, m4/utimecmp.m4: New files.
86737         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86738         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86739         prereq.m4, sha.m4: Import changes from coreutils.
86740
86741 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86742
86743         More merge from coreutils.
86744         * modules/raise, modules/readtokens0, modules/utimens:
86745         * modules/utimecmp, module/xnanosleep: New files.
86746         * modules/strftime: Add lib/strftime.h.
86747         Change include from <time.h> to "strftime.h".
86748         * modules/yesno: Add lib/yesno.h.
86749         * modules/backupfile: Remove lib/addext.c.
86750         * modules/euidaccess: Add stat-macros.h.
86751         * modules/canonicalize, modules/euidaccess,
86752         modules/filemode, modules/lchown, modules/makepath,
86753         modules/rmdir, modules/stat: Likewise.
86754
86755 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86756
86757         Merge from tar.
86758         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86759         SIZE_MAX is a valid preprocessor constant.
86760         (__argp_basename): Change from "#ifndef _LIBC"
86761         to "#ifndef __argp_short_program_name", so that
86762         we don't compile these functions for tar.
86763
86764         More merges from coreutils.
86765         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86766         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86767         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86768         * lib/addext.c: Remove; no longer needed.
86769         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86770         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86771         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86772         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86773         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86774         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86775         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86776         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86777         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86778         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86779         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86780         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86781         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86782         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86783         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86784         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86785         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86786         Import changes from coreutils.
86787
86788 2004-08-05  Simon Josefsson  <jas@extundo.com>
86789
86790         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86791
86792 2004-08-05  Simon Josefsson  <jas@extundo.com>
86793
86794         * m4/getsubopt.m4: New file.
86795
86796 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86797
86798         Merge from coreutils.
86799
86800         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86801         * m4/getcwd-path-max.m4: New files.
86802
86803         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86804         FILESYSTEM_PREFIX_LEN ->
86805         FILE_SYSTEM_PREFIX_LEN.
86806         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86807         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86808         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86809         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86810
86811         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86812         prerequisite modules now handle the DOS stuff.
86813         Don't check for unistd.h.
86814
86815 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86816
86817         Merge from coreutils.
86818
86819         * lib/.gdb-history: Remove; this doesn't belong here.
86820
86821         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86822         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86823         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86824         * lib/getcwd.c: New files.
86825
86826         * lib/dirname.h: Include <stdbool.h>.
86827         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86828         for consistency with POSIX terminology.  All uses changed.
86829         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86830         (strip_trailing_slashes): Use bool for booleans.
86831         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86832
86833         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86834         sometimes returns a positive errno value even when it succeeds.
86835         (print_errno_message) [!LIBC]: Fall back on strerror if
86836         __strerror_r fails.
86837
86838         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86839         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86840         (longest_relative_suffix): New function.
86841         (path_concat): Use it.  Assume first argument is not NULL.
86842         Port to DOS.  Omit redundant separators.
86843         Report an error instead of returning NULL.
86844         Use mempcpy instead of memcpy.
86845         (xpath_concat): Remove: not declared or used.
86846
86847         * lib/same.h: Include <stdbool.h>
86848         (same_name): Return bool, not int.
86849         * lib/same.c (same_name): Likewise.
86850         (errno): Don't declare; we assume C89 or better now.
86851
86852         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86853         if not already defined.
86854
86855         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86856         * lib/dup-safer.c (errno): Likewise.
86857
86858 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86859
86860         Merge from coreutils.
86861         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86862         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86863         * modules/path-concat: Don't depend on strdup.
86864
86865 2004-08-03  Simon Josefsson  <jas@extundo.com>
86866
86867         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86868         * lib/progname.h: Don't include stdbool.h.
86869
86870 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86871
86872         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86873         * MODULES.html.sh (func_all_modules): Remove fatal.
86874
86875 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86876
86877         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86878
86879 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86880
86881         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86882         working.
86883
86884 2004-08-02  Simon Josefsson  <jas@extundo.com>
86885
86886         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86887         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86888         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86889
86890 2004-08-01  Simon Josefsson  <jas@extundo.com>
86891
86892         * lib/xgetdomainname.c: Include stdlib.h, for free().
86893
86894 2004-07-19  Bruno Haible  <bruno@clisp.org>
86895
86896         * MODULES.html.sh (func_all_modules): Add dummy.
86897
86898 2004-07-16  Simon Josefsson  <jas@extundo.com>
86899
86900         * modules/dummy: New file.
86901
86902 2004-07-16  Simon Josefsson  <jas@extundo.com>
86903
86904         * lib/dummy.c: New file.
86905
86906 2004-07-16  Bruno Haible  <bruno@clisp.org>
86907
86908         * lib/backupfile.h: Add extern "C" for C++.
86909         * lib/closeout.h: Likewise.
86910         * lib/copy-file.h: Likewise.
86911         * lib/findprog.h: Likewise.
86912         * lib/full-write.h: Likewise.
86913         * lib/pathname.h: Likewise.
86914         * lib/progname.h: Likewise.
86915         * lib/stpcpy.h: Likewise.
86916         * lib/stpncpy.h: Likewise.
86917         * lib/strcase.h: Likewise.
86918         * lib/strstr.h: Likewise.
86919         * lib/xalloc.h: Likewise.
86920
86921         * lib/mbswidth.h: Add extern "C" for C++.
86922         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86923
86924 2004-07-13  Robert Millan  <robertmh@gnu.org>
86925
86926         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86927
86928 2004-07-09  Simon Josefsson  <jas@extundo.com>
86929
86930         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86931         failed without this.)
86932
86933 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86934
86935         * modules/chown (Files): Add lib/fchown-stub.c, since
86936         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86937
86938 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86939
86940         * lib/fchown-stub.c: New file.
86941
86942 2004-06-24  Jim Meyering  <jim@meyering.net>
86943
86944         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86945
86946 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86947
86948         * modules/argz: Omit "#include".
86949
86950         * MODULES.html.sh (func_all_modules): Add calloc, to match
86951         2004-06-01 addition of calloc module.
86952
86953 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86954
86955         * m4/argz.m4: New file, which is autoupdated from libtool.
86956
86957 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86958
86959         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86960         libtool.
86961
86962 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86963
86964         * config/srclist-update: Don't insist on "USA." before the
86965         close-comment, as libtool omits the period and puts the */ on a
86966         separate line.
86967         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86968         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86969
86970 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86971
86972         * modules/argz: New file.
86973         * MODULES.html.sh (func_all_modules): Add argz.
86974
86975 2004-06-12  Jim Meyering  <jim@meyering.net>
86976         and  Paul Eggert  <eggert@cs.ucla.edu>
86977
86978         * modules/hash (Files): Add lib/xalloc.h.
86979         * modules/pipe (Depends-on): Add wait-process.
86980         * modules/stat (Depends-on): Add xalloc.
86981         * modules/userspec (Files): Add lib/userspec.h.
86982         * modules/xstrto
86983
86984         Upgrade from gettext-0.13.
86985         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86986         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86987         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86988
86989 2004-06-10  Jim Meyering  <jim@meyering.net>
86990
86991         * lib/calloc.c: New file.
86992
86993 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86994
86995         * lib/getdate.y (yylex): Allow space between sign and number.
86996         Problem reported by Dan Jacobson.
86997
86998 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86999
87000         Merge from coreutils CVS.
87001
87002         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87003         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87004         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87005         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87006         xstrtol.m4: Fix copyright date and/or serial number.
87007
87008         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87009         See if we need an fchown replacement.
87010         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87011         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87012         and use the replacement function if we detect either defect.
87013
87014         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87015         gl_UTIMECMP.
87016
87017 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87018         and  Jim Meyering  <jim@meyering.net>
87019
87020         Merge from coreutils CVS.
87021
87022         * lib/stat-macros.h: New file, with contents from file-type.h
87023         and coreutils' system.h.
87024         * lib/file-type.c: Include "stat-macros.h".
87025         * lib/file-type.h (file_type): Move all macro definitions to new file,
87026         stat-macros.h.
87027
87028         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87029         Wrap old code with this conditional.
87030         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87031         function that does not dereference symlinks.
87032         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87033
87034         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87035         dependency problems.
87036         (xreadlink): Accept new arg SIZE, for efficiency.
87037         All decls and uses changed.
87038         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87039
87040         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87041         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87042
87043         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87044         sysexits.h.
87045
87046 2004-06-01  Jim Meyering  <jim@meyering.net>
87047
87048         * m4/calloc.m4: New file.
87049
87050 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87051
87052         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87053         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87054         Also, fix a typo in a diagnostic.
87055
87056 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87057
87058         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87059         or AC_FUNC_REALLOC.
87060
87061 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87062
87063         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87064         macros to be defined.
87065         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87066         the allocator returns NULL because the requested size is zero.
87067
87068 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87069
87070         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87071         var.  Add comment explaining why libc still defines it.  This
87072         merges the following patch from glibc:
87073         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87074
87075 2004-05-20  Andreas Schwab  <schwab@suse.de>
87076
87077         * m4/free.m4: Replace free if it not known to work, not the other
87078         way round.
87079
87080 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87081
87082         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87083         present in glibc since revision 1.1 of this file.
87084         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87085         obstack_alignment_mask, obstack_alloc, obstack_base,
87086         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87087         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87088         obstack_grow0, obstack_init, obstack_int_grow,
87089         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87090         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87091         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87092         nonexistent functions.
87093
87094 2004-05-18  Karl Berry  <karl@gnu.org>
87095
87096         * config/srclist.txt: break link for vasnprintf.c.
87097
87098 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87099
87100         Port obstack to the AS/400, where pointers are 16 bytes wide and
87101         you cannot cast an integer to a valid pointer.  This patch is
87102         currently waiting to be integrated into glibc; see
87103         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87104
87105         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87106         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87107         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87108         (struct obstack): temp member is now a union of a pointer and
87109         an integer, instead of an integer.  All integer uses changed.
87110         This does not affect the physical layout of struct obstack,
87111         except on hosts (like the AS/400) where the size or alignment of
87112         void * is greater than that of ptrdiff_t.
87113         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87114         __STDC__)]: Store temporary in pointer member of union, not
87115         integer member.
87116         * lib/obstack.c: Include <stddef.h>, for offsetof.
87117         (struct fooalign): Remove; it doesn't need a name.
87118         (union fooround): Change double to long double, and add void *.
87119         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87120         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87121         not a macro.  Hence the values are always int; so remove all
87122         casts-to-int in uses.
87123
87124 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87125
87126         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87127         we can get this patch merged into glibc.
87128
87129 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87130             Paul Eggert  <eggert@cs.ucla.edu>
87131
87132         * m4/argp: Depend on alloca.
87133
87134 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87135             Paul Eggert  <eggert@cs.ucla.edu>
87136
87137         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87138         freecoding.
87139
87140 2004-05-17  Bruno Haible  <bruno@clisp.org>
87141
87142         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87143         precision that consists of a '.' followed by an empty digit string.
87144         Patch by Tor Lillqvist <tml@iki.fi>.
87145
87146 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87147
87148         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87149         for backward compatibility with older code.  We need our own
87150         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87151         it under some other name, and our alloca.h will define it.
87152
87153 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87154             Derek Price  <derek@ximbiot.com>
87155
87156         * lib/alloca.c: Include <alloca.h>, to get our interface.
87157         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87158         include <alloca.h> first.  Use C89 prototype for alloca; this
87159         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87160         Use #elif for simplicity, since we can assume C89 now.
87161         Don't try to source the system alloca.h since it will not be found
87162         and to prevent recursively including its replacement.
87163         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87164         * lib/regex.c: Likewise.
87165
87166 2004-05-16  Derek Price  <derek@ximbiot.com>
87167             Paul Eggert  <eggert@cs.ucla.edu>
87168
87169         getline cleanup.  This changes the getndelim2 API: both order of
87170         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87171         no delimiter).
87172
87173         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87174         interface does that.
87175         (getline): Always use getdelim, so that we don't have two
87176         copies of this code.
87177         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87178         if available.
87179         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87180         (GETNDELIM2_MAXIMUM): New macro.
87181         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87182         instead of the old practice of delim2==0.  All callers changed.
87183         Return -1 on overflow, instead of returning junk.
87184         Do not set *linesize unless allocation succeeds.
87185         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87186         that we include sys/types.h.
87187         * lib/getnline.h: Likewise.
87188         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87189         (getndelim2): Reorder arguments.
87190         * lib/getnline.c (getnline, getndelim):
87191         Don't discard the NMAX argument.
87192         (getnline): Invoke getndelim, to avoid code duplication.
87193         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87194         of (size_t) -1 by callers of the getnline family.
87195
87196 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87197
87198         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87199         Check for gettimeofday.
87200         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87201         Check for settimeofday, stime.
87202
87203 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87204
87205         * lib/nanosleep.c (suspended): Change its type from int to
87206         sig_atomic_t volatile.
87207         (first_call): Make it private to rpl_nanosleep, and have it
87208         be zero initially as that's a bit faster.
87209         (my_usleep): Round up fractional times instead of truncating them,
87210         as this is the usual meaning for 'sleep'.
87211
87212         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87213         doesn't work.
87214         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87215         (ENOSYS): Define if not defined.
87216         (settime): Fall back on stime if it exists and settimeofday fails.
87217         But don't bother with fallbacks if a method fails with errno == EPERM.
87218
87219 2004-05-11  Jim Meyering  <jim@meyering.net>
87220
87221         Prior to this change, the save_cwd caller required read access to the
87222         current directory on most systems (ones with the fchdir function).
87223
87224         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87225         fails, try write-only, and finally, resort to using xgetcwd.
87226
87227 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87228
87229         * lib/obstack.c, obstack.h: Import changes from libc.
87230
87231 2004-04-28  Bruno Haible  <bruno@clisp.org>
87232
87233         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87234         also implicitly appends .exe to executables.
87235         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87236         accepts Windows pathnames.
87237         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87238         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87239         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87240         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87241         Reported by Derek Robert Price <derek@ximbiot.com>.
87242
87243 2004-04-21  Karl Berry  <karl@gnu.org>
87244
87245         * config/srclist.txt (localcharset.c): break sync.
87246
87247 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87248
87249         * m4/host-os.m4: Add a copyright notice.
87250
87251 2004-04-20  Jim Meyering  <jim@meyering.net>
87252
87253         Change UTILS_ to gl_ in AC_DEFINE'd names.
87254         Change utils_- and jm_-prefixed variables, too.
87255         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87256         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87257         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87258
87259         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87260         Don't emit trailing blanks.
87261         Also rename jm_-prefixed variables to have gl_ prefix.
87262
87263         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87264         Also rename jm_-prefixed variables to have gl_ prefix.
87265
87266         * m4/jm-macros.m4: Reflect the renamings.
87267         * m4/prereq.m4: Likewise.
87268
87269 2004-04-20  Jim Meyering  <jim@meyering.net>
87270
87271         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87272         memory.
87273
87274 2004-04-20  Jim Meyering  <jim@meyering.net>
87275             Bruno Haible  <bruno@clisp.org>
87276
87277         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87278         memory when realloc fails.
87279
87280 2004-04-19  Jim Meyering  <jim@meyering.net>
87281
87282         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87283         now that readutmp.c may call `free (0)'.
87284
87285 2004-04-19  Bruno Haible  <bruno@clisp.org>
87286
87287         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87288         * m4/inttypes_h.m4: Likewise.
87289         * m4/stdint_h.m4: Likewise.
87290         * m4/intmax_t.m4: Likewise.
87291         * m4/uintmax_t.m4: Likewise.
87292
87293 2004-04-18  Jim Meyering  <jim@meyering.net>
87294
87295         * m4/prereq.m4: Don't forbid jm_ prefix.
87296
87297         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87298         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87299         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87300         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87301         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87302         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87303         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87304         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87305         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87306         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87307         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87308         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87309         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87310         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87311         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87312         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87313         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87314         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87315         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87316
87317 2004-04-18  Jim Meyering  <jim@meyering.net>
87318
87319         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87320         failure, don't leak memory and do call END_UTMP_ENT.
87321
87322 2004-04-16  Jim Meyering  <jim@meyering.net>
87323
87324         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87325         coreutils' stat program.
87326         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87327
87328 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87329
87330         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87331         C89.
87332         (CHAR_BIT): Remove, since we assume C89.
87333         Include <stdint.h> if available, as per current Autoconf CVS advice.
87334
87335 2004-03-31  Jim Meyering  <jim@meyering.net>
87336
87337         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87338         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87339         * m4/xalloc.m4: Likewise.
87340
87341 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87342
87343         Merge from coreutils.
87344
87345         * m4/inttostr.m4: New file.
87346         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87347         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87348         Require gl_CLOCK_TIME.
87349         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87350
87351 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87352
87353         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87354         not bool, to be more consistent with Unix conventions.
87355         Suggested by Bruno Haible.
87356
87357         Merge from coreutils.
87358
87359         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87360         * lib/umaxtostr.c: New files.
87361
87362         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87363         the usual <time.h> dance.
87364         (get_date): Change signature to support fractional time stamps.
87365         All callers changed.
87366         * lib/getdate.y: Include "getdate.h" first, as we can now
87367         assume C89 and don't need to worry about 'const'.
87368         Similarly, include "unlocked-io.h" near start, not in middle.
87369         Include <limits.h>.
87370         (textint.value): Use long int rather than int.
87371         (textint.digits): Use size_t rather than int.
87372         (BILLION, LOG10_BILLION): New constants.
87373         (parser_control): New member rel_ns.  Members day_ordinal,
87374         time_zone, month, day, hour, minutes, rel_year, rel_month,
87375         rel_day, rel_hour, rel_minutes, rel_seconds
87376         are now long int, not int.  Member seconds is now struct timespec,
87377         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87378         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87379         not int.
87380         (%union.intval): Now long int, not int.
87381         New member timespec.
87382         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87383         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87384         (spec): Now is a timespec or an item list.
87385         (timespec, items): New nonterminals.
87386         (time, rel, relunit, number, get_date):
87387         Add support for fractional seconds.
87388         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87389         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87390         (to_hour): First arg is now long int, not int.
87391         (to_year): Returns long int, not int.
87392         Don't treat year -70 like 70.
87393         (tm_diff): Returns long int, not int.
87394         (lookup_word): Use bool instead of int when appropriate.
87395         (yylex): Use size_t for count, not int.
87396         Detect overflow when parsing large integer constants.
87397         Add support for fractions.
87398         (get_date): Make pointers 'const' if possible.
87399         Use more-portable code to detect integer overflow.
87400         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87401         Don't use ctime; it's not reliable if the year has >4 digits.
87402
87403         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87404         This is for compatibility with BSD.
87405
87406         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87407         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87408         From coreutils' system.h.
87409
87410         * lib/userspec.c: Don't include "posixver.h".
87411         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87412         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87413         compatible extension.  Simplify code by removing a boolean int
87414         that was always nonzero if a string was nonnull.
87415
87416 2004-03-30  Jim Meyering  <jim@meyering.net>
87417
87418         Merge from coreutils.
87419
87420         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87421         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87422         on some systems one must include <grp.h> before it.
87423         Reported by Christian Krackowizer.
87424
87425 2004-03-30  Jim Meyering  <jim@meyering.net>
87426
87427         Merge from coreutils.
87428
87429         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87430
87431         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87432         an empty input stream.
87433
87434         * lib/readtokens.c: Include <stdbool.h>.
87435         (readtoken): Use `size_t' rather than int/long.
87436         All callers adjusted.
87437         Use `bool' rather than `int' where appropriate.
87438         Use memset rather than an explicit loop.
87439         Use x2nrealloc rather than xrealloc.
87440         Allow the use of `\0' as a delimiter.
87441         (readtokens): Likewise.
87442         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87443
87444 2004-03-30  Jim Meyering  <jim@meyering.net>
87445
87446         * m4/realloc.m4: Remove file, since now it does no more than
87447         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87448         the `configure.ac' section of module/realloc.
87449         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87450
87451 2004-03-30  Bruno Haible  <bruno@clisp.org>
87452
87453         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87454         nonnull.
87455
87456 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87457
87458         Merge changes to getloadavg.c from coreutils and Emacs.
87459
87460         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87461         Define to an expression, not to the empty string.
87462         Include cloexec.h and xalloc.h.
87463         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87464         Use set_cloexec_flag rather than rolling our own.
87465         * lib/cloexec.c, lib/cloexec.h: New files.
87466
87467 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87468
87469         * m4/cloexec.m4: New file.
87470
87471 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87472
87473         * lib/getopt.h: Sync with libc CVS.
87474
87475 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87476             Bruno Haible  <bruno@clisp.org>
87477
87478         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87479         mbswidth.
87480
87481 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87482             Bruno Haible  <bruno@clisp.org>
87483
87484         * lib/mbswidth.h: Include <wchar.h> only if
87485         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87486         <wchar.h>.
87487         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87488
87489 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87490
87491         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87492         Sync with libc CVS.
87493         * lib/getopt_int.h: New file, also synced from libc.
87494
87495 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87496
87497         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87498         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87499         Bring back getopt.c, getopt.h, getopt1.c.
87500
87501 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87502
87503         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87504         All uses changed.  Check for sa_sigaction member; this fixes
87505         a bug first reported by Jason Andrade in
87506         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87507
87508 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87509
87510         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87511         '#if' expressions.  Unlike the code it replaces, it does not
87512         depend on (defined _SC_PAGESIZE).  However, it does depend on
87513         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87514         first reported by Jason Andrade in
87515         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87516
87517 2004-02-25  Simon Josefsson  <jas@extundo.com>
87518
87519         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87520
87521 2004-02-25  Simon Josefsson  <jas@extundo.com>
87522
87523         * lib/strdup.h: New file.
87524         * lib/strdup.c: Include it.
87525         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87526         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87527
87528 2004-02-23  Karl Berry  <karl@gnu.org>
87529
87530         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87531         (from fencepost.gnu.org:/gd/gnuorg).
87532
87533 2004-02-23  Karl Berry  <karl@gnu.org>
87534
87535         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87536         * config/srclist.txt: add maintain/standards documents.
87537
87538 2004-02-18  Bruno Haible  <bruno@clisp.org>
87539
87540         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87541         Reported by Derek Robert Price <derek@ximbiot.com>.
87542
87543 2004-02-16  Karl Berry  <karl@gnu.org>
87544
87545         * config/mkinstalldirs, install-sh: update from automake.
87546
87547 2004-02-06  Karl Berry  <karl@gnu.org>
87548
87549         * m4/po.m4: update from gettext 0.14.1.
87550
87551 2004-02-06  Karl Berry  <karl@gnu.org>
87552
87553         * lib/config.charset: update from gettext 0.14.1.
87554
87555 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87556
87557         Add comments and code, prompted by suggestions from Bruno Haible
87558         for sh-quote.
87559         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87560         describing the enum quoting_style values.
87561         * lib/quotearg.c (quotearg_alloc): New function.
87562         (quotearg_buffer_restyled): Treat lone { and } as special.
87563         Treat = as special.  Work around bug with older shells
87564         that "see" a '\' that is really the 2nd byte of a multibyte char.
87565         Quote empty string with shell_quoting_style.
87566
87567 2004-02-03  Bruno Haible  <bruno@clisp.org>
87568
87569         * m4/pipe.m4: New file, from GNU gettext.
87570
87571 2004-02-03  Bruno Haible  <bruno@clisp.org>
87572
87573         * lib/pipe.h: New file, from GNU gettext.
87574         * lib/pipe.c: New file, from GNU gettext.
87575
87576 2004-01-27  Bruno Haible  <bruno@clisp.org>
87577
87578         * m4/execute.m4: New file, from GNU gettext.
87579
87580 2004-01-27  Bruno Haible  <bruno@clisp.org>
87581
87582         * lib/execute.h: New file, from GNU gettext.
87583         * lib/execute.c: New file, from GNU gettext.
87584         * lib/w32spawn.h: New file, from GNU gettext.
87585
87586 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87587
87588         Merge from diffutils.
87589
87590         * lib/file-type.c (file_type): Add typed memory objects.
87591         * lib/file-type.h (S_TYPEISTMO): New macro.
87592
87593         * lib/c-stack.h (c_stack_action): Remove argv argument.
87594         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87595         (die): Don't calculate message unless segv_action returns.
87596         (get_stack_location, min_address_from_argv, max_address_from_argv,
87597         volatile stack_base, volatile_stack_size): Remove.
87598         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87599         that every segmentation violation is a stack overflow.  (Ouch!)
87600         See Debian bug 136249 (still outstanding) for more info about why
87601         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87602
87603 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87604
87605         Exit-status fix from coreutils.
87606
87607         Use exit_failure consistently in place of EXIT_FAILURE,
87608         so that program exit statuses are consistent on failure.
87609
87610         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87611         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87612         * lib/argmatch.h: Comment fix to match the above.
87613         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87614         Now a macro referring to exit_failure, instead of a separate
87615         variable.  Include "exitfail.h" to get it.
87616         * lib/xstrtol.h: Include "exitfail.h".
87617         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87618
87619         * lib/long-options.c (parse_long_options): Use prototype
87620         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87621         for clarity.
87622
87623 2004-01-21  Jim Meyering  <jim@meyering.net>
87624
87625         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87626         so as not to conflict with a different-sized __mktime_internal
87627         function in GNU libc.
87628         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87629         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87630
87631 2004-01-20  Karl Berry  <karl@gnu.org>
87632
87633         * config/config.guess: update from config.
87634
87635         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87636
87637 2004-01-20  Bruno Haible  <bruno@clisp.org>
87638
87639         Safer stack allocation.
87640         * lib/setenv.c: Include allocsa.h.
87641         (alloca): Remove fallback definition.
87642         (freea): Remove macro.
87643         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87644         instead of freea.
87645
87646 2004-01-20  Bruno Haible  <bruno@clisp.org>
87647
87648         * m4/eealloc.m4: New file, from GNU gettext.
87649
87650 2004-01-20  Bruno Haible  <bruno@clisp.org>
87651
87652         * m4/allocsa.m4: New file, from GNU gettext.
87653
87654 2004-01-20  Bruno Haible  <bruno@clisp.org>
87655
87656         * lib/xallocsa.h: New file, from GNU gettext.
87657         * lib/xallocsa.c: New file, from GNU gettext.
87658
87659 2004-01-20  Bruno Haible  <bruno@clisp.org>
87660
87661         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87662
87663 2004-01-20  Bruno Haible  <bruno@clisp.org>
87664
87665         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87666         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87667         specially.
87668
87669 2004-01-20  Bruno Haible  <bruno@clisp.org>
87670
87671         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87672         patch.
87673
87674 2004-01-20  Bruno Haible  <bruno@clisp.org>
87675
87676         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87677
87678 2004-01-20  Bruno Haible  <bruno@clisp.org>
87679
87680         * lib/eealloc.h: New file.
87681
87682 2004-01-20  Bruno Haible  <bruno@clisp.org>
87683
87684         * lib/binary-io.h: Avoid warnings on Cygwin.
87685
87686 2004-01-20  Bruno Haible  <bruno@clisp.org>
87687
87688         * lib/allocsa.h: New file, from GNU gettext.
87689         * lib/allocsa.c: New file, from GNU gettext.
87690
87691 2004-01-18  Karl Berry  <karl@gnu.org>
87692
87693         * doc/gpl.texi, doc/lgpl.texi: new files.
87694
87695 2004-01-18  Karl Berry  <karl@gnu.org>
87696
87697         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87698         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87699
87700 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87701
87702         Merge from coreutils.
87703
87704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87705         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87706         (gl_DEFAULT_POSIX2_VERSION): Move
87707         the documentation from 'configure' into 'config.hin',
87708         so that 'configure --help' isn't burdened by it and
87709         we don't have to worry about its formatting there.
87710         Reword the documentation so that it's more succinct
87711         and can be run together into a single paragraph.
87712         * m4/same.m4 (gl_SAME): Check for pathconf.
87713
87714 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87715
87716         Merge from coreutils.
87717
87718         * lib/posixver.c: Include posixver.h.
87719
87720         * lib/same.c: Include <stdbool.h>, <limits.h>.
87721         (_POSIX_NAME_MAX): Define if not defined.
87722         (MIN): New macro.
87723         (same_name): If file names are silently truncated, report
87724         that the file names are the same if they are the same after
87725         the silent truncation.
87726
87727         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87728         conversion function.
87729         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87730         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87731         longer needed.
87732
87733 2004-01-15  Jim Meyering  <jim@meyering.net>
87734
87735         Merge from coreutils.
87736
87737         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87738         if no library is required.
87739         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87740         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87741         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87742         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87743         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87744         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87745         value, $ac_cv_search_crypt, if it's "none required".
87746         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87747         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87748         not gl_FUNC_GETLOADAVG.
87749         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87750         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87751
87752 2004-01-15  Jim Meyering  <jim@meyering.net>
87753
87754         Merge from coreutils.
87755
87756         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87757         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87758         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87759
87760         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87761         optional configure-time default.
87762
87763         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87764
87765         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87766
87767 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87768
87769         Merge from coreutils.
87770
87771         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87772         value, $ac_cv_search_nanosleep, if it's "none required".
87773
87774 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87775
87776         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87777         with like-named macro in fnmatch.c.
87778         (EXT): Use an internal constant instead.
87779
87780         Merge fnmatch patches from glibc.
87781         * lib/fnmatch.c (mbsinit): Remove define.
87782         Add libc_hidden_ver (__fnmatch, fnmatch).
87783         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87784         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87785
87786 2004-01-14  Karl Berry  <karl@gnu.org>
87787
87788         * config/install-sh: update from automake.
87789
87790 2004-01-13  Karl Berry  <karl@gnu.org>
87791
87792         * config/install-sh: update from automake.
87793
87794 2004-01-09  Karl Berry  <karl@gnu.org>
87795
87796         * config/install-sh: update from automake.
87797
87798 2004-01-05  Karl Berry  <karl@gnu.org>
87799
87800         * config/config.{sub,guess}: update from config.
87801
87802 2003-12-31  Karl Berry  <karl@gnu.org>
87803
87804         * config/depcomp: update from automake.
87805
87806 2003-12-14  Karl Berry  <karl@gnu.org>
87807
87808         * lib/config.charset: update from gettext-runtime.
87809
87810 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87811
87812         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87813         Bug reported by Alfred M. Szmidt.
87814
87815 2003-12-03  Bruno Haible  <bruno@clisp.org>
87816
87817         * m4/gettext.m4: Upgrade from gettext-0.13.
87818         * m4/po.m4: Upgrade from gettext-0.13.
87819         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87820         * m4/intmax.m4: New file, from gettext-0.13.
87821         * m4/printf-posix.m4: New file, from gettext-0.13.
87822
87823 2003-11-29  Karl Berry  <karl@gnu.org>
87824
87825         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87826
87827 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87828             Bruno Haible  <bruno@clisp.org>
87829
87830         * lib/printf-parse.h: Don't include sys/types.h.
87831         (ARG_NONE): New macro.
87832         (char_directive): Change type of *arg_index fields to size_t.
87833         * lib/printf-parse.c: Don't include sys/types.h.
87834         (SSIZE_MAX): Remove macro.
87835         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87836         Remove unnecessary overflow check.
87837         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87838         fields.
87839
87840 2003-11-25  Bruno Haible  <bruno@clisp.org>
87841
87842         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87843
87844 2003-11-25  Bruno Haible  <bruno@clisp.org>
87845
87846         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87847         gt_TYPE_SSIZE_T.
87848
87849 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87850
87851         * modules/alloca: Remove dependency on xalloc.
87852
87853 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87854
87855         * lib/alloca.c: Remove dependency on xalloc module.
87856         (xalloc_die): Remove.
87857         (memory_full) [!defined emacs]: New macro.
87858         [!defined emacs]: Don't include xalloc.h.
87859         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87860         address arithmetic overflows.  Change datatypes a bit to avoid
87861         unnecessary casts.
87862
87863 2003-11-22  Jim Meyering  <jim@meyering.net>
87864
87865         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87866         s/size/size_t/.
87867
87868 2003-11-21  Karl Berry  <karl@gnu.org>
87869
87870         * config/config.{sub,guess}: update from config.
87871
87872 2003-11-18  Karl Berry  <karl@gnu.org>
87873
87874         * config/config.{sub,guess}: update from config.
87875
87876         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87877
87878 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87879
87880         * README: Mention that S+T cannot overflow if S is the size of
87881         an existing object and T is sufficiently small.
87882
87883 2003-11-17  Jim Meyering  <jim@meyering.net>
87884
87885         On systems without utime and without a utimes function capable of
87886         dealing with a NULL struct utimbuf* argument, this utime replacement
87887         could -- in unusual circumstances -- leak a file descriptor.
87888         * lib/utime.c: Include <unistd.h> and <errno.h>.
87889         (utime_null): Be sure to close `fd' and to preserve errno.
87890         Reported by Geoff Collyer via Arnold Robbins.
87891
87892 2003-11-17  Bruno Haible  <bruno@clisp.org>
87893
87894         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87895         (Depends-on): Add xsize.
87896
87897 2003-11-17  Bruno Haible  <bruno@clisp.org>
87898
87899         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87900
87901 2003-11-17  Bruno Haible  <bruno@clisp.org>
87902
87903         * lib/vasnprintf.c (alloca): Remove fallback definition.
87904         (freea): Remove definition.
87905         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87906         Reported by Paul Eggert.
87907
87908 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87909             Bruno Haible  <bruno@clisp.org>
87910
87911         Protect against address arithmetic overflow.
87912         * lib/printf-args.h: Include stddef.h.
87913         (arguments): Change type of field 'count' to size_t.
87914         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87915         'unsigned int' where appropriate.
87916         * lib/printf-parse.h: Include sys/types.h.
87917         (char_directive): Change type of *arg_index fields to ssize_t.
87918         (char_directives): Change type of fields 'count', max_*_length to
87919         size_t.
87920         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87921         (SSIZE_MAX): Define fallback value.
87922         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87923         instead of 'int' where appropriate. Check a_allocated, d_allocated
87924         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87925         * lib/vasnprintf.c: Include xsize.h.
87926         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87927         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87928         overflow. Avoid wraparound when converting a width or precision from
87929         decimal to binary.
87930
87931 2003-11-16  Bruno Haible  <bruno@clisp.org>
87932
87933         Update from GNU gettext.
87934         * lib/printf-parse.c: Generalize to it can be compiled for wide
87935         strings.
87936         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87937         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87938         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87939         SNPRINTF): New macros.
87940         Don't include <alloca.h> if the file is used inside libintl.
87941         (local_wcslen): New function, for Solaris 2.5.1.
87942         (VASNPRINTF): Use it instead of wcslen.
87943
87944 2003-11-16  Bruno Haible  <bruno@clisp.org>
87945
87946         * lib/xsize.h (xmax): New function.
87947         (xsum, xsum3, xsum4): Declare as "pure" functions.
87948
87949 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87950
87951         * modules/xalloc (Files): Undo latest change, since xalloc.h
87952         no longer needs SIZE_MAX or PTRDIFF_MAX.
87953
87954 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87955
87956         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87957         gl_PTRDIFF_MAX.
87958
87959 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87960
87961         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87962         "return", to pacify some unknown compiler.  Problem reported
87963         by Joerg Schilling.
87964
87965 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87966
87967         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87968         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87969         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87970         heuristic is just as accurate as far as we know, and it removes a
87971         dependency on size_max.m4 and ptrdiff_max.m4.
87972
87973 2003-11-11  Bruno Haible  <bruno@clisp.org>
87974
87975         * modules/xsize (Files): Add m4/size_max.m4.
87976         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87977
87978 2003-11-11  Bruno Haible  <bruno@clisp.org>
87979
87980         * m4/size_max.m4: New file.
87981         * m4/ptrdiff_max.m4: New file.
87982         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87983         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87984         (gl_XALLOC): Invoke it.
87985
87986 2003-11-11  Bruno Haible  <bruno@clisp.org>
87987
87988         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87989         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87990         defined.
87991
87992 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87993
87994         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87995         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87996         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87997         From Bruno Haible.
87998         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87999         not (size_t) -1, since it's defined here.
88000
88001 2003-11-09  Karl Berry  <karl@gnu.org>
88002
88003         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88004
88005 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88006
88007         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88008         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88009         Reject sizes of exactly SIZE_MAX bytes.
88010         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88011         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88012
88013 2003-11-05  Bruno Haible  <bruno@clisp.org>
88014
88015         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88016         SIZE_MAX defined in <limits.h> on Solaris.
88017
88018 2003-11-04  Jim Meyering  <jim@meyering.net>
88019
88020         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88021         variable names, rather than @VAR@.
88022         * modules/poll: Likewise.
88023
88024 2003-11-04  Bruno Haible  <bruno@clisp.org>
88025
88026         * modules/xsize: New file.
88027         * modules/linebreak: Depend on xsize.
88028         * MODULES.html.sh (func_all_modules): Add xsize.
88029
88030 2003-11-04  Bruno Haible  <bruno@clisp.org>
88031
88032         * m4/xsize.m4: New file.
88033
88034 2003-11-04  Bruno Haible  <bruno@clisp.org>
88035
88036         * lib/xsize.h: New file.
88037         * lib/linebreak.c: Include xsize.h.
88038         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88039         argument for overflow.
88040         Suggested by Paul Eggert.
88041
88042 2003-11-03  Karl Berry  <karl@gnu.org>
88043
88044         * config/config.{guess,sub}: update from config.
88045
88046 2003-11-03  Jim Meyering  <jim@meyering.net>
88047
88048         * modules/userspec (lib_SOURCES): Add userspec.h.
88049         (Include): Add "userspec.h".
88050         Improve description.
88051
88052 2003-11-03  Jim Meyering  <jim@meyering.net>
88053
88054         * lib/userspec.c: Include "userspec.h".
88055         * lib/userspec.h: New file.
88056
88057 2003-11-03  Bruno Haible  <bruno@clisp.org>
88058
88059         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88060
88061 2003-11-03  Bruno Haible  <bruno@clisp.org>
88062
88063         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88064         available, to avoid (extremely rare) race condition.
88065         Suggested by Paul Eggert.
88066
88067 2003-11-02  Karl Berry  <karl@gnu.org>
88068
88069         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88070
88071 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88072
88073         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88074         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88075         (read_filesystem_list): Set and use me_type_malloced.
88076         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88077         whatever the type happens to be), for brevity and consistency.
88078         Check for size calculation overflow on Alphas running OSF/1.
88079
88080 2003-10-31  Jim Meyering  <jim@meyering.net>
88081
88082         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88083
88084         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88085
88086 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88087             Bruno Haible  <bruno@clisp.org>
88088
88089         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88090         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88091
88092 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88093
88094         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88095         netbsd*-gnu*.  Suggested by Robert Millan.
88096
88097 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88098
88099         * modules/group-member: Depend on stdbool.
88100
88101 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88102
88103         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88104
88105 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88106
88107         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88108         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88109         after the 'gnu' in these cases.  This fixes some bugs in the
88110         previous change, and is based on suggestions by Robert Millan.
88111
88112 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88113
88114         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88115         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88116         no longer needed.
88117         * lib/quotearg.c (quotearg_n_options): Use it.
88118         * lib/group-member.c: Include <stdbool.h>.
88119         (free_group_info): Arg is now const *; don't free arg.
88120         (get_group_info): Now returns bool and accepts struct group_info *,
88121         rather than returning a malloc'ed struct group_info *.
88122         All uses changed.  Check for overflow in internal size calculation.
88123
88124         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88125         rather than xmalloc/xrealloc.
88126         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88127         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88128         conformance bug: the old code used a pointer after freeing the
88129         storage that it addressed.
88130         * lib/hash.c (hash_initialize): Simplify the code by using
88131         xalloc_oversized rather than doing it by hand.
88132         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88133         the buffer preserved.  Use free and xmalloc instead.
88134         * lib/quotearg.c (quotearg_n_options): Likewise.
88135         Use a simpler test for size overflow.  Don't use xalloc_oversized
88136         because unsigned int might be wider than size_t (!); this suggests
88137         that we should switch from unsigned int to size_t for slot numbers.
88138
88139 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88140
88141         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88142         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88143         NetBSD kernels.  Requested by Richard Stallman.
88144
88145 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88146
88147         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88148         to allocate the returned structure.  Do not allocate a subarray,
88149         as x2nrealloc will do that.
88150         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88151         instead of xnrealloc.
88152         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88153
88154 2003-10-27  Bruno Haible  <bruno@clisp.org>
88155
88156         * lib/stdbool_.h: Better support for BeOS.
88157
88158 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88159
88160         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88161         now uses inline.
88162
88163 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88164
88165         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88166         callers that want to do their own size-overflow checking.  Include
88167         <stdbool.h>, since xalloc_oversized returns bool.
88168         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88169         to use xalloc_oversized.
88170
88171         Add two functions x2realloc, x2nrealloc, for programs that grow
88172         arrays dynamically by doubling their sizes.
88173         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88174         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88175         New functions.
88176
88177         Port to C99 semantics for 'inline' of external functions.
88178         Bug reported by Bruno Haible.
88179         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88180         with the old contents of xnmalloc.
88181         (xnmalloc, xmalloc): Use it.
88182         (xnrealloc_inline): New static inline function,
88183         with the old contents of xnrealloc.
88184         (xnrealloc, xrealloc): Use it.
88185
88186         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88187         that.
88188
88189 2003-10-26  Karl Berry  <karl@gnu.org>
88190
88191         * config/srclist.txt (COPYING.DOC): no longer available from
88192         /gd/gnuorg; don't know where the ultimate source is.
88193
88194 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88195
88196         Fix several address-calculation bugs in the hash modules,
88197         plus some minor code cleanup.
88198
88199         * lib/hash.h: Include <stdbool.h>, for bool.
88200         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88201         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88202         hash_get_n_entries, hash_get_max_bucket_length,
88203         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88204         hash_rehash): Use size_t rather than unsigned.
88205         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88206         hash_get_n_buckets_used, hash_get_n_entries,
88207         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88208         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88209         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88210         Likewise.
88211         (SIZE_MAX): Define if not defined.
88212         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88213         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88214         hash_print):
88215         Use const * when possible.
88216         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88217         (check_tuning): Fix bug: if tuning parameters were very close to
88218         0 or 1, rounding errors could have caused subscript violations.
88219         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88220         (hash_initialize): Add 'fail:' label
88221         to free table and return NULL, and use it to simplify code.
88222         Use calloc rather than clearing the storage ourself.
88223         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88224         buffer size calculations.
88225         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88226         Include <stddef.h>, for size_t.
88227         * lib/hash-pjw.c (hash_pjw): Likewise.
88228         Switch to method described by Bruno Haible.
88229         Include <limits.h>, for CHAR_BIT.
88230         (SIZE_BITS): New macro.
88231
88232 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88233
88234         * m4/getline.m4 (AM_FUNC_GETLINE):
88235         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88236         hosts.  Problem reported by Derek Robert Price in
88237         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88238         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88239         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88240
88241 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88242
88243         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88244         ceiling the allocation at NMAX bytes rather than silently
88245         discarding input bytes before NMAX is reached.  This makes
88246         a difference only if NMAX exceeds SIZE_MAX / 2.
88247
88248         * lib/obstack.c: Merge from glibc.
88249         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88250         Add libc_hidden_def (_obstack_newchunk).
88251         (_obstack_free) [! defined _LIBC]: Remove.
88252         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88253         a clone of the function body.
88254         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88255         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88256
88257         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88258         glibc.
88259         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88260         arg to memcpy.
88261
88262         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88263         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88264         Don't use lvalue casts, as GCC plans to remove support for them
88265         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88266         was also present in the non-GCC version, indicating that this
88267         code had always been buggy and had never been widely used.
88268         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88269         Use the fast variant of each macro, rather than copying the
88270         definiens of the fast variant; that way, we'll be more likely to
88271         catch future bugs in the fast variants.
88272
88273 2003-10-20  Bruno Haible  <bruno@clisp.org>
88274
88275         * modules/wait-process: New file.
88276         * MODULES.html.sh (func_all_modules): Add wait-process.
88277
88278 2003-10-20  Bruno Haible  <bruno@clisp.org>
88279
88280         * m4/wait-process.m4: New file.
88281
88282 2003-10-20  Bruno Haible  <bruno@clisp.org>
88283
88284         * lib/wait-process.h: New file, from GNU gettext.
88285         * lib/wait-process.c: New file, from GNU gettext.
88286
88287 2003-10-19  Jim Meyering  <jim@meyering.net>
88288
88289         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88290         HPUX 10.20.
88291
88292 2003-10-18  Karl Berry  <karl@gnu.org>
88293
88294         * config/config.guess: update from config.
88295
88296 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88297
88298         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88299         (getgroups): First arg is int, not size_t.
88300         Don't let 'free' mangle errno.
88301
88302 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88303
88304         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88305
88306 2003-10-16  Karl Berry  <karl@gnu.org>
88307
88308         * config/config.{guess,sub}: update from config.
88309
88310 2003-10-16  Jim Meyering  <jim@meyering.net>
88311
88312         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88313         memcpy.
88314
88315 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88316
88317         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88318         (SIZE_MAX): Remove.
88319         (new_exclude, add_exclude_file): Initial size no longer needs to
88320         be a power of 2.
88321         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88322         our own address arithmetic overflow checking.
88323
88324         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88325         (fnmatch): Do not alloca more than 2000 wide characters;
88326         instead, use malloc for large buffers.
88327         Check for address arithmetic overflow, and return -1
88328         with errno set to ENOMEM in that case.
88329         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88330         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88331         instead, return -1.  Check for address arithmetic overflow.
88332
88333 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88334
88335         Handle invalid suffixes and overflow independently, so that
88336         callers can treat them independently as needed.  Fix some bugs in
88337         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88338         suffix for a human-readable blocksize.  The major caller-visible
88339         change is the addition of a new
88340         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88341         that both overflow and suffix chars were found.
88342
88343         * lib/human.c (humblock): Don't check separately for invalid suffix
88344         char; that is xstrtoumax's job (now that its bug is fixed).
88345         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88346         INTMAX_MAX]: New macros.
88347         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88348         TYPE_MAXIMUM): New macros.
88349         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88350         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88351         if overflow occurs, as it's what __strtol does and it's more useful
88352         in practice.
88353         (__xstrtol): If __strtol reports some error other than ERANGE,
88354         reflect it to the caller as LONGINT_INVALID.  If it reports
88355         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88356         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88357         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88358         value.
88359         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88360         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88361         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88362         [defined UINTMAX_MAX]: New macros.
88363
88364 2003-10-14  Bruno Haible  <bruno@clisp.org>
88365
88366         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88367
88368 2003-10-14  Bruno Haible  <bruno@clisp.org>
88369
88370         * m4/sig_atomic_t: New file, from GNU gettext.
88371         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88372
88373 2003-10-14  Bruno Haible  <bruno@clisp.org>
88374
88375         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88376         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88377         Also use volatile where needed.
88378
88379 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88380
88381         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88382         Change maintainer from Bruno Haible to 'all'.
88383
88384 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88385
88386         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88387
88388 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88389
88390         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88391         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88392         and define in terms of the other primitives.
88393         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88394         (SIZE_MAX): Define if not already defined.
88395         (array_size_overflow): New function.
88396         (xalloc_die): Abort instead of exiting if 'error' returns.
88397         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88398         (xmalloc, xrealloc): Use them.
88399         (xcalloc): Check for address arithmetic overflow.
88400         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88401         a bit faster than strcpy.
88402
88403 2003-10-10  Simon Josefsson  <jas@extundo.com>
88404
88405         * modules/argp (Depends-on): Add restrict and strcase.
88406
88407 2003-10-10  Simon Josefsson  <jas@extundo.com>
88408
88409         * m4/argp.m4: Add AC_C_INLINE.
88410
88411 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88412
88413         Merge getpass from libc, plus a few fixes.
88414
88415         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88416         Include <stdbool.h>.
88417         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88418         __fsetlocking to empty.
88419         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88420         do include <bits/libc-lock.h>.
88421         Do not include <fcntl.h>; not needed.
88422         [_LIBC]: Include <wchar.h>.
88423         (NOTCANCEL_MODE): New macro.
88424         (flockfile, funlockfile) [_LIBC]: New macros.
88425         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88426         [!_LIBC]: New macros.
88427         (call_fclose): New function.
88428         (getpass): Use it.  Save tty stream separately; this simplifies the
88429         code and makes it more reliable if stdin happens to equal stdout.
88430         Invoke __fsetlocking on tty.
88431         Handle thread cancellation if needed.
88432         Namespace cleanup (use __tcgetattr, __getline).
88433         Use bool for Booleans.
88434         [USE_IN_LIBIO]: Handle wide streams.
88435         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88436         stream might go where.
88437
88438         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88439         doesn't have to include <stdio.h> before us.
88440         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88441         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88442         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88443         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88444         if not declared, so that we can use getpass.c code from libc without
88445         rewriting it.
88446         (flockfile, ftrylockfile, funlockfile): New macros.
88447
88448 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88449
88450         * modules/getpass: Depend on stdbool.
88451
88452 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88453
88454         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88455
88456 2003-10-07  Karl Berry  <karl@gnu.org>
88457
88458         * config/config.{guess,sub}: update from config.
88459
88460 2003-10-06  Jim Meyering  <jim@meyering.net>
88461             Bruno Haible  <bruno@clisp.org>
88462
88463         This lets translators provide better translations for the
88464         "Written by ..." part of --version output.
88465         * lib/version-etc.h: Include stdarg.h.
88466         (version_etc_copyright): Declare as readonly.
88467         (version_etc): Make this function variadic with a NULL-terminated list
88468         of author name strings.
88469         (version_etc_va): New declaration.
88470         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88471         (version_etc_copyright): Declare as readonly.
88472         (version_etc_va): New function. Provide a different translatable string
88473         for each possible number of authors < 10. Abbreviate when there are 10
88474         authors or more.
88475         (version_etc): Make this function variadic. Call version_etc_va.
88476         Suggestion from Gary V. Vaughan.
88477
88478         * lib/long-options.h (parse_long_options): Change prototype: the
88479         authors string is moved to the end and becomes variadic.
88480         * lib/long-options.c: Include stdarg.h.
88481         (parse_long_options): Make this function variadic, too.
88482         Call version_etc_va, not version_etc.
88483
88484 2003-10-06  Bruno Haible  <bruno@clisp.org>
88485
88486         * modules/version-etc-2: Remove file.
88487         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88488
88489 2003-10-06  Bruno Haible  <bruno@clisp.org>
88490
88491         * modules/fatal-signal: New file.
88492         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88493
88494 2003-10-06  Bruno Haible  <bruno@clisp.org>
88495
88496         * m4/fatal-signal.m4: New file.
88497         * m4/signalblocking.m4: New file, from GNU gettext.
88498
88499 2003-10-06  Bruno Haible  <bruno@clisp.org>
88500
88501         * lib/version-etc-2.h: Remove file.
88502         * lib/version-etc-2.c: Remove file.
88503
88504 2003-10-06  Bruno Haible  <bruno@clisp.org>
88505
88506         * lib/fatal-signal.h: New file, from GNU gettext.
88507         * lib/fatal-signal.c: New file, from GNU gettext.
88508
88509 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88510
88511         * README: Rework advice for preventing empty .o files.
88512         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88513         not <sys/types.h>.
88514
88515 2003-10-04  Karl Berry  <karl@gnu.org>
88516
88517         * lib/argp*: update from libc.
88518
88519 2003-10-04  Karl Berry  <karl@gnu.org>
88520
88521         * config/config.{guess,sub}: update from config.
88522
88523 2003-10-02  Bruno Haible  <bruno@clisp.org>
88524
88525         * modules/lchown (Include): Add lchown.h.
88526         * modules/time_r (Include): Use "..." syntax.
88527         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88528
88529 2003-10-01  Simon Josefsson  <jas@extundo.com>
88530
88531         * MODULES.html.sh (func_all_modules): Move gethostname from section
88532         'based on' to section 'lacking' POSIX:2001.
88533
88534 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88535
88536         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88537         to output mode on the same stream.
88538
88539 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88540
88541         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88542         Fix arg typo in previous patch.
88543
88544 2003-09-28  Jim Meyering  <jim@meyering.net>
88545
88546         * lib/error.c: Correct cpp indentation.
88547
88548 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88549
88550         * modules/free: New file.
88551
88552 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88553
88554         * m4/free.m4: New file.
88555
88556 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88557
88558         * lib/minmax.h (MIN, MAX)
88559         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88560         Omit the special code that used __typeof__, since we worry that
88561         it could be more trouble than it's worth.  See:
88562         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88563         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88564
88565         * lib/free.c: New file.
88566
88567 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88568
88569         Trivial fixes to Makefile.am parts of module listings.
88570         * modules/strstr: Append strstr.h to lib_SOURCES.
88571         * modules/strcase: Likewise, for strcase.h.
88572
88573 2003-09-27  Karl Berry  <karl@gnu.org>
88574
88575         * config/mkinstalldirs: update from automake.
88576
88577 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88578
88579         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88580         (error_tail): Do not loop, reallocating temporary buffer, since
88581         the output cannot contain more wide characters than the input
88582         contains bytes, the size must be big enough already.  This avoids
88583         one potential size overflow calculation.  Check for size overflow
88584         when calculating temporary buffer size.  Free temporary buffer
88585         when done, if it was allocated with malloc; this plugs a memory
88586         leak.  Remove casts from void * to pointers, that are no longer
88587         needed now that we're assuming C89 or better.
88588
88589         Merge error changes from glibc.
88590
88591         * lib/error.c, error.h: Update copyright notice header to match glibc.
88592         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88593         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88594         Disable cancellation while printing error.
88595         * lib/error.h: Prepend __ to parameter names.
88596
88597 2003-09-26  Jim Meyering  <jim@meyering.net>
88598
88599         * lib/error.c (error_tail): Move some declarations
88600         into inner scope where the local variables are used.
88601
88602 2003-09-26  Bruno Haible  <bruno@clisp.org>
88603
88604         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88605         stpncpy().
88606         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88607
88608 2003-09-26  Bruno Haible  <bruno@clisp.org>
88609
88610         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88611         (stpncpy): Define as alias for gnu_stpncpy.
88612         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88613
88614 2003-09-25  Simon Josefsson  <jas@extundo.com>
88615
88616         * lib/xgetdomainname.h: New file.
88617         * lib/xgetdomainname.c: New file.
88618
88619 2003-09-25  Simon Josefsson  <jas@extundo.com>
88620             Bruno Haible  <bruno@clisp.org>
88621
88622         * modules/getdomainname: New file.
88623         * modules/xgetdomainname: New file.
88624         * MODULES.html.sh (func_all_modules): Add getdomainname,
88625         xgetdomainname.
88626
88627 2003-09-25  Simon Josefsson  <jas@extundo.com>
88628             Bruno Haible  <bruno@clisp.org>
88629
88630         * m4/getdomainname.m4: New file.
88631
88632 2003-09-25  Simon Josefsson  <jas@extundo.com>
88633             Bruno Haible  <bruno@clisp.org>
88634
88635         * lib/getdomainname.h: New file.
88636         * lib/getdomainname.c: New file.
88637
88638 2003-09-25  Karl Berry  <karl@gnu.org>
88639
88640         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88641
88642 2003-09-25  Karl Berry  <karl@gnu.org>
88643
88644         * config/install-sh: update from automake.
88645
88646 2003-09-25  Bruno Haible  <bruno@clisp.org>
88647
88648         * modules/version-etc-2: New file, from modules/version-etc with
88649         modifications.
88650         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88651
88652 2003-09-25  Bruno Haible  <bruno@clisp.org>
88653
88654         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88655         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88656
88657 2003-09-24  Simon Josefsson  <jas@extundo.com>
88658
88659         * modules/xgethostname: Add xgethostname.h.
88660
88661 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88662
88663         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88664         the buffer associated with the argument.  Bug reported by
88665         Simon Josefsson.
88666
88667 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88668
88669         * README: Document assumptions that 'int' is at least 32 bits
88670         wide, that integer arithmetic is 2's complement without overflow,
88671         that there are no holes in integer values, that adding sizes of
88672         two nonoverlapping objects can't overflow, and that all-bits-zero
88673         yields scalar zero.  Fix spelling and capitalization typos.
88674
88675 2003-09-19  Karl Berry  <karl@gnu.org>
88676
88677         * lib/argp.h: update from libc.
88678
88679 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88680
88681         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88682         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88683         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88684
88685 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88686
88687         * gnulib-tool: Use "test -h", not "test -L", for portability
88688         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88689         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88690         (sed_extract_prog): Issue s commands one-by-one, rather than
88691         using \| in one s command.
88692
88693 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88694
88695         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88696         input error, instead of returning NULL the next time we are called
88697         (and therefore losing track of errno).
88698
88699 2003-09-16  Bruno Haible  <bruno@clisp.org>
88700
88701         * gnulib-tool (func_create_testdir): Warn about duplicated
88702         dependencies.
88703
88704 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88705
88706         * modules/argmatch, modules/fatal, modules/obstack,
88707         modules/xalloc, modules/xgethostname: Sort dependencies by
88708         importance, not alphabetically.
88709
88710 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88711
88712         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88713         fails, so that the caller gets the proper errno.
88714
88715         * lib/readutmp.c (read_utmp): Likewise.
88716         Check for fstat error.  Close stream and free storage
88717         when failing.
88718
88719 2003-09-14  Karl Berry  <karl@gnu.org>
88720
88721         * config/srclist.txt (strdup.c): disable for c89 changes.
88722
88723 2003-09-14  Jim Meyering  <jim@meyering.net>
88724
88725         * lib/getloadavg.c: Correct cpp indentation.
88726         * lib/strdup.c: Likewise.
88727         * lib/vasnprintf.c: Likewise.
88728
88729 2003-09-14  Bruno Haible  <bruno@clisp.org>
88730
88731         * modules/fwriteerror: New file.
88732         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88733
88734 2003-09-14  Bruno Haible  <bruno@clisp.org>
88735
88736         * lib/fwriteerror.h: New file.
88737         * lib/fwriteerror.c: New file.
88738
88739 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88740
88741         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88742         modules/xgethostname, modules/xalloc: Depend on exit.
88743
88744 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88745
88746         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88747
88748         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88749         and AC_MINIX, too, so that their extensions are available.
88750
88751         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88752         This macro has been superseded by gl_BACKUPFILE.
88753
88754         More patches to assume C89 or better.
88755
88756         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88757
88758         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88759         unconditionally.
88760         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88761         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88762         Include <string.h>, <stdlib.h> unconditionally.
88763         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88764         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88765         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88766         headers or for string.h.
88767         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88768         or strtoul.
88769
88770         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88771         headers.
88772         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88773         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88774         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88775         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88776         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88777         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88778         memcpy, memset.
88779         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88780         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88781         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88782         strtol.
88783         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88784         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88785         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88786         strtoul.
88787
88788 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88789
88790         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88791         * lib/obstack.c [!defined _LIBC]: Likewise.
88792         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88793         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88794         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88795
88796         More changes to assume C89 or better.
88797
88798         * lib/error.c (error_tail): Assume vprintf.
88799
88800         * lib/argmatch.c (getenv): Remove decl.
88801         * lib/progreloc.c (get_full_program_name): Define via prototype.
88802         * lib/setenv.c (clearenv): Likewise.
88803         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88804         needed.
88805         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88806         (malloc, memcpy): Remove decls.
88807         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88808         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88809         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88810         (memcpy): Remove macro.
88811         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88812         (__P): Remove.  All uses removed.
88813         (PTR): Remove.  All uses changed to void *.
88814         (CHAR_BIT, NULL): Remove.
88815         (spaces, zeros, memset_space, memset_zero)
88816         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88817         Remove.
88818         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88819         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88820         Define with prototype.
88821         Remove now-unnecessary prototype decl.
88822         (extra_args_spec): Assume ANSI C.  All uses changed.
88823         (extra_args_spec_iso): Remove.
88824         (my_strftime, emacs_strftimeu): Define via prototype.
88825         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88826         unconditionally.
88827         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88828         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88829         (strtoul, strtol): Remove decls.
88830         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88831         LONG_MAX): Remove.
88832         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88833         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88834         (LOCALE_PARAM_PROTO): New macro.
88835         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88836         (INTERNAL (strtol), strtol): Define with a prototype.
88837         (PARAMS): Remove.  All uses removed.
88838         * lib/tempname.c: Include <string.h> unconditionally.
88839         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88840         * lib/xgethostname.c (main): Define with a prototype.
88841         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88842         Include <stdlib.h> unconditionally.
88843         (calloc, malloc, realloc, free): Remove decls.
88844         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88845         Include <stdlib.h> unconditionally.  Sort include file names.
88846         (strtod): Remove.
88847         (xstrtod): Define with a prototype.
88848         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88849         (strtol, strtoul): Remove decls.
88850
88851 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88852
88853         More patches to assume C89 or better.
88854         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88855         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88856         string.h, memchr, STDC_HEADERS.
88857
88858 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88859
88860         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88861         Include <stdlib.h>, <string.h> unconditionally.
88862         Remove now-unnecessary cast to char *.
88863         * lib/strnlen.c: Include <string.h> unconditionally.
88864         * lib/yesno.c (yesno): Define with a prototype.
88865
88866 2003-09-11  Bruno Haible  <bruno@clisp.org>
88867
88868         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88869
88870 2003-09-10  Jim Meyering  <jim@meyering.net>
88871
88872         * lib/error.c: Correct indentation of cpp directives.
88873
88874 2003-09-10  Bruno Haible  <bruno@clisp.org>
88875
88876         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88877         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88878         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88879         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88880         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88881         <stdlib.h> and <string.h> checks.
88882         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88883         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88884
88885 2003-09-10  Bruno Haible  <bruno@clisp.org>
88886
88887         * lib/strcspn.c: Include <string.h> unconditionally.
88888         * lib/strpbrk.c: Include <string.h> unconditionally.
88889         * lib/strstr.c: Include <string.h> unconditionally.
88890         * lib/unicodeio.c: Include <string.h> unconditionally.
88891         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88892         * lib/unsetenv.c: Likewise.
88893         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88894         * lib/yesno.c: Include <stdlib.h> unconditionally.
88895         (rpmatch): Add prototype.
88896
88897 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88898
88899         More patches to assume C89 or better.
88900         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88901         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88902         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88903         or for string.h.
88904         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88905         stdlib.h.
88906         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88907         C headers.
88908         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88909         string.h.
88910         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88911         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88912         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88913         or for string.h.
88914         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88915         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88916         C headers.
88917         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88918         memcpy.
88919         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88920         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88921         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88922         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88923         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88924         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88925         string.h, free.
88926         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88927         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88928         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88929         C headers, or for string.h.
88930         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88931         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88932         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88933         headers, memory.h, stdlib.h, string.h, strings.h.
88934         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88935         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88936         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88937         strchr.
88938         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88939         headers, memory.h, string.h.
88940         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88941         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88942         free.
88943         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88944         headers.
88945         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88946         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88947         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88948         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88949         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88950
88951 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88952
88953         More K&R removal.
88954
88955         * lib/acosl.c (main): Use a prototype.
88956         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88957         tanl.c: Likewise.
88958
88959         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88960
88961         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88962         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88963         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88964         with a prototype.
88965         * lib/getopt.c (const): Remove macro.
88966         Include <string.h> unconditionally.
88967         (my_index): Remove; all uses changed to strchr.
88968         (strlen): Remove decl.
88969         (exchange): Remove forward decl; no longer needed.
88970         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88971         Define with prototype.
88972         * lib/getopt1.c (const): Remove macro.
88973         (getopt_long, getopt_long_only, main): Define with prototype.
88974
88975         * lib/getugroups.c: Include <string.h> unconditionally.
88976
88977         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88978         (getusershell, setusershell, endusershell, readname, main):
88979         Define with prototypes.
88980
88981         * lib/group-member.c: Include group-member.h first.
88982         Include <stdlib.h> unconditionally.
88983
88984         * lib/hard-locale.c: Include hard-locale.h first.
88985         Include <stdlib.h>, <string.h> unconditionally.
88986
88987         * lib/hash.c (free, malloc): Remove decls.
88988         Include <stdlib.h> unconditionally.
88989
88990         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88991         (getenv): Do not declare.
88992
88993         * lib/idcache.c: Include <string.h> unconditionally.
88994
88995         * lib/long-options.c: Include long-options.h first, to test interface.
88996         Include <stdlib.h> unconditionally.
88997
88998         * lib/makepath.c: Include makepath.h first, to test interface.
88999         Include <stdlib.h> and <string.h> unconditionally.
89000
89001         * lib/linebuffer.c: Include <stdlib.h>.
89002         (free): Remove decl.
89003
89004         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89005         stddef.h. rpl_malloc returns void *, not char *.
89006         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89007         prototype.
89008
89009         * lib/md5.h: Include <limits.h> unconditionally.
89010         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89011         (__P): Remove; all uses removed.
89012         * lib/md5.c: Include "md5.h" first.
89013         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89014         md5_buffer, md5_process_bytes, md5_process_block):
89015         Define with prototypes.
89016         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89017         * lib/sha.c: Include "sha.h" first.
89018         Include <stdlib.h>, <string.h> unconditionally.
89019
89020         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89021         * lib/memcmp.c (__ptr_t): Likewise.
89022         * lib/memrchr.c (__ptr_t): Likewise.
89023         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89024         Include <string.h> unconditionally.
89025         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89026         * lib/memchr.c: Include <stdlib.h> unconditionally.
89027         * lib/memchr.c (LONG_MAX): Remove.
89028         * lib/memrchr.c (LONG_MAX): Likewise.
89029         * lib/memchr.c (__memchr): Define via a prototype.
89030         * lib/memrchr.c (__memrchr): Likewise.
89031         * lib/memcmp.c (__P): Remove, and remove all uses.
89032         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89033         Remove forward decls; no longer needed.
89034         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89035         Use types required by C89 in prototype.
89036
89037         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89038         * lib/savedir.c: Likewise.
89039         * lib/mkdir.c (free): Remove decl.
89040         * lib/rmdir.c (rmdir): Define with a prototype.
89041         * lib/savedir.c: Include savedir.h first, to test interface.
89042
89043         * lib/mktime.c (STDC_HEADERS): Remove.
89044         Include <stdlib.h>, <string.h> unconditionally.
89045
89046         * lib/modechange.c: Include <stdlib.h> unconditionally.
89047         (malloc): Remove decl.
89048
89049         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89050         (free): Remove decl.
89051
89052         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89053         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89054         (This type really should be intptr_t, but that's a C99ism.)
89055         (_obstack_memcpy): Remove: all uses changed to memcpy.
89056         Include <string.h> unconditionally.
89057         (struct obstack): Assume __STDC__ for types of members
89058         chunkfun, freefun, extra_arg.
89059         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89060         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89061         obstack_begin, obstack_specify_allocation,
89062         obstack_specify_allocation_with_arg, obstack_chunkfun,
89063         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89064         Remove unprototyped decls and the macros that use them.
89065         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89066         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89067         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89068         (defined __STDC__ && __STDC__)]:
89069         Remove nonprototyped code.
89070         Include <stdlib.h> unconditionally.
89071         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89072         _obstack_allocated_p, _obstack_free, obstack_free,
89073         _obstack_memory_used, print_and_abort):
89074         Define using prototypes.
89075         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89076         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89077         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89078         obstack_next_free, obstack_object_size, obstack_room) [0]:
89079         Remove unused, unprototyped code.
89080
89081         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89082
89083         * lib/physmem.c (physmem_total, physmem_available, main): Define
89084         with prototypes.
89085
89086         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89087         (main): Define with a prototype.
89088
89089         * lib/posixver.c (getenv): Remove decl.
89090
89091         * lib/putenv.c (malloc): Returns void *, not char *.
89092         Include <string.h> unconditionally.
89093         (strchr, memcpy, NULL): Do not define.
89094
89095         * lib/readtokens.c: Include readtokens.h first, to test interface.
89096         Include <stdlib.h>, <string.h> unconditionally.
89097         (init_tokenbuffer): Define with a prototype.
89098
89099         * lib/regex.c (PARAMS): Remove.  All uses removed.
89100         All uses of _RE_ARGS removed, too.
89101         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89102         unconditionally.
89103         (bzero): Assume memset exists.
89104         (memcmp, memcpy, NULL): Remove.
89105         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89106         char, or assignments to local vars of type signed char.
89107         (init_syntax_once, PREFIX(extract_number_and_incr),
89108         PREFIX(print_partial_compiled_pattern),
89109         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89110         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89111         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89112         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89113         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89114         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89115         wcs_compile_range, byte_compile_range, truncate_wchar,
89116         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89117         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89118         count_mbs_length, wcs_re_match_2_internal,
89119         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89120         PREFIX(alt_match_null_string_p),
89121         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89122         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89123         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89124         now-unnecessary declaration, if any.
89125         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89126         regcomp, regexec):
89127         Remove now-unnecessary casts among pointer types.
89128         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89129
89130         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89131         (free): Remove decl.
89132
89133         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89134
89135         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89136         (free): Remove decl.
89137
89138         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89139         * lib/xgetcwd.c: Likewise.
89140
89141         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89142         (free): Remove decl.
89143
89144         * lib/strchrnul.c (strchrnul): Define with a prototype.
89145         Fix bug: c_in was not converted to char before searching.
89146
89147         The following changes are not K&R related:
89148
89149         * lib/group-member.h: Include <sys/types.h>, so that this file is
89150         self-contained.
89151         * lib/makepath.h: Likewise.
89152
89153         * lib/getusershell.c (readname, default_index, line_size, readname):
89154         Use size_t, not int, for sizes.
89155         (readname): If the size overflows, report an error instead of
89156         looping forever.
89157
89158 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89159
89160         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89161         libc.
89162
89163 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89164
89165         * README: New section: portability guidelines.
89166
89167 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89168
89169         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89170         C89 spec.
89171
89172 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89173
89174         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89175
89176 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89177
89178         Assume C89 or better; remove K&R cruft.
89179         A few of these changes were first proposed by Derek Robert Price
89180         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89181
89182         * lib/addext.c: Include <string.h> unconditionally.
89183         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89184         Don't declare getenv or malloc.
89185
89186         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89187         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89188         (NULL): Remove.
89189         (find_stack_direction, alloca): Use prototypes.
89190
89191         * lib/atexit.c (atexit): Define using a prototype.
89192
89193         * lib/basename.c, dirname.c, stripslash.c:
89194         Include <string.h> unconditionally.
89195
89196         * lib/bcopy.c: Include <stddef.h>.
89197         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89198
89199         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89200
89201         * lib/error.h (error, error_at_line, error_print_progname)
89202         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89203         * lib/error.c: Include error.h first, to check interface.
89204         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89205         (VA_START): Remove; all uses changeed to va_start.
89206         (exit, strerror): Remove decls.
89207         (error_print_progname): Prototype uncondionally.
89208         Don't include <errno.h>; no longer needed.
89209         (private_strerror): Remove.
89210         (error_tail): Always define.
89211         (error, error_at_line): Assume C89 or better; always use prototypes.
89212         * lib/fatal.c: Include "fatal.h" first, to test interface.
89213         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89214         (VA_START): Remove; all uses changed to va_start.
89215         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89216         this case.
89217         (exit): Remove decl.
89218         (fatal): Prototype unconditionally.  Assume va_start works.
89219         Abort at end, to pacify gcc.
89220
89221         * lib/euidaccess.c (main): Define with a prototype.
89222
89223         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89224
89225         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89226
89227         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89228         prototypes.
89229         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89230         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89231         (getenv): Remove decl.
89232         (fnmatch): Define using a prototype.
89233         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89234         (FCT): Define using a prototype.
89235
89236         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89237
89238         * lib/gethostname.c: Include <stddef.h>.
89239         (gethostname): Define with prototype.  Length is size_t, not int.
89240
89241 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89242
89243         Assume C89 or better; remove K&R cruft.
89244         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89245         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89246         string.h, getenv, malloc.
89247         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89248         headers.
89249         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89250         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89251         do not check for strerror.
89252         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89253         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89254         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89255         do not check for doprnt or vprintf.
89256         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89257         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89258
89259 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89260
89261         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89262         getversion.c should have been removed then, but was accidentally
89263         preserved.
89264
89265         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89266         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89267
89268 2003-09-08  Karl Berry  <karl@gnu.org>
89269
89270         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89271                 config, forget about prep.
89272
89273         * config/depcomp, missing: update from automake.
89274
89275 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89276
89277         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89278         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89279
89280 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89281
89282         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89283         copy_tm_result.  Bug reported by Simon Josefsson in
89284         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89285
89286 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89287
89288         * m4/time_r.m4: New file.
89289         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89290         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89291         is. Check for timegm declaration.
89292         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89293         Do not check for gmtime_r.
89294         Replace mktime if __mktime_internal does not exist and if mktime
89295         hasn't been replaced already.
89296
89297 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89298
89299         * lib/time_r.c, lib/time_r.h: New files.
89300
89301         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89302         __localtime_r.
89303         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89304         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89305
89306         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89307         __gmtime_r.
89308         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89309         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89310         Include <time_r.h>.
89311
89312         * lib/timegm.c: Switch to glibc implementation, with the following
89313         changes:
89314         [defined HAVE_CONFIG_H]: Include <config.h>.
89315         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89316         (__mktime_internal) [!defined _LIBC]: New decl.
89317         (__gmtime_r) [!defined _LIBC]: New macro and function.
89318         (timegm): Use a prototype, since gnulib assumes C89.
89319         Do not bother declaring tmp to be const, as it's not really usefu.
89320         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89321         (timegm): Declare only if HAVE_DECL_TIMEGM.
89322
89323 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89324
89325         * MODULES.html.sh (func_all_modules): Add time_r.
89326         * modules/time_r: New file.
89327         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89328         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89329
89330 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89331
89332         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89333         Bug reported by Lute Kamstra in
89334         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89335
89336         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89337         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89338         course with correspondingly smaller numbers for tomorrow and
89339         yesterday.  From Tadayoshi Funaba.  Originally installed into
89340         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89341         coreutils merge?).
89342
89343 2003-08-31  Simon Josefsson  <jas@extundo.com>
89344
89345         * modules/timegm: New file.
89346         * MODULES.html.sh (func_all_modules): Add timegm.
89347
89348 2003-08-31  Simon Josefsson  <jas@extundo.com>
89349
89350         * m4/timegm.m4: New file.
89351
89352 2003-08-31  Simon Josefsson  <jas@extundo.com>
89353
89354         * lib/timegm.h: New file.
89355         * lib/timegm.c: New file.  Based on
89356         wget-1.8.2/src/http.c:mktime_from_utc.
89357
89358 2003-08-31  Karl Berry  <karl@gnu.org>
89359
89360         * lib/argp.h: update from libc.
89361
89362 2003-08-28  Bruno Haible  <bruno@clisp.org>
89363
89364         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89365         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89366         followed by '#define fnmatch fnmatch_posix' gives an error.
89367
89368 2003-08-28  Bruno Haible  <bruno@clisp.org>
89369
89370         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89371         warning on QNX, which defines O_BINARY to 000000.
89372
89373 2003-08-27  Jim Meyering  <jim@meyering.net>
89374
89375         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89376         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89377         would fail after 32.  Reported by Danny Levinson.  Details here:
89378         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89379
89380 2003-08-24  Bruno Haible  <bruno@clisp.org>
89381
89382         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89383         MSVC7 <stdio.h> is included later.
89384
89385 2003-08-22  Simon Josefsson  <jas@extundo.com>
89386
89387         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89388
89389 2003-08-20  Karl Berry  <karl@gnu.org>
89390
89391         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89392
89393 2003-08-20  Bruno Haible  <bruno@clisp.org>
89394
89395         * modules/progname: New file.
89396         * MODULES.html.sh (func_all_modules): Add progname.
89397
89398 2003-08-20  Bruno Haible  <bruno@clisp.org>
89399
89400         * lib/progname.h: New file, from GNU gettext.
89401         * lib/progname.c: New file, from GNU gettext.
89402         * lib/progreloc.c: New file, from GNU gettext.
89403
89404 2003-08-19  Jim Meyering  <jim@meyering.net>
89405
89406         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89407         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89408
89409 2003-08-19  Bruno Haible  <bruno@clisp.org>
89410
89411         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89412         more.
89413
89414 2003-08-19  Bruno Haible  <bruno@clisp.org>
89415
89416         * lib/xstrdup.c: Assume <string.h> exists.
89417
89418 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89419
89420         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89421         in makefile rules.
89422
89423 2003-08-18  Jim Meyering  <jim@meyering.net>
89424
89425         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89426         * m4/lib-ld.m4: Likewise.
89427
89428 2003-08-18  Jim Meyering  <jim@meyering.net>
89429
89430         * lib/setenv.h: Indent nested cpp directive.
89431         * lib/vasnprintf.c: Remove trailing blanks.
89432
89433 2003-08-17  Simon Josefsson  <jas@extundo.com>
89434
89435         * modules/xstrndup: New file.
89436         * MODULES.html.sh (func_all_modules): Add xstrndup.
89437
89438 2003-08-17  Simon Josefsson  <jas@extundo.com>
89439
89440         * modules/argp: Fix autoconf macro name. Add more dependencies.
89441
89442 2003-08-17  Simon Josefsson  <jas@extundo.com>
89443
89444         * m4/xstrndup.m4: New file.
89445
89446 2003-08-17  Simon Josefsson  <jas@extundo.com>
89447
89448         * m4/argp.m4: New file.
89449
89450 2003-08-17  Simon Josefsson  <jas@extundo.com>
89451             Bruno Haible  <bruno@clisp.org>
89452
89453         * lib/xstrndup.h: New file.
89454         * lib/xstrndup.c: New file.
89455
89456 2003-08-17  Bruno Haible  <bruno@clisp.org>
89457
89458         * modules/strndup (Files, Include): Add lib/strndup.h.
89459
89460 2003-08-17  Bruno Haible  <bruno@clisp.org>
89461
89462         * modules/euidaccess (Files): Add lib/euidaccess.h.
89463
89464 2003-08-17  Bruno Haible  <bruno@clisp.org>
89465
89466         * lib/strndup.h: New file.
89467
89468 2003-08-17  Bruno Haible  <bruno@clisp.org>
89469
89470         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89471         like AC_GNU_SOURCE.
89472         * modules/extensions (configure.ac): Comment out the invocation of
89473         gl_USE_SYSTEM_EXTENSIONS.
89474
89475 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89476
89477         Merges from coreutils, etc.
89478         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89479         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89480         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89481         fixing a typo.
89482         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89483         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89484
89485 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89486
89487         Document merge from coreutils.
89488         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89489         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89490         * modules/utime: Add m4/utimes-null.m4.
89491
89492 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89493
89494         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89495         space, undoing this 2003-08-12 change:
89496         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89497
89498 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89499
89500         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89501         strtoul.c from libc, undoing this 2003-08-12 change:
89502         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89503
89504 2003-08-16  Jim Meyering  <jim@meyering.net>
89505
89506         Merges from coreutils.
89507         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89508         prefix.  Adjust cache variables similarly.  Create 500 rather than
89509         just 300 files, to exercise bug on Darwin6.5, too.
89510         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89511         $missing_dir.
89512         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89513         AM_SYS_POSIX_TERMIOS.
89514         Reported by mkc@mathdogs.com.
89515         Also change use of $am_cv_sys_posix_termios
89516         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89517         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89518         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89519         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89520         in /proc/mounts until it finds one with matching device number.  This
89521         is unnecessary when the FILE argument *is* a mount point.  No stat call
89522         is necessary in that case.  So, disable the statvfs-testing code on
89523         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89524         as RedHat bug# 84846.
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
89533         Merge from coreutils.
89534         * lib/xstrtoimax.c: #else #if -> #elif.
89535         * lib/xstrtoumax.c: Likewise.
89536
89537 2003-08-16  Jim Meyering  <jim@meyering.net>
89538
89539         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89540         * m4/utimes.m4: Removed.
89541         * m4/utimes-null.m4: Renamed from utimes.m4.
89542
89543         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89544         to 1MB, so as not to render systems with no stack size limit (e.g.,
89545         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89546         Include <unistd.h>.  On some systems,
89547         it is required for the definition of _SC_PAGESIZE.
89548
89549 2003-08-16  Jim Meyering  <jim@meyering.net>
89550         and Paul Eggert  <eggert@cs.ucla.edu>
89551
89552         Merges from coreutils, etc.
89553
89554         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89555         using the latest version from cvs.  This avoids problems with #line
89556         directives using a vendor (Sun) compiler.
89557         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89558         Don't set GETGROUPS_LIB here; now it's
89559         done via getgroups.m4's wrapper function.
89560         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89561         rather than just in sh-util/configure.in, so that the
89562         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89563         same.
89564         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89565         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89566         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89567         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89568         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89569         Remove code that is now done by the newly-required macros.
89570         Append $(EXEEXT) to DF_PROG.
89571         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89572         Do not invoke or require the following here,
89573         since prereq.m4 or some gnulib .m4 now does this for us:
89574         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89575         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89576         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89577         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89578         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89579         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89580         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89581         AC_FUNC_OBSTACK.
89582         Do not replace the following functions, as this is now the job
89583         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89584         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89585         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89586         atexit getpass, strdup, getpagesize.
89587         Replace 'raise'.
89588         Do not check for the following functions, as this is now the job
89589         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89590         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89591         setregid.
89592         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89593         Check for sys/sysctl.h.
89594         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89595         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89596         of checking for ssize_t ourselves.
89597
89598         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89599         Require every macro that gnulib/modules/* suggests for us.
89600         (jm_PREREQ_ADDEXT): New macro.
89601         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89602         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89603
89604         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89605         (gl_PHYSMEM): Use it.
89606         Also check for `table' function.
89607         Check for new headers and functions.
89608         Add check for sys/sysmp.h.
89609         With suggestions from Kaveh Ghazi.
89610         Ignore headers that are present but cannot be compiled.  This
89611         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89612         C 5.4.
89613
89614 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89615
89616         Document merge from coreutils.
89617         * modules/userspec: Depend on posixver.
89618         * modules/strftime: Depend on tzset.
89619
89620 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89621
89622         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89623         rather than tab, after '#' in shell-script copyright notices.
89624         Suggested by Bruno Haible.
89625
89626 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89627
89628         * config/srclist-update: Use three spaces, rather than tab, after '#'
89629         in shell-script copyright notices.  Suggested by Bruno Haible.
89630         Remove unnecessary parenthesization in regular expression.
89631
89632 2003-08-15  Jim Meyering  <jim@meyering.net>
89633
89634         Merge from coreutils.
89635         * lib/xgethostname.c: Include <stdlib.h>.
89636         (xghostname): Don't exit for anything other than memory-related
89637         failure; just return NULL.
89638         * lib/userspec.c: Include "posixver.h".
89639         (parse_user_spec): Accept `.' as a separator only
89640         in pre-POSIX-200112 mode.
89641         * lib/strtoimax.c: Use #elif rather than #else #if.
89642         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89643         Remove function, now that we can rely on a working tzset function.
89644         [!_LIBC]: Ensure that the required autoconf test has been run.
89645         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89646         Use underlying_strftime for %r.
89647         * lib/sha.c: Merge in some clean-up and optimization changes from
89648         glibc.
89649         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89650         Ensure that it is a multiple of 64.
89651         Rearrange loop exit tests so as to avoid performing an
89652         additional fread after encountering an error or EOF.
89653         * lib/realloc.c: Update copyright date.
89654
89655 2003-08-15  Jim Meyering  <jim@meyering.net>
89656         and Paul Eggert  <eggert@twinsun.com>
89657
89658         Merge from coreutils.
89659         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89660         member but strut utmpx does not.  Needed for AIX 4.3.3.
89661         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89662
89663 2003-08-15  Jim Meyering  <jim@meyering.net>
89664         and Paul Eggert  <eggert@cs.ucla.edu>
89665
89666         Merges from coreutils, etc.
89667         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89668         Require gl_FUNC_TZSET_CLOBBER.
89669         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89670         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89671         members.
89672
89673 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89674
89675         Help the merge from coreutils.
89676         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89677         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89678         * m4/tzset.m4: Use it too.
89679
89680 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89681
89682         * modules/tzset: New file.
89683
89684 2003-08-14  Jim Meyering  <jim@meyering.net>
89685
89686         Merges from coreutils.
89687         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89688         variable names, rather than @FNMATCH_H@.
89689         * modules/alloca: Likewise for $(ALLOCA_H).
89690
89691         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89692         the three copies of the literal target, `fnmatch.h'.
89693         * modules/alloca (alloca.h): Likewise.
89694
89695 2003-08-14  Jim Meyering  <jim@meyering.net>
89696
89697         Merge from coreutils.
89698         * m4/tzset.m4: New file.
89699         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89700         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89701         otherwise, AIX 5.1 systems would end up using the latter.
89702         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89703         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89704         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89705         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89706
89707 2003-08-14  Jim Meyering  <jim@meyering.net>
89708
89709         Merge from coreutils.
89710         * lib/obstack.h: Whitespace changes.
89711         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89712         and xcalloc return values.
89713         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89714         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89715         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89716         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89717         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89718         error from mntctl.
89719         Use mntctl's return value to drive the entry-processing loop, since
89720         we can't rely on the value of the vmt_length member in the last
89721         entry.  On some systems doing so could result in exhausting
89722         virtual memory.  Based in part on a patch from Mike Jetzer.
89723
89724 2003-08-14  Jim Meyering  <jim@meyering.net>
89725         and Paul Eggert  <eggert@twinsun.com>
89726
89727         Merges from coreutils, plus other fixes.
89728         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89729         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89730         for credits and details.  Thanks to Kaveh Ghazi for helping
89731         to keep these files in sync.
89732         (ARRAY_SIZE): Define it.
89733         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89734         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89735         (memcasecmp): Don't assume size_t fits in unsigned int.
89736         Remove casts and duplicate code.
89737         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89738         (memcpy): Remove definition.
89739         Merge in some clean-up and optimization changes from glibc.
89740         [BLOCKSIZE]: Move definition to top of file.
89741         Ensure that it is a multiple of 64.
89742         Rearrange loop exit tests so as to avoid performing an
89743         additional fread after encountering an error or EOF.
89744         * lib/md5.h (md5_uintptr): Define.
89745         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89746         return to the initial working directory.  Preserve errno
89747         for caller.
89748         * lib/idcache.c: Include "xalloc.h".
89749         (xmalloc, xrealloc): Remove decls.
89750         (getuser): Remove casts no longer required in C89.
89751         * lib/human.c: Include stdio.h, for sprintf.
89752         * lib/group-member.c: Include "xalloc.h".
89753         (xmalloc, xrealloc): Remove decls.
89754         (get_group_info): Remove casts no longer required in C89.
89755         * lib/getusershell.c (readname): Remove casts no longer required in
89756         C89.
89757         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89758         * lib/getline.c: Whitespace fix, from coreutils.
89759
89760 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89761
89762         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89763         Check for isascii.
89764
89765         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89766         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89767         Undo previous (whitespace-only) change.
89768
89769 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89770
89771         * lib/exclude.c: Include <ctype.h>
89772         (IN_CTYPE_DOMAIN): New macro.
89773         (is_space): New fn.
89774         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89775         and empty lines.
89776
89777         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89778         Undo previous (whitespace-only) change.
89779
89780 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89781
89782         * config/srclist-update: Change update back to the old behavior,
89783         leaving whitespace alone.  Use one 'sed' command rather than a
89784         pipeline.
89785         (fixlicense): Now a variable, not a function.
89786         (remove_trailing_blanks): Remove.
89787         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89788         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89789         Undo previous (whitespace-only) change.
89790
89791 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89792
89793         Merge from coreutils.
89794         * modules/euidaccess: Add lib_SOURCES, include for new
89795         file euidaccess.h
89796
89797 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89798
89799         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89800         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89801         Normalize leading white space and remove trailing white space.
89802
89803         Merge from coreutils
89804         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89805
89806         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89807         0.12.1.  These files are now being upgraded automatically by
89808         ../config/srclist-update.
89809
89810 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89811
89812         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89813         Normalize leading white space and remove trailing white space.
89814         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89815         notice, as per ../config/srclist-update.
89816
89817         Merge from coreutils.
89818         * lib/euidaccess.h: New file.
89819         * lib/euidaccess.c: Include it.
89820         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89821         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89822         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89823
89824 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89825
89826         * config/srclist-update: Add copyright notice.
89827         (remove_id_lines, remove_trailing_blanks): New constants.
89828         (fixfile): Use them to normalize spacing a bit in copied files.
89829         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89830         Normalize leading white space and remove trailing white space.
89831
89832         * config/texinfo.tex: Sync with texinfo.
89833
89834         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89835         strtoul.c from libc, to merge coreutils whitespace changes.
89836
89837         * config/srclist.txt: Get the following m4 files from gettext:
89838         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89839         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89840         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89841         wint_t.m4.
89842
89843 2003-08-12  Karl Berry  <karl@gnu.org>
89844
89845         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89846         been made.
89847
89848 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89849
89850         * modules/gnu-source, m4/gnu-source.m4:
89851         Remove; we're assuming Autoconf 2.54 or later now.
89852         Suggested by Bruno Haible.
89853         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89854
89855 2003-08-11  Bruno Haible  <bruno@clisp.org>
89856
89857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89858
89859 2003-08-11  Bruno Haible  <bruno@clisp.org>
89860
89861         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89862         (vasnprintf): Use it instead of wcslen.
89863
89864 2003-08-11  Bruno Haible  <bruno@clisp.org>
89865
89866         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89867         value to ensure that _Bool promotes to int. Use #define for _Bool when
89868         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89869
89870 2003-08-10  Karl Berry  <karl@gnu.org>
89871
89872         * lib/regex.h: update from libc (whitespace fix).
89873
89874 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89875
89876         Merge some files from coreutils.  These changes were
89877         originally made by Jim Meyering.
89878         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89879         many older Unixes require this.
89880         * lib/alloca.c (alloca): Remove cast to argument of free;
89881         no longer needed in C89.
89882         * lib/alloca_.h, regex.h: Fix white space to match
89883         what GNU indent does.
89884
89885 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89886
89887         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89888         apparently Emacs's Unicode mode got confused before my 2003-08-05
89889         checkin.
89890
89891 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89892
89893         * m4/extensions.m4: New file.
89894         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89895         Require gl_USE_SYSTEM_EXTENSIONS.
89896         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89897         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89898
89899 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89900
89901         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89902         * modules/extensions, modules/gnu-source: New files.
89903         * modules/timespec, modules/unlocked-io: Depend on extensions.
89904
89905 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89906
89907         * modules/restrict: New file.
89908         * MODULES.html.sh (func_all_modules): Add restrict.
89909         * modules/regex: Depend on restrict.
89910
89911 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89912
89913         * m4/restrict.m4: New file.
89914         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89915
89916 2003-08-07  Bruno Haible  <bruno@clisp.org>
89917
89918         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89919         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89920
89921 2003-08-07  Bruno Haible  <bruno@clisp.org>
89922
89923         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89924         makes the module 'getndelim2' compatible with the module 'getline'.
89925
89926 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89927
89928         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89929         byte with "\201" to avoid glitches when editing that source file
89930         with multi-gnome-terminal.
89931
89932 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89933
89934         * lib/bumpalloc.h: Remove.
89935
89936 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89937
89938         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89939         * modules/bumpalloc: Remove.
89940
89941 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89942
89943         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89944         GNU coding style.
89945
89946         Merge from coreutils.
89947         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89948         1. From glibc.
89949         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89950         from Karl Berry, implemented by Jim Meyering.
89951         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89952         from Dmitry V. Levin.
89953         Remove anachronistic cast of xrealloc.
89954         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89955         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89956         type. Otherwise, it wouldn't compile with at least /bin/cc on
89957         ymp-cray-unicos9.0.2.X.
89958         Combine two mostly-identical uses of alloca into one.
89959         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89960
89961 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89962
89963         [From Emacs.]
89964
89965         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89966         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89967         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89968         obsolete NLIST_NAME_UNION.
89969         [__GNU__]: Undef BSD and FSCALE.
89970         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89971
89972 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89973
89974         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89975         an enum type, so that it's guaranteed to promote to int.  See:
89976         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89977
89978 2003-08-03  Karl Berry  <karl@gnu.org>
89979
89980         * config/depcomp: update from automake.
89981
89982 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89983
89984         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89985         (strerror): Don't assume that a printable int fits in 14 bytes.
89986
89987 2003-07-31  Bruno Haible  <bruno@clisp.org>
89988
89989         * modules/getpass-gnu: New file.
89990         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89991
89992 2003-07-31  Bruno Haible  <bruno@clisp.org>
89993
89994         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89995
89996 2003-07-24  Karl Berry  <karl@gnu.org>
89997
89998         * config/missing: update from automake.
89999
90000 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90001             Bruno Haible  <bruno@clisp.org>
90002
90003         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90004         * lib/getline.c (getline, getdelim): Likewise.
90005         Remove _GNU_SOURCE define; now it's defined in config.h through
90006         m4/getline.m4.
90007
90008 2003-07-23  Karl Berry  <karl@gnu.org>
90009
90010         * config/config.sub: update from prep.
90011
90012 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90013
90014         * modules/xalloc (Depends-on): Add exitfail.
90015         * modules/xmemcoll: Likewise.
90016
90017 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90018
90019         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90020         over-parenthesization in macros.
90021
90022         Sync with coreutils.
90023
90024         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90025         required by C99.
90026
90027         Use `exit_failure' for xalloc and xmemcoll instead of their own
90028         private exit-failure variables.
90029         * lib/xalloc.h (xalloc_exit_failure): Remove.
90030         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90031         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90032         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90033         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90034         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90035
90036 2003-07-20  Jim Meyering  <jim@meyering.net>
90037
90038         * modules/closeout (Depends-on): Add exitfail.
90039         Suggestion from Bruno Haible.
90040
90041 2003-07-19  Karl Berry  <karl@gnu.org>
90042
90043         * config/config.sub: update from prep.
90044
90045 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90046
90047         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90048         Remove.
90049         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90050         to test that it can stand by itself.  Include "exitfail.h".
90051         Clients should set exit_failure instead.
90052         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90053
90054 2003-07-18  Bruno Haible  <bruno@clisp.org>
90055
90056         * modules/getndelim2: New file.
90057         * modules/getline: Share files with module getndelim2.
90058         * modules/getnline: Depend on getndelim2 instead of sharing files with
90059         it. Add getnline.c to lib_SOURCES.
90060         * MODULES.html.sh (func_all_modules): Add getndelim2.
90061
90062 2003-07-18  Bruno Haible  <bruno@clisp.org>
90063
90064         * m4/getndelim2.m4: New file.
90065         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90066         invoke gl_PREREQ_GETNDELIM2.
90067         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90068         gl_PREREQ_GETNDELIM2.
90069         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90070         gl_GETNDELIM2.
90071
90072 2003-07-18  Bruno Haible  <bruno@clisp.org>
90073
90074         * lib/getndelim2.h: New file.
90075         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90076         getndelim2.h.
90077         (getndelim2): Make non-static. Change return type to ssize_t.
90078         * lib/getline.h: Change argument names.
90079         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90080         * lib/getnline.c: Include getndelim2.h.
90081
90082 2003-07-18  Andreas Schwab  <schwab@suse.de>
90083
90084         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90085
90086 2003-07-17  Karl Berry  <karl@gnu.org>
90087
90088         * config/config.sub: update from prep.
90089
90090 2003-07-17  Bruno Haible  <bruno@clisp.org>
90091
90092         * modules/getnline: New file.
90093         * modules/getline: Add lib/getndelim2.c to source file list.
90094         * MODULES.html.sh (func_all_modules): Add getnline.
90095
90096 2003-07-17  Bruno Haible  <bruno@clisp.org>
90097
90098         * m4/getnline.m4: New file.
90099
90100 2003-07-17  Bruno Haible  <bruno@clisp.org>
90101
90102         * m4/Makefile.am.in: Remove file.
90103         * m4/Makefile.am: Remove file.
90104         * m4/Makefile.in: Remove file.
90105
90106 2003-07-17  Bruno Haible  <bruno@clisp.org>
90107
90108         * lib/getnline.h: New file.
90109         * lib/getnline.c: New file.
90110         * lib/getndelim2.c: New file, extracted from getline.c.
90111         (getndelim2): Renamed from getdelim2, with added nmax argument.
90112         * lib/getline.c: Include getndelim2.c.
90113         (getdelim2): Moved out to getndelim2.c.
90114         (getline, getdelim): Update.
90115
90116 2003-07-17  Bruno Haible  <bruno@clisp.org>
90117
90118         * lib/Makefile.am: Remove file.
90119         * lib/Makefile.in: Remove file.
90120
90121 2003-07-17  Bruno Haible  <bruno@clisp.org>
90122
90123         * configure.in: Remove file.
90124         * Makefile.in: Remove file.
90125
90126 2003-07-17  Bruno Haible  <bruno@clisp.org>
90127
90128         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90129
90130 2003-07-16  Karl Berry  <karl@gnu.org>
90131
90132         * config/srclist-update: was running fixlicense twice, which caused
90133                 texinfo.tex to be nullified for some reason.  Simplify,
90134                 $gplsrc is no longer needed as far as I can see?
90135
90136 2003-07-16  Jim Meyering  <jim@meyering.net>
90137
90138         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90139
90140 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90141
90142         * config/srclist.txt: Get the following files from gettext-runtime/intl
90143         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90144         ref-del.sin.  From Bruno Haible.
90145         * config/srclist-update (fixfile): Change grep pattern again, since the
90146         previous fix didn't work (there was another trailing $).  Use
90147         '[$]' to escape the $s.
90148
90149 2003-07-15  Karl Berry  <karl@gnu.org>
90150
90151         * lib/vasnprintf.c: update from gettext.
90152
90153 2003-07-15  Karl Berry  <karl@gnu.org>
90154
90155         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90156         gets expanded when surrounded by '$'.
90157
90158 2003-07-15  Jim Meyering  <jim@meyering.net>
90159
90160         * modules/save-cwd: Don't depend on error.  From Derek Price.
90161
90162 2003-07-15  Jim Meyering  <jim@meyering.net>
90163
90164         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90165
90166 2003-07-14  Simon Josefsson  <jas@extundo.com>
90167
90168         * modules/mempcpy: New file.
90169         * MODULES.html.sh (func_all_modules): Add mempcpy.
90170
90171 2003-07-14  Simon Josefsson  <jas@extundo.com>
90172
90173         * m4/mempcpy.m4: New file.
90174
90175 2003-07-14  Simon Josefsson  <jas@extundo.com>
90176
90177         * lib/mempcpy.h: New file.
90178         * lib/mempcpy.c: New file.
90179
90180 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90181
90182         * modules/getdate, modules/posixtm: Depend on mktime.
90183
90184 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90185
90186         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90187         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90188         unicodeio.c, unicodeio.h, unlocked-io.h:
90189         Switch from LGPL to GPL.
90190
90191 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90192
90193         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90194         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90195         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90196         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90197         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90198         updated automatically by ../config/srclist-update.  This changes
90199         their license from LPGL to GPL.
90200
90201 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90202
90203         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90204         assumed to refer to the root of the most recent stable gettext version.
90205         * config/srclistvars.sh: Add defaults for eggert.
90206         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90207         Match "This program" as well as "The program".  This is needed
90208         for gettext.
90209
90210 2003-07-14  Jim Meyering  <jim@meyering.net>
90211
90212         Don't emit diagnostics.  Let callers do that.
90213         * lib/save-cwd.c: Don't include "error.h".
90214         (save_cwd): Don't call error.  Ensure that errno is valid
90215         when returning nonzero.
90216
90217         * lib/save-cwd.h (restore_cwd): Update prototype.
90218         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90219         Simplify.  Don't call error upon failure.  Let callers do that.
90220         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90221         when auditing is enabled.  But don't bother updating the #if.
90222
90223 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90224
90225         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90226         it breaks C++ compilation.
90227         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90228
90229 2003-07-10  Simon Josefsson  <jas@extundo.com>
90230
90231         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90232
90233 2003-07-10  Jim Meyering  <jim@meyering.net>
90234
90235         * m4/clock_time.m4: Remove trailing blank.
90236         * m4/intmax_t.m4: Likewise.
90237
90238 2003-07-10  Jim Meyering  <jim@meyering.net>
90239
90240         * lib/vasnprintf.c: Remove trailing blanks.
90241         Make cpp indentation consistent.
90242
90243 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90244
90245         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90246         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90247         Switch from LGPL to GPL.
90248
90249 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90250
90251         * config/srclist.txt: Sort sublists.  Add
90252         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90253         that differ from gnulib for one reason or another; we'd like this list
90254         to be smaller but for now let's document what we have.
90255
90256 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90257
90258         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90259         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90260         and sweeter "eval x=$x".
90261         * config/srclist.txt: Get lib/argp* from glibc.
90262
90263 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90264
90265         * lib/mktime.c: Fix some boundary cases and remove need for floating
90266         point.
90267
90268         Issue a compile-time diagnostic if time_t is floating point, or if
90269         two's complement arithmetic is not in effect, or if arithmetic
90270         right shift does not propagate the sign.  These assumptions were
90271         all in the original code but they weren't checked.
90272
90273         (TIME_T_MIDPOINT, verify): New macros.
90274         (__isleap): Remove; it has integer overflow problems.
90275         (leapyear): New function, without those problems.
90276         (ydhms_tm_diff): Remove; splitting into two parts.
90277         (ydhms_diff): New function, containing the arithmetic part of
90278         the old ydhms_tm_diff function.  Issue a compile-time
90279         diagnostic if we are not using C99 integer division.
90280         Avoid casts when possible.
90281         (guess_time_tm): New function, containing the checking part of
90282         the old ydhms_tm_diff function.  Return the new value, rather than
90283         the difference between it and the old.  Accept a new argument T
90284         so that *T specifies the old value.  Check for overflow in the result.
90285
90286         (__mktime_internal): Use a time_t offset, not a long int offset.
90287         This undoes the 2003-06-04 change, which is no longer needed now
90288         that we have better overflow checking.
90289         (localtime_offset): Likewise.
90290
90291         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90292         and long are 64-bit but int is only 32-bit.
90293         (ydhms_diff): Use long int to store year1 and yday1.
90294         Issue a compile-time diagnostic if long int is not wide enough.
90295
90296         (__mktime_internal): Use long int to store adjusted year and yday.
90297         Use plain C rather than preprocessor commands, if that doesn't
90298         affect efficiency.
90299         Check for overflow (and try to repair) after each probe
90300         rather than checking only at the very end.  This avoids some bugs
90301         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90302         does not equal GMT offset at maximum time).
90303         Use integer to check for overflow rather than floating point; this
90304         is more portable to non-IEEE hosts, and is a tad faster.
90305         When we detect that we are oscillating between two values,
90306         don't check whether tm_isdst has the requested value, since
90307         we already know the answer.  When tm_isdst has the wrong value,
90308         use a different heuristic to find the right one, based on the
90309         extreme values actually observed in practice in tz2003a,
90310         rather than the (overly optimistic) "previous 3 calendar quarters".
90311
90312         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90313         "T const" to accommodate glibc style.
90314         (check_result): Use less-confusing report format.  "long" -> "long int.
90315         (main): Likewise.
90316         Don't loop if the iteration overflows time_t.
90317         Allow a negative step in the iteration.
90318
90319 2003-07-06  Karl Berry  <karl@gnu.org>
90320
90321         * config/depcomp: update from automake.
90322         * config/config.sub: update from prep.
90323
90324 2003-07-03  Karl Berry  <karl@gnu.org>
90325
90326         * config/config.guess: update from prep.
90327
90328 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90329
90330         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90331         xreadlink.c now includes it unconditionally.
90332
90333 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90334
90335         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90336         having it depend on HAVE_SYS_TYPES_H.
90337
90338 2003-07-01  Bruno Haible  <bruno@clisp.org>
90339
90340         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90341         <sys/types.h> should be sufficient.
90342         Reported by Paul Eggert.
90343
90344 2003-06-26  Karl Berry  <karl@gnu.org>
90345
90346         * config/depcomp: update from automake.
90347
90348 2003-06-26  Bruno Haible  <bruno@clisp.org>
90349
90350         * modules/human: Depend on module stdbool.
90351
90352 2003-06-25  Bruno Haible  <bruno@clisp.org>
90353
90354         * modules/readlink: New file.
90355         * modules/xreadlink: Depend on it.
90356         * MODULES.html.sh (func_all_modules): Add readlink.
90357
90358 2003-06-25  Bruno Haible  <bruno@clisp.org>
90359
90360         * m4/readlink.m4: New file.
90361
90362 2003-06-25  Bruno Haible  <bruno@clisp.org>
90363
90364         * lib/readlink.c: New file.
90365
90366 2003-06-22  Karl Berry  <karl@gnu.org>
90367
90368         * config/srclist.txt: update mkinstalldirs from automake.
90369         * config/mkinstalldirs: update.
90370
90371 2003-06-22  Bruno Haible  <bruno@clisp.org>
90372
90373         Portability to mingw32.
90374         * m4/ssize_t.m4: New file, from GNU gettext.
90375         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90376         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90377
90378 2003-06-22  Bruno Haible  <bruno@clisp.org>
90379
90380         * modules/safe-read: Add m4/ssize_t.m4.
90381         * modules/xreadlink: Add m4/ssize_t.m4.
90382
90383 2003-06-20  Bruno Haible  <bruno@clisp.org>
90384
90385         Assume C89, so PARAMS isn't needed.
90386         * lib/unicodeio.h (PARAMS): Remove.
90387         * lib/unicodeio.c: Don't use PARAMS.
90388
90389 2003-06-18  Karl Berry  <karl@gnu.org>
90390
90391         * config/config.{guess,sub}: update from prep.
90392
90393 2003-06-18  Jim Meyering  <jim@meyering.net>
90394
90395         Merge changes from coreutils.
90396         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90397         Remove explicit declarations of xmalloc and realloc.
90398         Include xalloc.h.
90399         (read_utmp): Remove anachronistic cast of xmalloc.
90400
90401 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90402
90403         Assume C89, so PARAMS isn't needed.
90404         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90405         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90406         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90407         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90408         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90409         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90410         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90411         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90412         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90413         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90414         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90415         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90416         no longer needed. Anyway, config.h should always be included before any
90417         other file.
90418
90419 2003-06-11  Simon Josefsson  <jas@extundo.com>
90420
90421         * modules/sysexits: New file.
90422         * MODULES.html.sh (func_all_modules): Add sysexits.
90423
90424 2003-06-11  Simon Josefsson  <jas@extundo.com>
90425
90426         * lib/sysexit_.h: New file.
90427
90428 2003-06-11  Derek Price  <derek@ximbiot.com>
90429
90430         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90431         necessary.
90432
90433 2003-06-11  Bruno Haible  <bruno@clisp.org>
90434
90435         * m4/sysexits.m4: New file.
90436
90437 2003-06-10  Simon Josefsson  <jas@extundo.com>
90438
90439         * lib/argp.h: New file, from glibc.
90440         * lib/argp-ba.c: New file, from glibc.
90441         * lib/argp-eexst.c: New file, from glibc.
90442         * lib/argp-fmtstream.c: New file, from glibc.
90443         * lib/argp-fmtstream.h: New file, from glibc.
90444         * lib/argp-fs-xinl.c: New file, from glibc.
90445         * lib/argp-help.c: New file, from glibc.
90446         * lib/argp-namefrob.h: New file, from glibc.
90447         * lib/argp-parse.c: New file, from glibc.
90448         * lib/argp-pv.c: New file, from glibc.
90449         * lib/argp-pvh.c: New file, from glibc.
90450         * lib/argp-xinl.c: New file, from glibc.
90451
90452 2003-06-10  Simon Josefsson  <jas@extundo.com>
90453
90454         * modules/strchrnul: New file.
90455
90456 2003-06-10  Simon Josefsson  <jas@extundo.com>
90457
90458         * modules/argp: New file.
90459
90460 2003-06-10  Simon Josefsson  <jas@extundo.com>
90461
90462         * m4/strchrnul.m4: New file.
90463
90464 2003-06-10  Simon Josefsson  <jas@extundo.com>
90465
90466         * lib/strchrnul.h: New file.
90467         * lib/strchrnul.c: New file.
90468
90469 2003-06-10  Bruno Haible  <bruno@clisp.org>
90470
90471         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90472
90473 2003-06-07  Karl Berry  <karl@gnu.org>
90474
90475         * config/config.{guess,sub}: update from prep.
90476
90477 2003-06-07  Jim Meyering  <jim@meyering.net>
90478
90479         * modules/strtod: Use $(...) notation, not @...@ for
90480         AC_REPLACE'd variables.
90481         * modules/localcharset: Likewise.
90482
90483 2003-06-07  Jim Meyering  <jim@meyering.net>
90484
90485         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90486         in place of my name in the copyright comment.
90487         Remove definition and uses of __P.
90488
90489         From coreutils.
90490         * lib/stat.c: Don't declare xmalloc explicitly.
90491         Instead, include "xalloc.h".
90492         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90493         xrealloc, and xcalloc return values.
90494         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90495         Improve comment.
90496         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90497
90498 2003-06-07  Bruno Haible  <bruno@clisp.org>
90499
90500         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90501         avoid AC_CONFIG_LINKS.
90502         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90503         fnmatch.h, to avoid AC_CONFIG_LINKS.
90504         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90505
90506 2003-06-07  Bruno Haible  <bruno@clisp.org>
90507
90508         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90509         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90510         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90511         directory.
90512         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90513         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90514         directory.
90515
90516 2003-06-06  Jim Meyering  <jim@meyering.net>
90517
90518         Merge from coreutils.
90519         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90520         Consolidate declarations and initializations of *_base* locals.
90521
90522         Merge from coreutils.
90523         This avoids a core dump on systems without GNU putenv,
90524         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90525         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90526         (unsetenv): New static function, from GNU libc.
90527         (rpl_putenv): Use it.
90528
90529         * lib/modechange.c: Remove trailing blanks.
90530
90531         Merge from coreutils.
90532         * lib/fsusage.c: Remove declaration of statfs.
90533         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90534
90535         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90536
90537 2003-06-06  Jim Meyering  <jim@meyering.net>
90538
90539         * lib/stdbool_.h: Renamed from stdbool.h.in.
90540
90541 2003-06-06  Jim Meyering  <jim@meyering.net>
90542             Bruno Haible  <bruno@clisp.org>
90543
90544         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90545         Adjust Makefile.am snippet not to redirect directly to target.
90546         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90547
90548 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90549
90550         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90551         mismatch, look in future quarters as well as past.  This fixes a
90552         bug when processing fall-backwards gaps immediately after a long
90553         period of daylight-saving time.
90554
90555         * lib/mktime.c: Assume freestanding C89 or better.
90556         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90557         (__P): Remove; not used.
90558         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90559         (mktime, not_equal_tm, print_tm, check_result,
90560         main): Use prototypes.  Use const * where appropriate.
90561         (main): Fix typo in testing code that uncovered by above changes.
90562         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90563
90564 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90565
90566         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90567         locale.h, localeconv.  This merges changes from coreutils.
90568
90569         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90570         It can be removed after the next Autoconf is released.
90571         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90572         needed.
90573
90574 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90575
90576         * lib/mktime.c: Fix Debian bug 177940
90577         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90578         (localtime_offset): Now long int, not time_t, because we want it
90579         to be guaranteed to be signed.  All uses changed.
90580         (__mktime_internal): If overflow would occur when adding offset,
90581         don't add it.
90582
90583         Merge 'human' changes from coreutils.  Rewrite to support
90584         locale-specific notations like thousands separators.
90585         * lib/human.c: Simplify authorship notice.
90586         Include human.h immediately after config.h.
90587         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90588         <limits.h>: Do not include, since human.h does.
90589         (SIZE_MAX, UINTMAX_MAX): New macros.
90590         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90591         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90592         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90593         (power_letter): Renamed from suffixes.
90594         (generate_suffix_backwards): Remove.
90595         (adjust_value): Now takes int style (because of human.h changes)
90596         and long double value (for greater precision on some platforms).
90597         (group_number): New function.
90598         (human_readable): Use it.  Use integer options, not enum.
90599         Put the options before the sizes in the arg list.
90600         Support all the new options.
90601         The old human_readable function has been removed;
90602         use inttostr.h instead.
90603         (human_readable, default_block_size, humblock):
90604         Use uintmax_t, not int, for block sizes.
90605         (human_readable_inexact, block_size_types): Remove.
90606         (block_size_opts): New constant.
90607         (human_options): Renamed from human_block_size, with new signature
90608         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90609         * lib/human.h: Add copyright and authorship notice.
90610         Include <limits.h> and <stdbool.h> unconditionally.
90611         (PARAMS): Remove.  All uses removed.
90612         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90613         (enum human_inexact_style): Remove tag; now a nameless enum.
90614         (human_floor, human_ceiling, human_round_to_even): Now have
90615         values 2, 0, 1 rather than -1, 1, 0.
90616         (human_group_digits, human_suppress_point_zero, human_autoscale,
90617         human_base_1024, human_SI, human_B): New constants.
90618         (human_readable_inexact, human_block_size): Remove.
90619         (human_readable): Size args are now uintmax_t, not int.
90620         (human_options): New decl.
90621
90622         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90623         unnecessary now that we assume C89 or better.  This change
90624         imported from coreutils.
90625
90626         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90627         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90628         in the 2003-05-30 sync from glibc.
90629
90630         .h files should stand alone, but we shouldn't include <sys/types.h>
90631         if we can get away with just <stddef.h>.
90632
90633         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90634         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90635         rather than <sys/types.h>, as we merely need size_t.
90636         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90637         to get size_t.
90638         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90639         Include <stdio.h>, to get FILE.
90640         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90641         memcasecmp.h has included <stddef.h> and all we need is size_t.
90642         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90643         our interface, instead of including <sys/types.h>
90644
90645 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90646
90647         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90648         now, as glibc mktime is buggy on non-glibc systems.
90649
90650 2003-06-03  Karl Berry  <karl@gnu.org>
90651
90652         * config/config.sub: update from prep.
90653
90654 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90655
90656         [from coreutils]
90657         Fix some minor time-related bugs with POSIX time arguments.
90658         Some valid time stamps were being rejected (notably -1, and
90659         time stamps before 1900 on 64-bit hosts).  And some invalid
90660         time stamps were being accepted, e.g. September 31.
90661
90662         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90663         that we can return (time_t) -1 successfully.
90664         * lib/posixtm.c: Likewise.
90665         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90666         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90667         (t): Remove static var.
90668         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90669         of static var.  All uses changed.
90670         (year): Do not reject years before 1900; they can occur with
90671         64-bit time_t.
90672         (posix_time_parse): Do not check for out-of-range components;
90673         that is now the caller's responsibility, since our checks were
90674         only approximations.
90675         (posixtime): Use mktime to check for out-of-range components,
90676         since it knows them exactly.
90677         If mktime returns (time_t) -1, check whether an error actually occurred
90678         by invoking localtime on -1.
90679         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90680         posixtime failures better.
90681         Improve the test data (in comments only).
90682
90683 2003-06-02  Karl Berry  <karl@gnu.org>
90684
90685         * config/mkinstalldirs (version): new variable.
90686         (--version): new option.
90687         (usage): improve message.
90688
90689 2003-05-30  Karl Berry  <karl@gnu.org>
90690
90691         * lib/mktime.c: update from libc.
90692
90693 2003-05-30  Bruno Haible  <bruno@clisp.org>
90694
90695         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90696         * config/config.rpath: Upgrade to gettext-0.12.1.
90697
90698 2003-05-30  Bruno Haible  <bruno@clisp.org>
90699
90700         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90701         * m4/nls.m4: New file, from gettext-0.12.1.
90702         * m4/po.m4: New file, from gettext-0.12.1.
90703         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90704
90705 2003-05-30  Bruno Haible  <bruno@clisp.org>
90706
90707         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90708         * lib/localcharset.h: Likewise.
90709         * lib/localcharset.c: Likewise.
90710
90711 2003-05-29  Karl Berry  <karl@gnu.org>
90712
90713         * config/config.rpath: update from gettext.
90714
90715 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90716
90717         Assume the headers required for C89 freestanding compilers.
90718         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90719         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90720         * m4/human.m4 (gl_HUMAN): Likewise.
90721         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90722         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90723         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90724         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90725         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90726         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90727
90728 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90729
90730         Assume the headers required for C89 freestanding compilers.
90731         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90732         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90733         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90734         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90735         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90736         define, since <limits.h> is guaranteed to do that.
90737         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90738         * lib/exclude.c: Include <stdbool.h> unconditionally.
90739         * lib/tempname.c: Include <stddef.h> unconditionally.
90740         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90741         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90742         <stddef.h> does that.
90743         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90744         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90745         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90746         needed.
90747         * lib/xstrtol.c: Likewise.
90748         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90749         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90750
90751         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90752         warnings on some platforms.
90753
90754         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90755         arbitrarily.
90756
90757 2003-05-26  Jim Meyering  <jim@meyering.net>
90758
90759         Merge in a change from coreutils:
90760         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90761         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90762         that condition, rather than `-1' which is slightly misleading.
90763         Change the name of the cache variable to have the gl_ prefix.
90764         Prompted by a patch from Richard Dawe for DJGPP.
90765
90766 2003-05-24  Karl Berry  <karl@gnu.org>
90767
90768         * config/config.guess: update from prep.
90769
90770 2003-05-22  Karl Berry  <karl@gnu.org>
90771
90772         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90773
90774 2003-05-20  Karl Berry  <karl@gnu.org>
90775
90776         * config/config.guess: update from prep.
90777
90778 2003-05-18  Karl Berry  <karl@gnu.org>
90779
90780         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90781         might actually be set by the user.
90782
90783         * config/depcomp, install-sh, mdate-sh: update from automake.
90784
90785 2003-05-17  Bruno Haible  <bruno@clisp.org>
90786
90787         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90788         invalid expansion for AC_EGREP_CPP.
90789         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90790         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90791         Suggested by Akim Demaille <akim@epita.fr> in
90792         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90793
90794 2003-05-12  Jim Meyering  <jim@meyering.net>
90795
90796         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90797         the space-padded-by-default conversion specifiers, %e, %k, %l.
90798
90799 2003-05-12  Bruno Haible  <bruno@clisp.org>
90800
90801         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90802         the string is longer than 4 KB.
90803
90804 2003-05-11  Karl Berry  <karl@gnu.org>
90805
90806         * config/config.{guess,sub}: update from prep.
90807
90808 2003-05-09  Bruno Haible  <bruno@clisp.org>
90809
90810         * modules/error: Add m4/strerror_r.m4 to file list.
90811
90812 2003-05-03  Bruno Haible  <bruno@clisp.org>
90813
90814         Upgrade to Unicode-4.0.
90815         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90816         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90817         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90818         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90819         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90820         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90821         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90822         Change width of U+E0100..U+E01EF from 1 to 0.
90823
90824 2003-04-25  Jim Meyering  <jim@meyering.net>
90825
90826         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90827         of type size_t, not int.
90828
90829 2003-04-25  Bruno Haible  <bruno@clisp.org>
90830
90831         * lib/copy-file.c: Include <stddef.h>, for size_t.
90832
90833 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90834
90835         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90836         code which expansion is under static control.  Patch imported from
90837         Akim Demaille's patch to Bison; see
90838         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90839
90840 2003-04-14  Bruno Haible  <bruno@clisp.org>
90841
90842         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90843
90844 2003-04-11  Jim Meyering  <jim@meyering.net>
90845
90846         Merge changes from Coreutils.
90847
90848         2003-03-22  Jim Meyering  <jim@meyering.net>
90849
90850         * lib/strftime.c (widen): Cast alloca return value to proper type.
90851
90852         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90853
90854         From GNU libc.
90855         * lib/strftime.c (my_strftime): Handle very large width
90856         specifications for numeric values correctly.  Improve checks for
90857         overflow.
90858
90859         2003-01-19  Jim Meyering  <jim@meyering.net>
90860
90861         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90862         definitions.
90863         (nl_get_alt_digit) [! defined my_strftime]: Define.
90864         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90865         _nl_get_alt_digit and _nl_get_walt_digit.
90866
90867         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90868         libc. These changes have no effect outside of _LIBC.
90869
90870 2003-04-10  Bruno Haible  <bruno@clisp.org>
90871
90872         * modules/findprog: New file.
90873         * MODULES.html.sh (func_all_modules): Add it.
90874
90875 2003-04-10  Bruno Haible  <bruno@clisp.org>
90876
90877         * m4/findprog.m4: New file.
90878         * m4/eaccess.m4: New file.
90879
90880 2003-04-10  Bruno Haible  <bruno@clisp.org>
90881
90882         * lib/findprog.h: New file, from GNU gettext.
90883         * lib/findprog.c: New file, from GNU gettext.
90884
90885 2003-04-05  Jim Meyering  <jim@meyering.net>
90886
90887         Merge changes from Coreutils.
90888
90889         * lib/exclude.h (PARAMS): Remove definition and uses.
90890         * lib/exclude.c: Remove uses of `PARAMS'.
90891
90892         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90893         Add test-cases for DOS filenames. Declare program_name.
90894         (main): Set up program_name.  Patch by Rich Dawe.
90895
90896         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90897         error from mntctl.
90898         Use mntctl's return value to drive the entry-processing loop, since
90899         we can't rely on the value of the vmt_length member in the last
90900         entry.  On some systems doing so could result in exhausting
90901         virtual memory.  Based in part on a patch from Mike Jetzer.
90902
90903 2003-04-04  Bruno Haible  <bruno@clisp.org>
90904
90905         * modules/linebreak: New file.
90906         * MODULES.html.sh (func_all_modules): Add it.
90907
90908 2003-04-04  Bruno Haible  <bruno@clisp.org>
90909
90910         * m4/linebreak.m4: New file.
90911
90912 2003-04-04  Bruno Haible  <bruno@clisp.org>
90913
90914         * lib/linebreak.h: New file, from GNU gettext.
90915         * lib/linebreak.c: New file, from GNU gettext with slight
90916         modifications.
90917         * lib/lbrkprop.h: New file, from GNU gettext.
90918
90919 2003-04-03  Bruno Haible  <bruno@clisp.org>
90920
90921         * modules/utf8-ucs4: New file.
90922         * modules/utf16-ucs4: New file.
90923         * modules/ucs4-utf8: New file.
90924         * modules/ucs4-utf16: New file.
90925         * MODULES.html.sh (func_all_modules): Add them.
90926
90927 2003-04-03  Bruno Haible  <bruno@clisp.org>
90928
90929         * m4/utf-ucs4.m4: New file.
90930         * m4/ucs4-utf.m4: New file.
90931
90932 2003-04-03  Bruno Haible  <bruno@clisp.org>
90933
90934         * lib/utf8-ucs4.h: New file, from GNU gettext.
90935         * lib/utf16-ucs4.h: New file, from GNU gettext.
90936         * lib/ucs4-utf8.h: New file, from GNU gettext.
90937         * lib/ucs4-utf16.h: New file, from GNU gettext.
90938
90939 2003-04-02  Bruno Haible  <bruno@clisp.org>
90940
90941         * modules/binary-io: New file.
90942         * MODULES.html.sh (func_all_modules): Add it.
90943
90944 2003-04-02  Bruno Haible  <bruno@clisp.org>
90945
90946         * lib/binary-io.h: New file, from GNU gettext.
90947
90948 2003-04-01  Bruno Haible  <bruno@clisp.org>
90949
90950         * modules/pathname: New file.
90951         * MODULES.html.sh (func_all_modules): Add it.
90952
90953 2003-04-01  Bruno Haible  <bruno@clisp.org>
90954
90955         * lib/pathname.h: New file, from GNU gettext.
90956         * lib/concatpath.c: New file, from GNU gettext.
90957
90958 2003-03-30  Bruno Haible  <bruno@clisp.org>
90959
90960         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90961
90962 2003-03-30  Bruno Haible  <bruno@clisp.org>
90963
90964         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90965         function chown() doesn't exist.
90966
90967 2003-03-28  Bruno Haible  <bruno@clisp.org>
90968
90969         * modules/copy-file: New file.
90970         * MODULES.html.sh (func_all_modules): Add it.
90971
90972 2003-03-28  Bruno Haible  <bruno@clisp.org>
90973
90974         * m4/copy-file.m4: New file.
90975
90976 2003-03-28  Bruno Haible  <bruno@clisp.org>
90977
90978         * lib/copy-file.h: New file, from GNU gettext.
90979         * lib/copy-file.c: New file, from GNU gettext.
90980
90981 2003-03-18  Jim Meyering  <jim@meyering.net>
90982
90983         * lib/quote.c (quote_n): Fix typo in comment.
90984
90985 2003-03-18  Bruno Haible  <bruno@clisp.org>
90986
90987         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90988         checking.
90989         * m4/onceonly_2_57.m4: Likewise.
90990
90991 2003-03-17  Bruno Haible  <bruno@clisp.org>
90992
90993         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90994         (m4_quote): Remove macro.
90995         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90996
90997 2003-03-14  Jim Meyering  <jim@meyering.net>
90998
90999         Merge changes from Coreutils.
91000         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91001         to be const, in order to avoid warnings.
91002         (obstack_room): Likewise.
91003         (obstack_empty_p): Likewise.
91004
91005 2003-03-14  Bruno Haible  <bruno@clisp.org>
91006
91007         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91008         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91009
91010 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91011
91012         Merge changes from Bison.
91013         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91014         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91015         when compiling Bison 1.875's `bitset bset = obstack_alloc
91016         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91017         * lib/hash.c: Include <stdbool.h> unconditionally.
91018
91019 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91020
91021         * m4/onceonly.m4 (m4_quote): New macro.
91022         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91023         Quote AC_FOREACH variable-expansions properly.
91024
91025 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91026
91027         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91028
91029 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91030
91031         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91032         Reported by Bruce Becker; see:
91033         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91034
91035 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91036             Bruno Haible  <bruno@clisp.org>
91037
91038         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91039         Reported by John Hughes, see
91040         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91041
91042 2003-02-20  Bruno Haible  <bruno@clisp.org>
91043
91044         * MODULES.html.sh (func_all_modules): Add poll.
91045
91046 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91047
91048         * modules/poll: New file.
91049
91050 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91051
91052         * lib/poll_.h: New file.
91053         * lib/poll.c: New file.
91054
91055 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91056
91057         * m4/poll.m4: New file.
91058
91059 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91060
91061         * modules/mathl: New file.
91062
91063 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91064
91065         * lib/mathl.h: New file.
91066         * lib/acosl.c: New file.
91067         * lib/asinl.c: New file.
91068         * lib/atanl.c: New file.
91069         * lib/ceill.c: New file.
91070         * lib/cosl.c: New file.
91071         * lib/expl.c: New file.
91072         * lib/floorl.c: New file.
91073         * lib/frexpl.c: New file.
91074         * lib/ldexpl.c: New file.
91075         * lib/logl.c: New file.
91076         * lib/sincosl.c: New file.
91077         * lib/sinl.c: New file.
91078         * lib/sqrtl.c: New file.
91079         * lib/tanl.c: New file.
91080         * lib/trigl.c: New file.
91081         * lib/trigl.h: New file.
91082
91083 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91084
91085         * m4/mathl.m4: New file.
91086
91087 2003-02-18  Bruno Haible  <bruno@clisp.org>
91088
91089         * MODULES.html.sh (func_all_modules): Add mathl.
91090
91091 2003-02-17  Bruno Haible  <bruno@clisp.org>
91092
91093         * modules/mkdtemp: New module.
91094         * MODULES.html.sh (func_all_modules): Add it.
91095
91096 2003-02-17  Bruno Haible  <bruno@clisp.org>
91097
91098         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91099
91100 2003-02-17  Bruno Haible  <bruno@clisp.org>
91101
91102         * lib/mkdtemp.h: New file, from GNU gettext.
91103         * lib/mkdtemp.c: New file, from GNU gettext.
91104
91105 2003-02-02  Jim Meyering  <jim@meyering.net>
91106
91107         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91108         e.g. glibc-2.2.93.
91109
91110 2003-01-31  Bruno Haible  <bruno@clisp.org>
91111
91112         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91113         'rpl_rename'.
91114         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91115         'rpl_strnlen'.
91116         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91117         'rpl_strtod'.
91118         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91119         'rpl_utime'.
91120
91121 2003-01-31  Bruno Haible  <bruno@clisp.org>
91122
91123         * lib/rename.c: #undef rename before defining rpl_rename.
91124         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91125
91126 2003-01-30  Bruno Haible  <bruno@clisp.org>
91127
91128         * modules/vasnprintf, modules/vasprintf: New modules.
91129         * MODULES.html.sh (func_all_modules): Add them.
91130
91131 2003-01-30  Bruno Haible  <bruno@clisp.org>
91132
91133         * m4/signed.m4: New file, from GNU gettext.
91134         * m4/longdouble.m4: New file, from GNU gettext.
91135         * m4/wchar_t.m4: New file, from GNU gettext.
91136         * m4/wint_t.m4: New file, from GNU gettext.
91137         * m4/vasnprintf.m4: New file.
91138         * m4/vasprintf.m4: New file.
91139
91140 2003-01-30  Bruno Haible  <bruno@clisp.org>
91141
91142         * lib/printf-args.h: New file, from GNU gettext.
91143         * lib/printf-args.c: New file, from GNU gettext.
91144         * lib/printf-parse.h: New file, from GNU gettext.
91145         * lib/printf-parse.c: New file, from GNU gettext.
91146         * lib/vasnprintf.h: New file, from GNU gettext.
91147         * lib/vasnprintf.c: New file, from GNU gettext.
91148         * lib/asnprintf.c: New file, from GNU gettext.
91149         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91150         * lib/vasprintf.c: New file, from GNU gettext.
91151         * lib/asprintf.c: New file, from GNU gettext.
91152
91153 2003-01-29  Bruno Haible  <bruno@clisp.org>
91154
91155         * modules/stpncpy: New module.
91156         * MODULES.html.sh (func_all_modules): Add it.
91157
91158 2003-01-29  Bruno Haible  <bruno@clisp.org>
91159
91160         * m4/stpncpy.m4: New file.
91161
91162 2003-01-29  Bruno Haible  <bruno@clisp.org>
91163
91164         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91165         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91166
91167 2003-01-28  Bruno Haible  <bruno@clisp.org>
91168
91169         * modules/c-ctype: New module.
91170         * MODULES.html.sh (func_all_modules): Add it.
91171
91172 2003-01-28  Bruno Haible  <bruno@clisp.org>
91173
91174         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91175         Paul Eggert.
91176         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91177         Paul Eggert.
91178
91179 2003-01-27  Bruno Haible  <bruno@clisp.org>
91180
91181         * modules/xsetenv: New module.
91182         * MODULES.html.sh (func_all_modules): Add it.
91183
91184 2003-01-27  Bruno Haible  <bruno@clisp.org>
91185
91186         * lib/xsetenv.h: New file, from GNU gettext.
91187         * lib/xsetenv.c: New file, from GNU gettext.
91188
91189 2003-01-23  Jim Meyering  <jim@meyering.net>
91190
91191         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91192         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91193
91194 2003-01-23  Bruno Haible  <bruno@clisp.org>
91195
91196         * modules/minmax: New module.
91197         * MODULES.html.sh (func_all_modules): Add it.
91198
91199 2003-01-23  Bruno Haible  <bruno@clisp.org>
91200
91201         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91202         Eggert.
91203
91204 2003-01-22  Bruno Haible  <bruno@clisp.org>
91205
91206         * modules/exit: New module.
91207         * MODULES.html.sh (func_all_modules): Add it.
91208
91209 2003-01-22  Bruno Haible  <bruno@clisp.org>
91210
91211         * lib/exit.h: New file, from GNU gettext.
91212
91213 2003-01-19  Bruno Haible  <bruno@clisp.org>
91214
91215         * gnulib-tool: Recognize option --extract-maintainer.
91216         (func_get_maintainer): New function.
91217         * modules/*: Add Maintainer entry.
91218
91219 2003-01-16  Jim Meyering  <jim@meyering.net>
91220
91221         * m4/regex.m4: The `regex' struct is both input and output.
91222         Initialize it before each use.  Patch by Tim Waugh.
91223
91224 2003-01-16  Bruno Haible  <bruno@clisp.org>
91225
91226         * MODULES.html.sh: Add a table of contents. Add the module name as
91227         leftmost column. Add hyperlinks.
91228
91229 2003-01-15  Bruno Haible  <bruno@clisp.org>
91230
91231         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91232
91233 2003-01-15  Bruno Haible  <bruno@clisp.org>
91234
91235         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91236         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91237         suffix.
91238
91239 2003-01-15  Bruno Haible  <bruno@clisp.org>
91240
91241         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91242
91243 2003-01-15  Bruno Haible  <bruno@clisp.org>
91244
91245         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91246         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91247
91248 2003-01-14  Jim Meyering  <jim@meyering.net>
91249
91250         * lib/same.c (same_name): Tweak a comment.
91251
91252 2003-01-14  Bruno Haible  <bruno@clisp.org>
91253
91254         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91255         when a string comparison is sufficient.
91256
91257 2003-01-14  Bruno Haible  <bruno@clisp.org>
91258
91259         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91260         'unsigned int'.
91261
91262 2003-01-14  Bruno Haible  <bruno@clisp.org>
91263
91264         * lib/hash-pjw.c: Add comment about low quality of this function.
91265
91266 2003-01-13  Bruno Haible  <bruno@clisp.org>
91267
91268         * modules/stpcpy: Distribute lib/stpcpy.h.
91269         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91270
91271 2003-01-13  Bruno Haible  <bruno@clisp.org>
91272
91273         * modules/*: Add a description.
91274         * modules/strpbrk: Fix Makefile.am snippet.
91275         * modules/strtoimax: Fix dependencies.
91276         * modules/strtoumax: Likewise.
91277
91278 2003-01-13  Bruno Haible  <bruno@clisp.org>
91279
91280         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91281         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91282         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91283
91284 2003-01-13  Bruno Haible  <bruno@clisp.org>
91285
91286         * gnulib-tool (func_create_testdir): Store config/* files in the main
91287         directory.
91288         * config.rpath: Move to ...
91289         * config/config.rpath: ... here.
91290         * modules/gettext: Contains config/config.rpath, not config.rpath.
91291         * modules/iconv: Likewise.
91292
91293 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91294
91295         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91296         to avoid collisions with libcurses and libreadline.
91297
91298         * m4/getstr.m4: Remove.
91299         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91300
91301 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91302
91303         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91304         to avoid collisions with libcurses and libreadline.
91305
91306         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91307         * lib/getstr.h, getstr.c: Remove.
91308         * lib/getline.c: Include "getline.h", to check interface.
91309         Move body of old getstr.c here: this defines MIN_CHUNK and
91310         declares getdelim2, which is renamed from getstr.
91311         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91312
91313         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91314         All uses changed.
91315         * lib/linebuffer.h: Likewise.
91316         (readline): Remove backward-compatibility macro.
91317
91318 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91319
91320         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91321         to avoid collisions with libcurses and libreadline.
91322         * getstr: Remove.
91323         * MODULES.html.sh: Remove getstr.
91324         * modules/getline: Depend on unlocked-io, not getstr.
91325
91326 2003-01-12  Jim Meyering  <jim@meyering.net>
91327
91328         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91329
91330 2003-01-10  Bruno Haible  <bruno@clisp.org>
91331
91332         * modules/alloca: Change Makefile.am requirements. Simplify Include
91333         requirements. Add lib/alloca_.h to file list.
91334
91335 2003-01-10  Bruno Haible  <bruno@clisp.org>
91336
91337         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91338
91339 2003-01-10  Bruno Haible  <bruno@clisp.org>
91340
91341         * lib/alloca_.h: New file.
91342         * lib/getdate.y: Unconditionally include alloca.h.
91343         * lib/makepath.c: Likewise.
91344         * lib/setenv.c: Likewise.
91345         * lib/userspec.c: Likewise.
91346
91347 2003-01-09  Karl Berry  <karl@gnu.org>
91348
91349         * MODULES.html.sh: include `dirname $0` in PATH, to find
91350         gnulib-tool.
91351
91352 2003-01-09  Bruno Haible  <bruno@clisp.org>
91353
91354         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91355         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91356
91357 2003-01-09  Bruno Haible  <bruno@clisp.org>
91358
91359         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91360
91361 2003-01-09  Bruno Haible  <bruno@clisp.org>
91362
91363         * lib/stdbool.h.in: New file.
91364
91365 2003-01-09  Bruno Haible  <bruno@clisp.org>
91366
91367         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91368         * MODULES.html.sh: Likewise.
91369
91370 2003-01-08  Jim Meyering  <jim@meyering.net>
91371
91372         * lib/full-write.c: Undefine and define-away `const' after inclusion
91373         of errno.h, not before.  Suggestion from Bruno Haible.
91374
91375 2003-01-08  Bruno Haible  <bruno@clisp.org>
91376
91377         * modules/full-read: Depend on full-write.
91378
91379 2003-01-08  Bruno Haible  <bruno@clisp.org>
91380
91381         * lib/safe-read.c: Include specification header first, to ensure its
91382         selfcontainedness.
91383         * lib/full-write.c: Likewise.
91384
91385 2003-01-07  Jim Meyering  <jim@meyering.net>
91386
91387         * lib/full-write.c: Rework so that it may serve to define full_read,
91388         too.
91389         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91390
91391 2003-01-07  Bruno Haible  <bruno@clisp.org>
91392
91393         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91394         <inttypes.h>.
91395         * lib/xstrtol.h: Likewise.
91396         * lib/xstrtoimax.c: Likewise.
91397         * lib/xstrtoumax.c: Likewise.
91398         * lib/human.h: Likewise.
91399
91400         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91401         on systems that have <inttypes.h> but not <stdint.h>.
91402
91403 2003-01-07  Bruno Haible  <bruno@clisp.org>
91404
91405         * MODULES.html.sh: Add copyright notice.
91406         (missed_files): Omit CVS directory entries.
91407         (func_module): Make it work with sed-3.02.
91408         * MODULES.txt: Remove file.
91409
91410 2003-01-06  Jim Meyering  <jim@meyering.net>
91411
91412         * lib/version-etc.c: Update year in translatable copyright string.
91413
91414 2003-01-03  Karl Berry  <karl@gnu.org>
91415
91416         * config/config.{guess,sub}: update from prep.
91417
91418 2003-01-02  Karl Berry  <karl@gnu.org>
91419
91420         * doc/COPYING.DOC: belatedly updated to 1.2.
91421
91422 2003-01-01  Karl Berry  <karl@gnu.org>
91423
91424         * gnulib-tool (func_verify_module): report module name $module in
91425         error message, not $1.
91426         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91427         be created, only if it doesn't exist.
91428         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91429
91430 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91431
91432         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91433
91434 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91435
91436         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91437         memcmp if strcoll doesn't work.
91438
91439 2002-12-31  Bruno Haible  <bruno@clisp.org>
91440
91441         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91442         nonempty.
91443
91444 2002-12-31  Bruno Haible  <bruno@clisp.org>
91445
91446         * lib/memcoll.c (STRCOLL): New macro.
91447         (memcoll): Use it.
91448
91449 2002-12-31  Bruno Haible  <bruno@clisp.org>
91450
91451         * lib/localcharset.h: New file.
91452         * lib/localcharset.c: Include it.
91453         * lib/unicodeio.c: Likewise.
91454
91455 2002-12-31  Bruno Haible  <bruno@clisp.org>
91456
91457         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91458         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91459
91460 2002-12-31  Bruno Haible  <bruno@clisp.org>
91461
91462         * lib/getline.h: Include <stddef.h>, for size_t.
91463
91464         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91465         * lib/unicodeio.c: Don't include <stddef.h>.
91466
91467 2002-12-31  Bruno Haible  <bruno@clisp.org>
91468
91469         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91470         HAVE_TM_ZONE.
91471
91472 2002-12-24  Karl Berry  <karl@gnu.org>
91473
91474         * config/config.guess: update from prep.
91475
91476 2002-12-24  Bruno Haible  <bruno@clisp.org>
91477
91478         General infrasructure.
91479         * m4/README: Rewritten.
91480         * m4/onceonly.m4: New file.
91481         * m4/onceonly_2_57.m4: New file.
91482
91483         Module atexit.
91484         * m4/atexit.m4: New file.
91485
91486         Module strtod.
91487         * m4/strtod.m4: New file.
91488
91489         Module strtol.
91490         * m4/strtol.m4: New file.
91491
91492         Module strtoul.
91493         * m4/strtoul.m4: New file.
91494
91495         Module memchr.
91496         * m4/memchr.m4: New file.
91497
91498         Module memcmp.
91499         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91500         (jm_FUNC_MEMCMP): Invoke it.
91501
91502         Module memcpy.
91503         * m4/memcpy.m4: New file.
91504
91505         Module memmove.
91506         * m4/memmove.m4: New file.
91507
91508         Module memset.
91509         * m4/memset.m4: New file.
91510
91511         Module strcspn.
91512         * m4/strcspn.m4: New file.
91513
91514         Module strpbrk.
91515         * m4/strpbrk.m4: New file.
91516
91517         Module strstr.
91518         * m4/strstr.m4: New file.
91519
91520         Module strerror.
91521         * m4/strerror.m4: New file.
91522
91523         Module mktime.
91524         * m4/mktime.m4: Renamed from jm-mktime.m4.
91525         (gl_PREREQ_MKTIME): New macro.
91526         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91527
91528         Module malloc.
91529         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91530         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91531         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91532
91533         Module realloc.
91534         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91535         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91536         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91537
91538         Module strftime.
91539         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91540         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91541         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91542         gl_TM_GMTOFF.
91543         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91544
91545         Module xalloc.
91546         * m4/xalloc.m4: New file.
91547
91548         Module alloca.
91549         * m4/alloca.m4: New file.
91550
91551         Module putenv.
91552         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91553         (jm_FUNC_PUTENV): Invoke it.
91554
91555         Module setenv.
91556         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91557         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91558         when invoked twice.
91559         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91560         gt_FUNC_SETENV.
91561
91562         Module memrchr.
91563         * m4/memrchr.m4: New file.
91564
91565         Module stpcpy.
91566         * m4/stpcpy.m4: New file.
91567
91568         Module strcase.
91569         * m4/strcase.m4: New file.
91570
91571         Module strdup.
91572         * m4/strdup.m4: New file.
91573
91574         Module strnlen.
91575         * m4/strnlen.m4: New file.
91576
91577         Module strndup.
91578         * m4/strndup.m4: New file.
91579
91580         Module xstrtod.
91581         * m4/xstrtod.m4: New file.
91582
91583         Module xstrtol.
91584         * m4/xstrtol.m4: New file.
91585
91586         Module getdate.
91587         * m4/getdate.m4: New file.
91588
91589         Module unlocked-io.
91590         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91591         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91592         * m4/jm-glibc-io.m4n: Remove file.
91593
91594         Module long-options.
91595         * m4/long-options.m4: New file.
91596
91597         Module md5.
91598         * m4/md5.m4: New file.
91599
91600         Module sha.
91601         * m4/sha.m4: New file.
91602
91603         Module getstr.
91604         * m4/getstr.m4: New file.
91605
91606         Module getline.
91607         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91608         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91609         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91610         simply getline. Infoke gl_PREREQ_GETLINE.
91611
91612         Module obstack.
91613         * m4/obstack.m4: New file.
91614
91615         Module hash.
91616         * m4/hash.m4: New file.
91617
91618         Module readtokens.
91619         * m4/readtokens.m4: New file.
91620
91621         Module strverscmp.
91622         * m4/strverscmp.m4: New file.
91623
91624         Module stdbool.
91625         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91626         OSF/1.
91627
91628         Module strtoll.
91629         * m4/strtoll.m4: New file.
91630
91631         Module strtoull.
91632         * m4/strtoull.m4: New file.
91633
91634         Module strtoimax.
91635         * m4/strtoimax.m4: New file.
91636
91637         Module strtoumax.
91638         * m4/strtoumax.m4: New file.
91639
91640         Module xstrtoimax.
91641         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91642         jm_AC_PREREQ_XSTRTOIMAX.
91643         Moved the strtol prerequisites to strtol.m4.
91644         Moved the strtoll prerequisites to strtoll.m4.
91645         Moved the strtoimax prerequisites to strtoimax.m4.
91646
91647         Module xstrtoumax.
91648         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91649         jm_AC_PREREQ_XSTRTOUMAX.
91650         Moved the strtoul prerequisites to strtoul.m4.
91651         Moved the strtoull prerequisites to strtoull.m4.
91652         Moved the strtoumax prerequisites to strtoumax.m4.
91653
91654         Module chown.
91655         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91656         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91657
91658         Module dup2.
91659         * m4/dup2.m4: New file.
91660
91661         Module ftruncate.
91662         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91663         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91664
91665         Module getgroups.
91666         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91667         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91668
91669         Module gettimeofday.
91670         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91671         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91672         gl_PREREQ_GETTIMEOFDAY.
91673
91674         Module mkdir.
91675         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91676         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91677
91678         Module mkstemp.
91679         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91680         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91681         jm_AC_TYPE_UINTMAX_T.
91682         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91683
91684         Module stat.
91685         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91686         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91687
91688         Module lstat.
91689         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91690         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91691
91692         Module timespec.
91693         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91694         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91695         * m4/st_mtim.m4: Indentation.
91696
91697         Module nanosleep.
91698         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91699         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91700         gl_PREREQ_NANOSLEEP.
91701
91702         Module regex.
91703         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91704         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91705         (gl_REGEX): New macro.
91706
91707         Module rename.
91708         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91709         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91710
91711         Module rmdir.
91712         * m4/rmdir.m4: New file.
91713
91714         Module utime.
91715         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91716         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91717         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91718
91719         Module dirname.
91720         * m4/dirname.m4: New file.
91721
91722         Module getopt.
91723         * m4/getopt.m4: New file.
91724
91725         Module unistd-safer.
91726         * m4/unistd-safer.m4: New file.
91727
91728         Module fnmatch.
91729         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91730         declaration.
91731         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91732         (gl_FUNC_FNMATCH_POSIX): New macro.
91733         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91734         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91735         simply fnmatch.
91736
91737         Module exclude.
91738         * m4/exclude.m4: New file.
91739
91740         Module human.
91741         * m4/human.m4: New file.
91742
91743         Module acl.
91744         * m4/acl.m4: Nop.
91745
91746         Module backupfile.
91747         * m4/backupfile.m4: New file.
91748         * m4/d-ino.m4: Indentation.
91749
91750         Module fsusage.
91751         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91752         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91753         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91754
91755         Module dirfd.
91756         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91757         requirements.
91758
91759         Module euidaccess.
91760         * m4/euidaccess.m4: New file.
91761
91762         Module file-type.
91763         * m4/file-type.m4: New file.
91764
91765         Module fileblocks.
91766         * m4/fileblocks.m4: New file.
91767
91768         Module filemode.
91769         * m4/filemode.m4: New file.
91770
91771         Module isdir.
91772         * m4/isdir.m4: New file.
91773
91774         Module lchown.
91775         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91776         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91777
91778         Module makepath.
91779         * m4/makepath.m4: New file.
91780
91781         Module modechange.
91782         * m4/modechange.m4: New file.
91783
91784         Module mountlist.
91785         * m4/mountlist.m4: New file.
91786         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91787         Indentation.
91788
91789         Module path-concat.
91790         * m4/path-concat.m4: New file.
91791
91792         Module pathmax.
91793         * m4/pathmax.m4: New file.
91794
91795         Module same.
91796         * m4/same.m4: New file.
91797
91798         Module save-cwd.
91799         * m4/save-cwd.m4: New file.
91800
91801         Module savedir.
91802         * m4/savedir.m4: New file.
91803
91804         Module xgetcwd.
91805         * m4/xgetcwd.m4: New file.
91806         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91807
91808         Module xreadlink.
91809         * m4/xreadlink.m4: New file.
91810
91811         Module safe-read.
91812         * m4/safe-read.m4: New file.
91813
91814         Module safe-write.
91815         * m4/safe-write.m4: New file.
91816
91817         Module closeout.
91818         * m4/closeout.m4: New file.
91819
91820         Module stdio-safer.
91821         * m4/stdio-safer.m4: New file.
91822
91823         Module getpass.
91824         * m4/getpass.m4: New file.
91825
91826         Module getugroups.
91827         * m4/getugroups.m4: New file.
91828
91829         Module group-member.
91830         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91831         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91832
91833         Module idcache.
91834         * m4/idcache.m4: New file.
91835
91836         Module userspec.
91837         * m4/userspec.m4: New file.
91838
91839         Module gettime.
91840         * m4/clock_time.m4: New file.
91841         * m4/gettime.m4: New file.
91842
91843         Module settime.
91844         * m4/settime.m4: New file.
91845
91846         Module posixtm.
91847         * m4/posixtm.m4: New file.
91848
91849         Module gethostname.
91850         * m4/gethostname.m4: New file.
91851
91852         Module canon-host.
91853         * m4/canon-host.m4: New file.
91854
91855         Module gettext.
91856         * m4/codeset.m4: New file, from gettext-0.11.5.
91857         * m4/gettext.m4: New file, from gettext-0.11.5.
91858         * m4/glibc21.m4: New file, from gettext-0.11.5.
91859         * m4/iconv.m4: New file, from gettext-0.11.5.
91860         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91861         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91862         * m4/inttypes.m4: New file, from gettext-0.11.5.
91863         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91864         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91865         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91866         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91867         * m4/lib-link.m4: New file, from gettext-0.11.5.
91868         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91869         * m4/progtest.m4: New file, from gettext-0.11.5.
91870         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91871         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91872         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91873
91874         Module localcharset.
91875         * m4/localcharset.m4: New file.
91876
91877         Module hard-locale.
91878         * m4/hard-locale.m4: New file.
91879
91880         Module mbswidth.
91881         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91882         onceonly macros.
91883         * m4/mbrtowc.m4: Add comment.
91884
91885         Module memcasecmp.
91886         * m4/memcasecmp.m4: New file.
91887
91888         Module memcoll.
91889         * m4/memcoll.m4: New file.
91890
91891         Module unicodeio.
91892         * m4/unicodeio.m4: New file.
91893
91894         Module rpmatch.
91895         * m4/rpmatch.m4: New file.
91896
91897         Module yesno.
91898         * m4/yesno.m4: New file.
91899
91900         Module exitfail.
91901         * m4/exitfail.m4: New file.
91902
91903         Module c-stack.
91904         * m4/c-stack.m4 (gl_C_STACK): New macro.
91905         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91906
91907         Module error.
91908         * m4/error.m4 (gl_ERROR): New macro.
91909         (jm_PREREQ_ERROR): Use onceonly macros.
91910
91911         Module fatal.
91912         * m4/fatal.m4: New file.
91913
91914         Module getloadavg.
91915         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91916         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91917
91918         Module getpagesize.
91919         * m4/getpagesize.m4: New file.
91920
91921         Module getusershell.
91922         * m4/getusershell.m4: New file.
91923
91924         Module physmem.
91925         * m4/physmem.m4: New file.
91926
91927         Module posixver.
91928         * m4/posixver.m4: New file.
91929
91930         Module quotearg.
91931         * m4/quotearg.m4: New file.
91932
91933         Module quote.
91934         * m4/quote.m4: New file.
91935
91936         Module readutmp.
91937         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91938
91939         Module sig2str.
91940         * m4/sig2str.m4: New file.
91941
91942         Other.
91943         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91944         ulonglong.m4.
91945         * m4/intmax_t.m4: New file.
91946         * m4/d-type.m4: Indentation.
91947         * m4/jm-macros.m4: Update.
91948         * m4/prereq.m4 (jm_PREREQ): Update.
91949         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91950         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91951         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91952         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91953         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91954         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91955         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91956         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91957         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91958         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91959         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91960         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91961         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91962         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91963         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91964         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91965         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91966         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91967         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91968
91969 2002-12-24  Bruno Haible  <bruno@clisp.org>
91970
91971         * MODULES.txt: Update according to m4/ changes.
91972
91973         Module gettext.
91974         * config.rpath: New file, from gettext-0.11.5.
91975
91976         * modules/*: New module descriptions.
91977         * gnulib-tool: New file.
91978         * MODULES.html.sh: New file.
91979
91980 2002-12-21  Karl Berry  <karl@gnu.org>
91981
91982         * doc/fdl.texi: update to version 1.2.
91983
91984 2002-12-19  Karl Berry  <karl@gnu.org>
91985
91986         * config/config.guess: update from prep.
91987
91988 2002-12-18  Bruno Haible  <bruno@clisp.org>
91989
91990         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91991         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91992
91993 2002-12-17  Bruno Haible  <bruno@clisp.org>
91994
91995         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91996         stdlib.h, string.h.
91997
91998 2002-12-17  Bruno Haible  <bruno@clisp.org>
91999
92000         * lib/canon-host.c (strdup): Remove unused declaration.
92001
92002         * lib/fsusage.c: Include full_read.h.
92003         (get_fs_usage): Use full_read instead of safe_read.
92004
92005         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92006
92007 2002-12-12  Karl Berry  <karl@gnu.org>
92008
92009         * config/config.guess: update from prep.
92010
92011 2002-12-11  Bruno Haible  <bruno@clisp.org>
92012
92013         * m4/setenv.m4: New file, from gettext-0.11.5.
92014
92015 2002-12-11  Bruno Haible  <bruno@clisp.org>
92016
92017         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92018         not unsetenv().
92019         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92020         modifications:
92021
92022         2002-12-11  Bruno Haible  <bruno@clisp.org>
92023
92024                 * setenv.c (alloca): Fall back to malloc.
92025                 (freea): New macro.
92026                 (setenv): Use freea() to free memory allocated with alloca().
92027
92028         2002-11-13  Bruno Haible  <bruno@clisp.org>
92029
92030                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92031                 function declarations.
92032                 * unsetenv.c (unsetenv): Likewise.
92033
92034         2002-03-04  Bruno Haible  <bruno@clisp.org>
92035
92036                 Portability to AIX 4.3.3.
92037                 * unsetenv.c: New file, extracted from setenv.c.
92038                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92039
92040         2001-12-20  Bruno Haible  <bruno@clisp.org>
92041
92042                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92043                 use malloc instead. For SunOS 4.
92044
92045         2001-12-11  Bruno Haible  <bruno@clisp.org>
92046
92047                 * setenv.c: Declare alloca.
92048                 (compar_fn_t): New typedef.
92049                 (KNOWN_VALUE, STORE_VALUE): Use it.
92050
92051         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92052         setenv.h.
92053
92054 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92055
92056         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92057         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92058         Choose values that are less likely to collide with system fnmatch
92059         options.
92060         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92061         defined (e.g., a pure POSIX system).
92062         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92063         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92064
92065 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92066
92067         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92068         a pain in practice to deal with generated m4 files.  This change
92069         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92070
92071         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92072         and jm-glibc-io.m4, as they are no longer a special case.
92073         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92074         kludge and the auto-generation stuff.  Check only whether the
92075         functions are declared, not whether they exist, since older hosts
92076         that don't declare the functions can't use the optimization anyway.
92077
92078 2002-12-06  Jim Meyering  <jim@meyering.net>
92079
92080         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92081
92082         Merge in changes from libc's misc/error.c, in preparation
92083         for the merge of gnulib's changes back into libc.
92084
92085         * lib/error.c (_): Define only if not already defined.
92086         Move definition to follow all #include directives.
92087         Include unlocked-io.h only if !_LIBC.
92088         [_LIBC]: Include <libio/libioP.h>.
92089         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92090         (fflush): Tweak definition to use INTUSE.
92091         (putc): Define.
92092
92093 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92094
92095         * lib/alloca.c [defined emacs]: Include "lisp.h".
92096         (xalloc_die) [defined emacs]: New macro.
92097         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92098         [! defined emacs]: Include <xalloc.h>.
92099         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92100         (pointer): Typedef to POINTER_TYPE *.
92101         (malloc): Remove decl; we now always use xmalloc.
92102         (alloca): Use old-style definition, since Emacs needs this.
92103         Check for arithmetic overflow when computing combined size.
92104
92105 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92106
92107         Do not generate unlocked-io.h automatically, since it's easier to
92108         maintain it by hand.
92109
92110         * lib/unlocked-io.h: New file, from GNU diffutils,
92111         but with proper copyright notice and attribution.
92112         * lib/gen-uio: Remove.
92113         * lib/Makefile.am: Add copyright notice.
92114         (libfetish_a_SOURCES): Add unlocked-io.h.
92115         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92116         (DISTCLEANFILES, io_functions): Remove macros.
92117         (EXTRA_DIST): Remove gen_uio.
92118         (unlocked-io.h): Remove rule.
92119
92120 2002-12-04  Jim Meyering  <jim@meyering.net>
92121
92122         Reflect the fact that stat.c and lstat.c are no longer generated.
92123         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92124         (DISTCLEANFILES): Likewise.
92125         (EXTRA_DIST): Likewise.
92126         (all_local): Don't depend on stat.c or lstat.c.
92127         (stat.c, lstat.c): Remove rules.
92128         (EXTRA_DIST): Remove xstat.in.
92129
92130         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92131         * lib/stat.c: New file.  Contents mostly from xstat.in.
92132         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92133         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92134
92135         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92136         too.
92137         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92138
92139 2002-12-03  Jim Meyering  <jim@meyering.net>
92140
92141         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92142         but not semantics, to minimize the differences between these two files.
92143         (safe_read): Change comment to mention SAFE_READ_ERROR.
92144
92145         * lib/safe-read.c (IS_EINTR): Define.
92146         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92147
92148 2002-12-02  Jim Meyering  <jim@meyering.net>
92149
92150         * lib/safe-read.c (EINTR): Define.
92151         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92152         (INT_MAX): Provide fallback.
92153         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92154
92155         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92156
92157 2002-12-02  Bruno Haible  <bruno@clisp.org>
92158
92159         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92160         Define, taken from safe-read.c.
92161         (INT_MAX): Provide fallback.
92162         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92163         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92164
92165         * lib/safe-read.c (EINTR): Remove definition.
92166         (safe_read): Don't use EINTR if it is absent.
92167
92168 2002-12-01  Jim Meyering  <jim@meyering.net>
92169
92170         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92171         zero.
92172         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92173
92174 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92175
92176         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92177         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92178         with `if (! (value < limit)) abort ();', for readability.
92179
92180 2002-11-26  Karl Berry  <karl@gnu.org>
92181
92182         * lib/strdup.c: copy from libc again, with jim's ok.
92183         * lib/.cppi-disable: re-add strdup.c
92184
92185 2002-11-25  Karl Berry  <karl@gnu.org>
92186
92187         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92188         instead of "strtol.c".
92189
92190 2002-11-25  Karl Berry  <karl@gnu.org>
92191
92192         * config/install-sh: update from automake for variable quoting, $0 in
92193         error msgs, etc.
92194
92195         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92196         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92197         entry.
92198
92199 2002-11-25  Jim Meyering  <jim@meyering.net>
92200
92201         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92202
92203 2002-11-24  Karl Berry  <karl@gnu.org>
92204
92205         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92206         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92207
92208 2002-11-24  Jim Meyering  <jim@meyering.net>
92209
92210         Update from coreutils:
92211
92212         * lib/mktime.c: Merge in changes from libc.
92213
92214         Avoid a link-time failure on some Linux systems.
92215         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92216         (otherwise).
92217         (__mon_yday): Declare with the STATIC attribute.
92218         (__mktime_internal): Likewise.
92219         Based on a report from Greg Schafer.
92220
92221 2002-11-23  Jim Meyering  <jim@meyering.net>
92222
92223         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92224         Use `unsigned', not `int', as type of index.
92225
92226         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92227
92228         * lib/fsusage.c: Remove unneeded parentheses around operands of
92229         `defined'.
92230
92231 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92232
92233         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92234         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92235         so that we can be included first.
92236         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92237         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92238         No need to include stddef.h or sys/types.h any more.
92239         Surround local include files with "", not "<>".
92240         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92241         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92242         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92243         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92244         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92245         (ISPRINT): Remove; no longer needed now that we assume C89.
92246
92247         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92248         Preserve errno.
92249
92250         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92251         quotearg_char): Use SIZE_MAX rather than
92252         (size_t) -1 when we are talking about "infinity".
92253
92254         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92255
92256 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92257
92258         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92259         hint that one should use `if (! x) abort ();' rather than `assert
92260         (x);', and anyway it's one less thing to worry about configuring.
92261         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92262         hash_rehash, hash_insert): Use abort rather than assert.
92263
92264 2002-11-22  Bruno Haible  <bruno@clisp.org>
92265
92266         * lib/safe-read.h: Assume C89. Add comments.
92267         (safe_read): Change return type to size_t.
92268         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92269         byte counts > SSIZE_MAX correctly.
92270         * lib/safe-write.h: New file.
92271         * lib/safe-write.c: New file.
92272         * lib/full-read.h: New file.
92273         * lib/full-read.c: New file.
92274         * lib/full-write.h: Assume C89. Add comments.
92275         * lib/full-write.c: Include safe-write.h.
92276         (full_write): Rewritten to use safe_write.
92277         Suggested by Jim Meyering and Paul Eggert.
92278
92279 2002-11-21  Jim Meyering  <jim@meyering.net>
92280
92281         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92282
92283         Merge in changes from the coreutils.
92284
92285         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92286         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92287         <stdint.h>.
92288         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92289         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92290         int.  Work more efficiently if X is the same width as uintmax_t.
92291         Do not compare X to -1, to avoid bogus compiler warning.
92292         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92293         Don't assume that f_frsize and f_bsize are the same type.
92294
92295         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92296         warning on FreeBSD.
92297
92298         * lib/makepath.c (make_path): Restore umask *before* creating the final
92299         component.
92300         (make_path): Minor reformatting.
92301
92302         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92303         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92304         HAVE_MALLOC/HAVE_REALLOC.
92305
92306         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92307         dummy ones.  At least on GNU/Linux systems, `auto' means something
92308         else.
92309         From Michael Stone.
92310
92311 2002-11-21  Bruno Haible  <bruno@clisp.org>
92312
92313         Remove case insensitive option matching.
92314         * lib/argmatch.h (argcasematch): Remove declaration.
92315         (ARGCASEMATCH): Remove macro.
92316         (__xargmatch_internal): Remove case_sensitive argument.
92317         (XARGMATCH): Update.
92318         (XARGCASEMATCH): Remove macro.
92319         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92320         case_sensitive argument.
92321         (argcasematch): Remove function.
92322         (__xargmatch_internal): Remove case_sensitive argument.
92323         (main): Use XARGMATCH instead of XARGCASEMATCH.
92324
92325         * lib/xmalloc.c: Change compile-time error message. Add comment about
92326         required autoconf version.
92327
92328 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92329
92330         Merge argmatch cleanups from Bison.  Assume C89.
92331
92332         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92333         Include stdlib.h, for EXIT_FAILURE.
92334         Always include <string.h>, since we assume C89.
92335         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92336         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92337         Include <stddef.h> instead, since it's all we need for size_t.
92338         (PARAMS): Remove.  All uses removed.
92339         (ARRAY_CARDINALITY): Do not bother to #undef.
92340         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92341         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92342         Remove unnecessary parentheses.
92343         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92344         Insert necessary parentheses.
92345         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92346         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92347
92348 2002-11-19  Bruno Haible  <bruno@clisp.org>
92349
92350         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92351         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92352
92353         * lib/mbswidth.h (PARAMS): Remove macro.
92354         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92355         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92356
92357         * lib/gcd.h (PARAMS): Remove macro.
92358         (gcd): Use ANSI C function declarations.
92359         * lib/gcd.c (gcd): Likewise.
92360
92361 2002-11-15  Bruno Haible  <bruno@clisp.org>
92362
92363         * lib/strcspn.c: Include <stddef.h>.
92364         (strcspn): Use ANSI C function declaration. Change return type to
92365         size_t. Use NULL.
92366         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92367         (strpbrk): Use NULL.
92368         * lib/strpbrk.h (PARAMS): Remove macro.
92369         (strpbrk): Use ANSI C function declaration.
92370         * lib/strstr.c: Don't include <sys/types.h>.
92371         * lib/strstr.h (PARAMS): Remove macro.
92372         (strstr): Use ANSI C function declarations.
92373
92374 2002-11-14  Karl Berry  <karl@gnu.org>
92375
92376         * config/mkinstalldirs: `do' on separate line, instead of
92377         `for var; do'.
92378
92379 2002-11-06  Bruno Haible  <bruno@clisp.org>
92380
92381         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92382         * lib/gcd.c (gcd): Likewise.
92383
92384 2002-11-05  Bruno Haible  <bruno@clisp.org>
92385
92386         * lib/gcd.h: New file, from gettext-0.11.5.
92387         * lib/gcd.c: New file, from gettext-0.11.5.
92388
92389 2002-11-05  Bruno Haible  <bruno@clisp.org>
92390
92391         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92392         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92393         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92394         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92395
92396         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92397         <libintl.h>.
92398         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92399         <libintl.h>.
92400
92401         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92402         * lib/human.c: Include gettext.h instead of <libintl.h>.
92403         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92404         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92405         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92406         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92407         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92408         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92409         (textdomain): Remove definition.
92410         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92411
92412         * lib/long-options.c: Remove include of <libintl.h> and definition of
92413         _.
92414         * lib/same.c: Remove include of <libintl.h> and definition of _.
92415
92416 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92417
92418         * lib/config.charset: A few additions for Solaris.
92419
92420 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92421
92422         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92423         * lib/localcharset.c (locale_charset): Declare as extern "C".
92424
92425 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92426
92427         * lib/config.charset: msdos in uk_UA uses CP1125.
92428
92429 2002-11-04  Bruno Haible  <bruno@clisp.org>
92430
92431         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92432         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92433         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92434         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92435         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92436
92437 2002-11-04  Bruno Haible  <bruno@clisp.org>
92438
92439         * lib/localcharset.c (locale_charset): Don't return an empty string.
92440
92441 2002-11-04  Bruno Haible  <bruno@clisp.org>
92442
92443         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92444         aliases.
92445
92446 2002-11-04  Bruno Haible  <bruno@clisp.org>
92447
92448         * lib/config.charset: Update for newest glibc. Add canonical names
92449         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92450
92451 2002-11-04  Bruno Haible  <bruno@clisp.org>
92452
92453         * lib/config.charset: Add support for NetBSD.
92454
92455 2002-11-04  Bruno Haible  <bruno@clisp.org>
92456
92457         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92458
92459 2002-11-01  Bruno Haible  <bruno@clisp.org>
92460
92461         * configure.in: Add AC_CONFIG_AUX_DIR call.
92462         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92463         test/Makefile.
92464         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92465
92466 2002-09-28  Karl Berry  <karl@gnu.org>
92467
92468         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92469         installed automake until the next release, since changes have been
92470         made.
92471
92472 2002-09-25  Karl Berry  <karl@gnu.org>
92473
92474         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92475         * lib/getopt*: copy from libc/posix.
92476         * lib/gettext.h: copy from gettext.
92477         * lib/.cppi-disable: add strdup.c, gettext.h.
92478
92479 2002-09-25  Karl Berry  <karl@gnu.org>
92480
92481         * config/srclist.txt: enable gettext.h check.
92482         * config/config.{guess,sub}: update from prep.
92483         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92484                 from automake 1.6.3.
92485         See srclist*.
92486
92487 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92488
92489         * regex.c (PATFETCH): Remove the translating fetch.
92490         (PATFETCH_RAW): Rename to PATFETCH.
92491         (set_image_of_range): New fun.
92492         (SET_RANGE_TABLE_WORK_AREA): Use it.
92493         (regex_compile): Don't translate the pattern chars so eagerly.
92494         Only do it when inserting an `exactn' bytecode or when handling
92495         a char-range.
92496         (mutually_exclusive_p): Avoid empty statement.
92497
92498 2002-07-06  Jim Meyering  <meyering@lucent.com>
92499
92500         * m4/README: Don't mention Makefile.am.in.
92501         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92502
92503 2002-07-01  Jim Meyering  <meyering@lucent.com>
92504
92505         * lib/c-stack.c: Include sys/time.h.
92506         From Volker Borchert.
92507
92508 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92509
92510         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92511
92512 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92513
92514         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92515         New macro.  Use it uniformly instead of
92516         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92517         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92518         reported by Vin Shelton.
92519
92520 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92521
92522         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92523         Do not assume SA_SIGINFO behavior.
92524         Bug reported by Jim Meyering on NetBSD 1.5.2.
92525
92526 2002-06-22  Jim Meyering  <meyering@lucent.com>
92527
92528         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92529         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92530
92531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92532         now that configure.ac uses AC_GNU_SOURCE.
92533         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92534         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92535
92536         Update to latest tools.  Suggestions from Paul Eggert.
92537         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92538         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92539         * m4/fnmatch.m4: Likewise.
92540         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92541         to AC_HEADER_STDBOOL
92542
92543 2002-06-22  Jim Meyering  <meyering@lucent.com>
92544
92545         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92546         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92547
92548 2002-06-22  Jim Meyering  <meyering@lucent.com>
92549
92550         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92551
92552         * lib/exitfail.c, exitfail.h: Likewise.
92553         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92554
92555         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92556         of fnmatch.h.
92557         (EXTRA_DIST): Add fnmatch_loop.c.
92558         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92559
92560         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92561         * lib/fnmatch.c: Update from diffutils-2.8.2.
92562         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92563         * lib/fnmatch.h: Remove file.
92564
92565 2002-06-21  Jim Meyering  <meyering@lucent.com>
92566
92567         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92568         * m4/mbrtowc.m4: Likewise.
92569
92570         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92571         * m4/mbswidth.m4: Reflect name change:
92572         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92573         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92574
92575         * m4/lib-link.m4: Update from gettext-0.11.2.
92576         * m4/gettext.m4: Likewise.
92577
92578         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92579         From Alfred M. Szmidt.
92580
92581 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92582
92583         * lib/file-type.h: Report an error if neither S_ISREG nor
92584         S_IFREG is defined, instead of using a test specific to glibc
92585         2.2.  This should be safe, since POSIX requires S_ISREG and
92586         Unix Version 7 had S_IFREG.  We don't need to check for
92587         <sys/types.h> since we don't use any symbols that it defines.
92588
92589 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92590
92591         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92592         $@-t, so that each temporary file name is unique and valid in the first
92593         8 characters, for operation under DOS.
92594
92595 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92596
92597         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92598
92599 2002-06-15  Jim Meyering  <meyering@lucent.com>
92600
92601         Work even with DJGPP 2.03, which lacks support for symlinks.
92602         From Richard Dawe.
92603         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92604         is defined.
92605         * lib/lchown.c (S_ISLNK): Likewise.
92606
92607 2002-06-15  Jim Meyering  <meyering@lucent.com>
92608
92609         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92610         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92611         have been included before this file.
92612
92613 2002-06-14  Jim Meyering  <meyering@lucent.com>
92614
92615         * lib/file-type.h: Use the version from diffutils-2.8.2.
92616         * lib/file-type.c: Likewise.
92617
92618 2002-06-07  Jim Meyering  <meyering@lucent.com>
92619
92620         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92621         They're needed at least for NetBSD 1.5.2.
92622         ($statxfs_includes): Include those same headers.
92623         ($statxfs_includes): Include sys/vfs.h if available.
92624         ($statxfs_includes): Likewise for sys/statvfs.h.
92625         Check for the following members in both structs statfs and statvfs:
92626         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92627
92628 2002-06-01  Jim Meyering  <meyering@lucent.com>
92629
92630         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92631         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92632
92633 2002-05-28  Jim Meyering  <meyering@lucent.com>
92634
92635         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92636         Reported by Volker Borchert.
92637
92638 2002-05-27  Jim Meyering  <meyering@lucent.com>
92639
92640         Fix a problem seen only on nonconforming systems whereby ls.c's
92641         use of localtime, and then of gettimeofday would cause trouble:
92642         the localtime call used to initialize rpl_gettimeofday's save
92643         mechanism would clobber ls's current local time information so
92644         that in any long listing the first file would always be listed
92645         with date 1970-01-01.  Analysis by Volker Borchert.
92646
92647         * lib/gettimeofday.c (localtime): Undefine.
92648         (rpl_localtime): New function.
92649
92650 2002-05-27  Jim Meyering  <meyering@lucent.com>
92651
92652         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92653         localtime.
92654
92655         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92656         use the replacement function; it wouldn't resolve at link time.
92657         Reported by Volker Borchert.
92658
92659 2002-05-22  Jim Meyering  <meyering@lucent.com>
92660
92661         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92662         file-type.h.
92663         * lib/file-type.h: New file.
92664         * lib/file-type.c (file_type): New file/function.  Extracted from
92665         diffutils.
92666
92667 2002-04-30  Jim Meyering  <meyering@lucent.com>
92668
92669         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92670
92671 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92672
92673         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92674
92675 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92676
92677         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92678         Do not check for alloca.h (no longer used) or stdbool.h (was never
92679         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92680
92681 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92682
92683         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92684
92685 2002-04-29  Jim Meyering  <meyering@lucent.com>
92686
92687         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92688         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92689         Use AC_FUNC_STRNLEN here instead.
92690
92691         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92692         With autoconf-2.53a, it's part of AC_PROG_CC.
92693
92694 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92695
92696         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92697         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92698
92699 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92700
92701         * lib/sig2str.h, lib/sig2str.c: New files.
92702         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92703
92704 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92705
92706         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92707         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92708         of 127, since 64 is the largest conceivable number for ancient
92709         nonstandard hosts.
92710         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92711
92712 2002-04-28  Jim Meyering  <meyering@lucent.com>
92713
92714         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92715
92716 2002-04-24  Jim Meyering  <meyering@lucent.com>
92717
92718         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92719         (jm_PREREQ): Use it.
92720
92721         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92722         mach/mach.h fcntl.h.
92723         Check for this function: setlocale.
92724
92725 2002-04-24  Jim Meyering  <meyering@lucent.com>
92726
92727         * lib/gettext.h: New file, from Gettext.
92728         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92729         (libfetish_a_SOURCES): Add gettext.h.
92730
92731 2002-04-16  Jim Meyering  <meyering@lucent.com>
92732
92733         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92734         ut_pid, ut_id, ut_exit.
92735
92736 2002-04-16  Jim Meyering  <meyering@lucent.com>
92737
92738         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92739         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92740         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92741
92742 2002-04-12  Jim Meyering  <meyering@lucent.com>
92743
92744         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92745         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92746         existence of the getmntinfo function.  Needed for Darwin 5.3.
92747
92748         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92749         This is necessary at least on Darwin 5.3.
92750
92751         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92752         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92753         strnlen.o in the library, and that makes some versions of ranlib
92754         object.
92755
92756 2002-04-12  Jim Meyering  <meyering@lucent.com>
92757
92758         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92759
92760 2002-04-09  Jim Meyering  <meyering@lucent.com>
92761
92762         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92763         to be more precise.  Rather than saying we're checking whether the
92764         function `works', say what we're testing.
92765         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92766         Reported by Bruno Haible.
92767
92768 2002-03-10  Jim Meyering  <meyering@lucent.com>
92769
92770         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92771         Suggestion from Santiago Vila.
92772
92773 2002-03-08  Jim Meyering  <meyering@lucent.com>
92774
92775         * lib/rename.c: Mention that this wrapper is needed also on
92776         mips-dec-ultrix4.4 systems.
92777
92778 2002-03-02  Jim Meyering  <meyering@lucent.com>
92779
92780         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92781         not HAVE_CLOCK_SETTIME.
92782
92783 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92784
92785         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92786         Check for clock_settime.
92787
92788 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92789
92790         * lib/nanosleep.h: Rename to....
92791         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92792
92793         * lib/gettime.c: New file.
92794         * lib/settime.c: New file.
92795         * lib/stime.c: Remove.
92796
92797         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92798         timespec.h.  Remove nanosleep.h.
92799
92800 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92801
92802         * m4/acl.m4: New file.
92803         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92804         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92805
92806 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92807
92808         * lib/acl.c, lib/acl.h: New files.
92809         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92810
92811 2002-02-24  Jim Meyering  <meyering@lucent.com>
92812
92813         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92814         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92815         cause trouble.  Reported by Nelson Beebe.
92816
92817 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92818
92819         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92820         compilers that don't know that xalloc_die never returns.
92821
92822 2002-02-20  Jim Meyering  <meyering@lucent.com>
92823
92824         * lib/getdate.c: Regenerate using bison-1.33.
92825
92826 2002-02-17  Jim Meyering  <meyering@lucent.com>
92827
92828         * config/config.guess (main): Don't use `head -1'; it's no longer
92829         portable. Use `sed 1q' instead.
92830
92831 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92832
92833         * m4/codeset.m4: Upgrade to gettext-0.11.
92834         * m4/gettext.m4: Upgrade to gettext-0.11.
92835         * m4/glibc21.m4: Upgrade to gettext-0.11.
92836         * m4/iconv.m4: Upgrade to gettext-0.11.
92837         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92838         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92839         * m4/lib-ld.m4: New file, from gettext-0.11.
92840         * m4/lib-link.m4: New file, from gettext-0.11.
92841         * m4/lib-prefix.m4: New file, from gettext-0.11.
92842         * m4/progtest.m4: Upgrade to gettext-0.11.
92843
92844 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92845
92846         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92847         (jm_PREREQ): Use it.
92848
92849 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92850
92851         * lib/posixver.c, lib/posixver.h: New files.
92852         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92853
92854 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92855             Bruno Haible  <bruno@clisp.org>
92856
92857         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92858         (fwrite_success_callback): New declaration.
92859         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92860         print_unicode_char. Call failure callback instead of error.
92861         (fwrite_success_callback): New function.
92862         (exit_failure_callback): New function.
92863         (fallback_failure_callback): New function.
92864         (print_unicode_char): Call unicode_to_mb.
92865
92866 2002-01-26  Jim Meyering  <meyering@lucent.com>
92867
92868         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92869         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92870
92871 2002-01-26  Jim Meyering  <meyering@lucent.com>
92872
92873         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92874
92875 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92876
92877         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92878
92879 2002-01-22  Jim Meyering  <meyering@lucent.com>
92880
92881         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92882         Otherwise, some versions of automake would omit the rule that makes
92883         Makefile from Makefile.in.
92884
92885 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92886
92887         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92888         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92889         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92890         (memcoll): Set errno to zero if there is no error.
92891
92892         * lib/quotearg.c (quotearg_buffer_restyled):
92893         Fix bug with quoting buffers containing NUL when backslashing escapes.
92894         This bug was exposed by the other changes in this patch.
92895         (quotearg_n_options): New arg ARGSIZE.
92896         All callers changed.
92897         (quoting_options_from_style): New function.
92898         (quotearg_n_style): Use it.
92899         (quotearg_n_style_mem): New function.
92900
92901         * lib/quotearg.h (quotearg_n_style_mem): New function.
92902
92903 2002-01-19  Jim Meyering  <meyering@lucent.com>
92904
92905         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92906         Remove useless quotes: DF_PROG="df".
92907         * m4/strnlen.m4: New file.
92908
92909 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92910
92911         * lib/backupfile.c (ISDIGIT): Comment fix.
92912         * lib/getdate.y (ISDIGIT): Likewise.
92913         * lib/posixtm.c (ISDIGIT, year): Likewise.
92914         * lib/strverscmp.c (ISDIGIT): Likewise.
92915         * lib/userspec.c (ISDIGIT): Likewise.
92916
92917 2002-01-16  Jim Meyering  <meyering@lucent.com>
92918
92919         * lib/getdate.y: Add three semicolons, each just before a closing
92920         brace. Bison (as of version 1.31) no longer papers over that mistake.
92921
92922 2002-01-05  Jim Meyering  <meyering@lucent.com>
92923
92924         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92925
92926 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92927
92928         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92929         not silently exit merely because the output buffer happens to
92930         have nothing pending.
92931
92932 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92933
92934         See the big note in ../ChangeLog.
92935         * lib/human.c (suffixes): Prefer K to k for 1024.
92936         (generate_suffix_backwards): New function.
92937         (human_readable_inexact): Use it.
92938         * lib/xstrtol.c (__xstrtol): If there is no number but there
92939         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92940         Accept 'K' as well as 'k'.
92941
92942 2001-12-15  Jim Meyering  <meyering@lucent.com>
92943
92944         * lib/regex.h (__restrict_arr): Update from libc.
92945
92946         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92947         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92948         (STREQ): Define.
92949
92950 2001-12-14  Jim Meyering  <meyering@lucent.com>
92951
92952         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92953         Suggestion from Bruno Haible.
92954
92955 2001-12-10  Jim Meyering  <meyering@lucent.com>
92956
92957         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92958         xrealloc, Instead, include "xalloc.h".
92959         (initbuffer): Don't cast xmalloc return value to char*.
92960         (readline): Reword comment.
92961         Don't cast xrealloc return value to char*
92962         Return NULL, not 0.
92963
92964 2001-12-09  Jim Meyering  <meyering@lucent.com>
92965
92966         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92967         about `signed and unsigned type in conditional expression'.
92968         * lib/posixtm.c (posix_time_parse): Likewise.
92969
92970         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92971
92972         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92973         to avoid a pedantic warning.
92974
92975         * lib/getstr.c: Don't include assert.h.
92976         (getstr): Remove warning-evoking assertions.
92977         Return -1 if offset parameter is out of bounds.
92978         Change the type of a local from int to size_t.
92979
92980         * lib/strftime.c (my_strftime_localtime_r): Include this function
92981         definition in the `#if ! HAVE_TM_GMTOFF' block.
92982
92983         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92984         Include xalloc.h instead.
92985
92986 2001-12-02  Jim Meyering  <meyering@lucent.com>
92987
92988         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92989         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92990         included.
92991
92992         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92993         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92994
92995 2001-11-30  Akim Demaille  <akim@epita.fr>
92996
92997         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92998         before being defined.
92999
93000 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93001
93002         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93003         First arg is int, not unsigned.
93004         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93005         (SIZE_MAX, UINT_MAX): New macros.
93006         (quotearg_n_options): Abort if N is negative.
93007         Avoid overflow check on hosts where size_t is 64 bits and int
93008         is 32 bits, as overflow is impossible there.
93009         Fix off-by-one typo that caused unnecessary reallocation.
93010
93011 2001-11-27  Jim Meyering  <meyering@lucent.com>
93012
93013         * lib/tempname.c: Merge with version from libc.
93014         * lib/regex.c: Likewise.
93015
93016         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93017         systems for which STDC_HEADERS is 0, it was not included, resulting in
93018         a warning about an integer-to-pointer conversion problem with getenv.
93019         Reported by Volker Borchert.
93020
93021 2001-11-26  Jim Meyering  <meyering@lucent.com>
93022
93023         * lib/gtod.h: Remove file.
93024         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93025         * lib/gettimeofday.c: Don't include gtod.h.
93026         (GTOD_init): Remove function.
93027         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93028         Suggestion from Volker Borchert.
93029
93030 2001-11-23  Jim Meyering  <meyering@lucent.com>
93031
93032         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93033         it.
93034         * lib/hash.c (struct hash_table): Define it here instead.
93035
93036 2001-11-22  Jim Meyering  <meyering@lucent.com>
93037
93038         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93039
93040 2001-11-20  Jim Meyering  <meyering@lucent.com>
93041
93042         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93043         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93044
93045 2001-11-19  Jim Meyering  <meyering@lucent.com>
93046
93047         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93048         directory.  Use "conftestXXXXXX" as the template.
93049         Suggestion from Paul Eggert.
93050
93051         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93052         immediately, so the test doesn't mistakenly hit the max-open-files
93053         limit.
93054
93055 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93056
93057         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93058         (TEMPORARIES): New macro.
93059         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93060         removes an artificial limitation (e.g. HP-UX 10.20, where
93061         TMP_MAX is 17576).
93062
93063 2001-11-18  Jim Meyering  <meyering@lucent.com>
93064
93065         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93066
93067 2001-11-18  Jim Meyering  <meyering@lucent.com>
93068
93069         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93070         on SunOS 4.
93071
93072         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93073         files will be created before anything else.
93074
93075 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93076
93077         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93078         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93079
93080 2001-11-17  Jim Meyering  <meyering@lucent.com>
93081
93082         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93083         Prompted by a report from Bob Proulx.
93084
93085         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93086         Instead, require UTILS_FUNC_MKSTEMP.
93087
93088 2001-11-17  Jim Meyering  <meyering@lucent.com>
93089
93090         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93091         Now, that's done as part of AC_FUNC_STRTOD.
93092
93093 2001-11-17  Jim Meyering  <meyering@lucent.com>
93094
93095         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93096         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93097         rather than group writable.  Patch by Juan F. Codagnone.
93098
93099         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93100         xrealloc, Instead, include "xalloc.h".
93101
93102         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93103         Remove explicit declarations of xmalloc, xrealloc,
93104         and xstrdup.  Instead, include "xalloc.h".
93105
93106         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93107         unlocked-io.h.
93108         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93109         Likewise.
93110         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93111
93112         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93113         Reported by Padraig Brady.
93114
93115         * lib/mkstemp.c: #undef mkstemp.
93116         Include config.h.
93117         (rpl_mkstemp): Rename from mkstemp.
93118         Protoize.
93119
93120 2001-11-16  Jim Meyering  <meyering@lucent.com>
93121
93122         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93123         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93124         determine the amount of total physical memory, use pstat_getstatic.
93125         HPUX-11 doesn't define _SC_PHYS_PAGES.
93126         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93127         If sysconf couldn't be used to determine the amount of available
93128         physical memory, use both pstat_getstatic and pstat_getdynamic.
93129         Based on a patch from Bob Proulx.
93130
93131 2001-11-10  Jim Meyering  <meyering@lucent.com>
93132
93133         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93134         (jm_PREREQ): Use it.
93135
93136 2001-11-09  Jim Meyering  <meyering@lucent.com>
93137
93138         * m4/jm-macros.m4: Require autoconf-2.52f.
93139         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93140         Use these AC_-prefixed names, not the AM_-prefixed ones.
93141
93142         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93143
93144 2001-11-05  Jim Meyering  <meyering@lucent.com>
93145
93146         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93147
93148 2001-11-04  Jim Meyering  <meyering@lucent.com>
93149
93150         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93151         $DEFS.
93152
93153 2001-11-03  Jim Meyering  <meyering@lucent.com>
93154
93155         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93156         of AC_DEFUN.
93157
93158         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93159         know the name of the variable in the macro definition.
93160
93161 2001-11-03  Jim Meyering  <meyering@lucent.com>
93162
93163         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93164         in argmatch_to_argument call.
93165
93166         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93167         argument.
93168
93169         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93170         e.g., a fault due to an attempt to free a NULL pointer.
93171
93172 2001-11-01  Jim Meyering  <meyering@lucent.com>
93173
93174         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93175         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93176
93177 2001-11-01  Jim Meyering  <meyering@lucent.com>
93178
93179         * lib/dirfd.c, lib/dirfd.h: New files.
93180         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93181
93182         * lib/hash.c (hash_print) [TESTING]: Clean up.
93183
93184 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93185
93186         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93187         to avoid a warning if -Wall.
93188
93189 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93190
93191         * README: New file
93192         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93193         (per RMS's instructions, this is now the canonical source)
93194         * lgpl/, gpl/: New directories.
93195
93196 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93197
93198         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93199
93200 2001-10-21  Jim Meyering  <meyering@lucent.com>
93201
93202         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93203         this code would end up calling gettext even in packages built
93204         with --disable-nls.
93205         * lib/getopt.c (_): Likewise.
93206         * lib/regex.c (_): Likewise.
93207
93208 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93209
93210         * m4/error.m4 (jm_PREREQ_ERROR):
93211         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93212         AC_FUNC_STRERROR_R does that.
93213         Check for strerror declaration.
93214
93215         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93216         are supposed to have them these days.
93217         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93218         Merge changes from latest Autoconf CVS.
93219         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93220         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93221         POSIX decided to standardize on the int flavor of strerror_r.
93222
93223 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93224
93225         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93226         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93227         Use strerror_r that is only a macro, even if it is not a function.
93228         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93229         (private_strerror): Use prototypes, not old-style function definition.
93230         (print_errno_message): New function.
93231         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93232         char*-flavored one.
93233         (error_tail, error, error_at_line): Use it.
93234
93235 2001-10-11  Jim Meyering  <meyering@lucent.com>
93236
93237         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93238         and quote_n (1, ... to avoid clobbering a buffer.
93239
93240 2001-10-05  Jim Meyering  <meyering@lucent.com>
93241
93242         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93243         hash-pjw.h.
93244         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93245         * lib/hash-pjw.h: New file.
93246
93247 2001-09-30  Jim Meyering  <meyering@lucent.com>
93248
93249         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93250         `struct fsstat' has the `f_fstypename' member.
93251         Use that to define FS_TYPE, which is now used to make
93252         the getfsstat link test tighter.
93253
93254 2001-09-30  Jim Meyering  <meyering@lucent.com>
93255
93256         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93257         Include <sys/ucred.h>, for Apple Darwin.
93258         Include sys/mount.h and sys/fs_types.h only if available.
93259         (FS_TYPE): Define.
93260         (read_filesystem_list): Use FS_TYPE.
93261
93262 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93263
93264         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93265         a boolean context.
93266
93267 2001-09-29  Jim Meyering  <meyering@lucent.com>
93268
93269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93270         [one-argument getmntent function]): Include stdio.h before mntent.h.
93271         SunOS 4.1.x needs it for the declaration of `FILE'.
93272         Patch by Volker Borchert.
93273
93274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93275         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93276         sys/fs_types.h, and make the link-test for getfsstat guard #include
93277         directives with appropriate #if HAVE_*_H tests so that we can
93278         detect getfsstat on Apple Darwin1.3.7 systems.
93279         Reported by Nelson Beebe.
93280         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93281
93282 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93283
93284         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93285         #defines strtoimax.  Also treat the other strto* functions
93286         like strtoimax.
93287
93288         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93289         Check for strtoul and strtoumax,
93290         as those declarations are made even in the signed case.
93291         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93292         Likewise, for strtol and strtoimax.
93293
93294 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93295
93296         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93297         #defines strtoimax.  Also treat the other strto* functions
93298         like strtoimax.
93299
93300         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93301         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93302         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93303
93304 2001-09-26  Jim Meyering  <meyering@lucent.com>
93305
93306         Most macros in unlocked-io.h had the wrong number of arguments.
93307         * lib/gen-uio: New script.
93308         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93309         * lib/unlocked-io.hin: Remove file.
93310         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93311         rather than trying to embed it here.
93312         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93313         Reported by Padraig Brady.
93314
93315 2001-09-25  Volker Borchert  <bt@teknon.de>
93316
93317         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93318         `result'.
93319
93320 2001-09-24  Jim Meyering  <meyering@lucent.com>
93321
93322         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93323
93324 2001-09-23  Jim Meyering  <meyering@lucent.com>
93325
93326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93327         instead of the mere test for existence of mntent.h.  The latter
93328         would get a false-positive on AIX 3.4 systems.
93329         In the outer getmntent if-block, don't die if neither of the getmntent
93330         tests succeeds.  Instead, just fall through and continue with the
93331         remaining tests.
93332
93333 2001-09-23  Jim Meyering  <meyering@lucent.com>
93334
93335         * lib/mountlist.c: Remove useless parentheses in #if directives.
93336         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93337         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93338
93339 2001-09-22  Jim Meyering  <meyering@lucent.com>
93340
93341         * m4/gettext.m4: New file.  From gettext.
93342         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93343         * m4/progtest.m4: Likewise
93344         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93345         * m4/glibc21.m4: Likewise.
93346
93347         * m4/libintl.m4: Remove.  No longer used.
93348
93349 2001-09-22  Jim Meyering  <meyering@lucent.com>
93350
93351         * lib/localcharset.c: Update from latest gettext.
93352         * lib/config.charset: Likewise.
93353
93354 2001-09-20  Jim Meyering  <meyering@lucent.com>
93355
93356         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93357         strtoimax.
93358         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93359         strtoumax.
93360
93361 2001-09-20  Jim Meyering  <meyering@lucent.com>
93362
93363         * lib/xstrtol.c (strtoimax): Guard declaration with
93364         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93365         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93366         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93367         (strtoumax): Likewise, for completeness (it wasn't necessary).
93368
93369 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93370
93371         * lib/strtoimax.c (HAVE_LONG_LONG):
93372         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93373         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93374         to work around bug in IBM C compiler.
93375
93376 2001-09-17  Jim Meyering  <meyering@lucent.com>
93377
93378         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93379         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93380         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93381         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93382         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93383         whenever the right hand side need not be expanded by the shell.
93384
93385 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93386
93387         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93388         library.  It's not correct, as some older glibcs are buggy.
93389         fnmatch wasn't fixed until glibc 2.2.
93390
93391         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93392         special shell magic here.
93393
93394 2001-09-16  Jim Meyering  <meyering@lucent.com>
93395
93396         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93397         * m4/jm-macros.m4: Require it.
93398
93399 2001-09-16  Jim Meyering  <meyering@lucent.com>
93400
93401         * lib/mkdir.c: New file.
93402
93403 2001-09-15  Jim Meyering  <meyering@lucent.com>
93404
93405         * m4/jm-macros.m4: Check for help2man.
93406
93407 2001-09-11  Jim Meyering  <meyering@lucent.com>
93408
93409         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93410         The body, by Paul Eggert, was moved here from configure.in.
93411         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93412
93413 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93414
93415         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93416         (jm_PREREQ): Use it.
93417
93418 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93419
93420         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93421         Use ssize_t, not int, to store result of readlink.
93422         Check for ssize_t overflow as well as size_t overflow,
93423         as POSIX says the result of readlink is implementation-defined
93424         when ssize_t overflows.
93425         Remove unnecessary cast to char*.
93426         Use free+malloc instead of realloc, as the storage doesn't need
93427         to be preserved and it's clearer and can be more efficient that way.
93428         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93429         * lib/xreadlink.h (xreadlink): Update prototype.
93430
93431 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93432
93433         * lib/xgetcwd.c: Revert some of the previous change; intead,
93434         fix the HAVE_GETCWD_NULL code to behave more like the
93435         !HAVE_GETCWD_NULL code used to.
93436
93437         Include "xalloc.h".
93438         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93439         invoke xalloc_die.
93440
93441 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93442
93443         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93444         sys/param.h, as pathmax.h includes them.
93445
93446 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93447
93448         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93449         (jm_PREREQ_XGETCWD): New macro.
93450
93451         * m4/getcwd.m4: New file.
93452
93453 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93454
93455         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93456         like the HAVE_GETCWD_NULL code.
93457         Include pathmax.h if not HAVE_GETCWD.
93458         Do not include xalloc.h.
93459         (INITIAL_BUFFER_SIZE): New symbol.
93460         Do not use xmalloc / xrealloc, since the caller is responsible for
93461         handling errors.  Preserve errno around `free' during failure.
93462         Do not overrun buffer when using getwd.
93463
93464 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93465
93466         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93467         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93468         getcwd (NULL, 0).
93469
93470 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93471
93472         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93473         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93474         spotted by Jim Meyering.
93475
93476 2001-09-03  Jim Meyering  <meyering@lucent.com>
93477
93478         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93479         failure.
93480
93481 2001-09-02  Jim Meyering  <meyering@lucent.com>
93482
93483         * lib/error.c: Update from GNU libc.
93484
93485 2001-09-01  Jim Meyering  <meyering@lucent.com>
93486
93487         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93488         Used by df.
93489
93490 2001-09-01  Jim Meyering  <meyering@lucent.com>
93491
93492         * lib/xreadlink.c: New file.
93493         * lib/xreadlink.h: New file.
93494         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93495         xreadlink.h.
93496
93497         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93498         doesn't conflict with sparc Solaris 7's definition in
93499         /usr/include/sys/int_types.h.
93500
93501         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93502         files.
93503         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93504         and strncasecmp as r-values.  Unixware didn't have declarations.
93505
93506 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93507
93508         * lib/xstrtol.h: Add copyright notice.
93509         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93510         LONGINT_INVALID_SUFFIX_CHAR.
93511
93512 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93513
93514         * lib/xstrtol.c (strtoimax): New decl.
93515
93516 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93517
93518         * lib/xgetcwd.c: Don't include pathmax.h.
93519         Include stdlib.h and unistd.h if available.
93520         Include xalloc.h.
93521         (xmalloc, xstrdup, free): Remove decls.
93522         (xgetcwd): Don't assume sizes fit in unsigned.
93523         Check for overflow when computing sizes.
93524         Simplify reallocation code.
93525
93526 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93527
93528         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93529         a directory's st_size can have an arbitrary value, so the old
93530         usage could waste an arbitrary amount of memory.  All uses
93531         changed.
93532         * lib/savedir.h: Update prototype.
93533
93534 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93535
93536         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93537
93538         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93539         old strtoimax.c.
93540
93541         Also, make the following further changes to make this file's
93542         configuration more similar to that of strtol.c:
93543         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93544         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93545         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93546         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93547         changed to signed values.
93548
93549         And make the following changes as well:
93550         Fix copyright notice, as 1999 was missing.
93551         (verify): New macro.
93552         (strtoimax): Check sizes at compile-time, not run-time.
93553         Prefer strtol to strtoll if both work.
93554         (main): Remove; it was not that useful and was a pain to maintain.
93555
93556         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93557
93558 2001-08-31  Jim Meyering  <meyering@lucent.com>
93559
93560         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93561         Use an initial, malloc'd, buffer of length 128 rather than
93562         a statically allocated one of length 1024.
93563
93564 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93565
93566         Simplify code, partly by assuming autoconf 2.52 semantics.
93567
93568         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93569
93570         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93571         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93572         All uses removed.
93573         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93574         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93575         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93576         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93577         jm_AC_HEADER_INTTYPES_H.
93578         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93579
93580         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93581
93582         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93583         Quote first arg of AC_DEFUN.
93584         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93585         since they are needed to parse the include file even if we need
93586         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93587         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93588         but with opposite signedness.
93589
93590 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93591
93592         Merge 'exclude' changes from tar 1.13.22.
93593         This fixes one or two unlikely storage allocation overflow bugs,
93594         but doesn't change user-visible behavior otherwise.
93595
93596 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93597
93598         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93599         (jm_PREREQ_EXCLUDE): New macro.
93600
93601 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93602
93603         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93604         tm to be declared.
93605
93606 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93607
93608         * lib/hash.c: Remove '2001' from copyright notice.
93609
93610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93611
93612         * lib/full-write.h: New file.
93613         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93614         * lib/full-write.c: Correct credits, as cccp.c no longer
93615         exists and anyway it was so heavily changed from the old cccp
93616         code as to be unrecognizable.  Include full-write.h.
93617         (full_write): Return size_t, with short writes meaning failure.
93618         All callers changed.  This fixes a bug with large buffers
93619         on 64-bit hosts.
93620         * lib/utime.c: Include full-write.h.
93621
93622 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93623
93624         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93625         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93626         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93627         Include if available.
93628         (<xalloc.h>): Include
93629         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93630         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93631         collide with FNM macros.
93632         (struct patopts): New struct.
93633         (struct exclude): Use it, as exclude patterns now come with options.
93634         (new_exclude): Support above changes.
93635         (new_exclude, add_exclude_file):
93636         Initial size must now be a power of two to simplify overflow checking.
93637         (free_exclude, fnmatch_no_wildcards): New function.
93638         (excluded_filename): No longer requires options arg, as the options
93639         are determined by add_exclude.  Now returns bool, not int.
93640         (excluded_filename, add_exclude):
93641         Add support for the fancy new exclusion options.
93642         (add_exclude, add_exclude_file): Now takes int options arg.
93643         Check for arithmetic overflow when computing sizes.
93644         (add_exclude_file): xrealloc might modify errno, so don't
93645         realloc until after errno might be used.
93646
93647         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93648         New macros.
93649         (free_exclude): New decl.
93650         (add_exclude, add_exclude_file): Now takes int options arg.
93651         (excluded_filename): No longer requires options arg, as the options
93652         are determined by add_exclude.  Now returns bool, not int.
93653
93654 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93655
93656         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93657
93658 2001-08-27  Jim Meyering  <meyering@lucent.com>
93659
93660         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93661
93662         * lib/version-etc.c (N_): Remove definition.
93663         Revert most of last change.
93664         Instead, simply don't mark the `Copyright...' string for translation.
93665         Based on advice from Paul Eggert.
93666
93667         * lib/strtoxmax.c: Tweak comment.
93668
93669 2001-08-26  Jim Meyering  <meyering@lucent.com>
93670
93671         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93672
93673         * m4/xstrtoimax.m4: New file.
93674         * m4/xstrtoumax.m4: Add comments explaining why we
93675         AC_REPLACE_FUNCS(strtol).
93676
93677 2001-08-26  Jim Meyering  <meyering@lucent.com>
93678
93679         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93680         of copyright with `%s' so translators don't get an untranslated
93681         message in 2002.
93682         (COPYRIGHT_YEAR): Define.
93683         (version_etc): Use fprintf rather than fputs.
93684         Suggestion from Ulrich Drepper.
93685
93686         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93687
93688         * lib/strtoll.c: New file, from GNU libc.
93689         * lib/xstrtoimax.c: New file.
93690
93691         * lib/xstrtol.h: Add xstrtoimax.
93692         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93693         * lib/strtoimax.c: New file.  Likewise, but first define
93694         STRTOUXMAX_SIGNED.
93695
93696         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93697         ...
93698         * lib/strtoxmax.c: ... then renamed to this.
93699
93700 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93701
93702         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93703         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93704         (jm_AC_TYPE_INTMAX_T): New macro.
93705         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93706
93707         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93708
93709         * m4/longlong.m4: Renamed from ulonglong.m4.
93710         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93711         * m4/uintmax_t.m4: Removed.
93712
93713 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93714
93715         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93716         Port to Solaris 8, where 'sed' requires a space after the 'r'
93717         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93718         Redirect output to $tmp just once.
93719
93720 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93721
93722         * lib/addext.c (<errno.h>): Include.
93723         (errno): Declare if not defined.
93724         (addext): Work correctly when pathconf returns -1 and leaves
93725         errno alone because there is no limit.  Also, work even if
93726         pathconf returns a value greater than SIZE_MAX.
93727
93728 2001-08-12  Jim Meyering  <meyering@lucent.com>
93729
93730         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93731         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93732         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93733         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93734         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93735         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93736         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93737         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93738         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93739         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93740         utime.m4, utimes.m4, xstrtoumax.m4:
93741         Quote the first argument in each use of AC_DEFUN.
93742
93743 2001-08-12  Jim Meyering  <meyering@lucent.com>
93744
93745         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93746         Simply `return getcwd (NULL, 0);'.
93747         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93748         Use 1300 as initial value for length, not PATH_MAX.
93749
93750         * lib/pathmax.h: Clean up cpp syntax.
93751
93752 2001-08-12  Jim Meyering  <meyering@lucent.com>
93753
93754         * lib/gettimeofday.c: New file.
93755         * lib/gtod.h: New file.
93756         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93757
93758 2001-08-05  Jim Meyering  <meyering@lucent.com>
93759
93760         * m4/jm-macros.m4: Require autoconf-2.52.
93761
93762 2001-08-04  Jim Meyering  <meyering@lucent.com>
93763
93764         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93765         stmt, to get in sync with glibc.
93766
93767 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93768
93769         The following changes are from gettext 0.10.39 as maintained by
93770         Bruno Haible.
93771
93772         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93773         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93774         with inverted sense.  All uses changed.
93775
93776         * lib/mbswidth.c: Don't include <limits.h>.
93777         Include <stdlib.h> and <string.h> unconditionally.
93778         (iswcntrl, mbsinit, ISCNTRL): New macros.
93779         (mbsnwidth): Use K&R style function declarations.
93780         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93781         can optimize it when MB_CUR_MAX == 1.
93782         The width of control characters is zero, not 1.
93783
93784 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93785
93786         The following changes are from gettext 0.10.39 as maintained by
93787         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93788
93789         * m4/codeset.m4: Upgrade to serial AM1.
93790         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93791         all uses changed.  Quote first arg of AC_DEFUN.
93792         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93793
93794         * m4/iconv.m4: Upgrade to serial AM2.
93795         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93796         Add --with-libconv-prefix.
93797         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93798         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93799         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93800         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93801         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93802
93803         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93804         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93805         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93806         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93807         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93808         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93809         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93810         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93811         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93812
93813         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93814         string.h any more.
93815
93816         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93817         not the default value.
93818
93819         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93820         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93821         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93822         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93823         Also check for iswcntrl, used for wcwidth fallback.
93824         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93825         to Autoconf 2.13.
93826
93827 2001-08-03  Jim Meyering  <meyering@lucent.com>
93828
93829         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93830         as it was in the original.  Reported by Paul Eggert.
93831
93832 2001-07-16  Jim Meyering  <meyering@lucent.com>
93833
93834         * m4/gettimeofday.m4: New file.
93835         Prompted by a report from Bernhard Baehr.
93836
93837 2001-07-15  Jim Meyering  <meyering@lucent.com>
93838
93839         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93840         stuff. Now it's in ../Makefile.cfg.
93841
93842 2001-07-15  Jim Meyering  <meyering@lucent.com>
93843
93844         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93845         (BUILT_SOURCES): Add unlocked-io.h.
93846         (io_functions): Define.
93847         (unlocked-io.h): New rule.
93848         (DISTCLEANFILES): Add unlocked-io.h.
93849         (all-local): Depend on unlocked-io.h, to ensure it is created.
93850
93851         * lib/unlocked-io.hin: New file
93852
93853         * lib/regex.c: Update from glibc.
93854
93855 2001-07-05  Jim Meyering  <meyering@lucent.com>
93856
93857         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93858         recommendation.
93859         (libfetish_a_SOURCES): Put all .h files here instead.
93860         Remove a thus-exposed (better checks in automake) duplicate and
93861         two unnecessary .h files.
93862
93863 2001-07-04  Jim Meyering  <meyering@lucent.com>
93864
93865         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93866         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93867         distcheck failure.
93868
93869 2001-07-02  Jim Meyering  <meyering@lucent.com>
93870
93871         The following changes were prompted by suggestions from Bruno Haible.
93872
93873         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93874         is now generated.
93875         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93876         definition of EXTRA_DIST.
93877         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93878         ensure that the generated file is created/updated whenever the list
93879         of $(unlocked_functions) is changed.
93880         (jm-glibc-io.m4): New rule.
93881         (unlocked-io.h): New rule -- currently unused.
93882
93883 2001-06-24  Jim Meyering  <meyering@lucent.com>
93884
93885         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93886         unmatched right bracket, rather than kludging it with an extra,
93887         falsely-matching quote in a comment.  Patch by Akim Demaille.
93888
93889 2001-06-11  Jim Meyering  <meyering@lucent.com>
93890
93891         * lib/regex.c: Update from GNU libc.
93892
93893 2001-05-27  Jim Meyering  <meyering@lucent.com>
93894
93895         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93896         Check for ut_type in struct utmp.
93897
93898 2001-05-27  Jim Meyering  <meyering@lucent.com>
93899
93900         * lib/readutmp.h (UT_TYPE): Define.
93901
93902 2001-05-24  Jim Meyering  <meyering@lucent.com>
93903
93904         * lib/argmatch.c: Include "quote.h".
93905         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93906         quote function.  Reported by Göran Uddeborg.
93907
93908 2001-05-22  Jim Meyering  <meyering@lucent.com>
93909
93910         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93911         now that we use the package-supplied version unconditionally.
93912         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93913
93914 2001-05-21  Jim Meyering  <meyering@lucent.com>
93915
93916         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93917         shell syntax errors.
93918
93919 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93920
93921         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93922
93923 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93924
93925         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93926         Don't bother to check library strftime, since
93927         we'll be using our own my_strftime function anyway.
93928         Define my_strftime instead of strftime.
93929
93930 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93931
93932         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93933         which is not yet declared.
93934
93935 2001-05-15  Jim Meyering  <meyering@lucent.com>
93936
93937         * m4/regex.m4: Use proper quoting so brackets appear in the test
93938         program.
93939         Reported by, and with help from, Bruno Haible.
93940
93941 2001-05-13  Jim Meyering  <meyering@lucent.com>
93942
93943         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93944         undefined.
93945
93946 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93947
93948         dirname code cleanup.  base_name now behaves more compatibly
93949         with POSIX basename when given file names that have trailing
93950         slashes, and similarly for dir_name.  Add new primitives
93951         base_len and dir_len.  Put the directory-name-related decls
93952         into dirname.h.
93953
93954         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93955         * lib/backupfile.c (base_name): Likewise.
93956         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93957         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93958         * lib/makepath.c (strip_trailing_slashes): Likewise.
93959         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93960         ISSLASH): Likewise.
93961         * lib/rename.c (strip_trailing_slashes): Likewise.
93962         * lib/same.c (base_name): Likewise.
93963         * lib/stripslash.c (ISSLASH): Likewise.
93964
93965         * lib/addext.c: Include <dirname.h> after size_t is defined.
93966         * lib/backupfile.c: Likewise.
93967
93968         * lib/addext.c (addext): Use base_len to trim redundant
93969         trailing slashes instead of doing it ourselves.
93970         But do not trim the last slash if it is not redundant.
93971
93972         * lib/backupfile.c (find_backup_file_name,
93973         max_backup_version): Use base_len instead of rolling it ourselves.
93974         Handle the case of "" and (on DOS) "C:" correctly.
93975
93976         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93977         needed. Include <string.h>, <dirname.h>.
93978         (base_name): Allow file names ending in slashes, other than names
93979         that are all slashes.  In this case, return the basename followed
93980         by the slashes.  This is more general, and can be used in places
93981         where the original base_name purposely had an assertion failure.
93982         (base_len): New function.
93983
93984         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93985         Do not include <assert.h>; no longer needed.
93986         Include xalloc.h.
93987         (memrchr): Remove decl.
93988         (dir_name_r): Remove.
93989         (dir_len): Renamed from dirlen.  All callers changed.
93990         Rewrite in terms of base_name, for simplicity and consistency.
93991         (dir_name): Never return NULL.  All callers changed.
93992         Do not include <stdlib.h> in test program; no longer needed.
93993         return 0; is fine for test program.
93994
93995         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93996         New macros.
93997         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93998
93999         * lib/path-concat.c (path_concat): Use base_len to compute
94000         base length, not strlen; this means we cannot rely on memcpy
94001         to null-terminate.
94002
94003         * lib/same.c (STREQ): Remove.
94004         (same_name): Handle the case where the basename ends in trailing '/'.
94005
94006         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94007         a slash was stripped.  Do not strip the last slash after a
94008         file system prefix.
94009
94010 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94011
94012         * lib/Makefile.am (libfetish_a_SOURCES):
94013         Add strftime.c, since we now compile it on all hosts.
94014
94015         * lib/strftime.c (my_strftime):
94016         Define to nstrftime if emacs, but only if my_strftime is not defined.
94017         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94018         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94019         Add one more extra argument: a nanoseconds value.
94020         All uses changed.
94021         (ns): New macro.
94022         (my_strftime function): Add %N format.
94023         (emacs_strftimeu): Renamed from emacs_strftime,
94024         with extra ut argument.
94025
94026 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94027
94028         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94029
94030 2001-04-21  Jim Meyering  <meyering@lucent.com>
94031
94032         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94033         doesn't interfere.
94034
94035 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94036
94037         * m4/ftruncate.m4: Check for chsize.
94038         Link with ftruncate.o unconditionally if ftruncate is missing.
94039         This was required when cross-compiling to i586-mingw32msvc.
94040
94041 2001-04-08  Jim Meyering  <meyering@lucent.com>
94042
94043         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94044         recomputed; that's necessary when the offset spans a DST transition.
94045         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94046
94047 2001-04-02  Jim Meyering  <meyering@lucent.com>
94048
94049         * lib/regex.h, regex.c: Update from GNU libc.
94050
94051 2001-03-24  Jim Meyering  <meyering@lucent.com>
94052
94053         * m4/jm-macros.m4: Require autoconf-2.49d.
94054
94055 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94056
94057         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94058
94059 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94060
94061         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94062
94063 2001-03-17  Jim Meyering  <meyering@lucent.com>
94064
94065         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94066         now that the version in autoconf is equivalent.
94067         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94068
94069         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94070         Suggestion from Akim Demaille.
94071
94072         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94073         (jm_PREREQ_TEMPNAME): New function.
94074
94075 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94076
94077         * lib/tempname.c (uint64_t): Define to uintmax_t if
94078         not defined, and if UINT64_MAX is not defined.
94079         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94080         Reported by John David Anglin.
94081
94082 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94083
94084         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94085         resolve alias if codeset is empty.
94086         * lib/config.charset (BeOS): Use wildcard syntax.
94087
94088 2001-03-13  Jim Meyering  <meyering@lucent.com>
94089
94090         * lib/path-concat.c (path_concat)
94091         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94092         concatenating e.g., `C:' and `foo'.
94093         From Bruno Haible.
94094
94095 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94096
94097         * lib/localcharset.c (locale_charset): Don't use
94098         setlocale(LC_CTYPE,NULL). Don't return NULL.
94099         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94100
94101 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94102
94103         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94104         support for DOS/DJGPP.
94105
94106 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94107
94108         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94109         lacks mkstemp.  Compile our own tempname.c if we compile our own
94110         mkstemp.c, as mkstemp relies on tempname.
94111
94112 2001-03-01  Jim Meyering  <meyering@lucent.com>
94113
94114         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94115         AH_VERBATIM really does output its argument verbatim.
94116
94117 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94118
94119         * lib/Makefile.am (libfetish_a_SOURCES):
94120         Add dup-safer.c, fopen-safer.c.
94121         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94122
94123         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94124         * lib/unistd-safer.h: New files.
94125
94126 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94127
94128         The mkstemp replacement is taken from glibc 2.2.2, with some
94129         portability fixes for use outside glibc, as follows:
94130
94131         * lib/tempname.c (struct_stat64): New macro.
94132         (direxists, __gen_tempname): Use it.
94133         This avoids a portability problem with Solaris 8.
94134
94135         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94136         (<stddef.h>, <stdint.h>, <string.h>):
94137         Include only if STDC_HEADERS || _LIBC.
94138         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94139         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94140         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94141         (__set_errno): Define this macro if <errno.h> doesn't.
94142         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94143         Define these macros if <stdio.h> doesn't.
94144         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94145         Define these macros if <sys/stat.h>
94146         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94147         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94148         __xstat64): Define if not _LIBC.
94149         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94150         (__gen_tempname): Invoke gettimeofday only if
94151         HAVE_GETTIMEOFDAY || _LIBC;
94152         otherwise, fall back on plain "time".
94153         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94154
94155         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94156
94157         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94158
94159 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94160
94161         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94162
94163 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94164
94165         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94166         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94167         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94168         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94169
94170 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94171
94172         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94173         Remove workaround macros for hosts that have mbrtowc but not
94174         mbstate_t, as we now insist on proper declarations for both
94175         before using mbrtowc.
94176
94177 2001-02-17  Jim Meyering  <meyering@lucent.com>
94178
94179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94180         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94181         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94182         UnixWare 7.1.1.
94183
94184         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94185         rather than AC_CACHE_VAL.
94186
94187 2001-02-17  Jim Meyering  <meyering@lucent.com>
94188
94189         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94190         around included file name.
94191
94192         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94193
94194         * lib/strftime.c: Update from GNU libc (the only changes were to
94195         comments).
94196
94197 2001-02-17  Jim Meyering  <meyering@lucent.com>
94198
94199         * lib/regex.c: Update from libc.
94200
94201 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94202
94203         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94204         clash.
94205
94206 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94207
94208         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94209         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94210         Reported by Mark Hounschell via Paul Eggert.
94211
94212 2001-02-07  Jim Meyering  <meyering@lucent.com>
94213
94214         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94215
94216 2001-02-05  Jim Meyering  <meyering@lucent.com>
94217
94218         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94219         it includes the patch required for `large file' support with at least
94220         HP-UX's 10.20 /bin/cc.
94221
94222 2001-02-03  Jim Meyering  <meyering@lucent.com>
94223
94224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94225         AS_IF, now that it works once again (mysteriously).
94226         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94227
94228 2001-01-30  Jim Meyering  <meyering@lucent.com>
94229
94230         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94231         * m4/chown.m4: Rename conftestchown to conftest.chown.
94232         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94233         s/conftestdir2/conftest.d2/.
94234         * m4/utimes.m4: s/conftestdata/conftest.data/
94235         Inspired by Pavel Roskin's change in autoconf.
94236
94237 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94238
94239         * lib/config.charset: Update for FreeBSD 4.2.
94240
94241 2001-01-27  Jim Meyering  <meyering@lucent.com>
94242
94243         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94244         a use of AS_IF.
94245         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94246
94247 2001-01-26  Jim Meyering  <meyering@lucent.com>
94248
94249         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94250         quotearg.c includes it.
94251
94252 2001-01-26  Jim Meyering  <meyering@lucent.com>
94253
94254         * lib/quotearg.c: Include stddef.h.
94255         * lib/quote.c: Include stddef.h.
94256         Reported by Axel Kittenberger.
94257
94258         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94259         line in double quotes so that it evokes a better diagnostic.
94260         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94261         Reported by Axel Kittenberger.
94262
94263 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94264
94265         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94266         as if it was a `charset'.
94267
94268 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94269
94270         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94271         has const.
94272
94273 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94274
94275         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94276         to avoid a warning.  Add back 'const' to inptr.
94277
94278 2001-01-20  Jim Meyering  <meyering@lucent.com>
94279
94280         Be sure that headers are checked before used in code compiled
94281         for the type checks.
94282         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94283         In place of that, invoke jm_CHECK_ALL_TYPES.
94284         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94285         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94286         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94287         The check for ssize_t was mistakenly run before the test for unistd.h.
94288
94289         The configure-time check for stdbool.h was missing.
94290         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94291         (jm_PREREQ_HASH): New function.
94292
94293 2001-01-17  Jim Meyering  <meyering@lucent.com>
94294
94295         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94296         for autoconf-2.49c.
94297         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94298
94299 2001-01-16  Jim Meyering  <meyering@lucent.com>
94300
94301         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94302         From Bruno Haible.
94303
94304 2001-01-14  Jim Meyering  <meyering@lucent.com>
94305
94306         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94307         foo and bar.  Create conftestdir/ in the script, not in the C code.
94308         Remove directories in the script, not in the C code.
94309         Remove conftestdir{,2} before trying to create the directory.
94310         Make the entire configure script fail if the mkdir fails.
94311
94312 2001-01-14  Jim Meyering  <meyering@lucent.com>
94313
94314         * lib/rename.c: New file.  From Volker Borchert.
94315         Include stdlib.h, string.h or strings.h, and xalloc.h.
94316         Use strip_trailing_slashes rather than open-coding it.
94317
94318 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94319
94320         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94321
94322 2001-01-03  Jim Meyering  <meyering@lucent.com>
94323
94324         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94325         of local `inptr' to avoid warning with some system declarations of
94326         iconv.
94327
94328 2001-01-02  Volker Borchert  <bt@teknon.de>
94329
94330         * m4/rename.m4: New file.
94331         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94332
94333 2001-01-01  Jim Meyering  <meyering@lucent.com>
94334
94335         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94336         even on systems with utmpx.h.  It's necessary for the declaration of
94337         utmp's ut_user member.  Reported by Andreas Jaeger.
94338
94339         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94340         available. They are required for the declarations of getgrgid and
94341         getpwuid resp.
94342         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94343         Reported by Andreas Jaeger.
94344
94345 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94346
94347         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94348         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94349         so `make install' also works in VPATH builds.
94350
94351 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94352
94353         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94354         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94355         can be used in subdirectories.
94356
94357 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94358
94359         * lib/modechange.c: Do not assume that mode_t uses the
94360         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94361         the other-execute bit of FOO even if S_IXOTH != 1.
94362
94363         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94364         WOTH, XOTH, ALLM): New macros.
94365         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94366          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94367         Use them.
94368         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94369         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94370         (mode_compile):
94371         No need to use uintmax_t; unsigned long is long enough.
94372         Don't bother to get suffix since we don't use it.
94373
94374 2000-12-26  Jim Meyering  <meyering@lucent.com>
94375
94376         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94377         better with autoheader.
94378
94379 2000-12-24  Jim Meyering  <meyering@lucent.com>
94380
94381         * lib/hash.c (is_prime): Return explicit boolean values.
94382         (hash_get_first): Return NULL to appease Irix5.6's 89.
94383         Reported by Nelson Beebe.
94384
94385 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94386
94387         * lib/localcharset.c (locale_charset): Add support for Win32.
94388
94389 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94390
94391         * lib/physmem.h, lib/physmem.c: New files.
94392
94393         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94394         (noinst_HEADERS): Add physmem.h.
94395
94396         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94397         't' for compatibility with Solaris 8 sort.
94398
94399 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94400
94401         * lib/config.charset: Add support for BeOS.
94402
94403 2000-12-17  Jim Meyering  <meyering@lucent.com>
94404
94405         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94406         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94407
94408 2000-12-16  Jim Meyering  <meyering@lucent.com>
94409
94410         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94411         N and M) would have treated it like `chown N:N FILE'.
94412
94413         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94414
94415 2000-12-16  Jim Meyering  <meyering@lucent.com>
94416
94417         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94418         SHELLS_FILE to a file name that's useful on djgpp systems.
94419         Include stdlib.h.
94420         (ADDITIONAL_DEFAULT_SHELLS): Define.
94421         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94422         Based mostly on a patch from Prashant TR.
94423
94424 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94425
94426         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94427         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94428         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94429
94430 2000-12-08  Andreas Schwab  <schwab@suse.de>
94431
94432         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94433         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94434
94435 2000-12-07  Jim Meyering  <meyering@lucent.com>
94436
94437         * lib/stripslash.c (ISSLASH): Define.
94438         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94439         `/'.
94440         From Prashant TR.
94441
94442         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94443         (dir_name_r): Declare this function as static.
94444         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94445         manifest itself on a name containing a mix of slashes and
94446         backslashes.
94447         Make this function work with names starting with a DOS-style
94448         drive letter and colon prefix.
94449         (dir_name): Append `.' if necessary.
94450         Based mostly on patches from Prashant TR and Eli Zaretskii.
94451
94452         * lib/dirname.h (dir_name_r): Remove prototype.
94453
94454 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94455
94456         * m4/off_t-format.m4: Remove this file.
94457         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94458
94459 2000-12-06  Jim Meyering  <meyering@lucent.com>
94460
94461         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94462         replacement strtoull, we may well need the replacement strtoul, too.
94463         Check for declarations of strtoul and strtoull.
94464         Check for strtol.  Mainly as a cue to cause automake to include
94465         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94466         Check for limits.h -- strtol.c needs it.
94467
94468 2000-12-05  Jim Meyering  <meyering@lucent.com>
94469
94470         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94471
94472 2000-12-04  Jim Meyering  <meyering@lucent.com>
94473
94474         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94475         Also include memory.h, stdlib.h, unistd.h if appropriate.
94476         Reported by Andreas Jaeger (conflicting declaration of malloc).
94477
94478 2000-12-02  Jim Meyering  <meyering@lucent.com>
94479
94480         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94481         * m4/jm-macros.m4 (jm_MACROS): require it.
94482
94483 2000-12-02  Jim Meyering  <meyering@lucent.com>
94484
94485         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94486
94487 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94488
94489         * lib/memrchr.c: Include <config.h> before any system include file.
94490
94491 2000-11-30  Jim Meyering  <meyering@lucent.com>
94492
94493         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94494
94495 2000-11-30  Jim Meyering  <meyering@lucent.com>
94496
94497         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94498
94499 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94500
94501         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94502
94503 2000-11-26  Jim Meyering  <meyering@lucent.com>
94504
94505         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94506
94507 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94508
94509         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94510         size of (size_t) -1; it's not portable.
94511
94512 2000-11-17  Jim Meyering  <meyering@lucent.com>
94513
94514         * lib/strstr.c: Update from GNU libc.
94515
94516 2000-11-17  Akim Demaille  <akim@epita.fr>
94517
94518         * lib/obstack.h: Formatting changes.
94519         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94520         prevent type checking.
94521         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94522         cast the value to (void *): assigning a `foo *' to a `void *'
94523         variable is valid.
94524         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94525
94526 2000-11-16  Jim Meyering  <meyering@lucent.com>
94527
94528         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94529
94530 2000-11-11  Jim Meyering  <meyering@lucent.com>
94531
94532         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94533
94534 2000-11-10  Jim Meyering  <meyering@lucent.com>
94535
94536         * lib/obstack.h: Update from GNU libc.
94537         * lib/obstack.c: Likewise.
94538
94539 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94540
94541         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94542
94543 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94544
94545         * lib/getusershell.c (setusershell): Use rewind rather than
94546         fseek/fseeko, to avoid configuration hassles with fseeko.
94547         Don't bother opening SHELLS_FILE if shellstream is NULL;
94548         it's not necessary.
94549
94550 2000-11-05  Jim Meyering  <meyering@lucent.com>
94551
94552         * lib/makepath.h (make_dir): Declare.
94553         * lib/makepath.c (make_dir): Remove `static' attribute.
94554         Tweak a comment.
94555
94556 2000-11-04  Jim Meyering  <meyering@lucent.com>
94557
94558         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94559
94560 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94561
94562         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94563         last one in a bucket, advance to the next bucket.
94564
94565 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94566
94567         * lib/fnmatch.c: Do not comment out all the code if we are using
94568         the GNU C library, because in some cases we are replacing buggy
94569         code in the GNU C library itself.
94570
94571 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94572
94573         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94574         (regex_compile): Catch bogus \(\1\).
94575
94576 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94577
94578         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94579         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94580         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94581
94582 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94583
94584         * lib/error.h, getline.h, modechange.h:
94585         Remove "2000" from Copyright line, as the file hasn't been
94586         changed this year other than in the copyright notice.
94587
94588         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94589         was changed this year.
94590
94591 2000-10-29  Jim Meyering  <meyering@lucent.com>
94592
94593         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94594         renaming.
94595         * m4/ls-mntd-fs.m4: Likewise
94596
94597 2000-10-29  Jim Meyering  <meyering@lucent.com>
94598
94599         * lib/xstat.in: Fix grammar in comment.
94600
94601 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94602
94603         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94604         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94605         doesn't define __restrict_arr.
94606
94607 2000-10-28  Jim Meyering  <meyering@lucent.com>
94608
94609         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94610         (jm_PREREQ_MEMCHR): New function.
94611
94612 2000-10-28  Jim Meyering  <meyering@lucent.com>
94613
94614         * lib/memchr.c: Update from libc.
94615         Adjust for portability:
94616         [HAVE_STDLIB_H]: Include stdlib.h.
94617         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94618         Undef __memchr, too.
94619         [!weak_alias]: Define __memchr to memchr.
94620
94621         * lib/regex.c: Update from libc.
94622         * lib/regex.h: Likewise.
94623         * lib/getopt1.c: Likewise.
94624         * lib/memcmp.c: Likewise.
94625
94626         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94627         Avoid using fseek, when possible -- it's broken by design.
94628         Patch by Ulrich Drepper.
94629
94630 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94631
94632         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94633         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94634         Giving in to popular pressure to shut up the compiler with casts.
94635
94636 2000-10-26  Jim Meyering  <meyering@lucent.com>
94637
94638         * lib/strftime.c: Update from libc.
94639
94640 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94641
94642         * regex.c: More `unsigned char' -> `re_char' changes.
94643         Also change several `int' into `re_wchar_t'.
94644         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94645         (PUSH_FAILURE_POINTER): Don't cast any more.
94646         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94647         We want GCC to complain, since this piece of code makes
94648         re_match non-reentrant, which *should* be fixed.
94649         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94650         (EXTEND_BUFFER): Use RETALLOC.
94651         (SET_LIST_BIT): Don't cast.
94652         (re_wchar_t): New type.
94653         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94654         that those two functions will always properly return.
94655         (IMMEDIATE_QUIT_CHECK): Cast to void.
94656         (analyse_first): Use recursion rather than an explicit stack.
94657         (re_compile_fastmap): Can't fail anymore.
94658         (re_search_2): Don't check re_compile_fastmap for failure.
94659         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94660         Now also sets the new value (passed in a new argument).
94661         (re_match_2_internal): Use it.
94662         Also, use a new var `reg' of type size_t when looping through regs
94663         rather than reuse the inappropriate `mcnt'.
94664
94665 2000-10-25  Jim Meyering  <meyering@lucent.com>
94666
94667         * lib/obstack.c: Update from libc.
94668
94669 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94670
94671         * regex.c (regex_compile): Change the way of handling a range from
94672         a char less than 256 to a char not less than 256.
94673
94674 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94675
94676         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94677         NT-Emacs only.
94678         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94679         so that re_search functions only quit when callers expect them to.
94680
94681 2000-10-23  Jim Meyering  <meyering@lucent.com>
94682
94683         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94684         wrong.  That set_locale call must not have any side effects.
94685         From Paul Eggert.
94686
94687 2000-10-22  Jim Meyering  <meyering@lucent.com>
94688
94689         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94690         [CYCLIC]: Remove now-unused definition.
94691
94692         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94693         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94694         Suggestion from Ulrich Drepper.
94695
94696 2000-10-21  Jim Meyering  <meyering@lucent.com>
94697
94698         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94699         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94700         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94701
94702 2000-10-21  Jim Meyering  <meyering@lucent.com>
94703
94704         * lib/dirname.c (memrchr): Declare if necessary.
94705         (dir_name): Remove the restriction that there be no
94706         trailing slashes.  Now, this code skips past them, effectively
94707         ignoring them.
94708         [TEST_DIRNAME] (main): New unit tests.
94709
94710         * lib/memrchr.c: New file from GNU libc.
94711         Undef __memrchr, too.
94712         [!weak_alias]: Define __memrchr to memrchr.
94713         Guard weak_alias use with `#ifdef weak_alias'.
94714
94715 2000-10-21  Jim Meyering  <meyering@lucent.com>
94716
94717         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94718         (dir_name): Use dir_name_r.
94719         * lib/dirname.h (dir_name_r): Declare it.
94720
94721 2000-10-17  Jim Meyering  <meyering@lucent.com>
94722
94723         * lib/quote.h (PARAMS): Define and use.
94724         Reported by Akim Demaille.
94725
94726         * lib/getopt.c: Update from libc.
94727
94728 2000-10-16  Jim Meyering  <meyering@lucent.com>
94729
94730         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94731         setlocale.
94732         From Jan Fedak.
94733
94734 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94735
94736         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94737
94738 2000-09-25  Jim Meyering  <meyering@lucent.com>
94739
94740         * lib/md5.h (rol): Define (from GnuPG).
94741
94742         * lib/sha.c: Give credit (GnuPG) where due.
94743         (M): Use rol rather than open-coding it.
94744         Add a FIXME comment.
94745
94746 2000-09-21  Jim Meyering  <meyering@lucent.com>
94747
94748         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94749         Reported by Michael Stone.
94750
94751 2000-09-20  Jim Meyering  <meyering@lucent.com>
94752
94753         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94754         (noinst_HEADERS): Add sha.h.
94755         Based on code from Scott G. Miller and from GnuPG.
94756
94757 2000-09-18  Jim Meyering  <meyering@lucent.com>
94758
94759         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94760         LIBS. Otherwise, everyone ends up linking with -lelf for some
94761         configurations.
94762         Reported by Mike Stone.
94763
94764 2000-09-15  Jim Meyering  <meyering@lucent.com>
94765
94766         * lib/regex.c: Update from libc.
94767
94768 2000-09-10  Jim Meyering  <meyering@lucent.com>
94769
94770         * lib/getopt.c (_getopt_internal): Update from glibc.
94771
94772 2000-09-09  Jim Meyering  <meyering@lucent.com>
94773
94774         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94775         think it should be used as a general replacement for isascii.
94776         * lib/fnmatch.c: Likewise.
94777         * lib/mbswidth.c: Likewise
94778         * lib/regex.c: Likewise.
94779
94780         Don't use atoi.
94781         * lib/userspec.c: Include sys/param.h and limits.h.
94782         Include xstrtol.h.
94783         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94784         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94785         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94786         UID, GID.  Check range.
94787
94788 2000-09-06  Jim Meyering  <meyering@lucent.com>
94789
94790         * lib/getopt.c (_getopt_internal): Update from glibc.
94791
94792 2000-08-30  Jim Meyering  <meyering@lucent.com>
94793
94794         * lib/strftime.c: Merge in changes from GNU libc.
94795
94796 2000-08-26  Jim Meyering  <meyering@lucent.com>
94797
94798         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94799         * m4/fpending.m4: New file.
94800
94801 2000-08-26  Jim Meyering  <meyering@lucent.com>
94802
94803         * lib/closeout.c: Include "__fpending.h".
94804         (close_stdout_status): Return right away if there's nothing to flush.
94805
94806         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94807         * lib/__fpending.c: New file.
94808         * lib/__fpending.h: New file.
94809
94810 2000-08-20  Jim Meyering  <meyering@lucent.com>
94811
94812         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94813         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94814         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94815
94816 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94817
94818         Improve fileutils installation on systems where running
94819         programs (like install) can't be unlinked.
94820         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94821         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94822
94823 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94824
94825         Standardize on "memory exhausted" instead of "Memory exhausted"
94826         or "virtual memory exhausted".
94827         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94828         "virtual memory exhausted".
94829         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94830         our own message.
94831         * lib/userspec.c (parse_user_spec): Likewise.
94832         * lib/bumpalloc.h: comment fix
94833         * lib/same.c, userspec.c: Include xalloc.h.
94834
94835         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94836         not char *const and pointing to a constant array.
94837         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94838         (xrealloc): Comment fix.
94839
94840         * lib/userspec.c (parse_user_spec):
94841         Don't translate a message until just before returning,
94842         to avoid unnecessary translation.
94843
94844 2000-08-07  Jim Meyering  <meyering@lucent.com>
94845
94846         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94847         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94848         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94849         getgroups.c, gethostname.c, getopt.h, group-member.c,
94850         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94851         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94852         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94853         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94854         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94855         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94856         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94857         yesno.c: Back out Copyright date changes for each file with no change
94858         this year.  This eases coordination with other programs using the same
94859         source code modules.  From Paul Eggert.
94860
94861 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94862
94863         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94864         not char, for compatibility with glibc 2.1.3 strftime.c.
94865
94866 2000-08-03  Greg McGary  <greg@mcgary.org>
94867
94868         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94869         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94870         (EXTEND_BUFFER): Use them.
94871
94872 2000-08-01  Jim Meyering  <meyering@lucent.com>
94873
94874         * lib/dirname.c (ISSLASH): Define.
94875         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94876         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94877         both `\' and `/' may be use as path separators.
94878         Based on a patch from Prashant TR.
94879
94880 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94881
94882         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94883         slot vector a constant, since it might get modified.
94884
94885 2000-07-31  Jim Meyering  <meyering@lucent.com>
94886
94887         * lib/xmalloc.c: Use `virtual memory exhausted', not
94888         `Memory exhausted'.
94889         * lib/obstack.c (print_and_abort): Likewise.
94890
94891 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94892
94893         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94894         buffer, so that the caller can always quote one small
94895         component of a "memory exhausted" message in slot 0.
94896         From a suggestion by Jim Meyering.
94897
94898 2000-07-30  Jim Meyering  <meyering@lucent.com>
94899
94900         * lib/makepath.c (make_path): Quote the other instance, too.
94901
94902         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94903         (STATIC_BUF_SIZE): Define.
94904         (quotearg_n_options): Use only statically allocated storage when
94905         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94906         than STATIC_BUF_SIZE.
94907
94908 2000-07-29  Jim Meyering  <meyering@lucent.com>
94909
94910         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94911         * lib/dirname.c (dir_name): Likewise.
94912
94913         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94914         `/'.
94915
94916         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94917         (dir_name): Assert that there are no trailing slashes.
94918
94919 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94920
94921         * lib/mbswidth.h (mbswidth): Add a flags argument.
94922         (mbswidth): New declaration.
94923         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94924         * lib/mbswidth.c (mbswidth): Add a flags argument.
94925         (mbsnwidth): New function.
94926
94927 2000-07-24  Jim Meyering  <meyering@lucent.com>
94928
94929         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94930
94931 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94932
94933         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94934
94935 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94936
94937         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94938         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94939         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94940         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94941         invoke multibyte primitives.
94942
94943 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94944
94945         * lib/quotearg.c:
94946         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94947         so that mbstate_t is always defined.
94948
94949         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94950         be 1 in at least one GCC installation, and this configuration
94951         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94952         performance on hosts that have mbrtowc but have only unibyte
94953         locales, but I assume these hosts are rare.
94954
94955 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94956
94957         * lib/mbswidth.c (_XOPEN_SOURCE):
94958         Don't define; this causes problems on Solaris 7.
94959         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94960
94961 2000-07-23  Jim Meyering  <meyering@lucent.com>
94962
94963         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94964         too: getgrgid, getpwuid, getuid.
94965
94966 2000-07-23  Jim Meyering  <meyering@lucent.com>
94967
94968         * lib/basename.c (base_name): Add an assertion.
94969
94970 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94971
94972         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94973         shadow its mbsinit function.
94974
94975 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94976
94977         * lib/mbswidth.h: New file.
94978         * lib/mbswidth.c: New file.
94979         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94980         (noinst_HEADERS): Add mbswidth.h.
94981
94982 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94983
94984         * lib/config.charset: Add support for FreeBSD. Improve support for
94985         HP-UX and IRIX 6.
94986
94987 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94988
94989         * m4/mbswidth.m4: New file.
94990         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94991
94992 2000-07-15  Jim Meyering  <meyering@lucent.com>
94993
94994         * lib/makepath.c: Include quote.h.
94995         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94996         corresponding argument in a `quote (...)' call.
94997         Give better diagnostics.
94998
94999         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95000         (noinst_HEADERS): Add quote.h.
95001
95002         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95003         from tar's src/misc.c.
95004         * lib/quote.h: New file.  Prototypes for same.
95005
95006 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95007
95008         From a suggestion by Bruno Haible.
95009         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95010         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95011         to decide whether to define the BeOS workaround macro;
95012         this adjusts to the change to AC_MBSTATE_T.
95013
95014 2000-07-14  Jim Meyering  <meyering@lucent.com>
95015
95016         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95017         jm_AC_TYPE_UINTMAX_T.
95018
95019 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95020
95021         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95022
95023         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95024         quotearg_buffer_restyled): Add support for
95025         clocale_quoting_style.  Undo previous change to
95026         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95027         and "{RIGHT QUOTATION MARK}" msgids.
95028
95029 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95030
95031         From a suggestion by Bruno Haible.
95032         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95033         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95034         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95035         and mbstate_t, to a single-part test that simply defines mbstate_t.
95036         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95037         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95038
95039 2000-07-10  Jim Meyering  <meyering@lucent.com>
95040
95041         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95042
95043         * m4/gnu-source.m4: Output to confdefs.h directly.
95044         Suggestion from Akim Demaille.
95045
95046 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95047
95048         The old behavior of quoting `like this' doesn't look good with
95049         newer, ISO-style fonts.  See:
95050         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95051
95052         Instead, quote "like this" by default.  Let the translator
95053         tailor the locale-specific quoting behavior by providing
95054         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95055
95056         * lib/quotearg.c (N_): New macro.
95057         (gettext_default): New function.
95058         (quotearg_buffer_restyled): Use
95059         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95060         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95061
95062 2000-07-09  Jim Meyering  <meyering@lucent.com>
95063
95064         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95065         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95066
95067         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95068         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95069
95070 2000-07-09  Jim Meyering  <meyering@lucent.com>
95071
95072         * lib/Most files: Update copyright dates to include 2000.
95073
95074 2000-07-08  Jim Meyering  <meyering@lucent.com>
95075
95076         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95077         if not defined.
95078         (xgethostname): Remove now-unnecessary #ifdef.
95079         Move declaration of `err' into loop where it's used.
95080
95081 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95082         and Bruno Haible  <haible@clisp.cons.org>
95083
95084         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95085         only if the test for an object-type mbstate_t fails.  This
95086         prevents us from mistakenly reporting that mbstate_t is a
95087         system object type after we "#define mbstate_t int" to work
95088         around its lack.
95089
95090 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95091         and Bruno Haible  <haible@clisp.cons.org>
95092
95093         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95094
95095 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95096
95097         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95098         to strerror_r.
95099         Include <ctype.h> for use of isalpha.
95100
95101 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95102
95103         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95104         by allocating a larger buffer. Test the gethostname return value for
95105         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95106         returns an error and ENAMETOOLONG isn't defined.
95107
95108 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95109
95110         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95111         dimension.
95112
95113 2000-07-04  Jim Meyering  <meyering@lucent.com>
95114
95115         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95116         of the deprecated AC_CHECKING.
95117
95118 2000-07-04  Jim Meyering  <meyering@lucent.com>
95119
95120         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95121         Reported by Bruno Haible.
95122
95123 2000-07-04  Jim Meyering  <meyering@lucent.com>
95124
95125         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95126         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95127         lacks mbrtowc.
95128
95129 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95130
95131         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95132         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95133
95134 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95135         and Bruno Haible  <haible@clisp.cons.org>
95136
95137         * lib/quotearg.c (mbrtowc):
95138         Assign to *pwc, and return 1 only if result is nonzero.
95139         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95140
95141 2000-07-03  Jim Meyering  <meyering@lucent.com>
95142
95143         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95144
95145 2000-07-03  Jim Meyering  <meyering@lucent.com>
95146
95147         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95148         This is necessary to get a definition of e.g., UTMP_FILE on
95149         HP-UX 10.20.
95150         From Bob Proulx.
95151
95152 2000-07-02  Jim Meyering  <meyering@lucent.com>
95153
95154         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95155
95156         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95157         AC_LIBOBJ(function_name).
95158         * m4/chown.m4: Likewise.
95159         * m4/fnmatch.m4: Likewise.
95160         * m4/ftruncate.m4: Likewise.
95161         * m4/getgroups.m4: Likewise.
95162         * m4/getline.m4: Likewise.
95163         * m4/group-member.m4: Likewise.
95164         * m4/jm-macros.m4: Likewise.
95165         * m4/lstat.m4: Likewise.
95166         * m4/malloc.m4: Likewise.
95167         * m4/memcmp.m4: Likewise.
95168         * m4/nanosleep.m4: Likewise.
95169         * m4/putenv.m4: Likewise.
95170         * m4/realloc.m4: Likewise.
95171         * m4/regex.m4: Likewise.
95172         * m4/stat.m4: Likewise.
95173         * m4/strftime.m4: Likewise.
95174
95175 2000-07-02  Jim Meyering  <meyering@lucent.com>
95176
95177         * lib/quotearg.c (mbstate_t): Don't define here.
95178
95179 2000-07-02  Jim Meyering  <meyering@lucent.com>
95180
95181         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95182
95183 2000-07-01  Jim Meyering  <meyering@lucent.com>
95184
95185         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95186
95187 2000-07-01  Jim Meyering  <meyering@lucent.com>
95188
95189         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95190         problem.
95191
95192 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95193
95194         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95195         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95196
95197 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95198
95199         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95200         per change in ../m4/ls-mntd-fs.m4.
95201         (read_filesystem_list): Ignore symbolic links.
95202
95203 2000-06-29  Jim Meyering  <meyering@lucent.com>
95204
95205         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95206         for declaration of strcmp.
95207
95208         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95209
95210         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95211         Avoid warning by casting result to `char *' to remove `const'.
95212
95213 2000-06-28  Jim Meyering  <meyering@lucent.com>
95214
95215         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95216         included by quotearg.c, for which we perform this test.  From
95217         Bruno Haible.
95218
95219 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95220
95221         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95222         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95223         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95224
95225 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95226
95227         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95228
95229 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95230
95231         savedir now sets errno on failure and invokes xmalloc to get memory.
95232         Fix a couple of other minor bugs while we're at it.
95233
95234         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95235         (NAMLEN): Remove macro.
95236         (malloc, realloc): Remove decls.
95237         (stpcpy): Likewise.
95238         ("xalloc.h"): Include.
95239         (NAME_SIZE_DEFAULT): New macro.
95240         (savedir): Use xmalloc / xrealloc to allocate memory.
95241         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95242         Skip "" directory entries.
95243         Use strlen to calculate directory entry length, since the old method
95244         is rarely used these days and isn't worth supporting.
95245         Don't use a pointer after freeing it.
95246         Check for integer overflow when calculating allocation size.
95247         Use memcpy to copy entries, instead of stpcpy.
95248         Set errno properly when returning NULL.
95249         Check for readdir error.
95250
95251 2000-06-26  Jim Meyering  <meyering@lucent.com>
95252
95253         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95254
95255 2000-06-25  Jim Meyering  <meyering@lucent.com>
95256
95257         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95258         Linux header bug when _XOPEN_SOURCE is defined to 500.
95259
95260 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95261
95262         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95263         deficiency.
95264
95265 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95266
95267         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95268         Include xalloc.h.
95269         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95270
95271 2000-06-24  Jim Meyering  <meyering@lucent.com>
95272
95273         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95274         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95275         for which strerror does return char*, but which lacks a conveniently
95276         accessible declaration of the function.  If the compile-test says
95277         strerror_r doesn't work, then resort to a `run'-test that works on
95278         BeOS and segfaults on DEC Unix.
95279
95280 2000-06-24  Jim Meyering  <meyering@lucent.com>
95281
95282         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95283
95284 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95285
95286         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95287         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95288
95289 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95290
95291         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95292         (mbrtowc, mbstate_t): Define substitutes if
95293         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95294         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95295         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95296
95297 2000-06-23  Jim Meyering  <meyering@lucent.com>
95298
95299         * m4/afs.m4: Add missing AC_MSG_RESULT.
95300         Reported by Bruno Haible.
95301
95302         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95303         Suggestion from Bruno Haible.
95304
95305 2000-06-23  Jim Meyering  <meyering@lucent.com>
95306
95307         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95308
95309 2000-06-21  Jim Meyering  <meyering@lucent.com>
95310
95311         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95312
95313 2000-06-21  Jim Meyering  <meyering@lucent.com>
95314
95315         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95316         (noinst_HEADERS): Add getstr.h.
95317
95318         * lib/getline.c (getstr): Move into a separate file.
95319         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95320         the following changes: new parameter, delim2; both delim[12]
95321         parameters have type `int', not `char'.  The latter would lose
95322         with 8-bit delimiters.
95323         * lib/getstr.h: New file.
95324
95325 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95326
95327         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95328         than 1024, return a memory chunk of least possible size, instead
95329         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95330         Use free/xmalloc instead of xrealloc to avoid copying for very long
95331         paths.
95332
95333 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95334
95335         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95336         the empty string.
95337
95338 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95339
95340         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95341         address, not strdup.  Include <stdlib.h> and don't declare free().
95342
95343 2000-06-19  Jim Meyering  <meyering@lucent.com>
95344
95345         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95346
95347 2000-06-18  Jim Meyering  <meyering@lucent.com>
95348
95349         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95350
95351         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95352         `checking whether...' message to be consistent with that of the
95353         lstat test.
95354
95355 2000-06-18  Jim Meyering  <meyering@lucent.com>
95356
95357         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95358         Besides, these days every porting target provides a mkdir function.
95359
95360         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95361         needed. (this snippet comes from src/system.h).
95362
95363 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95364
95365         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95366
95367 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95368
95369         * lib/human.c (adjust_value): New function.
95370         (human_readable_inexact): Apply rounding style even when
95371         printing approximate values.
95372
95373 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95374
95375         * lib/human.c (human_readable_inexact): Allow an input block
95376         size that is not a multiple of the output block size, and vice versa.
95377         Reported by Piergiorgio Sartor.
95378
95379 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95380
95381         * lib/getdate.y (get_date): Apply relative times after time
95382         zone indicator, not before.  Reported by Todd A. Jacobs.
95383
95384 2000-06-13  Jim Meyering  <meyering@lucent.com>
95385
95386         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95387
95388         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95389
95390 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95391
95392         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95393
95394 2000-06-12  Jim Meyering  <meyering@lucent.com>
95395
95396         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95397         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95398         optional argument.
95399         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95400         the optional argument, `lib'.
95401
95402 2000-06-08  Jim Meyering  <meyering@lucent.com>
95403
95404         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95405
95406 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95407
95408         Rewrite largefile configuration so that we don't need to run
95409         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95410         AC_CANONICAL_HOST in configure.in -- jmm]
95411
95412         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95413         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95414         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95415         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95416         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95417         All uses changed.
95418         Instead of inspecting the output of getconf, try to compile the
95419         test program without and with the macro definition.
95420         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95421         for getconf.  Instead, check for the needed flags by compiling
95422         test programs.
95423
95424 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95425
95426         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95427
95428 2000-06-04  Jim Meyering  <meyering@lucent.com>
95429
95430         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95431         SunOS 4.1.4 for which gid_t is an unsigned type.
95432
95433 2000-06-03  Jim Meyering  <meyering@lucent.com>
95434
95435         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95436         now that autoconf requires that.
95437
95438         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95439         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95440         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95441
95442 2000-06-03  Jim Meyering  <meyering@lucent.com>
95443
95444         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95445
95446 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95447
95448         * m4/glibc21.m4: New file.
95449         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95450
95451 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95452
95453         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95454         newer, don't install charset.alias.
95455         * lib/config.charset: Change the Linux/glibc rules so they become empty
95456         on glibc-2.1 or newer.
95457
95458 2000-06-02  Jim Meyering  <meyering@lucent.com>
95459
95460         * lib/mountlist.c: Back out last change.  Instead, do this...
95461         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95462         me_dummy member using the same `ignore'-testing code.
95463         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95464         fs_type strings.
95465         From Mark D. Roth.
95466
95467 2000-05-29  Jim Meyering  <meyering@lucent.com>
95468
95469         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95470         mounts with the `ignore' attribute.  Based on a patch from
95471         Mark D. Roth.
95472
95473 2000-05-28  Jim Meyering  <meyering@lucent.com>
95474
95475         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95476         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95477         * m4/stat.m4: Likewise.
95478         * m4/lstat.m4: Likewise.
95479         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95480
95481         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95482         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95483
95484 2000-05-26  Jim Meyering  <meyering@lucent.com>
95485
95486         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95487
95488 2000-05-24  Jim Meyering  <meyering@lucent.com>
95489
95490         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95491         autoconf requires that.
95492         * m4/lib-check.m4: Likewise.
95493         * m4/jm-macros.m4: Likewise.
95494         * m4/strftime.m4: Likewise.
95495
95496         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95497         AC_CHECK_DECLS, now that autoconf requires that.
95498
95499 2000-05-22  Jim Meyering  <meyering@lucent.com>
95500
95501         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95502         * m4/lstat.m4: Likewise.
95503
95504 2000-05-22  Jim Meyering  <meyering@lucent.com>
95505
95506         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95507
95508 2000-05-20  Jim Meyering  <meyering@lucent.com>
95509
95510         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95511         (jm_PREREQ): Use it.
95512
95513 2000-05-18  Jim Meyering  <meyering@lucent.com>
95514
95515         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95516         back, too, since it may have been modified by allocate_entry.
95517         (hash_delete): Rewrite to use neither the assignment operator
95518         nor the comma operator in an if-expression.
95519
95520 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95521
95522         * lib/closeout.c:
95523         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95524         Remove; no longer needed.
95525         "quotearg.h": Add include.
95526         (file_name): Do not bother to explicitly initialize to NULL; it's less
95527         efficient on some hosts.
95528         (close_stdout_status): Remove test as to whether stdout was already
95529         closed; it breaks for the case "echo x | sort >&-".
95530         Quote file name colons.
95531         Do not assume that _("write error") lacks format strings.
95532
95533 2000-05-15  Jim Meyering  <meyering@lucent.com>
95534
95535         * lib/version-etc.c (version_etc_copyright): Update the copyright
95536         string used in all --version output.
95537
95538 2000-05-14  Jim Meyering  <meyering@lucent.com>
95539
95540         * lib/closeout.c (close_stdout_set_file_name): New function.
95541         (close_stdout_status): Use new file-scoped global.
95542         Return right away if fstat says the stdout file descriptor is invalid.
95543         * lib/closeout.h (close_stdout_set_file_name): Declare.
95544
95545 2000-05-10  Jim Meyering  <meyering@lucent.com>
95546
95547         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95548         (close_stdout_set_status): New function.
95549         * lib/closeout.h (close_stdout_set_status): Declare.
95550
95551 2000-05-09  Jim Meyering  <meyering@lucent.com>
95552
95553         * m4/gettext.m4: Rename this...
95554         * m4/libintl.m4: ...to this.
95555
95556 2000-05-08  Jim Meyering  <meyering@lucent.com>
95557
95558         * lib/long-options.c: Don't include closeout.h.
95559         (parse_long_options): Don't call close_stdout for --version.
95560
95561 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95562
95563         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95564         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95565         2.1.3 bug.  This avoids a clash when files like regex.c define
95566         _GNU_SOURCE.
95567
95568 2000-05-06  Jim Meyering  <meyering@lucent.com>
95569
95570         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95571         (AC_REPLACE_FUNCS): Add strnlen.
95572
95573         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95574         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95575
95576         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95577         AC_SEARCH_LIBS call for nanosleep.
95578         (LIB_NANOSLEEP): Set and AC_SUBST.
95579
95580 2000-05-06  Jim Meyering  <meyering@lucent.com>
95581
95582         * lib/strnlen.c: Undefine __strnlen and strnlen.
95583         [!weak_alias]: Define __strnlen to strnlen.
95584
95585         * lib/atexit.c: New file, from libiberty.
95586
95587 2000-05-06  Jim Meyering  <meyering@lucent.com>
95588
95589         * lib/closeout.c (close_stdout_status): Also check for errors on the
95590         stderr stream.
95591
95592 2000-05-05  Jim Meyering  <meyering@lucent.com>
95593
95594         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95595         AC_SEARCH_LIBS call for clock_gettime.
95596         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95597
95598         * m4/search-libs.m4: Update from autoconf.
95599
95600         su doesn't work on Solaris 2.6.
95601         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95602         <shadow.h>.  Reported by Dragos Harabor.
95603
95604 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95605
95606         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95607         memcpy instead of xmalloc, xrealloc, path_concat.
95608         (locale_charset): Treat empty environment variables as absent.
95609         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95610
95611 2000-05-04  Jim Meyering  <meyering@lucent.com>
95612
95613         * lib/getopt.c: Update from glibc.
95614         * lib/obstack.c: Likewise.
95615         * lib/obstack.h: Likewise.
95616         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95617         file
95618
95619         * lib/regex.h: Likewise.
95620         * lib/strndup.c: Likewise.
95621         * lib/strnlen.c: New file, from glibc.
95622
95623 2000-05-03  Jim Meyering  <meyering@lucent.com>
95624
95625         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95626
95627 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95628
95629         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95630         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95631         compile-time test, rather than inspecting host and OS, to
95632         decide whether to define _LARGEFILE_SOURCE.
95633
95634 2000-05-01  Jim Meyering  <meyering@lucent.com>
95635
95636         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95637
95638         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95639         Based on a patch from Bruno Haible.
95640
95641 2000-05-01  Jim Meyering  <meyering@lucent.com>
95642
95643         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95644
95645 2000-04-29  Jim Meyering  <meyering@lucent.com>
95646
95647         * lib/path-concat.c: Declare strdup only if it's not defined.
95648         * lib/canon-host.c: Likewise.
95649
95650 2000-04-28  Jim Meyering  <meyering@lucent.com>
95651
95652         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95653         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95654         is included first, then limits.h is included by locale.h by libintl.h.
95655         From John David Anglin.
95656
95657 2000-04-25  Jim Meyering  <meyering@lucent.com>
95658
95659         * lib/makepath.c (S_IRWXUGO): Define.
95660         (make_path): Always perform explicit chmod if MODE specifies any
95661         of the `special' permission bits.  Prompted by a bug report against
95662         install from Mate Wierdl and Joost van Baal.
95663
95664 2000-04-18  Jim Meyering  <meyering@lucent.com>
95665
95666         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95667         (jm_PREREQ): Use it.
95668
95669 2000-04-18  Jim Meyering  <meyering@lucent.com>
95670
95671         * lib/README: New file.
95672
95673         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95674         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95675
95676 2000-04-17  Jim Meyering  <meyering@lucent.com>
95677
95678         Get it right :-)
95679         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95680         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95681         Suggestion from Akim Demaille.
95682
95683 2000-04-17  Jim Meyering  <meyering@lucent.com>
95684
95685         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95686         the definition of it to rpl_strftime also defined-away the system's
95687         declaration.
95688
95689 2000-04-15  Jim Meyering  <meyering@lucent.com>
95690
95691         Use `C' to denote so-called `contiguous' files, the same way
95692         that tar does.
95693         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95694         (ftypelet): Use S_ISCTG.
95695         From Michael Deutschmann.
95696
95697 2000-04-14  Jim Meyering  <meyering@lucent.com>
95698
95699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95700         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95701         clobbered.
95702
95703 2000-04-14  Jim Meyering  <meyering@lucent.com>
95704
95705         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95706
95707 2000-04-13  Jim Meyering  <meyering@lucent.com>
95708
95709         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95710         AH_VERBATIM to insert required #ifndef into config.h.in.
95711         Suggestion from Akim Demaille.
95712
95713 2000-04-12  Jim Meyering  <meyering@lucent.com>
95714
95715         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95716         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95717         Christian Krackowizer.
95718
95719         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95720         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95721         (AC_SYS_LARGEFILE): Require.
95722         (AM_C_PROTOTYPES): Require.
95723
95724 2000-04-08  Jim Meyering  <meyering@lucent.com>
95725
95726         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95727         names don't conflict.  Reported by Eli Zaretskii.
95728
95729 2000-04-07  Jim Meyering  <meyering@lucent.com>
95730
95731         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95732         sys/types.h, to work around system header problems on AIX 3.2.5.
95733         From Bruno Haible.
95734
95735 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95736
95737         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95738         bug.  Deal with the different error behavior of Irix iconv.
95739
95740 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95741
95742         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95743         IRIX if the installer said otherwise.
95744
95745 2000-04-05  Jim Meyering  <meyering@lucent.com>
95746
95747         Portability tweaks required for ultrix4.3.
95748         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95749         (jm_CHECK_DECLS): Add getutent to the list of functions.
95750         (_jm_DECL_HEADERS): Add utmpx.h.
95751         From John David Anglin.
95752
95753         * m4/strftime.m4: Back out the 2000-04-02 change.
95754         Instead of that change, simply undefine putenv in the test program.
95755
95756 2000-04-05  Jim Meyering  <meyering@lucent.com>
95757
95758         Portability tweaks required for ultrix4.3.
95759         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95760         getutent.
95761         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95762         * lib/canon-host.c: Declare strdup.
95763         * lib/path-concat.c: Likewise.
95764         From John David Anglin.
95765
95766 2000-04-04  Jim Meyering  <meyering@lucent.com>
95767
95768         Be more DOS 8.3-friendly.
95769         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95770         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95771         * lib/Makefile.am: Reflect renaming.
95772         Reported by Eli Zaretskii.
95773
95774         Use a temporary file name that won't clash with `charset.alias'
95775         in the DOS 8.3 name space.
95776         * lib/Makefile.am (charset_tmp): Define.
95777         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95778         (uninstall-local): Likewise.
95779         Reported by Eli Zaretskii.
95780
95781 2000-04-03  Jim Meyering  <meyering@lucent.com>
95782
95783         * m4/gettext.m4: Fix typo in comment.
95784
95785         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95786         textutils/configure.in).  Suggestion from Paul Eggert.
95787         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95788
95789 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95790
95791         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95792         variable in the shell rather than using putenv, which isn't
95793         portable.  This avoids the configure-time inter-test dependency
95794         on the potentially-renamed putenv function.
95795
95796 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95797
95798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95799         before checking struct stat.st_blksize, so that
95800         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95801
95802 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95803
95804         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95805         since strftime.c uses HAVE_STRFTIME to decide whether to use
95806         the underlying strftime.
95807
95808 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95809
95810         * lib/time/strftime.c (my_strftime): Make sure we call the system
95811         strftime, not ourselves, when invoking the underlying strftime.
95812
95813 2000-03-24  Jim Meyering  <meyering@lucent.com>
95814
95815         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95816         (charset_alias): Define.
95817         (install-exec-local): Factor out common code.
95818         (uninstall-local): Split lines longer than 80.
95819         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95820         (SUFFIXES): Define.
95821         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95822         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95823
95824 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95825
95826         * lib/config.charset: Output a line containing "Packages using this
95827         file".
95828         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95829         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95830         ref-del.sed): New rules.
95831
95832 2000-03-17  Jim Meyering  <meyering@lucent.com>
95833
95834         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95835         Otherwise, include <strings.h>
95836
95837 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95838
95839         * lib/unicodeio.c (utf8_wctomb): New function.
95840         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95841         format instead of in UCS-4 with platform dependent endianness.
95842
95843 2000-03-10  Jim Meyering  <meyering@lucent.com>
95844
95845         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95846         From Marco Franzen.
95847
95848 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95849
95850         * lib/savedir.c (savedir): Work even if directory size is
95851         negative; this can happen with some screwy NFS configurations.
95852
95853 2000-03-06  Jim Meyering  <meyering@lucent.com>
95854
95855         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95856         if it's NULL (because we ran out of memory).  From Bruno Haible.
95857
95858 2000-03-05  Jim Meyering  <meyering@lucent.com>
95859
95860         * lib/localcharset.c ("path-concat.h"): Include.
95861         (get_charset_aliases): Use path_concat instead of ANSI string
95862         concatenation.
95863
95864         * lib/unicodeio.h (PARAMS): Define.
95865         Use it to guard prototype.
95866
95867 2000-03-04  Jim Meyering  <meyering@lucent.com>
95868
95869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95870         for lib/localcharset.c.
95871
95872 2000-03-04  Jim Meyering  <meyering@lucent.com>
95873
95874         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95875         installing into it.
95876         (uninstall-local): Uncomment this rule so `make distcheck' works
95877         once again.
95878
95879         * lib/unicodeio.c (<errno.h>): Include it.
95880         (errno): Declare if not defined.
95881
95882         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95883
95884         * lib/config.charset: New version, incorporating remarks from a linux
95885         i18n mailing list.  From Bruno Haible.
95886
95887 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95888
95889         * m4/codeset.m4: New file.
95890         * m4/iconv.m4: New file.
95891         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95892
95893 2000-03-03  Jim Meyering  <meyering@lucent.com>
95894
95895         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95896
95897 2000-03-02  Jim Meyering  <meyering@lucent.com>
95898
95899         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95900         the messages come out on separate lines.
95901
95902         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95903         rather than jm_CHECK_DECLARATIONS.
95904         * m4/decl.m4: Remove now-unused file.
95905
95906         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95907         geteuid.
95908
95909 2000-03-02  Jim Meyering  <meyering@lucent.com>
95910
95911         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95912
95913 2000-03-01  Jim Meyering  <meyering@lucent.com>
95914
95915         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95916         * lib/unicodeio.c: Likewise.
95917
95918 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95919
95920         * lib/config.charset: New file.
95921         * lib/localcharset.c: New file.
95922         * lib/unicodeio.h, lib/unicodeio.c: New files.
95923         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95924         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95925         (noinst_HEADERS): Add unicodeio.h.
95926         (all-local, install-exec-local, charset.alias): New targets.
95927
95928 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95929
95930         * lib/quotearg.c (ALERT_CHAR): New macro.
95931         (quotearg_buffer_restyled): Use it.
95932
95933 2000-02-27  Jim Meyering  <meyering@lucent.com>
95934
95935         * m4/check-decl.m4: Add getenv to the list.
95936
95937 2000-02-27  Jim Meyering  <meyering@lucent.com>
95938
95939         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95940         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95941
95942         * lib/backupfile.c: Guard inclusion of stdlib.h with
95943         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95944         Declare malloc if needed.
95945
95946         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95947         `#ifndef HAVE_DECL..'
95948         now that autoconf always defines the HAVE_DECL_ symbols.
95949         * lib/human.c: Likewise.
95950         * lib/same.c: Likewise.
95951         * lib/strtoumax.c: Likewise.
95952
95953         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95954         declaration check was not run.
95955         * lib/hash.c: Likewise.
95956         * lib/human.c: Likewise.
95957         * lib/same.c: Likewise.
95958         * lib/strtoumax.c: Likewise.
95959
95960         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95961         `.', then first look up the entire `.'-containing string as a login
95962         name.
95963
95964 2000-02-23  Jim Meyering  <meyering@lucent.com>
95965
95966         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95967         in place of my hack.
95968
95969 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95970
95971         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95972         (textint): New typedef.
95973         (parser_control): Member year changed from int to textint.
95974         All uses changed.
95975         (YYSTYPE): Removed; replaced by %union with int and textint members.
95976         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95977         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95978         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95979         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95980         (date, number, to_year): Use width of number in digits, not its value,
95981         to determine whether it's a 2-digit year, or a 2-digit time.
95982         (yylex): Store number of digits of numeric tokens.
95983         Reported by John Kendall.
95984
95985         (parser_control): Changed from struct parser_control to typedef (for
95986         consistency).  All uses changed.
95987
95988         (tID): Removed; not used.
95989         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95990
95991 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95992
95993         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95994         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95995
95996 2000-02-12  Jim Meyering  <meyering@lucent.com>
95997
95998         * lib/userspec.c (ISDIGIT): Define it.
95999         (isdigit): Remove definition.
96000         (is_number): Use ISDIGIT, not isdigit.
96001         <libintl.h>: Include.
96002         (_ and N_): Define.
96003         (parse_user_spec): Mark translatable strings.
96004
96005 2000-02-10  Jim Meyering  <meyering@lucent.com>
96006
96007         With these changes, nanosleep.[ch] are finally enough like the other
96008         lib/* replacement files to compile on a few more losing systems.
96009
96010         * lib/nanosleep.h: Don't include config.h.
96011         Remove prototype from declaration of nanosleep.
96012         (PARAMS): Remove now-unneeded definition.
96013         * lib/nanosleep.c: #undef nanosleep.
96014         (rpl_nanosleep): Rename from nanosleep.
96015
96016 2000-02-10  Jim Meyering  <meyering@lucent.com>
96017
96018         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96019         gnu_nanosleep to rpl_nanosleep.
96020
96021 2000-02-09  Jim Meyering  <meyering@lucent.com>
96022
96023         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96024         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96025
96026 2000-02-08  Akim Demaille  <akim@epita.fr>
96027
96028         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96029         `[' and `]' and remove uses of `changequote'.
96030         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96031         (AC_SYS_LARGEFILE): Likewise.
96032         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96033         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96034         of changequote.
96035         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96036         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96037         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96038         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96039
96040 2000-02-05  Jim Meyering  <meyering@lucent.com>
96041
96042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96043         Remove explicit use of AC_HEADER_TIME.  It is required by
96044         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96045         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96046         in autoconf whereby the expansion of the latter ended up preceding
96047         the expansion of its prerequisite, AC_HEADER_TIME.
96048         Reported by Volker Borchert.
96049
96050 2000-02-03  Jim Meyering  <meyering@lucent.com>
96051
96052         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96053
96054 2000-02-03  Jim Meyering  <meyering@lucent.com>
96055
96056         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96057         rather than with `#if HAVE_UTMPNAME'.
96058
96059 2000-02-02  Jim Meyering  <meyering@lucent.com>
96060
96061         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96062         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96063         Reported by Eli Zaretskii.
96064
96065 2000-02-01  Jim Meyering  <meyering@lucent.com>
96066
96067         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96068
96069 2000-01-31  Jim Meyering  <meyering@lucent.com>
96070
96071         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96072         functions.  Add the time.h and sys/time.h headers along with the
96073         AC_REQUIRE'ment of AC_HEADER_TIME.
96074
96075 2000-01-31  Jim Meyering  <meyering@lucent.com>
96076
96077         * lib/nanosleep.h (nanosleep): Guard declaration with
96078         `#if ! HAVE_DECL_NANOSLEEP'.
96079         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96080         the declaration in that vendor's sys/timers.h.
96081         Reported by Christian Krackowizer.
96082
96083         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96084         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96085         (ISPRINT): Likewise.
96086         Reported by Tom Tromey.
96087
96088 2000-01-30  Jim Meyering  <meyering@lucent.com>
96089
96090         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96091
96092         * m4/prereq.m4 (utmp_includes): Define.
96093         Check for ut_user and ut_name members in both struct utmpx
96094         and struct utmp.
96095
96096 2000-01-30  Jim Meyering  <meyering@lucent.com>
96097
96098         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96099         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96100         header files where only utmpx.ut_user is declared.
96101
96102         * lib/readutmp.h (UT_USER): Define.
96103
96104 2000-01-29  Jim Meyering  <meyering@lucent.com>
96105
96106         * m4/lib-check.m4: New file containing library-related checks from
96107         fileutils and sh-utils (textutils had none).
96108
96109 2000-01-28  Jim Meyering  <meyering@lucent.com>
96110
96111         * m4/perl.m4: Change format of warning message to look more like that
96112         from the missing script.  Suggestion from François Pinard.
96113
96114 2000-01-25  Jim Meyering  <meyering@lucent.com>
96115
96116         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96117         well as time.h in the compile check.
96118         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96119         Fix typo in cross-compiling case: s/yes/no/.
96120
96121 2000-01-23  Jim Meyering  <meyering@lucent.com>
96122
96123         * m4/jm-macros.m4: Move df-related tests here from
96124         fileutils/configure.in
96125
96126         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96127         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96128
96129         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96130         s/space/ac_fsusage_space/.
96131         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96132
96133         * m4/ftruncate.m4: New file (derived from part of
96134         fileutils/configure.in).
96135         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96136         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96137
96138         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96139         AC_SUBST these here, rather than just in sh-util/configure.in, so
96140         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96141         all the same.
96142         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96143         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96144         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96145         (AC_SUBST(POW_LIBM)): Likewise.
96146         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96147
96148 2000-01-23  Jim Meyering  <meyering@lucent.com>
96149
96150         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96151         obstack.c.
96152
96153 2000-01-22  Jim Meyering  <meyering@lucent.com>
96154
96155         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96156
96157         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96158
96159         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96160         configure.in
96161         (AC_CHECK_HEADERS): Likewise for sh-utils.
96162         (AC_CHECK_HEADERS): Likewise for textutils.
96163         Merge the three lists of headers.
96164
96165         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96166         from fileutils' configure.in.
96167
96168         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96169         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96170         check-decl.m4.
96171
96172         * m4/check-decl.m4: Use #if rather than #ifdef.
96173         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96174         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96175         (_jm_DECL_HEADERS): Define new function.
96176         (jm_CHECK_DECLARATIONS): Require it.
96177
96178 2000-01-22  Jim Meyering  <meyering@lucent.com>
96179
96180         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96181         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96182         Required for some AIX systems.  Reported by Christian Krackowizer.
96183         [TESTING] (main): New function.
96184
96185         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96186         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96187         letters.
96188
96189         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96190         iswprint.
96191
96192         * lib/strverscmp.c (ISDIGIT): Define.
96193         (strverscmp): Use ISDIGIT, not isdigit.
96194
96195 2000-01-19  Jim Meyering  <meyering@lucent.com>
96196
96197         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96198         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96199         defines `struct timespec' in <sys/time.h>
96200
96201         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96202         Thanks to Akim for explaining.
96203
96204 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96205
96206         * lib/nanosleep.c (nanosleep):
96207         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96208         POSIX.1 doesn't require SA_INTERRUPT and some systems
96209         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96210         it's been part of POSIX.1 since day 1 (in 1988).
96211
96212 2000-01-17  Jim Meyering  <meyering@lucent.com>
96213
96214         * lib/interlock: Remove unused file.  Reported by François Pinard.
96215
96216 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96217
96218         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96219         alert, backslash, formfeed, and vertical tab unnecessarily in
96220         shell quoting style.
96221
96222 2000-01-16  Jim Meyering  <meyering@lucent.com>
96223
96224         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96225         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96226         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96227         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96228
96229 2000-01-16  Jim Meyering  <meyering@lucent.com>
96230
96231         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96232         because the latter didn't work.
96233
96234 2000-01-15  Jim Meyering  <meyering@lucent.com>
96235
96236         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96237         (AC_REPLACE_FUNCS): Add memcpy and memset.
96238         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96239         Add strpbrk.
96240         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96241
96242 2000-01-12  Jim Meyering  <meyering@lucent.com>
96243
96244         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96245         (jm_PREREQ): Use it.
96246         (jm_PREREQ_READUTMP): New macro.
96247         (jm_PREREQ): Use it.
96248
96249 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96250
96251         Quote multibyte characters correctly.
96252         * m4/c-bs-a.m4: New file.
96253         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96254         (jm_PREREQ): Use it.
96255
96256 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96257
96258         * m4/uintmax_t.m4: Port to autoconf 2.13.
96259
96260 2000-01-08  Jim Meyering  <meyering@ascend.com>
96261
96262         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96263         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96264
96265 2000-01-04  Jim Meyering  <meyering@ascend.com>
96266
96267         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96268         jm_STRUCT_DIRENT_D_TYPE.
96269         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96270         jm_STRUCT_DIRENT_D_INO.
96271         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96272         jm_STRUCT_UTIMBUF.
96273         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96274         renamings.
96275         * m4/utime.m4: Likewise.
96276
96277         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96278         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96279
96280 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96281
96282         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96283         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96284
96285 2000-01-02  Jim Meyering  <meyering@ascend.com>
96286
96287         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96288         remember if this is necessary.
96289
96290 1999-12-26  Jim Meyering  <meyering@ascend.com>
96291
96292         * m4/jm-macros.m4: Use it here.
96293         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96294
96295 1999-12-23  Jim Meyering  <meyering@ascend.com>
96296
96297         * m4/jm-macros.m4: Check for clock_gettime (moved from
96298         fileutils/configure.in)
96299         Check for gettimeofday.
96300
96301 1999-12-20  Jim Meyering  <meyering@ascend.com>
96302
96303         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96304         autoconf-2.14a-1999-12-20.
96305
96306 1999-12-19  Jim Meyering  <meyering@ascend.com>
96307
96308         * m4/lstat-slash.m4: New file.
96309         * m4/jm-macros.m4: Use the new macro:
96310         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96311
96312 1999-12-07  Jim Meyering  <meyering@ascend.com>
96313
96314         * m4/perl.m4: Require that File::Compare be available, too.
96315         Too many systems seem to lack it.
96316
96317         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96318         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96319
96320 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96321
96322         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96323         problem with the QNX 4.25 shell, which doesn't propagate exit
96324         status of failed commands inside shell assignments.
96325
96326 1999-11-17  Jim Meyering  <meyering@ascend.com>
96327
96328         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96329
96330 1999-11-07  Jim Meyering  <meyering@ascend.com>
96331
96332         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96333
96334 1999-11-06  Jim Meyering  <meyering@ascend.com>
96335
96336         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96337         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96338
96339 1999-11-05  Jim Meyering  <meyering@ascend.com>
96340
96341         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96342         configure.in of textutils, fileutils, and sh-utils into this one
96343         (shared between those packages) file.
96344         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96345         AC_STRUCT_ST_BLKSIZE.
96346
96347 1999-11-03  Jim Meyering  <meyering@ascend.com>
96348
96349         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96350         of AC_CHECK_TYPE checks includes unistd.h.
96351         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96352         Suggestion from Akim Demaille.
96353
96354 1999-10-30  Jim Meyering  <meyering@ascend.com>
96355
96356         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96357         m4-quoted string.
96358         * m4/ls-mntd-fs.m4: Likewise.
96359         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96360         * m4/jm-winsz1.m4: Likewise.
96361
96362         * m4/const.m4: Remove file, since the fix made it into the experimental
96363         version of autoconf.
96364         * m4/mktime.m4: Likewise.
96365
96366         * m4/check-type.m4: Remove file, now that the latest version of
96367         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96368
96369         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96370         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96371         AC_CHECK_TYPE.
96372
96373 1999-10-04  Jim Meyering  <meyering@ascend.com>
96374
96375         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96376
96377 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96378
96379         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96380         2.95.1 bug with HP-UX 10.20.
96381
96382 1999-09-17  Jim Meyering  <meyering@ascend.com>
96383
96384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96385         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96386         due to missing strdup (against sh-utils-2.0).
96387
96388 1999-08-29  Jim Meyering  <meyering@ascend.com>
96389
96390         * m4/jm-macros.m4: Require jm_BISON.
96391         * m4/bison.m4: New file.
96392
96393 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96394
96395         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96396         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96397
96398 1999-08-05  Jim Meyering  <meyering@ascend.com>
96399
96400         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96401         to avoid conflicts with `conftest' on 8+3 filesystems.
96402         Suggestion from Eli Zaretskii.
96403
96404 1999-08-04  Jim Meyering  <meyering@ascend.com>
96405
96406         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96407         fileutils and sh-utils (textutils's getline test was inadequate).
96408         (AM_FUNC_GETLINE): Run this test.
96409         (AC_CHECK_FUNCS): Check for getdelim.
96410         Reported by Bob Proulx.
96411
96412 1999-08-02  Jim Meyering  <meyering@ascend.com>
96413
96414         * m4/jm-macros.m4: Add a comment.
96415
96416 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96417
96418         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96419         <inttypes.h> defines strtoumax as a macro (and not as a
96420         function).
96421
96422 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96423
96424         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96425         that we can shift, multiply and divide unsigned long long
96426         values; Ultrix cc can't do it.
96427
96428 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96429
96430         * m4/mktime.m4: New file, which is a preview of what should appear
96431         in the next public autoconf release.
96432
96433 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96434
96435         * m4/lfs.m4: Remove this file.
96436         * m4/largefile.m4: New file.  It contains the old contents of
96437         lfs.m4, except that all names with prefix AC_LFS have been
96438         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96439         compatible with future autoconf versions.  Also, some minor m4
96440         quoting problems have been fixed.
96441
96442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96443
96444         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96445         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96446         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96447         and simplify the shell code.
96448
96449 1999-08-01  Jim Meyering  <meyering@ascend.com>
96450
96451         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96452         m4.
96453
96454 1999-07-20  Jim Meyering  <meyering@ascend.com>
96455
96456         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96457
96458 1999-07-15  Jim Meyering  <meyering@ascend.com>
96459
96460         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96461
96462 1999-05-22  Jim Meyering  <meyering@ascend.com>
96463
96464         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96465
96466 1999-05-20  Jim Meyering  <meyering@ascend.com>
96467
96468         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96469         Add a colon after each `then' in case $4 is empty.
96470
96471 1999-05-16  Jim Meyering  <meyering@ascend.com>
96472
96473         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96474
96475 1999-05-10  Jim Meyering  <meyering@ascend.com>
96476
96477         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96478
96479         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96480         AC_FUNC_MKTIME.
96481
96482 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96483
96484         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96485
96486 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96487
96488         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96489         not CPPFLAGS, so that linking works correctly in IRIX.
96490
96491 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96492
96493         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96494
96495 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96496
96497         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96498         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96499         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96500         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96501         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96502
96503         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96504
96505 1999-04-20  Jim Meyering  <meyering@ascend.com>
96506
96507         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96508         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96509         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96510
96511 1999-04-18  Jim Meyering  <meyering@ascend.com>
96512
96513         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96514         * m4/jm-macros.m4: Use it.
96515
96516 1999-04-06  Jim Meyering  <meyering@ascend.com>
96517
96518         * m4/strftime.m4: Remove test for %f.
96519
96520 1999-03-29  Jim Meyering  <meyering@ascend.com>
96521
96522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96523         superset of the AC_TYPE_* checks in the textutils, fileutils,
96524         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96525         AC_TYPE_PID_T.
96526
96527 1999-03-28  Jim Meyering  <meyering@ascend.com>
96528
96529         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96530         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96531         replaced e.g., in the *.sh files of the sh-utils.
96532
96533 1999-03-20  Jim Meyering  <meyering@ascend.com>
96534
96535         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96536         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96537         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96538
96539 1999-03-19  Jim Meyering  <meyering@ascend.com>
96540
96541         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96542
96543 1999-03-12  Jim Meyering  <meyering@ascend.com>
96544
96545         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96546
96547 1999-03-07  Jim Meyering  <meyering@ascend.com>
96548
96549         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96550         declared.
96551
96552 1999-02-17  Jim Meyering  <meyering@ascend.com>
96553
96554         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96555         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96556
96557 1999-02-07  Jim Meyering  <meyering@ascend.com>
96558
96559         * m4/group-member.m4: New file -- extracted from sh-utils'
96560         configure.in.
96561
96562         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96563         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96564
96565 1999-02-06  Jim Meyering  <meyering@ascend.com>
96566
96567         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96568         * m4/fnmatch.m4: Likewise.
96569         * m4/getgroups.m4: Likewise.
96570         * m4/lstat.m4: Likewise.
96571         * m4/malloc.m4: Likewise.
96572         * m4/putenv.m4: Likewise.
96573         * m4/realloc.m4: Likewise.
96574         * m4/regex.m4: Likewise.
96575         * m4/stat.m4: Likewise.
96576         * m4/strftime.m4: Likewise.
96577         Suggestion from Alain Magloire.
96578
96579         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96580         * m4/fnmatch.m4: Likewise.
96581         * m4/getgroups.m4: Likewise.
96582         * m4/getline.m4: Likewise.
96583         * m4/lstat.m4: Likewise.
96584         * m4/malloc.m4: Likewise.
96585         * m4/memcmp.m4: Likewise.
96586         * m4/putenv.m4: Likewise.
96587         * m4/realloc.m4: Likewise.
96588         * m4/regex.m4: Likewise.
96589         * m4/stat.m4: Likewise.
96590         * m4/strftime.m4: Likewise.
96591         Suggestion from Alain Magloire.
96592
96593         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96594         an argument.
96595
96596         * m4/regex.m4: Add a run-time Test for proper operation of
96597         re_compile_pattern.
96598
96599 1999-01-31  Jim Meyering  <meyering@ascend.com>
96600
96601         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96602
96603 1999-01-30  Jim Meyering  <meyering@ascend.com>
96604
96605         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96606
96607         * m4/jm-mktime.m4: Make this a wrapper around the official
96608         AM_FUNC_MKTIME rather than my private copy, now that the official one
96609         is up to date.
96610         * m4/mktime.m4: Remove file.
96611
96612         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96613         * m4/uptime.m4: Likewise.
96614         * m4/uintmax_t.m4: Likewise.
96615
96616 1999-01-28  Jim Meyering  <meyering@ascend.com>
96617
96618         * m4/jm-macros.m4: Use jm_AFS.
96619         * m4/afs.m4: New file (from fileutils' configure.in).
96620
96621         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96622         * m4/chown.m4: Likewise.
96623         * m4/d-ino.m4: Likewise.
96624         * m4/d-type.m4: Likewise.
96625         * m4/fnmatch.m4: Likewise.
96626         * m4/getgroups.m4: Likewise.
96627         * m4/gettext.m4: Likewise.
96628         * m4/jm-mktime.m4: Likewise.
96629         * m4/jm-winsz2.m4: Likewise.
96630         * m4/lcmessage.m4: Likewise.
96631         * m4/ls-mntd-fs.m4: Likewise.
96632         * m4/malloc.m4: Likewise.
96633         * m4/memcmp.m4: Likewise.
96634         * m4/putenv.m4: Likewise.
96635         * m4/realloc.m4: Likewise.
96636         * m4/st_mtim.m4: Likewise.
96637         * m4/strftime.m4: Likewise.
96638
96639 1999-01-16  Jim Meyering  <meyering@ascend.com>
96640
96641         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96642         (ARGMATCH_DIE_DECL): Define.
96643
96644 1999-01-12  Jim Meyering  <meyering@ascend.com>
96645
96646         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96647         Reported by Lars Hecking.
96648
96649 1999-01-10  Jim Meyering  <meyering@ascend.com>
96650
96651         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96652         gross kludge.
96653         * m4/inttypes_h.m4: Likewise.
96654         * m4/lstat.m4: Likewise.
96655         * m4/malloc.m4: Likewise.
96656         * m4/readdir.m4: Likewise.
96657         * m4/realloc.m4: Likewise.
96658         * m4/st_dm_mode.m4: Likewise.
96659         * m4/stat.m4: Likewise.
96660         * m4/utimbuf.m4: Likewise.
96661         * m4/utimes.m4: Likewise.
96662
96663         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96664         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96665         comments in config.h.in are meaningful.
96666
96667         * m4/jm-macros.m4: Require autoconf-2.13 here.
96668
96669         * m4/regex.m4: By default, don't use the included regex.c on systems
96670         with glibc 2.  Suggestion from Uli Drepper.
96671
96672 1999-01-02  Jim Meyering  <meyering@ascend.com>
96673
96674         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96675
96676 1998-12-18  Jim Meyering  <meyering@ascend.com>
96677
96678         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96679         Based on a suggestion from Lars Hecking.
96680
96681 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96682
96683         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96684
96685 1998-11-16  Jim Meyering  <meyering@ascend.com>
96686
96687         * m4/lfs.m4: Double-quote the `uname...` expression.
96688
96689 1998-11-14  Jim Meyering  <meyering@ascend.com>
96690
96691         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96692         * m4/stat.m4: Likewise.
96693
96694 1998-11-03  Jim Meyering  <meyering@ascend.com>
96695
96696         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96697         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96698
96699 1998-10-18  Jim Meyering  <meyering@ascend.com>
96700
96701         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96702
96703 1998-10-17  Jim Meyering  <meyering@ascend.com>
96704
96705         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96706         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96707         calls for those previously hard-coded headers.  Instead, take a new
96708         parameter.
96709         (jm_CHECK_DECLARATIONS): Reflect interface change.
96710         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96711         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96712
96713         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96714
96715 1998-10-14  Jim Meyering  <meyering@ascend.com>
96716
96717         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96718         instead of "TZ=America/Vancouver".  From Paul Eggert.
96719
96720 1998-10-11  Jim Meyering  <meyering@ascend.com>
96721
96722         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96723         This adds a test for a recently added compatibility fix for mktime.c.
96724         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96725
96726 1998-09-27  Jim Meyering  <meyering@ascend.com>
96727
96728         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96729
96730         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96731         ../configure.in, including a change from Gordon Matzigkeit to allow
96732         cross-compiling for the Hurd.
96733
96734         * m4/glibc.m4: New file/macro to test for the GNU C Library
96735         versions 1 and 2.  From Gordon Matzigkeit.
96736         Indent.
96737
96738 1998-09-21  Jim Meyering  <meyering@ascend.com>
96739
96740         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96741
96742 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96743
96744         Port nanosecond-resolution times to UnixWare 2.1.2 and
96745         pedantic Solaris 2.6.
96746
96747         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96748         AC_STRUCT_ST_MTIM.
96749         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96750         Generate name of ns member, instead of just 1 or undef.
96751         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96752
96753 1998-08-15  Jim Meyering  <meyering@ascend.com>
96754
96755         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96756         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96757         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96758         instead of jm_TYPE_SSIZE_T.
96759
96760 1998-08-12  Jim Meyering  <meyering@ascend.com>
96761
96762         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96763
96764 1998-08-02  Jim Meyering  <meyering@ascend.com>
96765
96766         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96767         in acconfig.h manually.
96768
96769 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96770
96771         * m4/st_mtim.m4: New file.
96772
96773 1998-07-28  Jim Meyering  <meyering@ascend.com>
96774
96775         * m4/utimes.m4: Undef stat.
96776
96777 1998-07-25  Jim Meyering  <meyering@ascend.com>
96778
96779         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96780         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96781
96782 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96783
96784         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96785         uid and gid actually remain unchanged.
96786
96787 1998-07-07  Jim Meyering  <meyering@ascend.com>
96788
96789         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96790
96791 1998-07-04  Jim Meyering  <meyering@ascend.com>
96792
96793         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96794         to prove that this macro can be used in packages without regex.c.
96795
96796 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96797
96798         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96799         is to be used.
96800
96801 1998-07-03  Jim Meyering  <meyering@ascend.com>
96802
96803         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96804
96805         * m4/gettext.m4: New file -- from gettext-0.10.35.
96806         * m4/lcmessage.m4: Likewise.
96807         * m4/progtest.m4: Likewise.
96808
96809         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96810         * m4/jm-macros.m4: Require the new macro.
96811
96812 1998-06-29  Jim Meyering  <meyering@ascend.com>
96813
96814         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96815         for the definition of NGROUPS (used in a system header included
96816         by sys/mount.h).
96817
96818 1998-06-28  Jim Meyering  <meyering@ascend.com>
96819
96820         * m4/ls-mntd-fs.m4: New file.
96821         * m4/fstypename.m4: New file.
96822
96823         * m4/jm-macros.m4: Require the new macro.
96824         * m4/jm-glibc-io.m4: New file.
96825
96826 1998-05-19  Jim Meyering  <meyering@ascend.com>
96827
96828         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96829         * m4/lchown.m4: New file.
96830
96831         * m4/Makefile.am.in: New file.
96832         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96833
96834 1998-05-14  Jim Meyering  <meyering@ascend.com>
96835
96836         * m4/Makefile.am (EXTRA_DIST): Add them.
96837         * m4/jm-macros.m4: New file.
96838         * m4/utimbuf.m4: New file.
96839
96840 1998-05-12  Jim Meyering  <meyering@ascend.com>
96841
96842         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96843
96844 1998-05-11  Jim Meyering  <meyering@ascend.com>
96845
96846         * m4/isc-posix.m4: New file.
96847
96848 1998-05-10  Jim Meyering  <meyering@ascend.com>
96849
96850         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96851
96852 1998-05-09  Jim Meyering  <meyering@ascend.com>
96853
96854         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96855         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96856         with automake.
96857
96858         * m4/ssize_t.m4: New file.
96859         * m4/mktime.m4: Remove file -- the new automake has this now.
96860
96861 1998-04-26  Jim Meyering  <meyering@ascend.com>
96862
96863         * m4/assert.m4: New file.
96864         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96865
96866 1998-04-05  Jim Meyering  <meyering@ascend.com>
96867
96868         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96869         (jm_PREREQ): Use it here.
96870
96871 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96872
96873         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96874         in acconfig.h.
96875
96876 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96877
96878         * m4/prereq.m4: New file.
96879         * m4/error.m4: New file.
96880         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96881
96882 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96883
96884         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96885         cache-check for the same variable -- that defeated the purpose of
96886         the test; the test program was never run.  This was a problem only
96887         on systems with losing getline functions -- HP-UX 10.20 is one.
96888         Reported by Bjorn Helgaas.
96889
96890 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96891
96892         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96893
96894 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96895
96896         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96897
96898         * m4/const.m4: New file.  Use an initializer in this declaration
96899         typedef int charset[2]; const charset x;
96900         Reported by Bob Glickstein.
96901
96902 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96903
96904         * m4/chown.m4: Fix reversed types on -1 args to chown.
96905         From Kaveh Ghazi.
96906
96907 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96908
96909         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96910         Add lseek and memchr.
96911
96912         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96913         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96914         have a 20-character limit on names.
96915
96916 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96917
96918         * m4/inttypes_h.m4: New file.
96919         * m4/uintmax_t.m4: New file.
96920         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96921
96922
96923         -----
96924
96925         Local Variables:
96926         coding: utf-8
96927         End:
96928
96929         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96930
96931         Copying and distribution of this file, with or without
96932         modification, are permitted provided the copyright notice
96933         and this notice are preserved.